/* The website in the app's premium design (25 November 2026 overhaul, DESIGN 4.2 and 4.6), applied to the
   site on 28 November 2026.
   - Colors: the app's values (App/Style/Tokens.swift, DESIGN 4.1) under the same names, dots as dashes.
     The site is night-only, like the app. Tokens below the app block are the website's own: separate
     meanings get separate tokens even when a value matches an app token.
   - Type: the app sets titles, song names, numbers and Lyra's lines in New York and everything else in
     SF Pro. Both are Apple system fonts that may not be served from a website, so the site uses the two
     closest open-license faces, self-hosted from /fonts/: Newsreader (a transitional serif with optical
     sizes, like New York) for those roles, and Inter (drawn for screens on the same grotesque model as
     SF Pro) for the rest. No rounded typeface.
   - Corners: the app's one scale, 8, 12, 18, 24, 32 (`--radius-*`).
   - Buttons: one gold capsule in view for the main action; other actions are an icon and a word, with no
     fill or border; chips are a faint filled capsule, and the chosen one is outlined in moonlight.
   - No glow on Lyra, the app's screens or the photos; the moon keeps its glow, as in the app. No box
     inside a box: groups use space and type, not borders. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* App tokens */
  --bg-sky: #070a14;
  --bg-night: #0b1020;
  --bg-lane: #0b1020;
  --bg-raised: #141b2e;
  --line-hairline: #26304a;
  --text-moonlight: #eef1f8;
  --text-silver: #aeb8cc;
  --text-mist: #939fb8;
  --accent-lantern: #f5c46b;
  --accent-lantern-ink: #0b1020;
  --moon-lit: #ece6d3;
  --moon-shadow: #1a2238;
  --pitch-in-tune: #ffe7a3;
  --trace-voice: #f4f7ff;
  --capsule-fill: #24304f;
  --capsule-stroke: #5f70a3;
  --control-fill: rgb(255 255 255 / 0.07);
  --control-border: rgb(255 255 255 / 0.14);
  --control-dock-line: rgb(255 255 255 / 0.12);

  /* Website tokens: the night around the art. The hero's sky deepens from the blue of the app's
     Today art (the same felt hills) into the page. */
  --page-bg: var(--bg-night);
  --band-bg: var(--bg-sky);
  --section-rule: var(--line-hairline);
  --hero-sky-glow: #232a66;
  --hero-sky-mid: #141a3e;
  --hero-scrim: rgb(11 16 32 / 0.82);
  --hero-scrim-mid: rgb(11 16 32 / 0.45);
  --hero-scrim-clear: rgb(11 16 32 / 0);
  --closing-sky-glow: #212863;
  --closing-sky-mid: #12183a;
  --moon-glow: rgb(255 236 190 / 0.4);
  --moon-glow-far: rgb(255 210 140 / 0.18);

  /* Website tokens: Lyra and her words. Her name is gold, as in the app; her line is in moonlight. */
  --lyra-name: var(--accent-lantern);
  --lyra-line: var(--text-moonlight);
  --lyra-line-shadow: rgb(11 16 32 / 0.9);
  --lyra-ring: var(--line-hairline);

  /* Website tokens: text */
  --text-lead: #d5dbe8;
  --text-body: var(--text-silver);
  --text-closing: #dfe4ef;
  --kicker-text: var(--text-silver);
  --link-underline: #4a5677;
  --link-underline-hover: var(--text-moonlight);
  --link-text: var(--text-moonlight);
  --brand-crescent: var(--moon-lit);
  --brand-word: var(--text-moonlight);
  --focus-ring: var(--accent-lantern);
  /* The footer's trademark line for Google's badge and names: quieter than the footer links. */
  --footer-legal-text: var(--text-mist);
  /* The section label's stage mark: done in moonlight, now in gold, to do faint (DESIGN 4.6). */
  --stage-done: var(--text-moonlight);
  --stage-now: var(--accent-lantern);
  --stage-todo: #2e3858;

  /* Website tokens: buttons, the header's two links, and choice chips. The gold button is the one gold
     fill in view; the header's current page is a lighter fill, as the app's segmented controls are. */
  --button-bg: var(--accent-lantern);
  --button-text: var(--accent-lantern-ink);
  --header-action: var(--text-moonlight);
  --header-action-hover: var(--accent-lantern);
  --header-bg: rgb(11 16 32 / 0.72);
  --nav-bg: var(--control-fill);
  --nav-edge: rgb(255 255 255 / 0.08);
  --nav-current-bg: rgb(255 255 255 / 0.16);
  --nav-current-text: var(--text-moonlight);
  --chip-bg: var(--control-fill);
  --chip-on-bg: rgb(255 255 255 / 0.12);
  --chip-on-edge: var(--text-moonlight);
  --chip-on-text: var(--text-moonlight);

  /* Website tokens: the app's screens and photos */
  --device-bezel: #000;
  --device-edge: #2a3350;
  --device-shadow: rgb(0 0 0 / 0.5);
  --mac-shot-edge: rgb(220 225 255 / 0.18);
  --mac-shot-shadow: rgb(0 0 0 / 0.55);
  --device-caption: var(--text-mist);
  --photo-shadow: rgb(0 0 0 / 0.4);
  --icon-stroke: var(--text-moonlight);

  /* Website tokens: the choir recording drawing */
  --wave-part: rgb(174 184 204 / 0.7);
  --wave-join: rgb(174 184 204 / 0.4);
  --wave-label: var(--text-silver);
  --wave-choir: var(--accent-lantern);

  /* Website tokens: inner pages and /start */
  --card-bg: var(--bg-raised);
  --card-border: var(--line-hairline);
  --screenshot-shadow: rgb(0 0 0 / 0.5);

  /* Website tokens: the season control in the header */
  --season-toggle-bg: var(--control-fill);
  --season-toggle-edge: rgb(255 255 255 / 0.12);
  --season-toggle-on-edge: rgb(255 160 80 / 0.55);
  --season-toggle-on: #ff9a3c;
  --season-toggle-off: #6b7590;
  --season-toggle-stem: #8fa55a;

  /* Website tokens: the pitch lane, in the app's lane colors (src/lib/lane.js reads these for its
     canvas; the still frame from scripts/lane.mjs uses them too) */
  --lane-row: rgb(174 184 204 / 0.035);
  --lane-note-ahead: var(--capsule-fill);
  --lane-note-ahead-edge: var(--capsule-stroke);
  --lane-note-sung: var(--pitch-in-tune);
  --lane-note-hit-glow: rgb(255 214 130 / 0.55);
  --lane-note-miss-edge: #7d8bb8;
  --lane-partner: rgb(95 112 163 / 0.12);
  --lane-partner-edge: rgb(140 156 205 / 0.7);
  --lane-partner-key: rgb(140 156 205 / 0.85);
  --lane-now: var(--accent-lantern);
  --lane-voice: var(--trace-voice);
  --lane-voice-ring: var(--accent-lantern);
  --lane-word-sung: var(--pitch-in-tune);
  --lane-word-ahead: var(--text-silver);

  /* Type */
  --font-display: "Newsreader", "New York", ui-serif, Georgia, serif;
  --font-title: var(--font-display);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Arial, sans-serif;

  /* The app's corner scale */
  --radius-chip: 8px;
  --radius-control: 12px;
  --radius-tile: 18px;
  --radius-card: 24px;
  --radius-panel: 32px;

  /* Side gutter: 16 phone, 24 tablet, 32 desktop, as in the app. */
  --gutter: 16px;
  --content-max: 1200px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

