@font-face{font-family:Fredoka;src:url('/assets/fredoka.ttf') format('truetype');font-weight:300 700;font-style:normal;font-display:swap}
:root{--ink:#153558;--paper:#fff8e8;--accent:#7250bc;--accent-hover:#5d3b9f;--mint:#e4eedc;--blue:#e8eef5;--line:#d5d8d3;--muted:#486079;--display:Fredoka,'Arial Rounded MT Bold',sans-serif;--body:'Avenir Next',Avenir,system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-color:var(--accent) var(--paper)}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 var(--body)}::selection{background:#ddcef3;color:var(--ink)}a{color:inherit;text-underline-offset:5px;text-decoration-thickness:1px}a:hover{color:var(--accent)}a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px}img{display:block;max-width:100%}h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.08;letter-spacing:-.025em;text-wrap:balance}p{margin:0 0 20px}.wrap{width:min(100% - 96px,1340px);margin-inline:auto}.draft{padding:7px 20px;color:#4f5e68;text-align:center;font-size:11px;line-height:1.4}.skip{position:absolute;left:20px;top:-100px;padding:12px;background:var(--paper);z-index:10}.skip:focus{top:8px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;height:72px;position:relative;z-index:2}.logo{font:600 54px/.9 var(--display);letter-spacing:-.04em;text-decoration:none}.logo i{font-style:normal}nav{display:flex;align-items:center;gap:30px;font-size:15px;font-weight:600}nav a{text-decoration:none;padding-block:10px}.language{border-left:1px solid #b6bfc6;padding-left:30px}.hero{position:relative;isolation:isolate;height:680px;overflow:hidden}.garden{position:absolute;z-index:-1;inset:auto 0 0;width:100%;height:auto;min-height:540px;object-fit:cover;object-position:center bottom}.hero-copy{position:relative;text-align:center;margin:0 auto;padding:0 24px;width:min(100%,850px)}.hero h1{font-size:clamp(64px,6.25vw,96px);margin:0 0 18px;line-height:.93;font-weight:650}.hero-lead{font-size:23px;line-height:1.4;max-width:600px;margin:0 auto 20px;text-wrap:balance}.hero-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:11px 30px;border:2px solid transparent;border-radius:100px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700;font-size:17px;line-height:1.35;transition:background .2s ease,color .2s ease}.button:hover{background:var(--accent-hover);color:#fff}.button.secondary{background:var(--paper);color:var(--ink);border-color:var(--ink)}.button.secondary:hover{background:#ece2f6}.availability{font-size:13px;color:var(--muted);margin:8px 0 0}.ritual{position:relative;isolation:isolate;background:#123356;color:var(--paper);padding:60px 24px 70px;scroll-margin-top:20px}.twilight{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center}.ritual-copy{max-width:760px;margin:auto;text-align:center}.ritual h2{max-width:630px;margin:0 auto 14px;font-size:clamp(40px,4.2vw,64px);line-height:1.04}.ritual-copy>p{font-size:22px;line-height:1.5;margin:0}.page-heading{max-width:820px;padding:65px 0 45px}.page-heading h1{font-size:clamp(42px,5vw,64px);margin:0 0 24px}.lead{font-size:21px}.legal-meta{font-size:13px;color:var(--muted)}.document-layout{display:grid;grid-template-columns:240px minmax(0,760px);gap:75px;padding-bottom:80px}.toc{font-size:14px;align-self:start;position:sticky;top:28px}.toc h2{font:600 18px var(--display);margin:0 0 12px}.toc a{display:block;padding:6px 0;text-decoration:none}.document section{scroll-margin-top:30px;margin-bottom:42px}.document h2{font-size:30px;margin:0 0 18px}.document p{margin:0 0 18px}.document li{margin-bottom:10px}.document .notice{padding:22px 26px;background:var(--blue);border-radius:12px}.document table{width:100%;border-collapse:collapse;font-size:14px}.document th,.document td{text-align:left;vertical-align:top;padding:14px 12px;border-bottom:1px solid var(--line)}.document th{background:var(--blue)}.document a{overflow-wrap:anywhere}.review{padding:20px 24px;background:#f9eccc;border-radius:12px;font-size:15px}footer{border-top:1px solid var(--line);padding:40px 0 48px;display:grid;grid-template-columns:1fr 1fr;gap:30px;font-size:13px}footer p{margin:0 0 10px}.footer-links{justify-content:flex-end;flex-wrap:wrap;gap:8px 24px;align-content:start}.error{min-height:55vh;padding:70px 24px;max-width:1000px;margin:auto}.error h1{font-size:48px}
@media(min-width:1600px){.hero{height:740px}.garden{height:660px;object-fit:cover}}
@media(max-width:1000px){.wrap{width:calc(100% - 56px)}.hero{height:640px}.hero h1{font-size:76px}.garden{width:120%;max-width:none;left:-10%;min-height:480px}.document-layout{grid-template-columns:190px minmax(0,1fr);gap:35px}}
@media(max-width:600px){body{font-size:16px}.wrap{width:calc(100% - 40px)}.draft{font-size:10px;padding:6px 18px}.site-header{height:76px;gap:14px}.logo{font-size:42px}nav{gap:14px;font-size:13px}nav .about-link{display:none}.language{padding-left:14px}.hero{height:630px}.hero-copy{padding:12px 18px 0}.hero h1{font-size:clamp(43px,11.9vw,66px);line-height:.99;margin-bottom:18px}.hero-lead{font-size:17px;max-width:340px;line-height:1.45;margin-bottom:18px}.hero-actions{gap:10px}.button{font-size:15px;min-height:48px;padding:11px 21px}.availability{font-size:12px;margin-top:10px}.garden{height:380px;min-height:0;width:950px;max-width:none;left:50%;transform:translateX(-50%);object-fit:cover}.ritual{padding:48px 22px 52px}.ritual h2{font-size:40px;max-width:360px}.ritual-copy>p{font-size:18px}.twilight{object-fit:cover;object-position:center}.page-heading{padding:32px 0}.page-heading h1{font-size:43px}.lead{font-size:18px}.document-layout{display:block}.toc{position:static;border-block:1px solid var(--line);padding:20px 0;margin-bottom:36px}.document h2{font-size:28px}.document table{font-size:12px}.document th,.document td{padding:10px 6px;overflow-wrap:anywhere}footer{grid-template-columns:1fr;font-size:12px;padding-block:32px}.footer-links{justify-content:flex-start;font-size:13px;gap:2px 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.keep{white-space:nowrap}.garden{mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.65) 1%,#000 2%)}.ritual .twilight{height:310px;object-fit:cover}.routine-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:50px;list-style:none;padding:60px 0 0;max-width:1120px;margin-block:0}.routine-steps li{position:relative;padding-top:22px;border-top:1px solid #5b7089}.step-number{font:500 24px var(--display);color:#d1bfef}.routine-steps h3{font-size:28px;margin:14px 0 16px;max-width:290px}.routine-steps p{font-size:16px;line-height:1.7;color:#e0e7f0;margin:0}.together{text-align:center;color:#e0e7f0;font-size:15px;margin:44px 0 0}.parents{display:grid;grid-template-columns:1.1fr 1fr;gap:100px;padding-block:100px;max-width:1120px}.parents h2,.privacy-band h2,.questions h2,.help-strip h2{font-size:clamp(36px,3.4vw,52px);margin:0 0 24px}.parents p{max-width:460px}.parents dl{margin:0;align-self:center}.parents dl>div+div{border-top:1px solid var(--line);margin-top:28px;padding-top:28px}.parents dt{font:500 26px/1.2 var(--display);margin-bottom:12px}.parents dd{margin:0;color:var(--muted);font-size:16px}.text-link{display:inline-flex;align-items:center;gap:10px;font-weight:600;min-height:44px}.privacy-band{background:var(--mint);padding:60px 0}.privacy-inner{display:grid;grid-template-columns:1fr 1.2fr;gap:100px;max-width:1120px}.privacy-band h2{max-width:380px;margin:0}.privacy-band p{margin:0 0 16px}.questions{max-width:1120px;padding-block:96px;display:grid;grid-template-columns:1fr 1.2fr;gap:100px}.questions h2{max-width:380px}.questions details{border-bottom:1px solid var(--line)}.questions details:first-child{border-top:1px solid var(--line)}summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:18px 0;font-weight:600}summary::-webkit-details-marker{display:none}summary svg{flex-shrink:0;transition:transform .2s ease}details[open] summary svg{transform:rotate(180deg)}details p{color:var(--muted);font-size:16px;margin:0 0 24px;max-width:65ch}.help-strip{text-align:center;padding:64px 24px 84px;border-top:1px solid var(--line)}.help-strip p{max-width:540px;margin:0 auto 28px}.support-link{display:block;width:fit-content;margin:20px auto 0;font-size:15px;padding:7px 10px}
@media(max-width:1000px){.parents,.privacy-inner,.questions{gap:48px}.routine-steps{gap:30px}}
@media(max-width:600px){.routine-steps{display:block;padding-top:36px;width:100%}.routine-steps li{padding:22px 0 24px 46px}.step-number{position:absolute;left:0;top:24px}.routine-steps h3{font-size:26px;margin:0 0 10px;max-width:none}.routine-steps p{font-size:15px}.together{margin:8px auto 0;max-width:300px;font-size:14px}.ritual .twilight{height:250px;opacity:.5}.parents{display:block;padding-block:60px}.parents dl{margin-top:34px}.parents h2,.privacy-band h2,.questions h2,.help-strip h2{font-size:38px}.privacy-band{padding-block:44px}.privacy-inner,.questions{display:block}.privacy-band h2{margin-bottom:24px}.questions{padding-block:56px}.questions h2{margin-bottom:28px}.help-strip{padding:44px 0 56px}summary{font-size:16px;min-height:72px}.parents dt{font-size:25px}}
@media(min-width:1001px){.site-header{height:52px}.hero{height:700px}.garden{height:540px;min-height:0;bottom:-30px;object-fit:cover}.hero-lead{max-width:640px}.ritual{padding-top:46px}}
.ritual .twilight{mask-image:linear-gradient(to bottom,#000 70%,transparent)}
:root{--paper:#fffbef}.ritual{color:#fafbff}
@media(min-width:1001px){.hero{height:716px}.hero h1{font-size:clamp(64px,6vw,92px);margin-bottom:14px}.hero-lead{margin-bottom:16px}}
@media(max-width:600px){.document th:first-child,.document td:first-child{width:38%}.document td,.document th{overflow-wrap:normal;word-break:normal;hyphens:auto}}

/* The opening is one scene: a garden that settles into moonlight. */
.opening-story { position: relative; background: #123356; }
.story-stage { position: relative; }
.landing-page .hero {
  --paper: #fdf7e9; /* Sampled from the garden’s upper sky. */
  --garden-height: max(380px, calc(100vw * 793 / 1983));
  height: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--garden-height) * .68);
  background: var(--paper);
}
.opening-header { position: relative; z-index: 2; }
.landing-page .hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(24px, 4svh, 52px);
  z-index: 1;
}
.landing-page .garden {
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--garden-height);
  min-height: 0;
}
.landing-page .ritual {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 8svh, 100px);
  scroll-margin-top: 0;
}
.landing-page .ritual-copy { margin: 0 auto; }
.landing-page .ritual .twilight {
  width: max(100%, 850px);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: top left;
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
  opacity: 1;
}
.landing-page main > section, .landing-page .chapter-stage > section {
  min-height: 100svh;
  position: relative;
  align-content: center;
}
.landing-page .privacy-band { display: flex; align-items: center; }
.landing-page .help-strip { display: flex; flex-direction: column; justify-content: center; align-items: center; }
/* JS enables pinning only after measuring both scenes. No wheel interception. */
.story-ready .story-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.story-ready .hero, .story-ready .ritual { position: absolute; top: 0; left: 0; width: 100%; }
.story-ready .ritual { background: transparent; opacity: 0; pointer-events: none; }
.ritual:focus { outline: none; }
.story-ready .hero { transform-origin: center 70%; }
.story-ready .ritual .twilight { transform-origin: center; }
@media(max-width:600px) {
  .landing-page .hero { padding-bottom: 290px; }
  .landing-page .hero-copy { padding-top: 20px; }
  .landing-page .garden { height: 380px; width: 950px; left: 50%; }
  .landing-page .ritual { padding-block: 180px 56px; }
  .landing-page .ritual .twilight { left: -35px; opacity: 1; }
  .landing-page .parents, .landing-page .questions {
    display: flex; flex-direction: column; justify-content: center; gap: 0;
  }
}
@media(prefers-reduced-motion:reduce) {
  .landing-page main > section, .landing-page .chapter-stage > section { min-height: auto; }
}

/* Each supporting slide gets scroll room for its reveal and a reading pause. */
.chapter-track { position: relative; }
.chapter-ready .chapter-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.chapter-ready .chapter-stage > section { margin-block: 0; }

/* Opening plays once on load. Child transforms do not compete with the scroll scene. */
@media(prefers-reduced-motion:no-preference) {
  .hero-intro h1,
  .hero-intro .hero-lead,
  .hero-intro .hero-actions,
  .hero-intro .availability {
    animation: opening-copy 700ms cubic-bezier(.16, 1, .3, 1) backwards;
  }
  .hero-intro h1 { animation-delay: 80ms; }
  .hero-intro .hero-lead { animation-delay: 240ms; }
  .hero-intro .hero-actions { animation-delay: 420ms; }
  .hero-intro .availability { animation-delay: 560ms; }
  .hero-intro .garden {
    transform-origin: center bottom;
    animation: opening-garden 1100ms cubic-bezier(.16, 1, .3, 1) 120ms backwards;
  }
  @keyframes opening-copy {
    from { opacity: 0; translate: 0 24px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes opening-garden {
    from { opacity: .3; scale: 1.035; }
    to { opacity: 1; scale: 1; }
  }
}
