/* ---- FAQ: the answer unfolds under its question (height eases, text arrives as light) ---- */
.faq-list { max-width: 48rem; margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; color: var(--ink-title); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 1.25rem; height: 1.25rem; color: var(--ink-meta); transition: transform calc(var(--dur-medium) * var(--dz-k)) var(--ease-inout); }
.faq-item[open] summary .ico { transform: rotate(90deg); }
.faq-item::details-content { block-size: 0; overflow: hidden;
  transition: block-size calc(var(--dur-medium) * var(--dz-k)) var(--ease-inout), content-visibility calc(var(--dur-medium) * var(--dz-k)) allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { margin: 0 0 var(--sp-5); max-width: 42rem; color: var(--ink-body); line-height: 1.6; }
.faq-item[open] p { animation: sw-rise calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft) backwards; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover .ico { color: var(--ink-title); } }

/* ---- closing: Lark winks back, standing at the right edge; the words on the night ---- */

.h2--xl { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }

/* ---- footer ---- */
.site-foot { padding: var(--sp-8) 0 calc(var(--sp-8) + env(safe-area-inset-bottom)); box-shadow: inset 0 1px 0 var(--hairline); }

.wordmark--foot { width: 7.5rem; color: var(--ink-title); margin-bottom: var(--sp-3); }

/* ---- the docked mini-player: the story follows the parent down the page ---- */
.dock { position: fixed; z-index: calc(var(--z-head) + 1); left: 50%; bottom: calc(var(--sp-4) + env(safe-area-inset-bottom));
  width: min(calc(100% - 2 * var(--sp-4)), 30rem); display: flex; align-items: center; gap: var(--sp-2); padding: 6px 6px 6px 6px;
  border-radius: var(--radius-floating, var(--radius-card)); background: rgba(var(--feature-bg-rgb), 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--sh-float), inset 0 0 0 1px var(--hairline-strong); translate: -50% 0;
  animation: sw-dock-in calc(var(--dur-large) * var(--dz-k)) var(--ease-drawer) backwards; overflow: hidden; }
.dock[hidden] { display: none; }
#app-frame .dock.dz-night { background: rgba(var(--feature-bg-rgb), 0.9); }  /* outranks the night scope's solid ground: a glass bar */
.dock.is-leaving { animation: sw-dock-out 240ms var(--ease-exit) forwards; }
@keyframes sw-dock-in { from { transform: translateY(130%); opacity: 0; } }
@keyframes sw-dock-out { to { transform: translateY(130%); opacity: 0; } }
.dock-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); border: 0; background: none; color: inherit; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.dock-pic { width: 4.25rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-plate, 10px); flex: none; }
.dock-text { min-width: 0; display: grid; gap: 2px; }
.dock-title { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--ink-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-meta { font-size: var(--fs-meta); color: var(--ink-meta); }
.dock-meta .num { color: var(--cta); }
.dock-btn { flex: none; width: var(--control-h-sm); height: var(--control-h-sm); border-radius: var(--radius-pill); border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(242, 239, 232, 0.12); color: var(--onart-ink); transition: transform calc(var(--dur-press) * var(--dz-k)) var(--ease-out); }
.dock-btn:active { transform: scale(var(--press-scale, 0.97)); }
.dock-btn .ico { grid-area: 1 / 1; width: 1.1rem; height: 1.1rem; }
.dock .ico-play, .dock.is-paused .ico-pause { display: none; }
.dock.is-paused .ico-play { display: inline-grid; }
.dock-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 239, 232, 0.08); }
.dock-progress i { display: block; height: 100%; background: var(--cta); transform-origin: 0 50%; transition: transform calc(var(--dur-large) * var(--dz-k)) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  
  
  .faq-item::details-content { transition: none; }
}