/* ---- Base ---- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--band-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-moonlight);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--link-text); text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--link-underline-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  z-index: 20;
}
.skip:focus { top: 12px; }

/* The small label over a title, as `Typeface.label` in the app: upper case, semibold, tracked. Before it,
   the app's stage line in small: done, now, to do. */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--kicker-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--stage-done) 0 10px, transparent 10px 12px, var(--stage-now) 12px 22px, transparent 22px 24px, var(--stage-todo) 24px);
}
.center-head .kicker { justify-content: center; }
.eyebrow { color: var(--kicker-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.display {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section-lead { color: var(--text-body); font-size: 1.125rem; line-height: 1.6; max-width: 34rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 4px;
}

/* Line icons: drawn with strokes in the current color. */
.icon-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; }
.button-arrow { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The gold capsule: the one main action in view (`goldButton()`). Flat, semibold, no shadow. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: filter 0.2s;
}
.button:hover { filter: brightness(1.06); }
.button svg { flex: none; }
.button-large { min-height: 56px; padding: 0 30px; }

/* Choices that stay pressed: the part on the choir page, the voice in the pumpkin game. A faint filled
   capsule; the chosen one is outlined in moonlight, as the app's chosen plan is. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-moonlight);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { background: var(--chip-on-bg); }
.chip[aria-pressed="true"] { background: var(--chip-on-bg); border-color: var(--chip-on-edge); color: var(--chip-on-text); font-weight: 600; }

/* ---- Download choices: the Apple app (badge when the app is live, the TestFlight invite before) and
   the Google Play badge beside it. The gap keeps Google's clear space, a quarter of the badge's height. ---- */

.store-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.store-badge { display: inline-flex; min-height: 44px; align-items: center; }
.store-badge img { width: auto; }
.store-badge img[height="40"] { height: 40px; }
.store-badge img[height="54"] { height: 54px; }

/* ---- Header and footer ---- */

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--section-rule); background: var(--header-bg); }
.home .site-header { position: absolute; inset-inline: 0; top: 0; border-bottom: 0; background: none; }
.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
}
.brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--brand-word);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-crescent { fill: var(--brand-crescent); flex: none; }
/* For singers, for choirs: a segmented control; the page's own link is the lighter segment. */
.audience-nav {
  display: flex;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--nav-edge);
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.audience-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-height: 40px;
  padding: 0 clamp(10px, 2.4vw, 20px);
  border-radius: 999px;
  color: var(--text-silver);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.audience-nav a:hover { color: var(--text-moonlight); }
