/* Reading Adventure Worlds — marketing site
   Palette pulled from the approved golden-hour world art.
   Meaning colors match the app: meadow = stretch sound, berry = quick sound, sun = now. */

:root {
  --ink: #17463d;
  --ink-deep: #0e2e28;
  --ink-soft: #3f6259;
  --cream: #fff9ec;
  --parchment: #f7ecd4;
  --parchment-deep: #efdcb6;
  --sun: #f5c14f;
  --sun-lip: #c98f1d;
  --apricot: #f6a86b;
  --blush: #f9d3b4;
  --meadow: #7cb342;
  --meadow-lip: #4f7f23;
  --berry: #d8513f;
  --berry-lip: #9d2f22;
  --pond: #2b8093;
  --night: #1a1510;
  --night-2: #221b14;

  --display: "Young Serif", Georgia, serif;
  --body: "Lexend", "Segoe UI", sans-serif;
  --letter: "Andika", "Lexend", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
main, .site-footer { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons: toy blocks with a solid lip ---------- */
.btn {
  --lip: var(--sun-lip);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.3em;
  font: 600 1rem/1 var(--body);
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: 16px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .2s;
}
.btn-sun { background: var(--sun); color: var(--ink-deep); box-shadow: 0 6px 0 var(--lip), 0 14px 30px -10px rgb(201 143 29 / .7); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lip), 0 18px 36px -10px rgb(201 143 29 / .75); }
.btn-sun:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lip), 0 6px 14px -8px rgb(201 143 29 / .6); }
.btn-ink { --lip: #06201b; background: var(--ink); color: var(--cream); box-shadow: 0 5px 0 var(--lip); }
.btn-ink:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn-ghost { color: var(--cream); background: rgb(255 249 236 / .08); box-shadow: inset 0 0 0 2px rgb(255 249 236 / .55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgb(255 249 236 / .18); }
.btn-lg { min-height: 58px; font-size: 1.08rem; padding: 0 1.6em; border-radius: 18px; }
.btn-sm { min-height: 44px; font-size: .95rem; padding: 0 1.1em; border-radius: 14px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream); transition: color .3s; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 249 236 / .86); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgb(23 70 61 / .1);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled::before { opacity: 1; }
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 .98rem/1.05 var(--body); }
.brand img { border-radius: 11px; box-shadow: 0 4px 0 rgb(0 0 0 / .18); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgb(255 249 236 / .14); color: inherit; cursor: pointer; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { background: var(--cream); color: var(--ink); padding: 8px var(--gutter) 24px; display: grid; gap: 4px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .3); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 4px; text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid rgb(23 70 61 / .1); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; overflow: hidden; color: var(--cream); background: var(--ink-deep); isolation: isolate; }
.hero-art { position: absolute; inset: -4% -2% -8%; z-index: -3; will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 0% 60%, rgb(14 46 40 / .92) 0%, rgb(14 46 40 / .72) 38%, rgb(14 46 40 / .1) 70%, transparent 85%),
    linear-gradient(to bottom, rgb(14 46 40 / .55), transparent 22%, transparent 70%, rgb(14 46 40 / .35));
}
.lanterns { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lantern-letter {
  position: absolute; bottom: -80px;
  font: 700 var(--s, 34px)/1 var(--letter);
  color: #fff4c9;
  text-shadow: 0 0 12px rgb(255 205 90 / .95), 0 0 34px rgb(255 170 60 / .65);
  opacity: 0;
  animation: rise var(--t, 16s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg); opacity: 0; }
  10% { opacity: var(--o, .85); }
  50% { transform: translate3d(var(--sway, 30px), -55vh, 0) rotate(6deg); }
  85% { opacity: var(--o, .85); }
  100% { transform: translate3d(0, -110vh, 0) rotate(-4deg); opacity: 0; }
}
.hero-inner { padding: 130px 0 120px; max-width: var(--wrap); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgb(255 249 236 / .12); box-shadow: inset 0 0 0 1px rgb(255 249 236 / .3); backdrop-filter: blur(8px); font-size: .92rem; font-weight: 500; margin-bottom: 26px; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgb(245 193 79 / .3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(245 193 79 / 0); } }
.hero-title { font-size: clamp(2.9rem, 7.4vw, 6.2rem); line-height: .98; max-width: 11.5em; text-shadow: 0 4px 30px rgb(0 0 0 / .25); }
.hero-title .line { display: block; }
.hero-title .sub { font-size: .44em; line-height: 1.15; color: var(--sun); margin-top: .5em; max-width: 17em; }
.hero-desc { max-width: 35em; margin-top: 26px; font-size: clamp(1rem, 1.35vw, 1.13rem); color: rgb(255 249 236 / .9); font-weight: 300; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 30px 0 0; font-size: .95rem; color: rgb(255 249 236 / .85); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--meadow); }
.hero-meta strong { color: var(--cream); font-weight: 600; }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 90px); fill: var(--cream); }
.scroll-cue { position: absolute; left: 50%; bottom: clamp(56px, 7vw, 100px); width: 30px; height: 48px; margin-left: -15px; border-radius: 16px; box-shadow: inset 0 0 0 2px rgb(255 249 236 / .6); }
.scroll-cue span { position: absolute; left: 50%; top: 10px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--cream); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Hero load choreography */
.hero .badge, .hero-title .line, .hero-desc, .hero-ctas, .hero-meta { opacity: 0; transform: translateY(26px); animation: enter .9s var(--ease-out) forwards; }
.hero .badge { animation-delay: .1s; }
.hero-title .line:nth-child(1) { animation-delay: .22s; }
.hero-title .line:nth-child(2) { animation-delay: .34s; }
.hero-title .line:nth-child(3) { animation-delay: .5s; }
.hero-desc { animation-delay: .66s; }
.hero-ctas { animation-delay: .8s; }
.hero-meta { animation-delay: .92s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--pond); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.section-head { max-width: 640px; }
.section-head h2 { margin-bottom: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.section-head.light .kicker { color: var(--sun); }
.section-head.light .lede { color: rgb(255 249 236 / .78); }

/* ---------- Method ---------- */
.method { padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); }
.pillars { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: p; }
.pillar { position: relative; padding-top: 8px; }
.pillar:nth-child(2) { margin-top: 48px; }
.pillar:nth-child(3) { margin-top: 96px; }
.pillar h3 { margin: 26px 0 10px; }
.pillar p { color: var(--ink-soft); }
.pillar b { font-family: var(--letter); color: var(--ink); font-size: 1.1em; }
.block {
  --c: var(--meadow); --l: var(--meadow-lip);
  display: inline-grid; place-items: center; min-width: 96px; height: 96px; padding: 0 22px;
  font: 700 3.1rem/1 var(--letter); color: #fff;
  background: var(--c); border-radius: 24px;
  box-shadow: 0 9px 0 var(--l), 0 24px 40px -18px var(--l);
  transform: rotate(-3deg);
  transition: transform .35s var(--spring);
}
.pillar:hover .block { transform: rotate(2deg) translateY(-6px) scale(1.04); }
.block-sun { --c: var(--sun); --l: var(--sun-lip); color: var(--ink-deep); transform: rotate(2deg); }
.block-berry { --c: var(--berry); --l: var(--berry-lip); transform: rotate(-1deg); }
.method-note { margin: 70px auto 0; max-width: 620px; text-align: center; font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }

