/* Starwink website v11 - the question-ordered journey (STRATEGY-v3, 2026-09-30).
   Layers on v2-v10; the app's tokens only (vendor/tokens.css). One gold commit per view: every new action
   block is the same gold join button, and the header goes quiet while one is on screen (site.js). */

/* ---- screen 1: the headline says what it is (both lines visible: topic words for readers and search) ---- */
.head-a .h1-b { display: block; margin-top: var(--sp-3); font-size: 0.5em; line-height: 1.25; font-weight: 700; color: var(--ink-body); }
.hero--story.dz-night .h1-b { color: var(--onart-ink); opacity: 0.92; }

/* the age choice opens the chapter at that age (the hero is complete at rest: nothing here waits for a reveal) */
.hero-age { margin-top: var(--sp-6); }
.hero-age-q { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-weight: 700; font-size: var(--fs-label); color: var(--ink-title); }
.hero-age-q .ico { width: 1.1rem; height: 1.1rem; color: var(--cta); flex: none; }
.hero-age-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.age-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--sp-4);
  border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); color: var(--ink-title); text-decoration: none;
  font-weight: 700; font-size: var(--fs-label); background: rgba(var(--text-second-rgb), 0.06);
  transition: background calc(var(--dur-small) * var(--dz-k)) var(--ease-light), transform 160ms var(--ease-out); }
.dz-night .age-chip { border-color: rgba(242, 239, 232, 0.34); background: rgba(242, 239, 232, 0.08); color: var(--onart-ink); }
.age-chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .age-chip:hover { background: rgba(var(--cta-rgb), 0.16); } }
.hero--story .hero-age-q, .hero--story .hero-money, .hero--story .hero-maker { text-shadow: 0 1px 10px rgba(var(--feature-bg-rgb), 0.9); }

/* money and status in words (numbers live in the plans, once final); who makes it */
.hero-money { margin: var(--sp-5) 0 0; max-width: 34em; font-size: var(--fs-label); line-height: 1.5; color: var(--ink-body); }
.hero--story .hero-money { color: var(--onart-ink); }
.hero-money span:empty { display: none; }
.hero-money .text-link { color: inherit; }
.hero-maker { margin: var(--sp-2) 0 0; font-size: var(--fs-meta); color: var(--ink-meta); }
.hero--story .hero-maker { color: rgba(242, 239, 232, 0.78); }
#app-frame .hero .proof { margin-top: var(--sp-4); }

/* ---- the chapter: its length and whose voice, then what waits in the app ---- */
.player-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); margin: var(--sp-3) 0 0; font-size: var(--fs-meta); color: var(--ink-meta); }
.dz-night .player-meta { color: rgba(242, 239, 232, 0.78); }
.player-meta .ico { width: 1rem; height: 1rem; color: var(--cta); }
.player-meta .pm-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.player-meta #player-len:empty + .pm-dot { display: none; }
.player-more { margin: var(--sp-5) 0 0; text-align: center; font-weight: 700; font-size: var(--fs-label); color: var(--ink-body); }
.dz-night .player-more { color: var(--onart-ink); }
.end-more { margin: var(--sp-2) 0 0; font-size: var(--fs-label); color: var(--onart-ink); }
.end-more:empty { display: none; }

/* ---- one story, two languages (folded): the fact, a line per family, one button that flips the chapter ---- */
.l11-lines { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); max-width: 42rem; }
.l11-lines li { position: relative; padding-left: var(--sp-5); font-size: var(--site-lead); line-height: 1.5; color: var(--ink-title); }
.l11-lines li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.l11-lines li:empty { display: none; }
.l11-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-6); }
.l11-flip { gap: var(--sp-2); }
.l11-flip .ico { width: 1.1rem; height: 1.1rem; }
.l11-note { margin: 0; font-size: var(--fs-meta); color: var(--ink-meta); }
#app-frame.dz-light .l11-note { color: var(--ink-body); }

/* ---- is it safe? the plain screen answer under the promises ---- */
.s11-screen { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; margin-top: var(--sp-8); max-width: 46rem; }
.s11-screen .h3 { margin: 0 0 var(--sp-2); }
.s11-screen .step-d { margin: 0; }

