/*
  noteadventure.com — Sprint 4.15.8.

  Self-hosted everything (see the note at the top of index.html). No inline styles
  anywhere: the CSP is style-src 'self', so a style="" attribute would be blocked.
  JavaScript sets the one dynamic value (--wake-pos) through the CSSOM, which CSP allows.
  Every /assets/ URL carries ?v=4.15.9, like the HTML (bump them together).

  Contrast, measured (WCAG relative luminance), not eyeballed:
    ink #241C36 on paper #FBF6EC ........ 15.1:1   ink-soft #544A66 on paper ..... 7.7:1
    ink-soft on paper-2 #F3EAD8 ......... 6.9:1    on-night #FBF6EC on night ..... 15.7:1
    on-night-soft #CFC6E6 on night ...... 10.3:1   gold #F2C14E on night ......... 10.0:1
    ink on gold (buttons) ............... 9.7:1    green #2F6B3A on paper ........ 5.9:1
    purple #5B3B9A on paper ............. 7.7:1    brown #7A4A22 on paper ........ 6.9:1
  Text never sits on a painting: every line of copy is on a solid plate. The app-screen
  illustrations use the app's own world panel (#1A1A1A at 55%) for text over art, the
  same plate the app measures against all ten lands (nq_colors.dart, NQScrim).
*/

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.woff2?v=4.15.9") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-400.woff2?v=4.15.9") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-700.woff2?v=4.15.9") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-400-italic.woff2?v=4.15.9") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FBF6EC;
  --paper-2: #F3EAD8;
  --line: #E4D8C0;
  --ink: #241C36;
  --ink-soft: #544A66;
  --night: #1F1838;
  --night-2: #2A2150;
  --night-line: #3B3166;
  --on-night: #FBF6EC;
  --on-night-soft: #CFC6E6;
  --gold: #F2C14E;
  --gold-soft: #F7D98B;
  --green: #2F6B3A;
  --purple: #5B3B9A;
  --brown: #7A4A22;
  --accent: var(--purple);
  --focus: var(--purple);

  /* The app's own tokens (mobile/lib/design_system/tokens/nq_colors.dart), used only
     inside the app-screen illustrations. */
  --app-blue: #4A6FA5;
  --app-purple: #8B5FBF;
  --app-gold: #F2C94C;
  --app-coral: #FF6B6B;
  --app-teal: #4ECDC4;
  --app-sky: #E8F4F8;
  --app-ink: #1A1A1A;
  --app-panel: rgb(26 26 26 / 0.55);

  --font-display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 5vw, 40px);
  --max: 1180px;
  --radius: 22px;
  --radius-small: 14px;
  --section-pad: clamp(48px, 9vw, 128px);

  --text-h1: clamp(2.45rem, 1.6rem + 4.2vw, 5rem);
  --text-h2: clamp(1.85rem, 1.3rem + 2.6vw, 3.35rem);
  --text-h3: clamp(1.15rem, 1.06rem + 0.45vw, 1.45rem);
  --text-lede: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;

  --shadow-soft: 0 1px 2px rgb(36 28 54 / 0.06), 0 12px 32px -12px rgb(36 28 54 / 0.22);
  --shadow-device: 0 2px 4px rgb(10 6 24 / 0.25), 0 30px 60px -20px rgb(10 6 24 / 0.55);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }
abbr[title] { text-decoration: none; }
address { font-style: normal; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section-night, .site-header, .hero, .trust-bar, .audience-strip, .site-footer, .students-ask { --focus: var(--gold); }
/* Controls that sit on a painting get a dark halo outside the gold ring, so the ring
   reads against light and dark paint alike. */
.on-art:focus-visible { --focus: var(--gold); box-shadow: 0 0 0 9px rgb(20 15 38 / 0.92); }

.skip-link {
  --focus: var(--gold);
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; box-shadow: 0 0 0 9px rgb(20 15 38 / 0.92); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 rgb(36 28 54 / 0.85); }
.section-night .btn-gold, .hero .btn-gold, .site-header .btn-gold, .site-footer .btn-gold { border-color: var(--gold); box-shadow: 0 4px 0 #A9802A; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 1px 0 rgb(36 28 54 / 0.85); }
.btn-small { min-height: 48px; padding: 0 1.1em; font-size: 0.9375rem; box-shadow: none !important; }
.btn-large { min-height: 60px; padding: 0 2.2em; font-size: 1.2rem; }
/* On a phone a button may wrap rather than widen the page: at 320px with WCAG 1.4.12 text
   spacing, "Join the waiting list" is wider than the column. A button wraps only when it is
   wider than its line, so at ordinary sizes nothing changes. */
@media (max-width: 599px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-block: 8px; }
}
@media (max-width: 399px) {
  .btn-large { padding: 10px 1.4em; }
}

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 48px;
  font-weight: 700; color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
/* The arrow is decoration: the empty text after the slash keeps it out of the link's name.
   The first declaration is the fallback for a browser that does not know that syntax. */
.text-link::after { content: "\2192"; content: "\2192" / ""; transition: transform 160ms ease; text-decoration: none; display: inline-block; }
.text-link:hover::after { transform: translateX(3px); }
.text-link-on-night { color: var(--gold); }
.text-link-inline { color: inherit; font-weight: 700; text-underline-offset: 0.2em; }

.text-button {
  background: none; border: 0; padding: 0 4px; min-height: 48px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 0.25em;
}

/* ---------- Header ---------- */

/* Solid (0.96) rather than a frosted blur: a backdrop-filter over the animating hero
   re-blurs every frame on a phone. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(31 24 56 / 0.96);
  color: var(--on-night);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
/* On a short landscape phone a sticky bar would eat a third of the screen. */
@media (max-height: 480px) { .site-header { position: static; } html { scroll-padding-top: 0; } }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 64px; }
/* A 320px phone: the brand and one button share 288px. Tighten both so they stay on one
   line, and let the row wrap (above) rather than widen the page when text spacing is on. */
