/* Soft and calm, for parents reading at 3 a.m.: the app icon's blue on a pale background, with
   white cards like the app's own lists. Dark mode follows the system, since that's when most
   night feeds happen. */
:root {
  --bg: #f4f7fc;
  --bg-tint: #e6effc;
  --card: #ffffff;
  --text: #13213a;
  --muted: #56627a;
  --line: rgba(19, 33, 58, 0.1);
  --blue: #2f7de0;
  --blue-deep: #1f5aa8;
  --link: #1f63c4;
  --peach: #f0b196;
  --shadow: 0 12px 36px rgba(31, 90, 168, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424;
    --bg-tint: #13213a;
    --card: #17233a;
    --text: #eef3fb;
    --muted: #a7b3c8;
    --line: rgba(238, 243, 251, 0.12);
    --blue: #5a9cf0;
    --blue-deep: #8ab9f5;
    --link: #8ab9f5;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(70% 50% at 85% 0%, var(--bg-tint) 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 30%, color-mix(in srgb, var(--peach) 18%, transparent) 0%, transparent 70%),
    var(--bg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
nav.links { display: flex; gap: 18px; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 32px 0 64px; }
.hero .icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 32em; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.store:hover { text-decoration: none; opacity: 0.9; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.fine { color: var(--muted); font-size: 14px; margin-top: 12px; }

.phones { display: flex; justify-content: center; gap: 18px; }
.phones img, .showcase img {
  width: 100%;
  border-radius: 30px;
  border: 6px solid var(--card);
  box-shadow: var(--shadow);
  background: var(--card);
}
.phones img { width: 47%; max-width: 250px; }
.phones img:nth-child(2) { transform: translateY(32px); }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .plan, .promise, details, .contact, article.doc {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card { border-radius: 20px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* The app's colored tiles. */
.badge {
  --tile: var(--blue);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  font-size: 19px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tile) 75%, white), var(--tile));
}

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.showcase figure { margin: 0; }
.showcase figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: 22px; padding: 26px; }
.plan h3 { margin: 0 0 12px; font-size: 21px; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }

.promise { border-radius: 26px; padding: 36px; text-align: center; }
.promise p { color: var(--muted); max-width: 38em; margin: 8px auto 0; }
.note { color: var(--muted); font-size: 14px; text-align: center; max-width: 40em; margin: 0 auto 48px; }

article.doc { max-width: 800px; margin: 16px 0 64px; padding: 28px 34px 40px; border-radius: 26px; }
article.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 8px 0 6px; }
article.doc h2 { font-size: 21px; margin: 32px 0 8px; }
article.doc .updated { color: var(--muted); margin-bottom: 24px; }
article.doc ul { padding-left: 22px; }
article.doc li { margin: 6px 0; }
article.doc details { box-shadow: none; }

details { border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Shown to people who used the old web tracker on this address. */
.moved { margin: 0 0 8px; padding: 14px 18px; border-radius: 16px; background: var(--bg-tint); border: 1px solid var(--line); }

.contact { border-radius: 18px; padding: 22px; margin: 24px 0; box-shadow: none; background: var(--bg-tint); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid, .showcase { grid-template-columns: 1fr; }
  .showcase figure { max-width: 300px; margin: 0 auto; }
  nav.links { gap: 12px; }
  /* Only Support fits beside the name on a phone; the page sections are a short scroll away. */
  nav.links a[href^="#"] { display: none; }
  .promise { padding: 26px 20px; }
  article.doc { padding: 22px 20px 32px; }
}