/* ---- every stage ends with the next step (same gold button; the header goes quiet while it shows) ---- */
.stage-cta { margin-top: var(--sp-8); text-align: center; }
.stage-cta .actions { justify-content: center; margin-top: 0; }
.stage-cta .note { text-align: center; }
.stage-cta .join { margin: 0 auto; }
.faq .stage-cta { margin-top: var(--sp-7); }

/* ---- who makes it: the Romanian line ---- */
.m11-ro { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-6) 0 0; font-weight: 700; color: var(--ink-title); max-width: 40rem; }
.m11-ro .ico { width: 1.1rem; height: 1.1rem; color: var(--cta); flex: none; margin-top: 0.2em; }
.dz-night .m11-ro { color: var(--onart-ink); }

/* ---- the join form and the header's sheet: retired 2026-10-30, redesigned in v17.css ---- */
html.jsh-open { overflow: hidden; }

/* ---- the header: the language links look like the old switch; on phones both stay once scrolled ---- */
.seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 var(--sp-4); border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-label); color: var(--ink-meta); text-decoration: none;
  transition: color calc(var(--dur-small) * var(--dz-k)) var(--ease-light), background-color calc(var(--dur-small) * var(--dz-k)) var(--ease-light); }
.seg a[aria-pressed="true"] { background: var(--l3); color: var(--ink-title); box-shadow: var(--sh-sm); }
.seg--sm a { min-height: 32px; padding: 0 var(--sp-3); font-size: var(--fs-meta); }
.site-head:not(.is-scrolled) .seg--sm a { color: rgba(242, 239, 232, 0.72); }
.site-head:not(.is-scrolled) .seg--sm a[aria-pressed="true"] { background: rgba(242, 239, 232, 0.16); color: var(--onart-ink); box-shadow: none; }
.arm-shelf .site-head:not(.is-scrolled) .seg--sm a { color: var(--ink-meta); }
.arm-shelf .site-head:not(.is-scrolled) .seg--sm a[aria-pressed="true"] { background: var(--l3); color: var(--ink-title); }
a.head-cta { text-decoration: none; }
@media (max-width: 559.98px) {
  .site-head .head-tools { gap: var(--sp-2); }
  .site-head.is-scrolled .seg--sm { display: inline-flex; }
  .site-head .seg--sm a { min-height: 44px; padding: 0 10px; }
  .site-head .head-cta.btn--sm { padding: 0 var(--sp-3); }
}

/* ---- the footer: Starwink at a glance (visible, unfolded, dated) ---- */
.glance { padding-block: var(--sp-8) var(--sp-6); border-bottom: 1px solid var(--hairline); }
.dz-night .glance { border-bottom-color: rgba(242, 239, 232, 0.14); }
.glance-h { margin: 0 0 var(--sp-4); font-family: var(--font-display, inherit); font-size: var(--fs-h3, 1.25rem); font-weight: 700; color: var(--onart-ink); }
.glance-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); max-width: 60rem; }
.glance-list li { font-size: var(--fs-label); line-height: 1.5; color: rgba(242, 239, 232, 0.86); }
.glance-date { margin: var(--sp-4) 0 0; font-size: var(--fs-meta); color: rgba(242, 239, 232, 0.72); }
@media (min-width: 820px) { .glance-list { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); } }

@media (prefers-reduced-motion: reduce) {
  .jsh-panel, .jsh-scrim, .age-chip { transition: none; }
}

/* ============================================================================
   PHONES (v11): the journey fits about 16 screens by folding, never by deleting the showpieces
   (worlds, keepsakes, songs and the covers ribbon keep their v10 phone forms; STRATEGY-v3 S3)
   ========================================================================== */