/* ---- wave.css ---- */
/* ============================================================================
   Ages, option B - the journey wave (founder brief 2026-09-29): one loose, full-bleed stack of
   real catalogue pictures that runs 0-3 -> 3-4 -> 5-6, floating slowly (AIR). Each age group sits
   above its own words; 0-3 and 5-6 run past the page edges and fade out. Pointing at a group (or
   its words) makes that group move a little more. Cards are PAPER (weight, soft shadow), the
   drift is AIR (slow, small, pausable), the lit group is LIGHT (its dot and words brighten).
   Geometry and motion live in wave.js; this file is the look.
   ========================================================================== */
.ages-wave .bands { display: none; }
#app-frame:not(.ages-wave) .wave-stage, #app-frame:not(.ages-wave) .wave-copy, #app-frame:not(.ages-wave) .wave-desc-phone { display: none; }

/* a group at rest vs lit: the others step back a little so the lit group reads as "here" */

/* first arrival: the ribbon settles in from soft focus, left to right (the journey is read in order) */

@keyframes sw-wave-in { from { opacity: 0; filter: blur(8px); } }

/* the words under each group: a row that reads as the same journey (a hairline, a dot per age) */
.wave-copy { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); padding-top: var(--sp-6); }
.wave-copy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 8%, var(--hairline-strong) 92%, transparent); }
.wave-band { appearance: none; border: 0; background: none; padding: 0; margin: 0; text-align: left; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: var(--sp-1); position: relative; border-radius: var(--radius-control); }
.wave-dot { position: absolute; top: calc(-1 * var(--sp-6) - 4px); left: 0; width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: var(--l1); box-shadow: inset 0 0 0 1.5px rgba(var(--cta-rgb), 0.55);
  transition: background-color calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), box-shadow calc(var(--dur-medium) * var(--dz-k)) var(--ease-light), transform calc(var(--dur-medium) * var(--dz-k)) var(--ease-out); }
.wave-band.is-lit .wave-dot, .wave-band[aria-pressed="true"] .wave-dot { background: var(--cta); box-shadow: 0 0 0 4px rgba(var(--cta-rgb), 0.16), 0 0 14px rgba(var(--cta-rgb), 0.6); transform: scale(1.15); }
.wave-age { color: var(--ink-meta); font-weight: 700; font-size: var(--fs-label); }
.wave-age .num { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--cta); text-shadow: var(--glow-numeral); margin-right: 0.12em; }
#app-frame.dz-light .wave-age .num { color: var(--tag-gold-ink); text-shadow: none; }
#app-frame.dz-light .wave-age { color: var(--ink-body); }
.wave-title { display: block; }
.wave-desc { display: block; margin-top: var(--sp-1); color: var(--ink-body); line-height: 1.55; text-wrap: pretty; max-width: 22rem; }
.wave-band .wave-title, .wave-band .wave-desc { transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-light); }
.wave-copy.has-focus .wave-band:not(.is-lit) .wave-title, .wave-copy.has-focus .wave-band:not(.is-lit) .wave-desc { opacity: 0.55; }
.wave-desc-phone { display: none; }

@media (max-width: 819.98px) {
  .wave-copy { gap: var(--sp-3); }
  .wave-desc { display: none; }
  .wave-title { font-size: 1rem; }
  .wave-age .num { font-size: 1.35rem; }
  .wave-band { min-height: var(--control-h-sm); }
  .wave-copy.has-focus .wave-band:not(.is-lit) .wave-title { opacity: 0.55; }
  .wave-desc-phone { display: block; margin: var(--sp-4) 0 0; min-height: 3.1em; color: var(--ink-body); line-height: 1.55; }
  .wave-desc-phone.is-swapping { animation: sw-rise calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft) backwards; }
}

/* ---- v2.css ---- */
/* ============================================================================
   Starwink website v2 - the sections added from the competitive research (STRATEGY-v2.md):
   the hero proof row, worries answered, why rhyme (with the guess-the-rhyme toy), worlds,
   sung chapters, keepsakes, the bilingual/diaspora note, the 5-step process, the parent's
   checklist, and the page states (A join the list / B store / C web checkout).
   Same system: app roles only, radius by role, the app's motion tokens, one gold per view.
   ========================================================================== */