.audience-nav a[aria-current="page"] { background: var(--nav-current-bg); color: var(--nav-current-text); }
.header-end { display: flex; align-items: center; gap: 12px; }
.header-end:empty { display: none; }
/* The header's download link is a plain word and arrow, as the app's second actions are, so the hero's
   button stays the one gold fill in view. */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--header-action);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta svg { flex: none; }
.header-cta:hover { color: var(--header-action-hover); }
/* Phones: the brand, the two links and the season control share one row; the hero's button is
   just below. */
@media (max-width: 699px) {
  .header-end .header-cta, .header-end .store-badge { display: none; }
}
@media (max-width: 409px) {
  .audience-nav a { padding: 0 9px; font-size: 0.875rem; }
}
@media (max-width: 359px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 700px) {
  .header-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .brand { justify-self: start; }
  .audience-nav { margin-left: 0; }
  .header-end { justify-self: end; }
}

/* The season control (src/seasons.js): shown only while a season is in play, so a visitor can turn
   its look off and on. Its styles live here because the season's own stylesheet is not loaded
   while the look is off. */
.season-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--season-toggle-edge);
  border-radius: 999px;
  background: var(--season-toggle-bg);
  color: var(--text-silver);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.season-toggle svg { flex: none; }
.season-toggle-body { fill: var(--season-toggle-off); }
.season-toggle-stem { fill: var(--season-toggle-stem); }
.season-toggle[aria-pressed="true"] { color: var(--text-moonlight); border-color: var(--season-toggle-on-edge); }
.season-toggle[aria-pressed="true"] .season-toggle-body { fill: var(--season-toggle-on); }
.season-toggle:hover { color: var(--text-moonlight); }
@media (max-width: 1099px) {
  /* The pumpkin alone, with the name kept for screen readers. */
  .season-toggle { padding: 0; justify-content: center; }
  .season-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.site-footer { background: var(--band-bg); border-top: 1px solid var(--section-rule); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 22px 26px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-silver); font-size: 0.9375rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-silver);
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--text-moonlight); }
.footer-legal { flex-basis: 100%; color: var(--footer-legal-text); font-size: 0.8125rem; }