@media (max-width: 819.98px) {
  /* screen 1: a slightly shorter picture and tighter steps so the answers fit the first screen */
  .hero--story .hero-art { aspect-ratio: 4 / 3.4; }
  .hero--story .hero-copy { margin-top: -4.5rem; padding-bottom: var(--sp-6); }
  .hero .eyebrow { margin-bottom: var(--sp-2); }
  .head-a .h1-b { margin-top: var(--sp-2); }
  .hero .lead { margin-top: var(--sp-3); }
  .hero .actions { margin-top: var(--sp-5); }
  .hero .note { margin-top: var(--sp-2); }
  .hero-age { margin-top: var(--sp-5); }
  .hero-age-q { margin-bottom: var(--sp-2); }
  .hero-money { margin-top: var(--sp-4); }

  /* why rhyme: the two findings side by side in one swipe row */
  .why7 .y7-grid { display: flex; grid-template-columns: none; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: var(--sp-6) calc(-1 * var(--site-gutter)) 0; padding: 4px var(--site-gutter) var(--sp-3); scrollbar-width: none; }
  .why7 .y7-grid::-webkit-scrollbar { display: none; }
  .why7 .y7-card { flex: 0 0 86%; scroll-snap-align: center; }
  .why7 .y6-note { margin-top: var(--sp-4); }

  /* is it safe: the promises as compact chips (they are statements, not controls) */
  .c7-chips { gap: 8px; }
  .c7-chips li { padding: 4px 14px 4px 4px; font-size: var(--fs-label); }
  .c7-chips li .ico { width: 26px; height: 26px; padding: 5px; }
  .s11-screen { margin-top: var(--sp-7); }

  /* what's inside: the numbers that matter, the ribbon (swipe it), no second age picker (screen 1 has one) */
  .shelf .wave-copy, .shelf .wave-desc-phone { display: none; }
  .stats li:nth-child(4), .stats li:nth-child(5) { display: none; }

  /* songs and sounds: lullabies are "coming soon" once, in the routine; a smaller disc */
  .music .mu-shelf--soon { display: none; }
  .music .mu-disc-wrap { width: min(13rem, 60vw); }

  /* your child as the hero: the plan allowances live on the plan cards */
  .make4 .mk-plans { display: none; }

  /* plans: each card keeps its little scene, shorter */
  .p4-scene { height: 6.5rem; }

  /* the end: less sky above the last sentence */
  .finale4 .finale-grid { padding-top: 30vh; }

  /* the facts band: small type, close lines */
  .glance { padding-block: var(--sp-7) var(--sp-5); }
  .glance-list { gap: var(--sp-2); }
  .glance-list li { font-size: var(--fs-meta); }
}

@media (max-width: 819.98px) {
  /* a tighter rhythm between sections on a phone (72px -> 52px each side) */
  #app-frame { --site-section: 3.25rem; }
  /* questions: finger-sized rows, less air */
  .faq-item summary { padding: var(--sp-4) 0; min-height: 44px; }
  /* your child as the hero: the demo walks the four beats; only the beat on show carries its words */
  .make4 .mk-beat .step-d { display: none; }
  .make4 .mk-beat.is-now .step-d { display: block; }
}

/* the hero's arrival keeps its order for the v11 lines (age, money, maker, promises arrive after the action) */
.hero-copy > :nth-child(6) { animation-delay: calc(960ms * var(--dz-k)); }
.hero-copy > :nth-child(7) { animation-delay: calc(1020ms * var(--dz-k)); }
.hero-copy > :nth-child(8) { animation-delay: calc(1080ms * var(--dz-k)); }
.hero-copy > :nth-child(9) { animation-delay: calc(1130ms * var(--dz-k)); }
.hero-copy > :nth-child(10) { animation-delay: calc(1180ms * var(--dz-k)); }

/* why rhyme on wider screens: the two findings share the row */
@media (min-width: 820px) { .why7 .y7-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 60rem; } }

@media (max-width: 819.98px) {
  /* 44px targets: the language links and the method's waveform seek */
  .site-head .seg--sm a { min-width: 44px; }
  .m4-seek { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 819.98px) {
  /* Make, the finished-story beat: the page, its title, two lines of caption and the two tags fit the panel (at 375 they overlapped) */
  .make4 .mk-stage { aspect-ratio: 1 / 0.98; }
  .make4 .mk-book .mk-pages { width: 80%; }
  .make4 .mk-book { gap: var(--sp-2); }
  .make4 .mk-book .mk-cap { font-size: 0.95rem; line-height: 1.4; margin: 0; }
  .make4 .mk-tags > span { padding: 3px 10px; font-size: var(--fs-meta); }
}

/* the end shows where to write */
.fin-contact { margin: var(--sp-3) 0 0; font-size: var(--fs-label); }
.finale4 .fin-contact .text-link { color: var(--onart-ink); }
@media (max-width: 819.98px) { .fin-contact .text-link { display: inline-flex; align-items: center; min-height: 44px; } }