/* ---------- Together ---------- */
.together { padding: clamp(60px, 8vw, 120px) 0; background: linear-gradient(to bottom, var(--cream), var(--parchment)); }
.together-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.together-art { position: relative; margin: 0; }
.together-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 38px 38px 38px 120px; box-shadow: 0 40px 70px -40px rgb(23 70 61 / .55); }
.float-card { position: absolute; background: var(--cream); border-radius: 18px; box-shadow: 0 6px 0 var(--parchment-deep), 0 24px 40px -20px rgb(23 70 61 / .45); }
.float-card.grownup { left: -18px; top: 26px; max-width: 250px; padding: 14px 18px; border-top: 5px solid var(--pond); animation: bob 6s ease-in-out infinite; }
.fc-label { display: block; font-size: .78rem; font-weight: 600; color: var(--pond); margin-bottom: 4px; }
.fc-text { display: block; font-size: .95rem; line-height: 1.35; }
.float-card.kid { right: -14px; bottom: -26px; padding: 14px 24px; animation: bob 6s ease-in-out -3s infinite; }
.kid-word { font: 700 2.4rem/1 var(--letter); letter-spacing: .02em; }
.kid-word .g { color: var(--meadow-lip); } .kid-word .b { color: var(--berry); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.together-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.together-copy h2 { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--meadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 17px no-repeat; box-shadow: 0 3px 0 var(--meadow-lip); }

/* ---------- Journey ---------- */
.journey { padding: clamp(90px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); background: radial-gradient(90% 70% at 80% 0%, #1f5a4d 0%, var(--ink-deep) 60%); color: var(--cream); overflow: hidden; }
.journey::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 249 236 / .08) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 80%); pointer-events: none; }
.trail { position: relative; margin: 60px 0 10px; height: clamp(220px, 26vw, 300px); }
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail-ghost, .trail-line { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail-ghost { stroke: rgb(255 249 236 / .16); stroke-width: 14; stroke-dasharray: 2 22; }
.trail-line { stroke: var(--sun); stroke-width: 7; filter: drop-shadow(0 0 10px rgb(245 193 79 / .6)); }
.stops { position: absolute; inset: 0; }
.stop { position: absolute; left: var(--sx); top: var(--sy); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; background: none; border: 0; color: var(--cream); cursor: pointer; font: inherit; padding: 0; }
.stop-pad { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 400 1.6rem/1 var(--display); background: var(--cream); color: var(--ink); box-shadow: 0 7px 0 #c9b88f, 0 16px 30px -10px rgb(0 0 0 / .5); transition: transform .35s var(--spring), background .25s, box-shadow .25s; }
.stop:hover .stop-pad { transform: translateY(-4px) scale(1.06); }
.stop[aria-selected="true"] .stop-pad { background: var(--sun); box-shadow: 0 7px 0 var(--sun-lip), 0 0 0 10px rgb(245 193 79 / .22), 0 18px 34px -10px rgb(0 0 0 / .5); transform: scale(1.12); }
.stop-name { font-weight: 600; font-size: .98rem; white-space: nowrap; text-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.trail-fox { position: absolute; left: 0; top: 0; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: var(--night); box-shadow: 0 0 0 4px var(--cream), 0 0 30px rgb(245 193 79 / .7); transform: translate(-50%, -150%); transition: left .9s var(--ease-out), top .9s var(--ease-out); z-index: 2; pointer-events: none; }
.trail-fox img { width: 100%; height: 150%; object-fit: cover; object-position: 50% 8%; animation: hop 1.1s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateY(-3px) rotate(-3deg); } }
.stages { margin-top: 50px; min-height: 150px; }
.stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 900px; padding: 28px clamp(20px, 4vw, 40px); border-radius: var(--radius); background: rgb(255 249 236 / .06); box-shadow: inset 0 0 0 1px rgb(255 249 236 / .14); }
.stage.is-active { animation: stagein .6s var(--ease-out); }
@keyframes stagein { from { opacity: 0; transform: translateY(18px); } }
.stage h3 { margin-bottom: 8px; color: var(--sun); }
.stage p { margin: 0; color: rgb(255 249 236 / .82); }
.stage-letters { display: flex; gap: 10px; align-items: center; }
.stage-letters i { font: 700 2.2rem/1 var(--letter); font-style: normal; background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: 16px; box-shadow: 0 6px 0 #c9b88f; }
.stage-letters i.dash { background: none; box-shadow: none; color: var(--sun); padding: 0; font-size: 1.5rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--sun); color: var(--ink-deep); padding: clamp(14px, 2vw, 24px) 0; border-block: 4px solid var(--sun-lip); }
.marquee-track { display: flex; width: max-content; gap: clamp(28px, 4vw, 60px); align-items: center; will-change: transform; }
.marquee-track span { font: 400 clamp(3rem, 10vw, 8.5rem)/1 var(--display); white-space: nowrap; }
.marquee-track .dot { font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--berry); }