/* ---- The hero: Lyra under the moon, the text on the night sky, the hills below ---- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(1100px 720px at 74% 18%, var(--hero-sky-glow) 0%, var(--hero-sky-mid) 46%, var(--page-bg) 100%);
}
/* A darker sky behind the text. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, var(--hero-scrim) 0%, var(--hero-scrim-mid) 45%, var(--hero-scrim-clear) 70%);
}
/* The hills fade into the page at the bottom. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: clamp(48px, 6vw, 96px);
  background: linear-gradient(to bottom, var(--hero-scrim-clear), var(--page-bg));
}
.hero-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12vw;
  z-index: -1;
  height: 56.25vw;
  min-height: 260px;
}
.hero-ground :is(img, picture),
.closing-ground :is(img, picture) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.hero-ground .ground-hills { filter: brightness(0.8) saturate(0.9); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 24px 56px;
  align-items: center;
  /* The header (72 px) sits over the top of the hero. */
  padding-top: calc(72px + clamp(8px, 2.5vw, 36px));
  padding-bottom: clamp(160px, 22vw, 420px);
}
.hero-text { min-width: 0; }
.hero .kicker { margin-bottom: 10px; }
/* One headline in moonlight, in the app's title face at Medium; the second line in silver, so the
   headline reads as Lyra's welcome and then the promise. Gold is kept for "in tune" and the button. */
