/* ParentPath website — same tokens as the app (lib/core/theme.dart).
   System fonts only: no requests to third-party font servers. */
:root {
  --bg: #FBF8F4;
  --bg-alt: #F4EFE8;
  --surface: #FFFFFF;
  --ink: #2D3142;
  --ink-soft: #6B6F80;
  --line: #E9E3DB;
  --brand: #3A7D74;
  --brand-dark: #2F6860;
  --brand-soft: #E2F0EC;
  --mint: #5FC2A4;
  --apricot: #F2A273;
  --lavender: #A48FDF;
  --sky: #6FB3E0;
  --rose: #E58A8A;
  --brand-text: #3A7D74;
  --phone: #2A2D38;
  --shadow: 0 24px 60px -24px rgba(45, 49, 66, .35);
  --blob: .55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E2029;
    --bg-alt: #242733;
    --surface: #2A2D38;
    --ink: #F1EEE9;
    --ink-soft: #B3B5C0;
    --line: #3A3D49;
    --brand-soft: #24413D;
    --brand-text: #7FCFC2;
    --phone: #0F1117;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --blob: .22;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px;
}

/* ---------------------------------------------------------- simple pages */
.wrap { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
.logo { width: 120px; height: auto; display: block; margin-bottom: 28px; }
.logo.small { width: 88px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 800; font-size: 14px;
}
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
.wrap h1 { font-size: clamp(28px, 6vw, 40px); }
h2 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.lead { color: var(--ink-soft); font-size: 19px; margin: 0 0 28px; }
.note { color: var(--ink-soft); font-size: 15px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; margin: 0 0 24px; text-align: center;
}
.label { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.code.invalid { font-size: 22px; letter-spacing: 0; }
.code { font-size: 38px; font-weight: 800; letter-spacing: 6px; margin: 6px 0 18px; }
.button {
  display: block; padding: 14px 18px; border-radius: 16px; margin-top: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 800;
}
.button.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.steps { padding-left: 22px; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.footer { padding-top: 0; color: var(--ink-soft); font-size: 14px; }
.footer a { color: var(--ink-soft); }


/* ---------------------------------------------------------- landing page
   Scroll-driven: one script sets --p (0…1) on [data-scroll] elements; the
   styles below turn it into motion. Without JS or with reduced motion
   everything is simply visible. */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30;
  background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.top.scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.top .container { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand svg { width: 44px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav > a:not(.btn) { color: inherit; opacity: .85; text-decoration: none; font-weight: 700; font-size: 15px; }
.nav > a:not(.btn):hover { opacity: 1; }
.lang {
  display: inline-flex; border: 1.5px solid currentColor; border-radius: 12px; overflow: hidden;
  font-size: 13px; opacity: .9;
}
.lang a, .lang span { padding: 4px 9px; font-weight: 800; text-decoration: none; color: inherit; }
.lang span { background: color-mix(in srgb, currentColor 18%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 16px; font-weight: 800; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.light { background: #fff; color: #2D3142; }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn.glass { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow-light {
  display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 20px;
  background: rgba(255,255,255,.18); color: #fff; font-weight: 800; font-size: 14px;
  backdrop-filter: blur(6px);
}

/* 1 · Hero: the video follows the scroll position. */
.hero { position: relative; height: 240vh; background: #20242c; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero video, .hero .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(25,30,38,.62) 0%, rgba(25,30,38,.25) 45%, rgba(25,30,38,0) 70%),
    linear-gradient(0deg, rgba(25,30,38,.45) 0%, rgba(25,30,38,0) 35%);
}
.hero .copy {
  position: absolute; left: 0; right: 0; top: 50%; color: #fff;
  transform: translateY(calc(-50% - var(--p, 0) * 120px));
  opacity: calc(1 - var(--p, 0) * 2.2);
}
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.04; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { color: rgba(255,255,255,.9); font-size: clamp(17px, 1.6vw, 21px); max-width: 32em; margin: 0 0 28px; }
.hero .checks { color: rgba(255,255,255,.88); margin-top: 18px; }
.hero .after {
  position: absolute; left: 0; right: 0; bottom: 14vh; text-align: center; color: #fff;
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  opacity: clamp(0, calc((var(--p, 0) - .5) * 3.5), 1);
  transform: translateY(calc((1 - var(--p, 0)) * 40px));
}
.hero .hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: #fff;
  opacity: calc(.85 - var(--p, 0) * 6); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero .hint i {
  width: 22px; height: 36px; border: 2px solid #fff; border-radius: 12px; position: relative; display: block;
}
.hero .hint i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 700; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* 2 · Statement: words light up while scrolling. */
.statement { height: 200vh; position: relative; }
.statement .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.statement p {
  max-width: 980px; margin: 0 auto; padding: 0 20px;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em;
}
.statement .w { opacity: .14; transition: opacity .25s; }
.statement .w.on { opacity: 1; }
.statement .w.accent.on { color: var(--brand-text); }

section { padding: 96px 0; }
.head { max-width: 680px; margin: 0 0 44px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { color: var(--ink-soft); font-size: 18px; margin: 0; }
.eyebrow { display: inline-block; }

/* 3 · Story: a phone stays, its screens change with the steps. */
.story .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story .device { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.phone {
  position: relative; height: min(76vh, 640px); aspect-ratio: 534 / 954; padding: 10px;
  background: var(--phone); border-radius: 44px; box-shadow: var(--shadow);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease; }
.phone img.on { opacity: 1; transform: none; }
.story .glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(70px); z-index: -1;
  background: var(--glow, var(--mint)); opacity: var(--blob); transition: background .6s;
}
.story .steps-list { padding: 18vh 0; }
.story .step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .3; transition: opacity .5s;
}
.story .step.on { opacity: 1; }
.story .step .num { font-weight: 800; color: var(--brand-text); font-size: 15px; letter-spacing: .06em; margin-bottom: 10px; }
.story .step p { color: var(--ink-soft); font-size: 19px; margin: 0; max-width: 28em; }
.story .step .inline { display: none; }

/* 4 · Chapters: large photos with parallax and a reveal. */
.chapter { padding: 64px 0; }
.chapter .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.chapter.flip .frame { order: 2; }
.frame {
  position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow);
  clip-path: inset(calc((1 - min(var(--p, 1) * 2.4, 1)) * 12%) round 32px);
}
.frame img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  transform: translateY(calc((var(--p, .5) - .5) * -12%));
}
.chapter h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; letter-spacing: -.02em; }
.chapter p { color: var(--ink-soft); font-size: 19px; margin: 0 0 20px; }
.chapter ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.chapter li { display: flex; gap: 10px; font-weight: 700; }
.chapter li::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; flex: none;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%233A7D74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
}
.chapter .text { transform: translateY(calc((.5 - var(--p, .5)) * 60px)); }

/* 5 · Features: a horizontal track driven by vertical scrolling. */
.rail { position: relative; background: var(--bg-alt); }
.rail .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.rail .head { margin-bottom: 36px; }
.track { display: flex; gap: 20px; padding: 0 max(20px, calc((100vw - 1120px) / 2)); will-change: transform; transform: translateX(var(--x, 0px)); }
.feature {
  flex: none; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px;
}
.feature h3 { font-size: 20px; margin: 0 0 8px; font-weight: 800; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; }
.i-mint { background: color-mix(in srgb, var(--mint) 20%, transparent); color: #2E9C7C; }
.i-apricot { background: color-mix(in srgb, var(--apricot) 22%, transparent); color: #C96F3B; }
.i-lavender { background: color-mix(in srgb, var(--lavender) 22%, transparent); color: #7A62C4; }
.i-sky { background: color-mix(in srgb, var(--sky) 22%, transparent); color: #3B86BA; }
.i-rose { background: color-mix(in srgb, var(--rose) 22%, transparent); color: #C25858; }
.i-brand { background: var(--brand-soft); color: var(--brand-text); }
@media (prefers-color-scheme: dark) {
  .i-mint { color: var(--mint); } .i-apricot { color: var(--apricot); } .i-lavender { color: var(--lavender); }
  .i-sky { color: var(--sky); } .i-rose { color: var(--rose); }
}

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step3 { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.step3::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step3 h3 { margin: 0 0 6px; }
.step3 p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; }
.plan.plus { border: 2px solid var(--brand); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff;
  padding: 3px 12px; border-radius: 12px; font-size: 13px; font-weight: 800;
}
.plan h3 { margin: 0; }
.plan .price { font-size: 42px; font-weight: 800; margin: 6px 0 0; letter-spacing: -.02em; }
.plan .price small { font-size: 16px; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.plan .sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 16px; }
.plan li { display: flex; gap: 10px; }
.plan li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; flex: none;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%233A7D74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.plan .btn { margin-top: auto; }
.fine { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 20px auto 0; max-width: 640px; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust .card2 { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.trust h3 { margin: 0 0 6px; font-size: 18px; }
.trust p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--brand-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* 6 · Closing scene over the photo of the child's room. */
.final { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; padding: 96px 0; }
.final img {
  position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover;
  transform: translateY(calc((var(--p, .5) - .5) * -14%)) scale(calc(1.12 - var(--p, .5) * .12));
}
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,30,38,.35), rgba(25,30,38,.68)); z-index: 1; }
.final .inner { position: relative; z-index: 2; max-width: 760px; padding: 0 20px; }
.final h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -.02em; }
.final p { color: rgba(255,255,255,.9); font-size: 19px; margin: 0 auto 28px; max-width: 32em; }
.final .cta { justify-content: center; }

.foot { padding: 40px 0 48px; color: var(--ink-soft); font-size: 14px; }
.foot .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.foot a { color: var(--ink-soft); }
.foot .social { display: flex; gap: 10px; margin-left: 0; }
.foot .social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface, #fff); border: 1px solid rgba(45, 49, 66, .12); }
.foot .social a:hover { color: var(--brand, #3A7D74); border-color: currentColor; }
.foot .social svg { width: 20px; height: 20px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Without the scroll script (or reduced motion): calm, static page. */
html.static .hero { height: 100vh; height: 100svh; }
html.static .hero .after, html.static .hero .hint { display: none; }
html.static .statement { height: auto; }
html.static .statement .sticky { position: static; height: auto; padding: 96px 0; }
html.static .statement .w { opacity: 1; }
html.static .reveal { opacity: 1; transform: none; transition: none; }
html.static .rail .sticky { position: static; height: auto; padding: 96px 0; }
html.static .track { overflow-x: auto; transform: none; scroll-snap-type: x mandatory; padding-bottom: 12px; }
html.static .feature { scroll-snap-align: start; }
html.static .frame { clip-path: none; }
html.static .phone img, html.static .story .step { transition: none; }
html.static .story .step { opacity: 1; }

@media (max-width: 960px) {
  .chapter .container { grid-template-columns: 1fr; gap: 32px; }
  .chapter.flip .frame { order: 0; }
  .frame { aspect-ratio: 4 / 4.2; }
  .trust { grid-template-columns: 1fr 1fr; }
  .nav > a.hide-m { display: none; }
  .story .container { grid-template-columns: 1fr; gap: 0; }
  .story .device { top: 64px; height: 50vh; z-index: 1; }
  .phone { height: min(48vh, 440px); border-radius: 34px; padding: 8px; }
  .phone .screen { border-radius: 27px; }
  .story .steps-list { padding: 0 0 10vh; position: relative; z-index: 2; }
  .story .step { min-height: 62vh; justify-content: flex-end; padding-bottom: 6vh; opacity: 0; }
  .story .step.on { opacity: 1; }
  .story .step > div {
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav { gap: 12px; }
  .nav > a:not(.btn) { display: none; }
  .brand span { display: none; }
  .hero .copy { top: auto; bottom: 12vh; transform: translateY(calc(var(--p, 0) * -80px)); }
  .hero .shade { background: linear-gradient(0deg, rgba(25,30,38,.78) 0%, rgba(25,30,38,.35) 55%, rgba(25,30,38,.1) 100%); }
  .hero .after { bottom: 40vh; padding: 0 20px; }
  .hero .hint { display: none; }
  .cta .btn { flex: 1 1 100%; }
  .steps3, .pricing, .trust { grid-template-columns: 1fr; }
  .feature { width: 78vw; }
  .story .step p, .chapter p { font-size: 17px; }
  .foot nav { margin-left: 0; }
}
.top:not(.scrolled) .brand svg path:first-child { stroke: #fff; }