@media (max-width: 379px) {
  .header-row { column-gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.125rem; }
  .header-row .btn-small { padding-inline: 0.9em; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark-plate { fill: var(--gold); }
.brand-mark-note { fill: var(--night); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
/* NoteAdventure is an unregistered mark: always the trademark sign, never the registered one. */
.brand-name .tm { font-size: 0.5em; vertical-align: super; margin-left: 1px; font-weight: 500; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--on-night-soft); text-decoration: none; font-weight: 700; font-size: 0.9375rem; border-radius: 10px;
}
.site-nav a:hover { color: var(--on-night); background: rgb(255 255 255 / 0.06); }
/* On a narrow phone the header button shows "Join"; the rest of its name stays for
   screen readers, so the accessible name still begins with the visible word. */
@media (max-width: 479px) {
  .header-cta { padding: 0 1.25em; }
  .header-cta-rest { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .brand { margin-right: 0; }
  .site-nav { margin-left: auto; }
  .header-cta { margin-left: 12px; }
}

/* ---------- Hero ---------- */

/* One column that can never be wider than the screen (an auto column takes its widest
   unbreakable line, which with WCAG 1.4.12 text spacing made a 320px page 363px wide). The
   headline has a plain space, not a no-break one, before "adventure": text-wrap: balance
   already keeps that word from standing alone. */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(1200px 600px at 10% 110%, rgb(91 59 154 / 0.35), transparent 60%),
    var(--night);
  color: var(--on-night);
}
/* Phones get a landscape crop of the top of the painting (built by
   scripts/nq-build-marketing-assets.py), so the clock face is in frame. */
.hero-art { position: relative; height: clamp(250px, 38svh, 560px); overflow: hidden; }
@media (min-width: 600px) and (max-width: 959px) { .hero-art { height: clamp(320px, 48svh, 600px); } }
.hero-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 36%; pointer-events: none;
  background: linear-gradient(to bottom, rgb(31 24 56 / 0), var(--night));
}
.hero-art .wake { position: absolute; inset: 0; }
.hero-art .wake img { object-position: 50% 0%; }
.hero-copy {
  position: relative; z-index: 1;
  padding: 4px var(--gutter) clamp(44px, 8vw, 96px);
  max-width: 680px;
}
.hero h1 { margin-top: 12px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin-top: 14px; color: var(--on-night-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 22px; }
@media (min-width: 960px) { .hero .lede { margin-top: 20px; } .hero-actions { margin-top: 32px; } }
.hero-note { margin-top: 18px; font-size: var(--text-small); color: var(--on-night-soft); max-width: 32em; }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); min-height: min(calc(100svh - 64px), 880px); }
  .hero-art { order: 2; height: auto; }
  .hero-art .wake img { object-position: 50% 6%; }
  .hero-art::after { inset: 0 auto 0 0; width: 34%; height: auto; background: linear-gradient(to right, var(--night), rgb(31 24 56 / 0)); }
  .hero-copy {
    align-self: center; max-width: none;
    padding: 64px 48px 72px max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
}

/* ---------- The wake: a restored painting rising through the sleeping one ----------
   The app's own reveal (NQLandRestoration): the restored painting climbs from the
   bottom of the frame behind a soft edge.

   The hero does it with transforms only, so the browser can hand it to the compositor:
   .wake-reveal is 120% of the frame tall with a static mask whose top sixth (0.2 of the
   frame) is the soft edge. Moving the wrapper from +100% of the frame (hidden below) to
   -20% (edge above the top) reveals the painting; the picture inside moves the opposite
   way by the same amount, so the painting itself never moves. In wrapper units that is
   83.333% to -16.667%; in picture units (one frame tall) -100% to 20%.

   Without JavaScript there is no pause control, so nothing moves: the restored painting
   simply shows. The demo further down still slides a mask (--wake-pos), because it only
   moves when someone taps. */