.hero h1 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title-main { display: block; }
.hero-title-rest { display: block; color: var(--text-lead); }
.hero .kicker + h1 { margin-top: 22px; }
.lead {
  max-width: 34rem;
  margin-bottom: 32px;
  color: var(--text-lead);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-note { color: var(--text-silver); font-size: 0.9375rem; }
/* The second action: an icon and a word, no fill and no border. */
.hero-try {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  color: var(--text-moonlight);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.hero-try .icon-line { stroke: var(--text-moonlight); stroke-width: 2; }
.hero-try:hover { color: var(--accent-lantern); }
.hero-try:hover .icon-line { stroke: var(--accent-lantern); }
/* The choir page: the four parts and the director's link in one row above the hills. */
.hero-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(140px, 16vw, 300px);
  padding-top: 24px;
  border-top: 1px solid var(--section-rule);
}
.hero-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-parts-label { color: var(--text-lead); font-weight: 600; font-size: 0.9375rem; }
.choirs .hero-grid { padding-bottom: 40px; }
.hero-strip .chip { display: inline-flex; align-items: center; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-strip-ask { color: var(--text-lead); font-weight: 500; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero .lyra-says { max-width: 22rem; margin: -18% 0 0 -12%; text-align: left; }
}

/* Lyra in the open: the portrait fades out into the sky at its edges. */
.lyra-stage { position: relative; width: min(540px, 100%); margin: 0 auto; padding-top: 16%; }
.lyra-moon {
  position: absolute;
  top: 4%;
  right: 4%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 70px var(--moon-glow), 0 0 180px var(--moon-glow-far);
}
.lyra-portrait { position: relative; aspect-ratio: 1; }
.lyra-portrait > img,
.lyra-closing,
.crosslink-lyra {
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.lyra-portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lyra-says { position: relative; max-width: 28rem; margin: -4% auto 0; text-align: center; }
/* "Lyra" over her line, small and gold, as in the app. */
.lyra-name {
  display: block;
  margin-bottom: 4px;
  color: var(--lyra-name);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.lyra-line {
  display: block;
  color: var(--lyra-line);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.35;
  text-shadow: 0 2px 14px var(--lyra-line-shadow);
}

/* ---- Sections ---- */

.section { position: relative; padding-block: clamp(48px, 5.5vw, 88px); }
/* A deeper band for the wide showcases, edged with the app's hairline. */
.showcase, .trio-section, .concert {
  background: var(--band-bg);
  border-block: 1px solid var(--section-rule);
}

/* ---- The sing-along ---- */

.demo { padding-block: clamp(40px, 5vw, 80px) clamp(48px, 5.5vw, 88px); }
.demo-title { max-width: 15em; }
.part-picker { margin-top: 24px; }
.lane-view {
  position: relative;
  overflow: hidden;
  margin: 32px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.lane-still { display: block; width: max(100%, 720px); height: auto; font-family: var(--font-body); }
.lane-still-row { fill: var(--lane-row); }
.lane-still-note { fill: var(--lane-note-ahead); stroke: var(--lane-note-ahead-edge); stroke-width: 1.5; }
.lane-still-note.is-sung { fill: var(--lane-note-sung); stroke: none; filter: drop-shadow(0 0 4px var(--lane-note-hit-glow)); }
.lane-still-note.is-part { filter: none; }
.lane-still-partner { fill: var(--lane-partner); stroke: var(--lane-partner-edge); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lane-still-word { fill: var(--lane-word-ahead); font-size: 14px; font-weight: 500; }
.lane-still-word.is-sung { fill: var(--lane-word-sung); font-weight: 600; }
.lane-still-voice { fill: none; stroke: var(--lane-voice); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lane-still-now { fill: var(--lane-now); }
.lane-still-dot { fill: var(--lane-voice); stroke: var(--lane-voice-ring); stroke-width: 3; }
/* With JavaScript, src/lib/lane.js draws the lane on a canvas and the still frame is hidden. */
.lane.is-canvas > :not(.lane-canvas) { display: none; }
.lane-canvas { display: block; width: 100%; }
.lane-key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; color: var(--text-body); font-size: 0.9375rem; }
.lane-key > span { display: inline-flex; align-items: center; gap: 8px; }
.lane-key i { width: 26px; height: 10px; border-radius: 5px; }
.lane-key-mine { background: var(--lane-note-sung); }
.lane-key-partner { border: 1.5px dashed var(--lane-partner-key); }
.sing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 16px; }
.sing-status { color: var(--text-moonlight); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.sing-song { color: var(--text-mist); font-size: 0.9375rem; }

/* ---- A feature: the words beside a screen from the app ---- */

.feature-row { display: grid; gap: 48px 96px; align-items: center; }
.feature-text { min-width: 0; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Every other feature puts the screen on the left. */
  .feature-row-flip .feature-text { order: 2; }
}
/* A screen from the app in a plain black iPhone edge: real captures, no glow. The outer corner and the
   screen's corner share a center (`Radius.inner`). */
.app-shot {
  --shot-pad: 7px;
  --shot-radius: 48px;
  width: clamp(260px, 25vw, 330px);
  max-width: 100%;
  margin: 0 auto;
  padding: var(--shot-pad);
  border-radius: var(--shot-radius);
  background: var(--device-bezel);
  box-shadow: 0 0 0 1px var(--device-edge), 0 40px 80px -20px var(--device-shadow);
}
.app-shot img { width: 100%; border-radius: calc(var(--shot-radius) - var(--shot-pad)); }
.app-shot-trio { --shot-radius: 42px; width: clamp(220px, 21vw, 290px); }
.app-shot-pair { --shot-radius: 40px; width: clamp(220px, 18vw, 260px); margin: 0; }
.points { display: flex; flex-direction: column; gap: 24px; max-width: 34rem; margin-top: 36px; padding: 0; list-style: none; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points svg { flex: none; margin-top: 1px; color: var(--icon-stroke); }
.points .icon-line { stroke-width: 1.6; }
.points h3 { margin-bottom: 4px; font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.points p { color: var(--text-body); font-size: 1rem; line-height: 1.6; }
.lyra-note { display: flex; gap: 16px; align-items: flex-start; max-width: 30rem; margin-top: 36px; }
.lyra-note img {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--lyra-ring);
}
.lyra-note figcaption { min-width: 0; }
.lyra-note .lyra-line { font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem); line-height: 1.4; text-shadow: none; }
.lyra-note-center { align-items: center; max-width: 560px; margin: 24px auto 0; }
.lyra-note-center img { object-position: 50% 28%; }
.lyra-note-center .lyra-line { font-size: 1.375rem; line-height: 1.35; text-wrap: pretty; }

/* ---- The lane on the Mac: one wide window under a centered heading ---- */

.showcase { padding-block: clamp(56px, 7vw, 112px); }
.device-shot { max-width: 1060px; margin: clamp(32px, 4vw, 56px) auto 0; }
/* The window capture has its own rounded corners, so the shadow follows its shape. */
.device-shot img { width: 100%; filter: drop-shadow(0 30px 50px var(--mac-shot-shadow)) drop-shadow(0 0 0.5px var(--mac-shot-edge)); }
.device-shot figcaption { margin-top: 20px; color: var(--device-caption); font-size: 0.9375rem; text-align: center; text-wrap: balance; }
/* Phones get the iPhone's sing screen in its edge, since the Mac window would be too small to read. */
.device-on-phone { display: none; }
@media (max-width: 599px) {
  .device-shot img {
    width: 280px;
    margin-inline: auto;
    padding: 7px;
    border-radius: 44px;
    background: var(--device-bezel);
    filter: none;
    box-shadow: 0 0 0 1px var(--device-edge), 0 40px 80px -20px var(--device-shadow);
  }
  .device-on-mac { display: none; }
  .device-on-phone { display: inline; }
}
.showcase .lyra-note-center { margin-top: clamp(32px, 4vw, 48px); }

/* ---- Three screens in a row: your key, your progress, a gentle day ---- */

.trio-section { padding-block: clamp(56px, 7vw, 104px); }
.center-head { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; text-align: center; }
.center-head .display { margin-bottom: 0; }
.center-head .display + .section-lead { margin-top: 16px; }

/* ---- A short story after the demo: the singer in their own words, then Lyra ---- */

.story .display { margin-bottom: 16px; }
.story .section-lead { text-wrap: pretty; }
.story .section-lead + .section-lead { margin-top: 14px; }
.story .lyra-note-center { margin-top: clamp(28px, 3vw, 40px); }
.trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 56px 32px;
  margin-top: clamp(40px, 4.5vw, 64px);
  padding: 0;
  list-style: none;
}
.trio li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.trio .app-shot { margin-bottom: 20px; }
.trio h3 { max-width: 300px; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; text-wrap: balance; }
.trio p { max-width: 300px; color: var(--text-body); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }

/* ---- The link between the two pages: "Sing in a choir?" and "New to singing?" ---- */

.crosslink { padding-block: clamp(48px, 5.5vw, 88px); }
.crosslink-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 64px;
  align-items: center;
  max-width: calc(1000px + 2 * var(--gutter));
}
.crosslink-photo {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 70px -20px var(--photo-shadow);
}
.crosslink-lyra { width: 100%; max-width: 360px; margin: 0 auto; }
.crosslink-text { min-width: 0; }
.crosslink h2 { margin-bottom: 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.1; }
.crosslink p { max-width: 30rem; margin-bottom: 18px; color: var(--text-body); font-size: 1.125rem; line-height: 1.6; }
/* A plain second action: a word and an arrow, no fill and no border. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-moonlight);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link svg { flex: none; transition: translate 0.2s var(--ease-out); }
.arrow-link .icon-line { stroke-width: 2.2; }
.arrow-link-plain { text-decoration: none; }
.arrow-link:hover { color: var(--accent-lantern); }
.arrow-link:hover svg { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) {
  .arrow-link:hover svg { translate: none; }
}

/* ---- Choirs: from the first rehearsal to the concert ---- */

.concert { padding-block: clamp(56px, 7vw, 104px); }
.concert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px 56px;
  margin-top: clamp(32px, 4vw, 48px);
}
.concert-item { display: flex; flex-direction: column; gap: 20px; }
.concert-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.concert-text { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.concert-text .kicker { margin-bottom: 0; }
.concert-text h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.15; text-wrap: balance; }
.concert-text p:not(.kicker) { color: var(--text-body); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.wave-box { display: flex; align-items: center; width: 100%; aspect-ratio: 4 / 3; }
.wave { display: block; width: 100%; height: auto; }
.wave line { stroke: var(--wave-part); stroke-width: 4; stroke-linecap: round; }
.wave .wave-gold { stroke: var(--wave-choir); stroke-width: 5; }
.wave-join { fill: none; stroke: var(--wave-join); stroke-width: 3; stroke-linecap: round; }
.wave-part { fill: var(--wave-label); font-family: var(--font-body); font-size: 22px; font-weight: 600; }
.wave-choir { fill: var(--wave-choir); font-family: var(--font-body); font-size: 22px; font-weight: 600; }

/* ---- Choirs: the director's list of pieces ---- */

.director { padding-block: clamp(48px, 5.5vw, 88px); overflow-x: clip; }
.director-row { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); }
.director-text { display: flex; flex-direction: column; gap: 16px; flex: 1 1 340px; max-width: 480px; }
.director-text .kicker, .director-text .display { margin-bottom: 0; }
.director-text .section-lead { font-size: 1.125rem; text-wrap: pretty; }
.director-plan { margin-top: 4px; color: var(--text-moonlight); font-size: 1.0625rem; line-height: 1.6; }
.director-text .arrow-link { align-self: flex-start; }
.director-shots { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; max-width: 100%; }

/* ---- Closing: the call to download, Lyra, the hills ---- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(900px 560px at 70% 40%, var(--closing-sky-glow) 0%, var(--closing-sky-mid) 50%, var(--page-bg) 100%);
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 200px;
  background: linear-gradient(var(--page-bg), var(--hero-scrim-clear));
}
.closing-ground { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(220px, 28vw, 420px); }
.closing-ground .ground-hills {
  filter: brightness(0.85) saturate(0.9);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
.closing-ground::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 18%;
  background: linear-gradient(to bottom, var(--hero-scrim-clear), var(--band-bg));
}
.closing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px 64px;
  align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(200px, 27vw, 400px);
}
.closing-text { min-width: 0; }
.closing .display { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.8rem); line-height: 1.04; }
.closing .section-lead { margin-bottom: 30px; color: var(--text-closing); }
.lyra-stage-closing { width: min(440px, 100%); padding-top: 0; }
.lyra-closing { position: relative; width: 100%; }
.lyra-stage-closing .lyra-says { max-width: 26rem; margin-top: -6%; }

/* ---- /start: the phone with the app's first screen ---- */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.hero-note { color: var(--text-silver); font-size: 0.9375rem; }
.phone {
  position: relative;
  width: min(320px, 26vw);
  aspect-ratio: 1320 / 2868;
  box-sizing: content-box;
  border-radius: 50px;
  padding: 7px;
  background: var(--device-bezel);
  box-shadow: 0 0 0 1px var(--device-edge), 0 50px 100px -20px var(--screenshot-shadow);
}
.phone-shot {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 43px;
  object-fit: cover;
  opacity: 0;
  scale: 1.02;
  transition: opacity 0.6s var(--ease-out), scale 0.8s var(--ease-out);
}
.phone-shot.is-current { opacity: 1; scale: 1; }

/* ---- Inner pages: privacy, terms, support, start, 404 ---- */

.page { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.page-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--section-rule);
}
.page h1 {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.updated { color: var(--text-mist); font-size: 0.9375rem; }
.page-lead { color: var(--text-silver); font-size: 1.1875rem; max-width: 34em; }

.page-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px clamp(40px, 6vw, 96px);
}
.page-body-reverse { flex-wrap: wrap-reverse; }
.legal, .faq { flex: 999 1 560px; min-width: 0; max-width: 720px; }

.toc { flex: 1 1 220px; max-width: 280px; }
@media (min-width: 900px) {
  .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}
.toc-label {
  margin-bottom: 12px;
  color: var(--text-mist);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol { list-style: none; padding: 0; font-size: 0.9375rem; line-height: 1.35; }
.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--section-rule);
  color: var(--text-silver);
  text-decoration: none;
}
.toc a:hover { border-left-color: var(--text-moonlight); color: var(--text-moonlight); }

.legal { line-height: 1.6; }
.legal .intro { font-size: 1.25rem; line-height: 1.55; color: var(--text-moonlight); }
.legal h2, .faq > h2 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  scroll-margin-top: 24px;
}
.legal h2 { margin-top: 48px; }
.legal h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 600; }
.legal p, .legal ul, .legal ol, .legal .table-scroll { margin-top: 16px; }
.legal p, .legal li { color: var(--text-silver); }
.legal strong { color: var(--text-moonlight); font-weight: 600; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li + li { margin-top: 8px; }
.legal code { font-size: 0.9em; color: var(--text-moonlight); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-tile);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
th { text-align: left; font-weight: 600; color: var(--text-silver); background: var(--card-bg); }
th, td { padding: 12px 16px; vertical-align: top; }
tbody tr { border-top: 1px solid var(--card-border); }
td:first-child { color: var(--text-moonlight); }
/* Phone tables: stack each row into a block, so nothing scrolls sideways. */
@media (max-width: 599px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { display: block; padding: 8px 0; }
  .stack tbody tr:first-child { border-top: 0; }
  .stack td { display: block; padding: 4px 16px; }
  .stack td::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--text-mist); }
  .stack td:first-child { font-weight: 600; }
  .stack td:first-child::before { content: none; }
}