/* ---- page states (lab switch; production sets one class) ---- */
#app-frame:not(.state-a) .st-a { display: none !important; }

.d2-faq [data-gate="D2"] { display: none !important; }
[data-gate="D2"] > span:last-child::after { content: "D2"; font: 700 10px/1 system-ui, sans-serif; color: #111; background: #f0c060; border-radius: 4px; padding: 2px 4px; margin-left: 6px; vertical-align: 2px; }
.clean [data-gate="D2"] > span:last-child::after { content: none; }

.src { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-meta); color: var(--ink-meta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#app-frame.dz-light .src { color: var(--ink-body); }
#app-frame.dz-light .dz-night .src { color: var(--ink-meta); }
@media (hover: hover) and (pointer: fine) { .src:hover { color: var(--ink-title); } }

/* ---- hero proof row: where rivals put star ratings, we put the rating process ---- */
.proof { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.proof li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-label); color: var(--ink-title); }
.proof .ico { width: 1rem; height: 1rem; color: var(--cta); }
#app-frame.dz-light .hero--shelf .proof .ico { color: var(--tag-gold-ink); }
.hero--story .proof li { text-shadow: 0 1px 10px rgba(var(--feature-bg-rgb), 0.9); }

/* ---- worries, answered ---- */
.worries { padding: var(--site-section) 0; }

/* ---- why rhyme: research cards + the guess-the-rhyme toy (Read 2014, played) ---- */
.why { padding: var(--site-section) 0; }

.rhyme-lines { margin: 0; min-height: 3.2em; font-size: var(--site-verse); line-height: 1.6; color: var(--ink-title); }
.rhyme-lines .ln { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.rhyme-gap { display: inline-block; min-width: 3.2em; border-bottom: 2px dashed rgba(var(--cta-rgb), 0.7); color: transparent; cursor: pointer; border-radius: 2px; }
.rhyme-word { color: var(--cta); font-weight: 800; text-shadow: var(--glow-numeral); animation: sw-rhyme calc(700ms * var(--dz-k)) var(--ease-settle) backwards; display: inline-block; }
@keyframes sw-rhyme { from { opacity: 0; filter: blur(6px); transform: translateY(6px) scale(0.96); } }
.rhyme-lines.is-swapping { animation: sw-rise calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft) backwards; }

/* ---- worlds: a rail you can drag, each painting drifting a little against its frame ---- */
.worlds { padding: var(--site-section) 0; }
.world-rail { display: flex; gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: var(--sp-2) max(var(--site-gutter), calc((100% - var(--site-max)) / 2)) var(--sp-4); cursor: grab; outline: none; }
.world-rail::-webkit-scrollbar { display: none; }
.world-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.world-rail:focus-visible { box-shadow: inset 0 0 0 2px var(--cta); }
.world { flex: none; width: clamp(15rem, 10rem + 18vw, 26rem); scroll-snap-align: start; margin: 0; }
.world-pic { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-card); overflow: hidden; background: var(--l2); box-shadow: var(--sh-material); }
.world-pic img { position: absolute; inset: 0 -8%; width: 116%; height: 100%; object-fit: cover; will-change: transform; pointer-events: none; user-select: none; }
.world figcaption { margin-top: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--ink-title); }

/* ---- sung chapters ---- */
.songs { padding: var(--site-section) 0; }
.song-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 2rem); }
.song { border-radius: var(--radius-card); overflow: hidden; background: var(--l1); box-shadow: var(--sh-material), inset 0 0 0 1px var(--hairline);
  transition: box-shadow calc(var(--dur-medium) * var(--dz-k)) var(--ease-light); display: flex; flex-direction: column; }