.wake { position: relative; overflow: hidden; background: var(--night-2); }
.wake img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.wake-reveal {
  position: absolute; left: 0; right: 0; top: 0; height: 120%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16.667%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16.667%);
  transform: translateY(-16.667%);
}
.wake-reveal img { inset: 0 0 auto 0; height: 83.333%; transform: translateY(20%); }

.js .wake-loop.is-waiting .wake-reveal { transform: translateY(83.333%); }
.js .wake-loop.is-waiting .wake-reveal img { transform: translateY(-100%); }
.js .wake-loop.is-running .wake-reveal {
  will-change: transform, opacity;
  animation: reveal-first 3s cubic-bezier(0.3, 0.55, 0.25, 1) both;
}
.js .wake-loop.is-running .wake-reveal img {
  will-change: transform;
  animation: counter-first 3s cubic-bezier(0.3, 0.55, 0.25, 1) both;
}

/* The tower wakes once, over three seconds, and stays awake (ruling 29, 4.15.9: a loop held still
   for most of each cycle, so its pause button looked broken; motion under five seconds needs no
   pause control, WCAG 2.2.2). The two keyframe lists must stay in step: wherever the wrapper's
   transform changes, the picture's changes over the same interval. */
@keyframes reveal-first  { from { transform: translateY(83.333%); } to { transform: translateY(-16.667%); } }
@keyframes counter-first { from { transform: translateY(-100%); }   to { transform: translateY(20%); } }

.wake-steps .wake-awake {
  -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 60%);
          mask-image: linear-gradient(to top, #000 52%, transparent 60%);
  -webkit-mask-size: 100% 250%;
          mask-size: 100% 250%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: 0 var(--wake-pos, 100%);
          mask-position: 0 var(--wake-pos, 100%);
  transition: -webkit-mask-position 1100ms cubic-bezier(0.3, 0.7, 0.2, 1), mask-position 1100ms cubic-bezier(0.3, 0.7, 0.2, 1);
}
.wake-steps { --wake-pos: 45%; }
.js .wake-steps { --wake-pos: 0%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .wake-loop .wake-reveal, .js .wake-loop .wake-reveal img { animation: none !important; }
  .js .wake-loop .wake-reveal { transform: translateY(-16.667%); }
  .js .wake-loop .wake-reveal img { transform: translateY(20%); }
  .wake-steps .wake-awake, .trail-companion, .trail-node { transition: none !important; }
  .btn, .text-link::after, .film-btn { transition: none; }
}

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--night-2); color: var(--on-night); border-top: 1px solid var(--night-line); }
.trust-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding-block: 14px;
  font-weight: 700; font-size: var(--text-small);
}
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  -webkit-mask: url("/assets/img/check.svg?v=4.15.9") center / 18px 18px no-repeat;
          mask: url("/assets/img/check.svg?v=4.15.9") center / 18px 18px no-repeat;
}
@media (min-width: 760px) {
  .trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; }
}

/* ---------- Audience strip ---------- */