/* Questions as rows split by thin lines, as the app's settings lists are: no card around each. */
.faq { display: flex; flex-direction: column; }
.faq > h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--section-rule); }
.faq details:first-of-type { border-top: 1px solid var(--section-rule); }
.faq summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--text-mist);
  font-size: 1.375rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--text-silver); }

.contact-card {
  flex: 1 1 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.contact-card h2 { font-family: var(--font-title); font-size: 1.5rem; line-height: 1.2; font-weight: 500; }
.contact-card p { color: var(--text-silver); font-size: 1rem; }
.contact-foot {
  padding-top: 16px;
  border-top: 1px solid var(--section-rule);
  color: var(--text-mist);
  font-size: 0.9375rem;
}
.contact-card .contact-foot { color: var(--text-mist); font-size: 0.9375rem; }

.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 50vh; }
.not-found p { color: var(--text-silver); }

.info-page main, .legal-page main, .not-found-page main {
  background: radial-gradient(80% 40% at 80% 0%, rgb(35 42 102 / 0.35), transparent 70%);
}

/* ---- /start: where the app's share cards link ---- */

.start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 112px);
}
.start-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.start-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* The backdrop is the home page's closing scene, enlarged so its moon sits behind the phone, clear of
   the heading. */
.start-scene img { transform: scale(1.3); transform-origin: 20% 30%; }
.start-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--hero-scrim), rgb(11 16 32 / 0.45) 60%, rgb(11 16 32 / 0.25));
}
.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .start-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}
.start-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.start-text .display { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.start-phone { display: flex; justify-content: center; }
.start-phone .phone { width: min(290px, 66vw); }
