:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --border: #e2e8f0;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --border: #1e293b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--primary); }

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

header nav { display: flex; gap: 16px; }
header nav a { color: var(--muted); text-decoration: none; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }

main { padding-bottom: 48px; }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
.lead { font-size: 20px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }

.cards { display: grid; gap: 12px; margin: 28px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }

footer { border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }

/* Landing ----------------------------------------------------------------------------------- */

body:has(.landing) header, body:has(.landing) footer, .landing { max-width: 1080px; }
header nav { flex-wrap: wrap; justify-content: flex-end; }

.landing h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 16px; }
.landing h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.landing h3 { font-size: 18px; margin: 0 0 4px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }

.hero { display: grid; gap: 32px; align-items: center; padding: 24px 0 8px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; border-radius: 24px; display: block; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1120; } }

.section { padding: 48px 0 0; }
.section p { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.steps p { margin: 0; font-size: 15px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #ffffff; display: grid; place-items: center; font-weight: 800; }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

/* Child phone mock-up (mirrors the app's child home screen). */
.phone { justify-self: center; width: min(320px, 100%); border-radius: 40px; padding: 12px; background: #0f172a; box-shadow: 0 24px 60px rgb(15 23 42 / 0.25); }
.phone-screen { background: #f5f7fb; color: #0f172a; border-radius: 30px; padding: 28px 16px 22px; display: grid; gap: 12px; }
.phone-screen .ph-greeting { font-size: 26px; font-weight: 800; margin: 0; color: #0f172a; }
.ph-banner { background: #fef2f2; border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.ph-banner strong { color: #0f172a; }
.ph-banner span { color: #5b6b82; font-size: 14px; }
.ph-card { background: #ffffff; border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; }
.ph-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #0f172a; }
.ph-row em { margin-left: auto; color: #5b6b82; font-style: normal; font-size: 13px; }
.ph-head { justify-content: space-between; }
.ph-head span { color: #5b6b82; font-size: 14px; }
.ph-row .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cbd5e1; display: grid; place-items: center; font-size: 13px; color: #ffffff; flex: none; }
.ph-row.done { color: #5b6b82; text-decoration: line-through; }
.ph-row.done .box { background: #2563eb; border-color: #2563eb; }

/* Parent card mock-up (mirrors the web app's Today card). */
.panel { justify-self: center; width: min(400px, 100%); background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgb(15 23 42 / 0.10); }
.pn-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; color: #ffffff; display: grid; place-items: center; font-weight: 700; }
.a-sky { background: #38bdf8; }
.pn-row { display: flex; justify-content: space-between; color: var(--muted); }
.pn-row span:first-child { color: var(--text); }
.pill-locked { background: #fef2f2; color: #dc2626; border-radius: 999px; padding: 0 10px; font-weight: 600; font-size: 14px; }
.pn-row.pn-actions .link { color: var(--primary); font-weight: 700; }
.pn-row.pn-actions .link.danger { color: #dc2626; }

.cards.three { margin: 16px 0 0; }
@media (min-width: 880px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.privacy-band { margin-top: 48px; padding: 32px 24px; background: var(--surface); border-radius: 24px; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin: 8px 0 0; }

.final-cta { text-align: center; }
.final-cta p { max-width: 560px; margin: 0 auto 20px; }

.guide-links { padding-left: 18px; }
.guide-links li { margin: 6px 0; }

/* Guides ------------------------------------------------------------------------------------ */

.guide .lead { margin-bottom: 8px; }
.guide .cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin: 32px 0; }
.guide .cta-box p { margin: 0 0 12px; color: var(--muted); }

@media (max-width: 480px) {
  header nav { gap: 12px; font-size: 15px; }
}