.audience-strip { background: var(--night); color: var(--on-night-soft); border-top: 1px solid var(--night-line); }
.audience-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; padding-block: 14px 16px; }
.audience-lead { grid-column: 1 / -1; font-weight: 700; font-size: var(--text-small); }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--night-line);
  color: var(--on-night); text-decoration: none; font-weight: 700; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.chip::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.chip-students::before { background: #B79BEA; }
.chip-parents::before { background: #8CCB8F; }
.chip-teachers::before { background: #E3AE7C; }
.chip:hover { background: rgb(255 255 255 / 0.06); border-color: var(--on-night-soft); }
@media (max-width: 359px) { .chip { padding: 0 6px; font-size: 0.875rem; } .chip::before { margin-right: 5px; } }
@media (min-width: 640px) {
  .audience-row { display: flex; flex-wrap: wrap; gap: 10px 12px; padding-block: 18px; }
  .audience-lead { margin-right: 4px; }
  .chip { padding: 0 20px; }
  .chip::before { margin-right: 10px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }
.section-night { background: var(--night); color: var(--on-night); }
.theme-parents { --accent: var(--green); --focus: var(--green); }
.theme-teachers { --accent: var(--brown); --focus: var(--brown); }

.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-on-night { color: var(--gold); }
.lede { font-size: var(--text-lede); line-height: 1.55; color: var(--ink-soft); }
.section-night .lede { color: var(--on-night-soft); }

.section-head { max-width: 760px; }
.section-head h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }
.section-head-center { margin-inline: auto; text-align: center; }
@media (min-width: 960px) { .section-head .lede { margin-top: 18px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.split-copy h2 { margin-top: 10px; }
.split-copy > .lede { margin-top: 14px; max-width: 36em; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .split-reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split-reverse > .split-copy { order: 2; }
  .split-copy > .lede { margin-top: 18px; }
}

/* ---------- Devices (app-screen illustrations) ---------- */

.device {
  width: min(52vw, 250px);
  padding: 8px; border-radius: 40px;
  background: linear-gradient(160deg, #3A3058, #15102A);
  box-shadow: var(--shadow-device);
  flex: none;
}
.device-screen { position: relative; aspect-ratio: 9 / 18; border-radius: 32px; overflow: hidden; }
.app-screen { font-family: var(--font-body); color: #fff; line-height: 1.3; }

.mock-figure { display: grid; justify-items: center; gap: 14px; }
.mock-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: var(--text-small); color: var(--ink-soft); text-align: center; max-width: 30em; }
.mock-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px;
}

/* ---------- How a week works ---------- */

.how-grid { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: 36px; align-items: center; }
.beats { display: grid; gap: 18px; }
@media (max-width: 759px) { .beat p { font-size: var(--text-small); line-height: 1.5; } }
.beat { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.beat-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--night); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.beat h3 { margin-top: 8px; }
.beat p { margin-top: 4px; color: var(--ink-soft); }

.wake-demo { display: grid; justify-items: center; gap: 18px; }
.device-screen .wake-quiet, .device-screen .wake-awake { object-position: 50% 40%; }
.demo-panel { width: min(100%, 360px); text-align: center; }
.demo-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.days { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
/* Seven days must fit a 360px phone: the circles shrink to ~42px there (WCAG 2.2 AA
   asks for 24px), and are 48px everywhere wider. */
.days[hidden] { display: none; }
.day {
  flex: 1 1 0; min-width: 40px; max-width: 48px; aspect-ratio: 1; padding: 0; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.day:hover { background: var(--paper-2); }
.day[aria-pressed="true"] { background: var(--night); color: var(--gold); border-color: var(--night); cursor: default; }
@media (max-width: 400px) { .days { gap: 4px; } }
.demo-status { margin-top: 14px; min-height: 3.2em; color: var(--ink-soft); }
.no-js .demo-status { display: none; }
.fineprint { margin-top: 6px; font-size: 0.875rem; color: var(--ink-soft); }

@media (min-width: 760px) {
  .wake-demo { grid-template-columns: auto minmax(0, 300px); align-items: center; justify-content: center; gap: 32px; }
  .demo-panel { text-align: left; }
  .days { justify-content: flex-start; }
}
@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .wake-demo { grid-template-columns: 250px 280px; }
}

/* The trail screen. The overlay is decoration (aria-hidden); the status line under the
   device says what changed. Node coordinates live in the SVG's 90x180 box, which has the
   screen's own 1:2 shape, and the companion's positions below are the same points in
   percent. */
.app-ui { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hud { position: absolute; top: 12px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.hud-group { display: grid; gap: 5px; justify-items: end; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: var(--app-panel); color: #fff; font-weight: 700; font-size: 0.6875rem; line-height: 1.2; white-space: nowrap;
}
.hud-land { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; padding-left: 10px; }
.hud-icon { width: 13px; height: 13px; flex: none; }
.hud-xp { fill: var(--app-gold); }
.hud-coin { fill: #E0A52E; }
.hud-coin-inner { fill: var(--app-gold); }
.trail { position: absolute; inset: 0; }
.trail-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail-path polyline { fill: none; stroke: rgb(255 255 255 / 0.85); stroke-width: 1.3; stroke-dasharray: 2.4 2.6; stroke-linecap: round; stroke-linejoin: round; }
.trail-start { fill: #fff; stroke: var(--app-ink); stroke-width: 0.9; }
.trail-node { fill: rgb(26 26 26 / 0.6); stroke: #fff; stroke-width: 1; transition: fill 400ms ease; }
.trail-node.is-done { fill: var(--app-gold); stroke: #7A5A10; }
.trail .trail-companion {
  position: absolute; inset: auto; width: 24%; height: auto; left: 50%; top: 91%; object-fit: contain;
  transform: translate(-50%, -88%);
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.45));
  transition: left 900ms cubic-bezier(0.3, 0.7, 0.2, 1), top 900ms cubic-bezier(0.3, 0.7, 0.2, 1);
}
.trail[data-step="1"] .trail-companion { left: 30%;   top: 82.2%; }
.trail[data-step="2"] .trail-companion { left: 55%;   top: 75%; }
.trail[data-step="3"] .trail-companion { left: 75%;   top: 67.2%; }
.trail[data-step="4"] .trail-companion { left: 52.2%; top: 58.9%; }
.trail[data-step="5"] .trail-companion { left: 27.8%; top: 51.1%; }
.trail[data-step="6"] .trail-companion { left: 47.8%; top: 42.8%; }
.trail[data-step="7"] .trail-companion { left: 70%;   top: 35%; }
.app-cta {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 7px 16px; border-radius: 999px; background: var(--app-gold); color: var(--app-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; white-space: nowrap;
  box-shadow: 0 2px 0 #B8922A;
}

/* ---------- Students ---------- */

.students {
  background:
    radial-gradient(900px 500px at 85% 0%, rgb(91 59 154 / 0.45), transparent 65%),
    radial-gradient(700px 400px at 0% 100%, rgb(242 193 78 / 0.08), transparent 60%),
    var(--night);
}
.student-grid { margin-top: clamp(28px, 6vw, 72px); display: grid; gap: 16px; }
.swipe-hint { display: none; }
.student-row { display: contents; }
@media (max-width: 759px) {
  /* Phones: the film card, then the other three in a row you swipe through instead of
     a column three screens tall. The row is a focusable region so a keyboard can
     scroll it. */
  .student-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .student-row > .feature { scroll-snap-align: start; }
  .swipe-hint { display: block; margin-top: 4px; font-size: var(--text-small); font-weight: 700; color: var(--on-night-soft); }
}

.feature {
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px); overflow: hidden; position: relative;
}
.feature h3 { color: var(--on-night); }
.feature p { color: var(--on-night-soft); margin-top: 8px; }
.feature-copy { position: relative; z-index: 1; }

.feature-film { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.device-film { width: 100%; max-width: 240px; padding: 6px; border-radius: 30px; }
.device-film .device-screen { border-radius: 25px; }
@media (min-width: 760px) {
  .feature-film { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
  .device-film { padding: 8px; border-radius: 40px; }
  .device-film .device-screen { border-radius: 32px; }
}
.film { background: #000; }
/* The film is shown whole. The July film carried a watermark in its lower right corner
   and was scaled 1.16 from the top to hide it; the 2026-11-17 film has none, so the
   scale went with it. */
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-video-plain { z-index: 2; }
.film-controls { position: absolute; inset: auto 0 14px 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.no-js .film-controls { display: none; }
.film-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 999px; border: 0; background: rgb(20 15 38 / 0.82); color: var(--on-night);
  font: inherit; font-weight: 700; font-size: 0.875rem; cursor: pointer;
  transition: opacity 400ms ease;
}
.film-btn[hidden] { display: none; }
.film-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.film-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.film-sound svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film-play .icon-pause { display: none; }
.film.is-playing .film-play .icon-play { display: none; }
.film.is-playing .film-play .icon-pause { display: block; }
.film-sound .icon-sound-on { display: none; }
.film.is-unmuted .film-sound .icon-sound-on { display: block; }
.film.is-unmuted .film-sound .icon-sound-off { display: none; }
/* Once playing, the controls step back a little so the film shows, and return fully on
   hover or focus. Only a little: a touch screen never hovers, so the resting state is the
   only one a phone ever sees, and the pause button must stay easy to find (it was 0.42,
   which left the plate about 1.7:1 against the film). */
.film.is-playing .film-btn { opacity: 0.8; }
.film.is-playing:hover .film-btn, .film.is-playing .film-btn:focus-visible, .film.is-playing .film-controls:focus-within .film-btn { opacity: 1; }
.film-video::cue { font-family: var(--font-body); font-size: 1rem; line-height: 1.3; background: rgb(20 15 38 / 0.85); }

/* The film's text alternative, one tap away for anyone (not only screen readers). */
.film-text { grid-column: 1 / -1; justify-self: stretch; text-align: left; max-width: 34em; }
@media (min-width: 760px) { .film-text { justify-self: center; } }
.film-text summary {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 48px; cursor: pointer;
  font-weight: 700; color: var(--gold); text-decoration: underline; text-underline-offset: 0.25em;
}
.film-text summary::-webkit-details-marker { display: none; }
.film-text summary::before { content: "+"; content: "+" / ""; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border: 2px solid currentColor; border-radius: 50%; font-size: 0.9em; line-height: 1; text-decoration: none; }
.film-text[open] summary::before { content: "\2212"; content: "\2212" / ""; }
.film-text p { margin-top: 4px; }

/* Four stages in a row once the card is wide enough for four labels ("Newcomer" is the
   widest); two by two below that. It was always four, and on a 320px phone the row was 258px
   inside a 240px card, which clipped "Legend". A container query, because the card's width
   follows the swipe row and the six-column grid, not the viewport. */
.feature-companions { container: companions / inline-size; }
.growth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 20px; align-items: end; }
@container companions (min-width: 330px) {
  .growth { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.growth li { display: grid; justify-items: center; gap: 6px; }
.growth img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.growth li:nth-child(1) img { width: 62%; }
.growth li:nth-child(2) img { width: 78%; }
.growth li:nth-child(3) img { width: 90%; }
.growth span { font-size: 0.8125rem; font-weight: 700; color: var(--on-night-soft); letter-spacing: 0.04em; }
.others { display: flex; justify-content: center; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--night-line); }
.others img { width: clamp(64px, 18vw, 110px); aspect-ratio: 1; object-fit: contain; }

.feature-vivace { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; align-items: end; padding-bottom: 0; }
.vivace { width: 100%; max-width: 300px; justify-self: center; }
.feature-vivace .feature-copy { align-self: center; padding-bottom: 20px; }

.feature-tracks { display: grid; gap: 18px; }
.track-lead { position: relative; }
.track-lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 38%; border-radius: var(--radius-small); }
.track-lead figcaption { position: absolute; left: 10px; bottom: 10px; display: grid; padding: 8px 14px; border-radius: 12px; background: var(--app-panel); }
.track-lead .track-name { font-size: 1.15rem; }
.track-lead .track-age { color: #fff; }
.teen-line { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.35; color: var(--on-night) !important; }
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.tracks li { display: grid; gap: 2px; }
.tracks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; border-radius: var(--radius-small); margin-bottom: 6px; }
.track-name { font-family: var(--font-display); font-weight: 600; color: var(--on-night); }
.track-age { font-size: 0.8125rem; color: var(--on-night-soft); }

.students-ask { margin-top: 28px; text-align: center; font-weight: 700; color: var(--gold-soft); }

@media (min-width: 760px) {
  .student-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .feature-film { grid-column: span 3; grid-row: span 2; align-content: center; }
  .feature-companions { grid-column: span 3; }
  .feature-vivace { grid-column: span 3; grid-template-columns: 1fr 1fr; }
  .feature-tracks { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
  .track-lead img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .track-lead figcaption { left: 16px; bottom: 16px; }
  .track-lead .track-name { font-size: 1.4rem; }
  .teen-line { font-size: 1.35rem; }
}
@media (min-width: 1100px) {
  .feature-tracks { grid-template-columns: 340px minmax(0, 1fr); }
  .tracks { max-width: 420px; }
}

/* ---------- Pillars ---------- */

.pillars { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.pillars li { padding-left: 12px; border-left: 3px solid var(--accent); }
.pillars h3 { font-size: 1.02rem; }
.pillars p { margin-top: 4px; color: var(--ink-soft); font-size: var(--text-small); line-height: 1.5; }
@media (min-width: 640px) {
  .pillars { gap: 26px 32px; }
  .pillars li { padding-left: 18px; }
  .pillars h3 { font-size: var(--text-h3); }
  .pillars p { font-size: var(--text-body); line-height: 1.6; }
}
@media (min-width: 960px) { .pillars { margin-top: 36px; } .pillars-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Parent's week (app screen) ---------- */

/* The mock phones are as wide as the column allows up to 250px: at 54vw a 320px phone drew
   a 157px screen, too narrow for the week's own text. */
.device-mock { width: min(80vw, 250px); }
.device-mock .device-screen { aspect-ratio: 9 / 16.5; }
/* The ratio is a floor, not a box: overflow stays visible, so the screen grows taller when
   its text needs the room (a larger text size, WCAG 1.4.12 spacing) instead of cutting off
   "Two days off, and not a step lost." The rounded background clips itself. */
.device-mock .app-bed-dusk { overflow: visible; }
/* Darker at the top than the app's own blue, and a fainter gold glow, so the white
   "Maya's week" stays at least 5:1 wherever the glow falls (it was 4.06 to 4.5:1). */
.app-bed-dusk {
  background:
    radial-gradient(120% 60% at 80% 0%, rgb(242 201 76 / 0.18), transparent 60%),
    linear-gradient(175deg, #3E5E94 0%, #6A5BB0 48%, #2A2150 100%);
  padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 10px;
}
.app-bar { display: flex; align-items: center; gap: 10px; }
.app-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--app-sky); border: 2px solid var(--app-gold); object-fit: contain; padding: 2px; }
.app-bar-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-shadow: 0 1px 4px rgb(0 0 0 / 0.54); }
.app-chips { display: flex; gap: 6px; }
.app-chip { flex: 1; display: grid; padding: 7px 10px; border-radius: 12px; background: var(--app-panel); font-size: 0.6875rem; color: rgb(255 255 255 / 0.9); }
.app-chip strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; white-space: nowrap; }
.app-panel { padding: 10px 10px 8px; border-radius: 12px; background: var(--app-panel); }
.app-panel-title { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.9); }
.app-panel-row { display: flex; gap: 8px; align-items: center; font-size: 0.75rem; font-weight: 700; }
.app-panel-icon { width: 18px; height: 18px; fill: var(--app-teal); flex: none; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; align-items: end; height: 132px; }
.day-col { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 3px; height: 100%; }
.bar { align-self: end; width: 100%; max-width: 20px; border-radius: 6px 6px 3px 3px; background: var(--app-gold); }
.bar-0 { height: 4px; background: rgb(255 255 255 / 0.3); }
.bar-15 { height: 40%; }
.bar-20 { height: 52%; }
.bar-25 { height: 66%; }
.bar-30 { height: 80%; }
.day-min { font-weight: 700; font-size: 0.6875rem; }
.day-name { font-size: 0.6875rem; color: rgb(255 255 255 / 0.85); }

/* ---------- Teachers: pre-lesson summary (tablet) and the fireworks (phone) ---------- */

.teacher-stage { margin-top: clamp(28px, 5vw, 60px); display: grid; gap: 36px; justify-items: center; align-items: center; }
@media (max-width: 899px) {
  .teacher-stage {
    grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; justify-items: stretch; align-items: start;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .teacher-stage > .mock-figure { scroll-snap-align: start; }
}
/* The tablet never gets narrower than 320px: at 640px (a 1280px screen at 200% zoom) a
   squeezed column drew it 260px wide and cut off "1 hr 50 min" and "Confident". The row
   scrolls instead, which is what it is for. */
@media (min-width: 600px) and (max-width: 899px) { .teacher-stage { grid-auto-columns: minmax(320px, 520px) 300px; } }
@media (min-width: 900px) {
  .teacher-stage { grid-template-columns: minmax(0, 520px) auto; justify-content: center; gap: 56px; }
}
.tablet { width: 100%; max-width: 520px; padding: 10px; border-radius: 28px; background: linear-gradient(160deg, #3A3058, #15102A); box-shadow: var(--shadow-device); }
.tablet-screen { border-radius: 19px; overflow: hidden; container: lesson / inline-size; }
.app-light { background: var(--app-sky); color: var(--app-ink); }
.app-topbar { display: grid; gap: 1px; padding: 14px 18px; background: var(--app-blue); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.app-topbar-sub { font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: rgb(255 255 255 / 0.92); }
.lesson-body { padding: 14px; display: grid; gap: 12px; }
.lesson-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lesson-stats div { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.lesson-stats dt { font-size: 0.75rem; color: #555; font-weight: 700; }
.lesson-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #3A5A88; white-space: nowrap; }
.lesson-list { margin: 0; display: grid; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.lesson-list div { display: grid; gap: 1px; }
.lesson-list dt { font-size: 0.75rem; color: #555; font-weight: 700; letter-spacing: 0.02em; }
.lesson-list dd { margin: 0; font-size: 0.9375rem; }
/* A narrow tablet shows one stat a row, label left and figure right, so "1 hr 50 min" and
   "Confident" always have the room. Sized by the tablet's own width, not the viewport's:
   it is narrow on a phone and in the scrolling row at 600 to 899px alike. (Three squeezed
   columns cut those figures off at 640px, and at 414px with text spacing.) */
@container lesson (max-width: 420px) {
  .lesson-stats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lesson-stats div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 10px; padding: 8px 12px; }
  .lesson-stats dd { margin: 0; }
}

.fireworks { background: #20304C; }
.fireworks-land { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fireworks::before { content: ""; position: absolute; inset: 0; background: rgb(26 26 26 / 0.62); z-index: 1; }
.fireworks-burst { position: absolute; inset: 0; z-index: 2; }
/* Each burst is a ring of rays: a repeating conic gradient cut to a ring by a mask. */
.burst {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(var(--c) 0 5deg, transparent 5deg 22deg);
  -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 34%, #000 58%, transparent 70%);
          mask-image: radial-gradient(circle, transparent 30%, #000 34%, #000 58%, transparent 70%);
}
.burst-1 { --c: var(--app-gold);   left: 4%;  top: 6%; }
.burst-2 { --c: var(--app-coral);  right: 2%; top: 14%; width: 38%; }
.burst-3 { --c: var(--app-teal);   left: 20%; bottom: 8%; width: 34%; }
.burst-4 { --c: #C9A6F2;           right: 8%; bottom: 14%; width: 30%; }
.fireworks-card {
  position: absolute; z-index: 3; left: 10px; right: 10px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--app-ink); border-radius: 18px; padding: 18px 14px 16px; text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
}
.fireworks-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: #6E45A3; }
.fireworks-message { margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; }
.fireworks-button { display: inline-block; margin-top: 12px; padding: 8px 22px; border-radius: 999px; background: var(--app-gold); font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; box-shadow: 0 2px 0 #B8922A; }

/* ---------- Safety ---------- */

.safety { background: linear-gradient(180deg, var(--night) 0%, #1A1430 100%); }
.promises { margin-top: 32px; display: grid; gap: 0 40px; }
.promises li {
  position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--night-line);
  font-size: 1rem; line-height: 1.45; color: var(--on-night);
}
.promises li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("/assets/img/check.svg?v=4.15.9") center / 26px 26px no-repeat;
          mask: url("/assets/img/check.svg?v=4.15.9") center / 26px 26px no-repeat;
}
/* Nine promises: one column, or three columns of three. Never two (an orphan). */
@media (min-width: 900px) { .promises { margin-top: 44px; grid-template-columns: repeat(3, 1fr); } .promises li { padding-block: 16px; } .promises li::before { top: 17px; } }
.safety-link { margin-top: 22px; }

/* ---------- Founding studio ---------- */

.studio .split-copy > p:not(.eyebrow):not(.lede) { margin-top: 14px; color: var(--ink-soft); }
.quote { margin-top: 26px; padding: 22px 24px; background: var(--paper-2); border-radius: var(--radius); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.35; color: var(--ink); }
.quote figcaption { margin-top: 10px; font-size: var(--text-small); color: var(--ink-soft); }
.studio-art { justify-self: center; width: 100%; max-width: 420px; }
.studio-art img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); box-shadow: var(--shadow-device); }
@media (min-width: 960px) { .studio-art img { aspect-ratio: 4 / 5; } }

/* ---------- Waiting list ---------- */

.waitlist {
  background:
    radial-gradient(800px 420px at 50% 0%, rgb(242 193 78 / 0.18), transparent 70%),
    radial-gradient(900px 500px at 50% 120%, rgb(91 59 154 / 0.4), transparent 70%),
    var(--night);
}
.waitlist-inner { max-width: 1000px; }
.steps { margin-top: 36px; display: grid; gap: 12px; }
.steps li { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.step-num {
  grid-row: span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 600;
}
.steps h3 { align-self: center; }
.steps p { color: var(--on-night-soft); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
  .steps li { display: block; padding: 26px; }
  .steps h3 { margin-top: 16px; }
  .steps p { margin-top: 8px; }
}
.waitlist-cta { margin-top: 36px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.waitlist-fine { max-width: 34em; font-size: var(--text-small); color: var(--on-night-soft); }
.waitlist-fine a { color: var(--on-night); }

/* The neutral age question in front of the form (site.js block 4). .btn sets display,
   which would beat the browser's own [hidden] rule, so hidden wins explicitly here. */
.waitlist-cta [hidden] { display: none !important; }
.waitlist-noscript { max-width: 34em; color: var(--on-night); font-weight: 700; }
.age-step {
  width: 100%; max-width: 34em;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  display: grid; gap: 14px; justify-items: center;
}
.age-question { display: grid; gap: 12px; justify-items: center; width: 100%; }
.age-label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); line-height: 1.2; color: var(--on-night); }
.age-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; width: 100%; }
.age-select {
  min-height: 52px; min-width: 11em; max-width: 100%; padding: 0 0.9em;
  border: 2px solid var(--gold); border-radius: var(--radius-small);
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; /* 16px or more, so iOS does not zoom */
}
.age-select[aria-invalid="true"] { border-color: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.age-error { color: var(--gold-soft); font-weight: 700; }
.age-result { display: grid; gap: 16px; justify-items: center; width: 100%; }
.age-message { color: var(--on-night); font-size: var(--text-lede); max-width: 30em; }
.age-message:focus { outline: none; }
.age-message:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }

/* ---------- FAQ ---------- */

.faq-inner { max-width: 880px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 48px; padding: 16px 52px 16px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; content: "+" / ""; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink); font-size: 1.4rem; font-weight: 500; line-height: 1;
}
/* The plus and minus are decoration: the summary's own state says open or closed. */
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details p { padding: 0 52px 20px 0; color: var(--ink-soft); }
@media (min-width: 960px) { .faq summary { padding-block: 20px; font-size: 1.15rem; } }

/* ---------- Studio owners ---------- */

.owners { background: var(--paper-2); border-top: 1px solid var(--line); }
.owners p { padding-block: 24px; text-align: center; color: var(--ink-soft); }
.owners strong { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { background: #17112B; color: var(--on-night-soft); padding-top: 56px; font-size: var(--text-small); }
.footer-grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.brand-footer { color: var(--on-night); margin-right: 0; }
.footer-tag { font-family: var(--font-display); font-size: 1.35rem; color: var(--on-night); }
.footer-tag em { color: var(--gold); }
.footer-sub { max-width: 26em; }
.footer-brand .btn { margin-top: 6px; }
.footer-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { margin-top: 6px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night-soft); text-decoration: none; }
.footer-col a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-studio address { margin-top: 10px; line-height: 1.7; }
.footer-studio { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .site-footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 40px 32px; }
  .footer-brand, .footer-studio { grid-column: auto; }
  .footer-heading { font-size: 0.8125rem; letter-spacing: 0.14em; }
}
.footer-base {
  width: calc(100% - 2 * var(--gutter)); max-width: var(--max); padding-inline: 0;
  margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center;
}
.footer-credits { display: grid; gap: 2px; }
.credit { color: var(--on-night); }
.made-by .text-link-inline { color: var(--gold); display: inline-flex; align-items: center; min-height: 44px; }
.copyright { color: var(--on-night-soft); }

/* ---------- Plain pages (404, accessibility) ---------- */

.plain { min-height: 70vh; padding-block: clamp(40px, 6vw, 88px) var(--section-pad); }
.plain-inner { max-width: 760px; }
.plain h1 { font-size: var(--text-h2); margin-top: 12px; }
.plain .lede { margin-top: 18px; }
.plain h2 { font-size: var(--text-h3); margin-top: 36px; }
.plain p, .plain ul { margin-top: 12px; color: var(--ink-soft); }
.plain ul { list-style: disc; padding-left: 1.4em; }
.plain li + li { margin-top: 6px; }
.plain-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.lost-art { width: min(60vw, 240px); margin-bottom: 8px; }
.reviewed { font-size: var(--text-small); }

@media print {
  .site-header, .audience-strip, .film-controls { display: none !important; }
  .section-night, .hero, .site-footer { background: #fff !important; color: #000 !important; }
}