/* ---------- Try it (sound track demo) ---------- */
.try { padding: clamp(90px, 11vw, 150px) 0; background: var(--parchment); overflow: hidden; }
.try::after { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(245 193 79 / .35), transparent 65%); pointer-events: none; }
.try-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; z-index: 1; }
.try-copy h2 { margin-bottom: 20px; }
.try-copy p { color: var(--ink-soft); font-size: 1.06rem; }
.legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.legend li { display: flex; gap: 14px; align-items: center; }
.legend i { font-family: var(--letter); font-style: normal; font-weight: 700; }
.swatch { flex: none; width: 30px; height: 30px; border-radius: 10px; }
.swatch.meadow { background: var(--meadow); box-shadow: 0 4px 0 var(--meadow-lip); }
.swatch.berry { background: var(--berry); box-shadow: 0 4px 0 var(--berry-lip); }
.board { position: relative; background: #fffdf5; border-radius: 34px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(26px, 4vw, 44px); box-shadow: 0 14px 0 #dcc48f, 0 50px 80px -40px rgb(23 70 61 / .55); }
.board-letters { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.bl { font: 700 clamp(5rem, 13vw, 9.5rem)/1 var(--letter); color: var(--ink); display: inline-block; transition: color .2s, transform .35s var(--spring), text-shadow .3s; }
.bl.lit.stretch { color: var(--meadow-lip); transform: scaleX(1.18); text-shadow: 0 0 30px rgb(124 179 66 / .45); }
.bl.lit.quick { color: var(--berry); animation: quick .4s var(--spring); text-shadow: 0 0 30px rgb(216 81 63 / .4); }
@keyframes quick { 30% { transform: scale(1.25) translateY(-8px); } }
.track { position: relative; height: 14px; margin: 26px 4% 0; border-radius: 10px; background: #efe3c6; box-shadow: inset 0 2px 0 rgb(0 0 0 / .06); touch-action: none; }
.track-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--meadow), var(--sun)); }
.track-dot { position: absolute; left: var(--x); top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #d6c49b; }
.lantern { position: absolute; left: var(--p, 0%); top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 0; cursor: grab; background: radial-gradient(circle at 40% 35%, #fff7d1, var(--sun) 45%, #e59a2a 100%); box-shadow: 0 0 0 6px rgb(245 193 79 / .3), 0 0 36px 6px rgb(245 170 60 / .7), 0 6px 0 var(--sun-lip); animation: glow 2s ease-in-out infinite; touch-action: none; }
.lantern:active { cursor: grabbing; }
.board.is-dragging .lantern { animation: none; transform: scale(1.1); }
@keyframes glow { 50% { box-shadow: 0 0 0 12px rgb(245 193 79 / .12), 0 0 50px 10px rgb(245 170 60 / .55), 0 6px 0 var(--sun-lip); } }
.board-say { margin: 34px 0 0; text-align: center; font-weight: 500; color: var(--ink-soft); min-height: 1.6em; }
.board-say b { font-family: var(--letter); font-size: 1.3em; color: var(--ink); }
.board-win { position: absolute; inset: 0; border-radius: inherit; display: grid; place-content: center; justify-items: center; gap: 20px; background: rgb(255 253 245 / .9); backdrop-filter: blur(3px); animation: win .5s var(--ease-out); }
.board-win[hidden] { display: none; }
.win-word { font: 700 clamp(4.5rem, 12vw, 8rem)/1 var(--letter); color: var(--ink); animation: pop .6s var(--spring); }
@keyframes win { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.confetti { position: absolute; font: 700 1.6rem/1 var(--letter); pointer-events: none; animation: burst 1.2s var(--ease-out) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- World ---------- */
.world { background: var(--parchment); padding-bottom: clamp(60px, 8vw, 110px); }
.world-stage { position: relative; width: min(100% - 2 * var(--gutter), 1400px); margin: 0 auto; border-radius: 40px; overflow: hidden; box-shadow: 0 50px 90px -50px rgb(23 70 61 / .7); }
.world-stage img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.world-stage:hover img { transform: scale(1.03); }
.world-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 90px clamp(22px, 4vw, 48px) clamp(22px, 3vw, 36px); background: linear-gradient(to top, rgb(14 46 40 / .88), transparent); color: var(--cream); pointer-events: none; }
.world-caption h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 8px; }
.world-caption p { margin: 0; opacity: .85; }
.spot { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 4px solid var(--cream); padding: 0; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgb(245 193 79 / .45), 0 0 28px 6px rgb(255 190 80 / .9), 0 4px 0 var(--sun-lip); cursor: pointer; z-index: 2; }.spot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sun); animation: ring 2.2s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.spot span { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 8px) scale(.9); white-space: nowrap; background: var(--cream); color: var(--ink); font: 600 .95rem/1 var(--body); padding: 10px 14px; border-radius: 12px; box-shadow: 0 5px 0 var(--parchment-deep), 0 14px 26px -10px rgb(0 0 0 / .5); opacity: 0; transition: opacity .25s, transform .3s var(--spring); pointer-events: none; }
.spot:hover span, .spot:focus-visible span, .spot.is-open span { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (min-width: 700px) { .spot span { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* ---------- Pricing ---------- */
.pricing { padding: clamp(90px, 11vw, 140px) 0 clamp(70px, 9vw, 120px); background: var(--cream); }
.plan { margin: 56px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 34px; overflow: hidden; background: #fffdf5; box-shadow: 0 12px 0 var(--parchment-deep), 0 50px 80px -44px rgb(23 70 61 / .5); }
.plan-main { padding: clamp(32px, 5vw, 54px); background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.plan-main::after { content: "a"; position: absolute; right: -20px; bottom: -80px; font: 700 300px/1 var(--letter); color: rgb(255 249 236 / .05); pointer-events: none; }
.plan-name { font-weight: 600; color: var(--sun); margin-bottom: 10px; }
.plan-price { display: flex; align-items: flex-start; font-family: var(--display); line-height: 1; margin: 0 0 18px; }
.plan-price .cur { font-size: 2.2rem; margin-top: 10px; }
.plan-price .amt { font-size: clamp(5rem, 10vw, 7rem); }
.plan-price .cents { font-size: 2.4rem; margin-top: 10px; }
.plan-price .per { font: 400 1rem var(--body); align-self: flex-end; margin: 0 0 14px 10px; opacity: .8; }
.plan-kids { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.kid-dots { display: inline-flex; }
.kid-dots i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ink); margin-left: -8px; }
.kid-dots i:nth-child(1) { background: var(--meadow); margin-left: 0; }
.kid-dots i:nth-child(2) { background: var(--sun); }
.kid-dots i:nth-child(3) { background: var(--berry); }
.plan-cta { margin-top: 26px; width: 100%; }
.plan-fine { margin: 16px 0 0; font-size: .9rem; opacity: .78; text-align: center; }
.plan-list { list-style: none; margin: 0; padding: clamp(32px, 5vw, 54px); display: grid; gap: 16px; align-content: center; }
.plan-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.plan-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--meadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 3px 0 var(--meadow-lip); }
.scholarship { margin: 40px auto 0; max-width: 980px; display: flex; gap: 18px; align-items: flex-start; padding: 22px 26px; border-radius: 20px; background: rgb(43 128 147 / .08); box-shadow: inset 0 0 0 2px rgb(43 128 147 / .22); }
.scholarship p { margin: 0; color: var(--ink-soft); }
.scholarship b { color: var(--ink); }
.sch-icon { font-size: 1.6rem; line-height: 1; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0; background: linear-gradient(to bottom, var(--cream), var(--parchment)); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; }
.faq-list { display: grid; gap: 14px; }
details { background: #fffdf5; border-radius: 20px; box-shadow: 0 5px 0 var(--parchment-deep); transition: box-shadow .2s; }
details[open] { box-shadow: 0 5px 0 var(--sun-lip), inset 0 0 0 2px var(--sun); }
summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 600; font-size: 1.06rem; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 11px; background: var(--parchment); font: 400 1.5rem/1 var(--body); transition: transform .3s var(--spring), background .2s; }
details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
details p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); }
details[open] p { animation: stagein .45s var(--ease-out); }

/* ---------- Finale ---------- */
.finale { background: radial-gradient(70% 90% at 30% 50%, #3a2a17 0%, var(--night) 60%); color: var(--cream); padding: clamp(70px, 8vw, 110px) 0; overflow: hidden; }
.fireflies { position: absolute; inset: 0; pointer-events: none; }
.firefly { position: absolute; width: var(--sz, 5px); height: var(--sz, 5px); border-radius: 50%; background: #ffe39a; box-shadow: 0 0 12px 3px rgb(255 200 90 / .8); animation: drift var(--t, 9s) ease-in-out var(--delay, 0s) infinite alternate, blink 3s ease-in-out var(--delay, 0s) infinite; }
@keyframes drift { to { transform: translate(var(--dx, 40px), var(--dy, -40px)); } }
@keyframes blink { 50% { opacity: .15; } }
.finale-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 5vw, 70px); align-items: center; position: relative; }
.finale-fox img { width: min(100%, 400px); margin-inline: auto; mix-blend-mode: lighten; mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 55%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 55%, transparent 100%); animation: bob 5s ease-in-out infinite; }
.finale-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: 20px; }
.finale-copy p { font-size: 1.15rem; color: rgb(255 249 236 / .8); max-width: 30em; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: #120f0b; color: rgb(255 249 236 / .78); padding: 56px 0 44px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 60px; align-items: start; }
.brand-light { color: var(--cream); }
.footer-tag { margin: 14px 0 0; font-family: var(--display); font-size: 1.1rem; color: var(--sun); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.site-footer nav a { text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover { color: var(--sun); }
.legal { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 24px; border-top: 1px solid rgb(255 249 236 / .12); font-size: .88rem; opacity: .75; }

/* Offscreen sections pause their looping animations (saves battery on tablets). */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* ---------- Scroll reveals (each section enters differently) ---------- */
.js [data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="up"]:not(.is-in) { opacity: 0; transform: translateY(40px); }
.js [data-reveal="left"]:not(.is-in) { opacity: 0; transform: translateX(-60px); }
.js [data-reveal="right"]:not(.is-in) { opacity: 0; transform: translateX(60px); }
.js [data-reveal="scale"]:not(.is-in) { opacity: 0; transform: scale(.9); }
.js [data-reveal="clip"]:not(.is-in) { clip-path: inset(12% 10% 12% 10% round 40px); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round 40px); }

/* ---------- Legal / simple pages ---------- */
.page-hero { background: var(--ink); color: var(--cream); padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -5%; top: -30%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(245 193 79 / .25), transparent 65%); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-hero p { margin: 16px 0 0; opacity: .8; }
.page-body { padding: 64px 0 100px; }
.prose > * { max-width: 760px; }
.prose a.btn { color: var(--ink-deep); }
.prose h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--pond); font-weight: 500; }
.notice { padding: 16px 20px; border-radius: 16px; background: rgb(245 193 79 / .18); box-shadow: inset 0 0 0 2px rgb(245 193 79 / .5); color: var(--ink); font-size: .95rem; margin-bottom: 30px; }
.contact-card { margin-top: 30px; padding: 30px; border-radius: 26px; background: #fffdf5; box-shadow: 0 8px 0 var(--parchment-deep), 0 30px 60px -40px rgb(23 70 61 / .5); max-width: 560px; }
.contact-card .btn { margin-top: 10px; }
.site-header.solid { color: var(--ink); }
.site-header.solid::before { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .pillars { grid-template-columns: 1fr; gap: 44px; max-width: 520px; }
  .pillar:nth-child(n) { margin-top: 0; }
  .together-grid, .try-grid, .faq-grid, .finale-grid, .plan { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .float-card.grownup { left: 10px; }
  .float-card.kid { right: 10px; }
  .finale-fox img { width: min(70%, 300px); }
  .finale-copy { text-align: center; }
  .finale-copy p { margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { height: 66px; }
  .hero { min-height: 100svh; }
  .hero-art img { object-position: 70% 50%; }
  .hero-veil { background: linear-gradient(to bottom, rgb(14 46 40 / .7), rgb(14 46 40 / .55) 40%, rgb(14 46 40 / .88)); }
  .hero-inner { padding: 110px 0 110px; }
  .lanterns { opacity: .4; }
  .hero-ctas .btn { width: 100%; }
  .scroll-cue { display: none; }
  .trail { height: 360px; }
  .stop-pad { width: 54px; height: 54px; font-size: 1.35rem; }
  .stop-name { font-size: .85rem; white-space: normal; text-align: center; max-width: 90px; line-height: 1.2; }
  .trail-fox { width: 56px; height: 56px; }
  .stage { grid-template-columns: 1fr; }
  .stage-letters i { font-size: 1.7rem; padding: 10px 12px; }
  .world-stage { border-radius: 26px; }
  .world-stage img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
  .spot span { font-size: .82rem; padding: 8px 10px; }
  .float-card.grownup { max-width: 210px; top: 12px; }
  .kid-word { font-size: 1.8rem; }
  .site-footer nav { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan-price .amt { font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .badge, .hero-title .line, .hero-desc, .hero-ctas, .hero-meta { opacity: 1; transform: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; clip-path: none; }
  .lanterns, .fireflies { display: none; }
}