.song.is-playing { box-shadow: var(--sh-material), inset 0 0 0 1.5px rgba(var(--cta-rgb), 0.7), 0 0 40px rgba(var(--cta-rgb), 0.16); }
.song-art { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.song-art img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(1200ms * var(--dz-k)) var(--ease-settle); }
.song.is-playing .song-art img { transform: scale(1.04); }
.song-body { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
.song-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; color: var(--ink-title); display: flex; align-items: center; gap: var(--sp-2); }
.song-title .ico { width: 1.2rem; height: 1.2rem; color: var(--cta); }
.song-chorus { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-body); font-style: normal; }
.song-chorus .ln { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.song-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; }
.song-play { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--control-h-sm); padding: 0 var(--sp-4) 0 var(--sp-3); border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink-title); font-weight: 700; cursor: pointer;
  transition: transform calc(var(--dur-press) * var(--dz-k)) var(--ease-out), background-color calc(var(--dur-small) * var(--dz-k)) var(--ease-light); }
.song-play:active { transform: scale(var(--press-scale, 0.97)); }
.song-play .ico { width: 1rem; height: 1rem; color: var(--cta); }
.song-play[aria-pressed="true"] { background: var(--gold-wash); border-color: rgba(var(--cta-rgb), 0.55); }
.song-play .ico-pause, .song-play[aria-pressed="true"] .ico-play { display: none; }
.song-play[aria-pressed="true"] .ico-pause { display: inline-grid; }
@media (max-width: 819.98px) { .song-list { grid-template-columns: 1fr; } }

/* ---- keepsakes: four real keepsakes floating (AIR), lifting when pointed at (PAPER) ---- */
.keeps { padding: calc(var(--site-section) * 0.6) 0; }   /* an interlude between the songs and the languages */

@keyframes sw-float { 50% { transform: translateY(-10px) rotate(-2deg); } }

/* ---- the bilingual / diaspora note ---- */

/* ---- craft: the process, numbered because it IS a sequence ---- */
.process { list-style: none; margin: var(--sp-6) 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-4); counter-reset: none; }
.process li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--sp-3); align-items: start; }

.process .h3 { font-size: 1.0625rem; }
.process .step-d { margin-top: 2px; }

/* ---- the checklist: each answer ticks itself as the list comes into view (LIGHT) ---- */
.checklist { padding: var(--site-section) 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) clamp(1.5rem, 1rem + 3vw, 4rem); }
.check-list li { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5) 0; border-bottom: 1px solid var(--hairline); }

@media (max-width: 819.98px) { .check-list { grid-template-columns: 1fr; } }

/* ---- plans, state C: a web route beside the store route ---- */

/* state C: the plans carry their own subscribe buttons, so the section's store button steps aside (one gold per view) */
#app-frame.state-c .plans-foot [data-store] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  
  .world-pic img { transform: none !important; }
}

/* ---- v3 (cold-read fixes, 2026-09-29) ---- */
/* options kept in the lab, off unless switched on: the extra trust block, the checklist, provisional
   prices, the AI line in the hero */
#app-frame:not(.x-trust) .x-opt-trust, #app-frame:not(.x-check) .x-opt-check,
#app-frame:not(.x-price) .x-opt-price, #app-frame:not(.x-aihero) .x-opt-aihero { display: none !important; }

/* small text reads brighter (the cold read found the meta ink hard work at night) */
#app-frame .note, #app-frame .foot-note { color: var(--ink-body); }

.plan-price { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); font-weight: 700; color: var(--ink-title); }
.plan-price .num { font-size: 1.5rem; color: var(--cta); margin-right: 0.1em; }
#app-frame.dz-light .plan-price .num { color: var(--tag-gold-ink); }

/* ---- v3.css ---- */
/* ============================================================================
   Starwink website v3 - the story journey: one evening, from the first story to lights out.
   Chapters: tonight -> the shelf -> hear one -> the worlds (day to night) -> songs -> the Starwink
   Method -> two languages -> keepsakes -> lights down (Sound Nook + Goodnight Routine) -> you're in
   charge -> why rhyme -> plans -> questions -> sleep tight.
   The page keeps bedtime like the app: as the parent scrolls, the evening deepens (--night, 0..1),
   a soft vignette closes in and the pictures warm and dim a touch (LIGHT). Nothing bounces.
   Same system: app roles only, radius by role, the app's motion tokens, one gold per view.
   ========================================================================== */
#app-frame { --night: 0; }

/* ---- the evening deepening: a vignette that closes in as the night goes on ---- */
.night-veil { position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(var(--feature-bg-rgb), 0) 45%, rgba(var(--feature-bg-rgb), 0.85) 100%);
  opacity: calc(var(--night) * 0.55); }
.worlds3-panel img, .finale-sky, .step-art img, .song-art img { filter: brightness(calc(1 - var(--night) * 0.12)) saturate(calc(1 - var(--night) * 0.08)); }

/* ---- header: which chapter of the evening we are in, and how far through it ---- */
.chapter-now { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; display: flex; align-items: baseline; gap: var(--sp-2);
  font-weight: 700; font-size: var(--fs-label); color: inherit; opacity: 0; transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-light); white-space: nowrap; }
.site-head.is-scrolled .chapter-now { opacity: 0.9; }
.chapter-now .num { color: var(--cta); font-size: 1.05rem; }
.chapter-now.is-swapping .chapter-name { animation: sw-rise calc(var(--dur-medium) * var(--dz-k)) var(--ease-soft) backwards; }
@media (max-width: 999.98px) { .chapter-now { display: none; } }
.read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity calc(var(--dur-medium) * var(--dz-k)) var(--ease-light); }
.site-head.is-scrolled .read-progress { opacity: 1; }
.read-progress i { display: block; height: 100%; background: var(--cta); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(var(--cta-rgb), 0.6); }

/* ---- hero: a gentle cue into the evening ---- */
.scroll-cue { position: absolute; left: 50%; bottom: var(--sp-5); translate: -50% 0; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--onart-ink); text-decoration: none; font-weight: 700; font-size: var(--fs-meta); opacity: 0.85; animation: sw-rise calc(var(--dur-large) * var(--dz-k)) var(--ease-soft) calc(1400ms * var(--dz-k)) backwards; }
.scroll-cue .ico { width: 1.25rem; height: 1.25rem; animation: sw-cue calc(2.6s * var(--dz-air)) var(--ease-loop) infinite; }
@keyframes sw-cue { 50% { transform: translateY(5px); } }
@media (max-width: 819.98px) { .scroll-cue { display: none; } }
.h2--xl { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.4rem); line-height: 1.02; }

/* ---- chapter 1: the shelf, in real numbers ---- */
.shelf { padding: var(--site-section) 0 0; }
.stats { list-style: none; margin: clamp(1rem, 0.5rem + 2vw, 2.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--sp-6) var(--sp-5); }
.stats li { display: flex; flex-direction: column; gap: var(--sp-1); }
.stat-n { font-family: var(--font-numeral); font-weight: 600; font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem); line-height: 1; color: var(--cta); text-shadow: var(--glow-numeral); font-variant-numeric: tabular-nums lining-nums; }
#app-frame.dz-light .stat-n { color: var(--tag-gold-ink); text-shadow: none; }
.stat-l { color: var(--ink-body); font-weight: 600; line-height: 1.35; max-width: 12rem; }
.stats-asof { margin: var(--sp-5) 0 0; font-size: var(--fs-meta); color: var(--ink-body); }

.shelf .wave-copy + .wave-desc-phone { margin-bottom: 0; }
.shelf > .wrap:last-child { padding-bottom: var(--site-section); }

/* ---- chapter 3: the worlds - a day in Starwink, pinned and travelled sideways (day -> night) ---- */

/* phones and reduced motion: the worlds stack as tall cards, no pinning */

