/* Rallix site. A light page with three nights in it: white ground, the app's
   chalk (#F3F5F7) for panels and the app's night (#0A0C0F) for type, and
   for Review, the Progress band and the closing, where the page goes dark
   and photographic. Geist throughout. The app's screens are dark, so on
   white they are the bright objects. Lime is a fill and never text on white
   (1.18:1); on the night it is the app's own drawing colour, the line that
   draws itself: the ring on the player, the radar, the level.
   The copy leads with what a player gets: each section names its subject
   in a sentence-case eyebrow, because the headlines now say the outcome
   rather than the feature. */

/* The app's own Geist (@expo-google-fonts/geist), cut to Latin. Google's
   hosted Geist has no ss05, which the "AI" below needs. */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("assets/fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("assets/fonts/geist-700.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --chalk: #F3F5F7;
  --ink: #0A0C0F;
  --night: #0A0C0F;
  --slate: #50565E;   /* 7.4:1 on white, 6.8:1 on chalk */
  --ash: #666D75;     /* 5.2:1 on white, 4.8:1 on chalk */
  --mist: #A4AAB1;    /* 8.4:1 on night */
  --fog: #C9CDD2;     /* 12.4:1 on night, for text over photographs */
  --lime: #C7FF35;
  --ink-on-lime: #0F1406;
  --rule: rgba(10, 12, 15, 0.08);
  --edge-night: rgba(255, 255, 255, 0.08);
  --error: #B3261E;       /* 6.5:1 on white, 6.0:1 on chalk */
  --error-night: #F08B80; /* the app's coral, 8.1:1 on night */

  --wrap: 1168px;
  --gutter: 24px;
  --r-panel: 32px;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
/* The page scrolls as ever, with no scroll bar drawn beside it. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* --------------------------------------------------------------- type --- */

h1 {
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 0.98; font-weight: 700; letter-spacing: -0.046em;
}
h2 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.0; font-weight: 700; letter-spacing: -0.045em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06; font-weight: 600; letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.65vw, 21px); line-height: 1.48; color: var(--slate);
  letter-spacing: -0.014em;
}
/* What the section is about, above a headline that says what it gives. */
.eyebrow {
  margin-bottom: 14px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.014em; color: var(--slate);
}
.night .eyebrow, .band .eyebrow { color: var(--fog); }
/* The short line a section ends on. */
.tagline { margin-top: 40px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.night .tagline { color: #FFFFFF; }
/* Geist's capital I is the l's twin, so "AI" reads "Al"; its ss05 I is
   serifed, as in the app (D146's spellAI). */
.ai { font-feature-settings: "ss05"; }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px 0 22px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: -0.014em;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #262A30; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(10, 12, 15, 0.5); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 80ms; }
/* On the night the app's own primary: a lime pill with ink on it. */
.btn-lime { background: var(--lime); color: var(--ink-on-lime); }
.btn-lime:hover { background: #D6FF66; box-shadow: 0 12px 32px -10px rgba(199, 255, 53, 0.45); }
.btn-lime:focus-visible { outline-color: #FFFFFF; }
/* The second action beside the first: chalk, not ink. */
.btn-quiet { padding: 0 24px; background: var(--chalk); color: var(--ink); }
.btn-quiet:hover { background: #E6E9ED; box-shadow: none; }

/* ---------------------------------------------------------------- nav --- */

/* At the top the bar spans the page, as Flighty's does; once the page moves
   it draws in to a floating pill. */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  width: 100%; max-width: var(--wrap);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 60px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0);
  transition:
    max-width 600ms var(--ease),
    background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-floating .nav-bar {
  max-width: 920px; /* six links and the button, with room between */
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(10, 12, 15, 0.07);
  box-shadow: 0 1px 2px rgba(10, 12, 15, 0.04), 0 14px 36px -10px rgba(10, 12, 15, 0.18);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-tile {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--lime); color: var(--ink-on-lime);
  box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.06);
}
.brand-tile svg { width: 20px; height: 17px; fill: currentColor; }
.brand-name {
  font-size: 20px; font-weight: 700; letter-spacing: -0.035em;
  max-width: 90px; overflow: hidden; white-space: nowrap;
  transition: max-width 500ms var(--ease), opacity 250ms ease;
}
.nav.is-floating .brand-name { max-width: 0; opacity: 0; }

.nav-links { display: flex; gap: 2px; font-size: 15px; font-weight: 500; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--slate);
  transition: color 200ms ease, background-color 200ms ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(10, 12, 15, 0.05); }
.nav-links a.is-current { color: var(--ink); background: rgba(10, 12, 15, 0.07); }

.nav-cta {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em;
  transition: background-color 300ms ease, color 300ms ease, transform 200ms var(--ease);
}
.nav-cta svg { width: 16px; height: 16px; }
.nav.is-floating .nav-cta { background: var(--ink); color: #fff; }
.nav-cta:active { transform: scale(0.97); }

@media (max-width: 920px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .nav-bar { height: 56px; padding: 0 8px; }
  .nav.is-floating .nav-bar { max-width: 100%; }
}

/* ------------------------------------------------------------- device --- */

/* An iPhone drawn in CSS: a titanium band, a black bezel, the screen with
   its own corners and the Dynamic Island, which simulator captures leave out.
   --w is the device's width; everything else is a fraction of it. */
.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.011);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(155deg, #55565b 0%, #222327 16%, #2e2f33 48%, #1d1e21 80%, #4b4c51 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 2px 4px rgba(10, 12, 15, 0.08),
    0 32px 64px -24px rgba(10, 18, 30, 0.38),
    0 72px 120px -48px rgba(10, 18, 30, 0.34);
}
/* Action button and volume on the left, side button on the right. */
.device::before, .device::after {
  content: ""; position: absolute;
  width: calc(var(--w) * 0.01);
}
.device::before {
  left: calc(var(--w) * -0.0085); top: 17.5%; height: 24%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom,
    #36373b 0 16.7%, transparent 16.7% 33.3%,
    #36373b 33.3% 62.5%, transparent 62.5% 70.8%,
    #36373b 70.8% 100%);
}
.device::after {
  right: calc(var(--w) * -0.0085); top: 27%; height: 11%;
  border-radius: 0 2px 2px 0;
  background: #36373b;
}
.device-screen {
  position: relative;
  padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.154);
  background: #000;
}
.device-screen img, .screen-media {
  width: 100%;
  border-radius: calc(var(--w) * 0.128);
  background: #0A0C0F;
}
.device-screen::before {
  content: ""; position: absolute; z-index: 4;
  left: 50%; top: calc(var(--w) * 0.051);
  width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.083);
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.device-screen::after {
  content: ""; position: absolute; inset: calc(var(--w) * 0.026); z-index: 5;
  border-radius: calc(var(--w) * 0.128);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

/* On its side: the same object turned, the island at the left edge. */
.device-landscape { --w: 230px; width: calc(var(--w) * 2.155); }
.device-landscape::before {
  left: auto; top: calc(var(--w) * -0.0085); right: 17.5%;
  width: 24%; height: calc(var(--w) * 0.01);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to left,
    #36373b 0 16.7%, transparent 16.7% 33.3%,
    #36373b 33.3% 62.5%, transparent 62.5% 70.8%,
    #36373b 70.8% 100%);
}
.device-landscape::after {
  right: 27%; top: auto; bottom: calc(var(--w) * -0.0085);
  width: 11%; height: calc(var(--w) * 0.01);
  border-radius: 0 0 2px 2px;
}
.device-landscape .device-screen img, .device-landscape .screen-media { aspect-ratio: 874 / 402; object-fit: cover; object-position: 50% 70%; }
.device-landscape .device-screen::before {
  left: calc(var(--w) * 0.051); top: 50%;
  width: calc(var(--w) * 0.083); height: calc(var(--w) * 0.29);
  transform: translateY(-50%);
}

/* Phones arrive turned a little and settle as they reach the screen. Only
   with motion allowed; without it they are simply there. */
.motion [data-rise] {
  transition: opacity 700ms var(--ease), translate 1100ms var(--settle), rotate 1100ms var(--settle);
}
.motion [data-rise]:not(.is-in) { opacity: 0; translate: 0 56px; rotate: var(--rise-turn, 2.5deg); }

/* --------------------------------------------------------------- hero --- */

.hero { padding-top: 100px; }
.hero-copy {
  width: min(1100px, 100% - 2 * var(--gutter)); margin-inline: auto;
  text-align: center;
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy .lede { margin: 20px auto 0; max-width: 36em; }
.hero-actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 26px;
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { font-size: 14px; color: var(--ash); }

/* The load: the headline settles line by line, then the copy, then the
   phone rises into place. One sequence, once. */
.motion .rise { animation: rise 700ms var(--settle) both; }
.motion h1 .rise { display: inline-block; }
.motion h1 .rise:nth-child(1) { animation-delay: 40ms; }
.motion h1 .rise:nth-child(3) { animation-delay: 140ms; }
.motion .lede.rise { animation-delay: 260ms; }
.motion .hero-actions.rise { animation-delay: 360ms; }
.motion .device-rally.rise { animation: rise-far 1000ms var(--settle) 480ms both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-far { from { opacity: 0; translate: 0 64px; scale: 0.97; } }

.hero-stage {
  position: relative;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin: 36px auto 0;
  display: flex; justify-content: center;
}
.device-rally {
  --w: 352px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 2px 4px rgba(10, 12, 15, 0.08),
    0 40px 80px -30px rgba(10, 18, 30, 0.45),
    0 90px 140px -60px rgba(10, 18, 30, 0.38);
}

/* The rally plays in the phone's screen. The picture is 3:2 and the screen
   is wider, so the picture is set by its width and lifted 21.7% of its
   height: the screen shows 22% to 91% of the frame, both baselines and the
   ring. The marks share the picture's own 1200 by 800 units. */
.screen-media { position: relative; overflow: hidden; isolation: isolate; }
.rally-picture { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 2; translate: 0 -21.7%; }
.rally-picture video, .rally-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.rally-picture video { object-fit: cover; }

.rally-marks { overflow: visible; }
.rally-ring, .rally-halo { fill: none; stroke: var(--lime); vector-effect: non-scaling-stroke; }
.rally-ring { stroke-width: 2.5; fill: rgba(199, 255, 53, 0.12); }
.rally-halo { stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rally-cue path {
  fill: none; stroke: var(--lime); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.rally-cue path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 650ms var(--ease) 150ms; }
.rally-cue-head { opacity: 0; transition: opacity 200ms ease 700ms; }
.rally.is-held .rally-cue path:first-child { stroke-dashoffset: 0; }
.rally.is-held .rally-cue-head { opacity: 1; }
.rally:not(.is-held) .rally-cue path:first-child { transition-delay: 0ms; transition-duration: 300ms; }
.rally:not(.is-held) .rally-cue-head { transition-delay: 0ms; }
.rally.is-held .rally-halo { animation: halo 1400ms var(--ease) 2; }
@keyframes halo { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 1.9; } }

.rally-badge, .rally-toggle {
  position: absolute; z-index: 3;
  background: rgba(10, 12, 15, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}
.rally-badge {
  top: 6%; left: 12%;
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: -0.006em;
}
.rally-toggle {
  right: 4.5%; bottom: 3.5%;
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease);
}
.rally-toggle:hover { background: rgba(10, 12, 15, 0.72); }
.rally-toggle:active { transform: scale(0.92); }
.rally-toggle:focus-visible { outline-color: var(--lime); border-radius: 50%; }
.rally-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.rally-toggle .i-play { display: none; margin-left: 2px; }
.rally.is-paused .rally-toggle .i-play { display: block; }
.rally.is-paused .rally-toggle .i-pause { display: none; }

/* The scrubber: what has played, and the moment's mark on it. */
.rally-bar {
  position: absolute; z-index: 3; left: 12%; right: calc(4.5% + 48px); bottom: calc(3.5% + 15.5px);
  height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28);
}
.rally-played { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #FFFFFF; }
.rally-tick {
  position: absolute; top: 50%; left: 65.2%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 2px rgba(10, 12, 15, 0.6);
}

/* The review's two lines, stepping out of the screen once the rally holds. */
.insight {
  position: absolute; z-index: 6;
  display: flex; gap: 14px;
  width: 340px; padding: 16px 18px 16px 16px;
  background: #FFFFFF; border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(10, 12, 15, 0.05),
    0 2px 4px rgba(10, 12, 15, 0.04),
    0 24px 48px -16px rgba(10, 18, 30, 0.24);
  transition: opacity 600ms var(--ease), translate 800ms var(--settle);
}
.motion .hero-stage:not(.is-revealed) .insight { opacity: 0; translate: 0 22px; }
.insight-cue { transition-delay: 450ms; }
/* Both beside the picture at mid-height, clear of the ringed player (lower
   left of the court) and of the two on the right. */
.insight-moment { left: calc(50% - 379px - 150px); top: 46%; align-items: center; }
.insight-cue { right: calc(50% - 379px - 150px); top: 12%; flex-direction: column; gap: 14px; width: 330px; }

.insight-thumb { flex: none; width: 60px; height: 60px; border-radius: 14px; object-fit: cover; }
.insight-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.insight-kicker { font-size: 13px; font-weight: 500; color: var(--ash); }
.insight-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; }
.insight-sub { font-size: 15px; color: var(--slate); line-height: 1.36; margin-top: 2px; }
.insight-practice {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.insight-tile {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: #FFFFFF;
}
.insight-tile svg { width: 22px; height: 22px; }
.insight-practice-text { display: flex; flex-direction: column; font-size: 13px; color: var(--ash); line-height: 1.3; }
.insight-practice-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; margin-top: 1px; }

@media (max-width: 1240px) {
  .device-rally { --w: 330px; }
  .insight, .insight-cue { width: 300px; }
  .insight-moment { left: max(0px, calc(50% - 356px - 120px)); }
  .insight-cue { right: max(0px, calc(50% - 356px - 120px)); }
}
@media (max-width: 1100px) {
  .hero-stage { flex-direction: column; align-items: center; padding-bottom: 0; }
  .device-rally { --w: min(340px, (100vw - 2 * var(--gutter)) / 2.155); }
  .insight { position: relative; inset: auto; width: min(440px, 100%); }
  .insight-moment { margin-top: -28px; }
  .insight-cue { margin-top: 12px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 112px; }
  .eyebrow { font-size: 15px; }
  /* One headline balanced over three lines, not two broken in two. */
  .hero h1 br { display: none; }
  .hero h1 { text-wrap: balance; }
  .motion h1 .rise { display: inline; }
  .hero-stage { margin-top: 44px; }
  .device-rally { --w: calc((100vw - 2 * var(--gutter)) / 2.155); }
  .rally-badge { font-size: 11px; padding: 3px 9px; left: 13%; }
  .rally-toggle { width: 30px; height: 30px; }
  .rally-toggle svg { width: 12px; height: 12px; }
  .rally-bar { bottom: calc(3.5% + 13.5px); right: calc(4.5% + 40px); }
  .insight { padding: 14px 16px 14px 14px; border-radius: 20px; }
  .insight-moment { margin-top: -18px; }
  .insight-thumb { width: 52px; height: 52px; border-radius: 12px; }
  .insight-title { font-size: 16px; }
}

/* ----------------------------------------------------------- chapters --- */

.chapter { padding-top: 140px; }

.chapter-head { max-width: 860px; margin-bottom: 56px; }
.chapter-head h2 ~ p {
  margin-top: 24px; max-width: 46em;
  font-size: clamp(18px, 1.65vw, 22px); line-height: 1.46; color: var(--slate);
  letter-spacing: -0.014em;
}
.chapter-head h2 ~ p + p { margin-top: 12px; }

/* A panel: the rounded ground a screen sits in. The copy holds the top
   left; the phone is cut by the panel's foot, so the screen reads as
   continuing. */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--chalk);
  border-radius: var(--r-panel);
}
.panel-copy { position: relative; z-index: 2; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -1; }

.panel-wide {
  display: grid; grid-template-columns: 5fr 6fr; gap: 40px;
  min-height: 620px; margin-top: 24px; padding: 64px 64px 0;
}
.panel-wide .panel-copy p { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 36ch; }
.panel-wide .panel-copy p + p { margin-top: 12px; }
.panel-wide .panel-visual { position: relative; min-height: 556px; }
.panel-wide .panel-visual .device { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }

/* A close look: the phone large enough that its rows read at page size,
   cut by the panel on two sides. */
.panel-closeup .panel-visual .device { --w: 430px; left: 58%; }

@media (max-width: 980px) {
  .panel-wide { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 48px 48px 0; }
  .panel-wide .panel-visual { min-height: 480px; margin-top: 40px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --r-panel: 26px; }
  .chapter { padding-top: 110px; }
  .chapter-head { margin-bottom: 36px; }
  .panel-wide { margin-top: 16px; padding: 30px 26px 0; }
  .panel-wide .panel-copy p { font-size: 17px; }
  .panel-wide .panel-visual { min-height: 400px; margin-top: 28px; }
  .panel-wide .panel-visual .device { --w: 272px; }
  .panel-closeup .panel-visual .device { --w: 340px; left: 58%; }
}

/* -------------------------------------------------------------- value --- */

/* The loop in three lines, set like a table of contents: a hairline with
   a short ink lead, the chapter's name, then what it gives. */
.value { padding-top: 168px; }
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 72px; }
.value-list li { position: relative; border-top: 1px solid var(--rule); }
.value-list li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 28px; height: 2px; background: var(--ink);
}
.value-list p { margin-top: 26px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 30ch; }
.value-list .eyebrow { margin: 16px 0 0; font-size: 15px; color: var(--ash); }
.value-list strong { display: block; margin-bottom: 6px; font-size: 22px; letter-spacing: -0.025em; }

@media (max-width: 860px) {
  .value-list { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 44px; }
}
@media (max-width: 680px) {
  .value { padding-top: 112px; }
  .value-list p { margin-top: 20px; font-size: 17px; }
  .value-list strong { font-size: 20px; }
}

/* ------------------------------------------------------------- review --- */

/* The page's first night. It opens on the court as Rallix sees it, from
   behind the glass, and the photograph sinks into the app's ground, where
   the three steps stand and the analysis follows. */
/* Clipped sideways: the glow under the tilted phone reaches past a phone's
   edge, and body's own clip passes to the viewport, so it let the page pan. */
.night { margin-top: 160px; padding-bottom: 150px; background: var(--night); color: #FFFFFF; overflow-x: clip; }
.night-how { padding-bottom: 0; }
.night + .night { margin-top: 0; padding-top: 168px; }
.night strong, .band strong { color: #FFFFFF; }
.night h2, .night h3 { color: #FFFFFF; }

.night-open {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(780px, 92vh);
  display: flex; align-items: flex-end;
  padding: 160px 0 40px;
}
.night-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 42%;
}
.night-open::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.1) 0%, rgba(10, 12, 15, 0.2) 38%, rgba(10, 12, 15, 0.86) 76%, #0A0C0F 100%),
    linear-gradient(90deg, rgba(10, 12, 15, 0.55) 0%, rgba(10, 12, 15, 0) 62%);
}
.night .chapter-head { margin-bottom: 0; }
.night .chapter-head h2 ~ p { color: var(--fog); }

/* The three steps: a real sequence, so numbered, in the app's lime. */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.how-steps h3 { margin-top: 22px; font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.025em; }
.how-steps p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--mist); max-width: 34ch; }
.night .step-n { width: 34px; height: 34px; background: var(--lime); color: var(--ink-on-lime); font-size: 15px; }
.night-how .tagline { margin-top: 64px; }

/* Your game, broken down: the radar lifted off the screen, drawn as the
   card arrives, Return left as an empty ring beside Feedback you can trust. */
.evidence {
  display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: center;
  margin-top: 80px;
}
.evidence-copy p { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--mist); max-width: 34ch; }
.evidence-copy p + p { margin-top: 12px; }
.evidence-copy p + h3 { margin-top: 48px; }
.evidence-visual { position: relative; height: 700px; }
.device-tilt {
  --w: 318px; --rise-turn: 9deg;
  position: absolute; right: 2%; top: 10px;
  rotate: 4deg;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 90px -24px rgba(0, 0, 0, 0.8);
}
.motion .device-tilt:not(.is-in) { rotate: 11deg; }
/* The court's light on the floor under the phone. */
.evidence-visual::before {
  content: ""; position: absolute; right: -10%; bottom: -12%; width: 80%; height: 50%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(199, 255, 53, 0.14), rgba(199, 255, 53, 0) 70%);
  filter: blur(10px);
}

.radar-card {
  --rise-turn: -3deg;
  position: absolute; left: 0; top: 150px; z-index: 2;
  width: 440px; padding: 24px 26px 22px;
  border-radius: 28px;
  background: rgba(18, 21, 25, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(199, 255, 53, 0.22),
    0 0 48px rgba(199, 255, 53, 0.10),
    0 40px 80px -20px rgba(0, 0, 0, 0.75);
}
.radar { width: 100%; height: auto; overflow: visible; }
.radar-grid polygon, .radar-grid path { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 1; }
.radar-grid polygon:last-of-type { stroke: rgba(255, 255, 255, 0.18); }
.radar-shape polygon { fill: rgba(199, 255, 53, 0.13); stroke: var(--lime); stroke-width: 2.25; stroke-linejoin: round; }
.radar-shape circle { fill: var(--lime); }
.radar-shape { transform-box: view-box; transform-origin: 190px 170px; }
.radar-unseen { fill: #0A0C0F; stroke: var(--mist); stroke-width: 1.75; stroke-dasharray: 3.2 3.4; }
.radar-labels text { font-family: var(--font); font-size: 14px; font-weight: 500; fill: #FFFFFF; letter-spacing: -0.01em; }
.radar-labels .v { font-size: 17px; font-weight: 600; fill: var(--lime); }
.radar-labels .u { font-size: 14px; fill: var(--mist); }
.radar-card figcaption {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--edge-night);
  font-size: 15px; line-height: 1.45; color: var(--mist);
}

/* The radar's drawing: the grid, then the shape growing out from the
   centre to its scores, the points, the names, and last the empty ring. */
.motion .radar-card .radar-grid { transition: opacity 500ms ease 250ms; }
.motion .radar-card .radar-shape { transition: scale 1100ms var(--settle) 450ms, opacity 400ms ease 450ms; }
.motion .radar-card .radar-labels { transition: opacity 600ms ease 1200ms; }
.motion .radar-card .radar-unseen { transition: opacity 500ms ease 1600ms, rotate 1600ms var(--settle) 1600ms; transform-box: fill-box; transform-origin: center; }
.motion .radar-card:not(.is-in) .radar-grid { opacity: 0; }
.motion .radar-card:not(.is-in) .radar-shape { scale: 0.05; opacity: 0; }
.motion .radar-card:not(.is-in) .radar-labels { opacity: 0; }
.motion .radar-card:not(.is-in) .radar-unseen { opacity: 0; rotate: -120deg; }

/* Two screens standing on the night, no panels round them. */
.duo {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;
  margin-top: 150px;
}
.duo-item { display: flex; flex-direction: column; align-items: center; }
.duo-item h3, .duo-item p { align-self: stretch; }
.duo-item h3 { font-size: clamp(24px, 2.4vw, 32px); max-width: 17ch; }
.duo-item p { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--mist); max-width: 38ch; }
.duo-item .device { --w: 300px; margin-top: 48px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -24px rgba(0, 0, 0, 0.75); }
.duo-item:nth-child(2) .device { --rise-turn: -2.5deg; }

@media (max-width: 1080px) {
  .evidence { grid-template-columns: 1fr; gap: 36px; }
  .evidence-visual { height: 640px; }
  .device-tilt { right: 4%; }
}
@media (max-width: 860px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 48px; }
  /* The row becomes a strip to swipe through, one screen at a time. */
  .duo {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 340px);
    gap: 32px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .duo::-webkit-scrollbar { display: none; }
  .duo-item { scroll-snap-align: start; }
}
@media (max-width: 680px) {
  .night { margin-top: 112px; padding-bottom: 110px; }
  .night + .night { padding-top: 112px; }
  .night-open { min-height: 560px; padding-top: 140px; }
  .night-photo { object-position: 38% 40%; }
  .night-how .tagline { margin-top: 44px; }
  .evidence { margin-top: 56px; }
  .evidence-copy p { font-size: 17px; }
  .evidence-copy p + h3 { margin-top: 36px; }
  .evidence-visual { height: 560px; }
  .device-tilt { --w: 240px; right: 0; top: 0; }
  .radar-card { top: 190px; width: min(340px, 92%); padding: 18px 18px 16px; border-radius: 24px; }
  .radar-card figcaption { font-size: 14px; }
  .duo { margin-top: 100px; }
  .duo-item p { font-size: 17px; }
  .duo-item .device { --w: 240px; margin-top: 28px; }
}

/* --------------------------------------------------------------- clip --- */

/* Daylight after the night: one shot, the clip's feedback on a phone held
   up against the overhead it could be about. */
.clip { padding-top: 160px; }
.clip-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.clip-copy h2 { font-size: clamp(38px, 4.4vw, 56px); }
.clip-lede { margin-top: 20px; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.48; color: var(--slate); letter-spacing: -0.014em; max-width: 34ch; }
.clip-lede + .clip-lede { margin-top: 12px; }
.clip .tagline { max-width: 30ch; }
.panel-scene { height: 680px; background: #DDE5EC; }
.panel-scene .panel-bg { object-position: 74% 40%; }
.panel-scene .device { --w: 300px; --rise-turn: -2deg; position: absolute; left: 9%; top: 64px; }

@media (max-width: 980px) {
  .clip-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .panel-scene { height: 600px; }
}
@media (max-width: 680px) {
  .clip { padding-top: 112px; }
  .panel-scene { height: 500px; }
  .panel-scene .device { --w: 250px; left: 7%; top: 40px; }
}

/* -------------------------------------------------------------- train --- */

/* The three steps hold the screen while the page moves under them: the
   step being read takes the middle, the others stand aside, dimmed. */
.sequence { position: relative; height: 270vh; }
.sequence-sticky {
  position: sticky; top: 0;
  height: 100vh; min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden;
}
.sequence-grid { display: grid; grid-template-columns: 4fr 6fr; gap: 40px; align-items: center; }
.sequence-copy h3 { max-width: 12ch; }
.steps { display: grid; gap: 26px; margin-top: 40px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.steps p { font-size: 18px; line-height: 1.5; color: var(--ash); max-width: 32ch; transition: color 400ms ease; }
.steps strong { color: var(--ash); transition: color 400ms ease; }
.step-n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--chalk); color: var(--ash); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 400ms ease, color 400ms ease;
}
.steps li.is-current p { color: var(--slate); }
.steps li.is-current strong { color: var(--ink); }
.steps li.is-current .step-n { background: var(--ink); color: #FFFFFF; }

.sequence-stage { position: relative; height: min(720px, 84vh); }
.seq-phone {
  --w: min(300px, (84vh - 40px) / 2.2);
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  transition: transform 800ms var(--settle), opacity 600ms ease, filter 600ms ease;
}
.seq-phone[data-pos="0"]  { z-index: 3; }
.seq-phone[data-pos="1"]  { z-index: 2; transform: translateX(66%) scale(0.82) rotate(5deg);  opacity: 0.55; filter: saturate(0.4) brightness(1.05); }
.seq-phone[data-pos="-1"] { z-index: 2; transform: translateX(-66%) scale(0.82) rotate(-5deg); opacity: 0.55; filter: saturate(0.4) brightness(1.05); }
.seq-phone[data-pos="2"]  { z-index: 1; transform: translateX(108%) scale(0.68) rotate(9deg);  opacity: 0.14; filter: saturate(0); }
.seq-phone[data-pos="-2"] { z-index: 1; transform: translateX(-108%) scale(0.68) rotate(-9deg); opacity: 0.14; filter: saturate(0); }
@media (prefers-reduced-motion: reduce) { .seq-phone, .steps p, .steps strong, .step-n { transition: none; } }

@media (max-width: 980px) {
  .sequence { height: auto; }
  .sequence-sticky { position: static; height: auto; min-height: 0; overflow: visible; }
  .sequence-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li p, .steps li strong { color: var(--slate); }
  .steps li strong { color: var(--ink); }
  .steps li .step-n { background: var(--ink); color: #FFFFFF; }
  .sequence-stage {
    height: auto; display: flex; gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 64px;
    scroll-padding-inline: var(--gutter);
  }
  .sequence-stage::-webkit-scrollbar { display: none; }
  .seq-phone, .seq-phone[data-pos] {
    --w: 250px; position: relative; left: auto; top: auto; translate: none; flex: none;
    transform: none; opacity: 1; filter: none; scroll-snap-align: start;
  }
}

/* ----------------------------------------------------------- progress --- */

/* The second night: the seaside court under its lights, with the level
   line drawn across it. */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #FFFFFF;
  padding-top: 130px;
}
.band-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 62% 50%;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.94) 0%, rgba(10, 12, 15, 0.78) 38%, rgba(10, 12, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 12, 15, 0.5) 0%, rgba(10, 12, 15, 0) 30%);
}
.band-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; }
.band-copy { padding-bottom: 130px; }
.band h2 { color: #FFFFFF; }
.band-lede { margin-top: 24px; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.46; color: var(--fog); max-width: 30em; letter-spacing: -0.014em; }
.band h3 { margin-top: 64px; color: #FFFFFF; font-size: clamp(24px, 2.4vw, 30px); }
.band-note { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--mist); max-width: 38ch; }
.band-note + h3 { margin-top: 36px; }

.band-visual { position: relative; min-height: 780px; }
.band-visual .device {
  --w: 330px;
  position: absolute; left: 4%; top: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.level-card {
  --rise-turn: -2deg;
  position: absolute; right: -2%; top: 420px; z-index: 2;
  width: 384px; padding: 22px 22px 18px;
  border-radius: 26px;
  background: rgba(18, 21, 25, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.75);
}
.level-label { font-size: 14px; font-weight: 500; color: var(--mist); }
.level-head { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.level-figure { font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.level-chip {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 14px; color: var(--fog);
}
.level-chart { width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.level-grid path { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; fill: none; }
.level-grid text, .level-date { font-family: var(--font); font-size: 12px; fill: var(--mist); }
.level-area { fill: rgba(199, 255, 53, 0.10); }
.level-line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.level-dots circle { fill: var(--lime); }
.level-dots .last { fill: #0A0C0F; stroke: var(--lime); stroke-width: 3; }
.level-card figcaption { margin-top: 10px; font-size: 14px; color: var(--mist); }

/* The line draws left to right; each match's point lands as it passes. */
.motion .level-card .level-line { transition: stroke-dashoffset 1500ms cubic-bezier(0.45, 0, 0.25, 1) 500ms; }
.motion .level-card .level-area { transition: opacity 800ms ease 1700ms; }
.motion .level-card .level-dots circle { transition: opacity 250ms ease, scale 500ms var(--settle); transform-box: fill-box; transform-origin: center; }
.motion .level-card .level-dots circle:nth-child(1) { transition-delay: 500ms; }
.motion .level-card .level-dots circle:nth-child(2) { transition-delay: 860ms; }
.motion .level-card .level-dots circle:nth-child(3) { transition-delay: 1220ms; }
.motion .level-card .level-dots circle:nth-child(4) { transition-delay: 1580ms; }
.motion .level-card .level-dots circle:nth-child(5) { transition-delay: 1940ms; }
.motion .level-card:not(.is-in) .level-line { stroke-dashoffset: 1; }
.motion .level-card:not(.is-in) .level-area { opacity: 0; }
.motion .level-card:not(.is-in) .level-dots circle { opacity: 0; scale: 0.2; }

@media (max-width: 980px) {
  .band { padding-top: 100px; }
  .band::before { background: linear-gradient(180deg, rgba(10, 12, 15, 0.9) 0%, rgba(10, 12, 15, 0.8) 45%, rgba(10, 12, 15, 0.35) 100%); }
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .band-copy { padding-bottom: 56px; }
  .band h3 { margin-top: 48px; }
  .band-visual { min-height: 700px; }
  .band-visual .device { left: 0; }
  .level-card { right: 0; top: 300px; }
}
@media (max-width: 680px) {
  .band-visual { min-height: 600px; }
  .band-visual .device { --w: 270px; }
  .level-card { top: 280px; width: min(320px, 88%); padding: 18px 18px 14px; }
  .level-figure { font-size: 44px; }
}

/* ------------------------------------------------------------ pricing --- */

/* What is included is read first; the two ways to pay for the one
   membership follow, as the app's paywall rows, with the full amount
   charged always beside the monthly equivalent. Annual is the ink row,
   as the app's chosen option is. Nothing here is selectable: the choice is
   made in the App Store. */
.pricing { padding: 140px 0 0; }
.pricing-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  padding: 64px; border-radius: var(--r-panel); background: var(--chalk);
}
.pricing h2 { font-size: clamp(38px, 4.4vw, 56px); }
.pricing-sub { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 32ch; }
.plans { display: grid; gap: 12px; margin: 32px 0 28px; }
.plan {
  display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center;
  grid-template-areas: "name price" "note price";
  padding: 20px 22px; border-radius: 20px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule);
}
.plan-name { grid-area: name; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.plan-note { grid-area: note; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--slate); max-width: 30ch; }
.plan-price { grid-area: price; display: flex; flex-direction: column; align-items: flex-end; }
.plan-figure { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-unit { margin-top: 5px; font-size: 13px; font-weight: 500; color: var(--ash); }
.plan-save {
  padding: 3px 9px; border-radius: 999px;
  background: var(--lime); color: var(--ink-on-lime);
  font-size: 13px; font-weight: 600; letter-spacing: -0.006em;
}
.plan-annual { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.plan-annual .plan-note, .plan-annual .plan-unit { color: var(--fog); }

.pricing-includes h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 24px; }
.includes li {
  position: relative; padding: 18px 0 18px 44px;
  border-top: 1px solid var(--rule);
  font-size: 17px; line-height: 1.45; letter-spacing: -0.012em; color: var(--slate);
}
.includes li:last-child { border-bottom: 1px solid var(--rule); }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.4l3.3 3.3L18 10' fill='none' stroke='%230F1406' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.fineprint { margin-top: 20px; max-width: 64ch; font-size: 14px; line-height: 1.5; color: var(--ash); }

@media (max-width: 880px) {
  .pricing { padding-top: 110px; }
  .pricing-card { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 40px 22px; }
}
@media (max-width: 680px) {
  .plan { padding: 18px; column-gap: 14px; }
  .plan-figure { font-size: 30px; }
}

/* ---------------------------------------------------------------- faq --- */

/* The questions a member asks before paying, the footage question with
   them. Each opens in place, as the platform's disclosure does. */
.faq { padding-top: 140px; }
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.faq h2 { font-size: clamp(38px, 4.4vw, 56px); max-width: 10ch; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--chalk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 10v10M10 15h10' fill='none' stroke='%230A0C0F' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: rotate 300ms var(--ease), background-color 200ms ease;
}
.faq-list summary:hover::after { background-color: #E6E9ED; }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 54px 26px 0; font-size: 17px; line-height: 1.55; color: var(--slate); max-width: 62ch; }
.faq-list details p a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .motion .faq-list { interpolate-size: allow-keywords; }
  .motion .faq-list details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 350ms var(--ease), content-visibility 350ms allow-discrete;
  }
  .motion .faq-list details[open]::details-content { block-size: auto; }
}

@media (max-width: 880px) {
  .faq { padding-top: 110px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq h2 { max-width: none; }
}
@media (max-width: 680px) {
  .faq-list summary { font-size: 17px; padding: 20px 0; }
  .faq-list details p { padding-right: 0; }
}

/* ------------------------------------------------------------ closing --- */

/* The last night: one player, one overhead, the page's one lime button. */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 120px; min-height: min(820px, 100vh);
  display: flex; align-items: flex-end;
  padding: 160px 0 120px;
  background: var(--night); color: #FFFFFF;
}
.closing-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 30%;
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0) 30%, rgba(10, 12, 15, 0.8) 78%, rgba(10, 12, 15, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 12, 15, 0.82) 0%, rgba(10, 12, 15, 0.45) 45%, rgba(10, 12, 15, 0) 75%);
}
.closing h2 { max-width: 15ch; font-size: clamp(40px, 4.6vw, 66px); line-height: 1; letter-spacing: -0.045em; }
.closing .lede { margin: 24px 0 36px; max-width: 30em; color: var(--fog); }
.closing .tagline { margin-top: 28px; color: var(--fog); }

@media (max-width: 760px) {
  .closing { margin-top: 96px; min-height: 640px; padding: 120px 0 96px; }
  .closing-photo { object-position: 66% 30%; }
  .closing::before { background: linear-gradient(180deg, rgba(10, 12, 15, 0.15) 20%, rgba(10, 12, 15, 0.86) 62%, rgba(10, 12, 15, 0.95) 100%); }
}

/* ------------------------------------------------------------- footer --- */

.footer { padding: 40px 0 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand-tile { width: 32px; height: 32px; border-radius: 9px; }
.footer .brand-tile svg { width: 17px; height: 14.5px; }
.footer .brand-name { font-size: 18px; }
.footer-links { display: flex; gap: 24px; font-size: 15px; color: var(--slate); flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 14px; color: var(--ash); }

/* ----------------------------------------------- chapter pill (bottom) --- */

/* As Flighty's: a dark pill whose lit chip follows the chapter on screen.
   It is the guide through Review, Train and Progress only: it rises as
   Review begins and goes once the product story ends, so the hero, the
   membership and the reading around them have the screen to themselves. */
.chapters {
  position: fixed; left: 50%; bottom: 22px; z-index: 40;
  translate: -50% 0;
  display: flex; gap: 2px; padding: 6px;
  width: max-content; /* left: 50% leaves it half the screen, which wrapped "AI coaching" */
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 40px -12px rgba(10, 12, 15, 0.45);
  transition: translate 500ms var(--settle), opacity 300ms ease, visibility 0s linear 0s;
}
.chapters:not(.is-shown) {
  translate: -50% calc(100% + 40px); opacity: 0; visibility: hidden;
  transition: translate 400ms var(--ease), opacity 250ms ease, visibility 0s linear 400ms;
}
.chapters-thumb {
  position: absolute; left: 0; top: 6px; bottom: 6px; width: 0;
  border-radius: 999px; background: var(--lime);
  transition: transform 450ms var(--ease), width 450ms var(--ease);
}
.chapters a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: #C9CDD2;
  transition: color 300ms ease;
}
.chapters a svg { width: 15px; height: 15px; }
.chapters a:hover { color: #FFFFFF; }
.chapters a.is-active { color: var(--ink-on-lime); font-weight: 600; }
.chapters a:focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .chapters, .chapters:not(.is-shown), .chapters-thumb { transition: none; } }
@media (max-width: 680px) {
  .chapters { bottom: 12px; padding: 5px; }
  .chapters a { height: 38px; padding: 0 14px; font-size: 14px; }
  .chapters-thumb { top: 5px; bottom: 5px; }
}
@media (max-width: 380px) { .chapters a { padding: 0 11px; gap: 6px; } }
@media (max-width: 340px) { .chapters a svg { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .rally-cue path, .rally-cue-head, .insight { transition: none !important; }
  .rally.is-held .rally-halo { animation: none; }
}

/* ----------------------------------------------------------- waitlist --- */

/* The waitlist (D288). The Worker gives <html> the class waitlist while the
   owner has it open in the admin panel. Each part it changes is in the page
   twice, the App Store's and the waitlist's, and only one is ever drawn, so
   closed, the page is exactly what it was. */
html:not(.waitlist) [data-show="waitlist"],
html.waitlist [data-show="store"] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* What the page is waiting for, said once above the headline: the app's
   night with its lime, the one dark thing in the hero's copy. */
.soon {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 14px 0 12px; margin-bottom: 22px;
  border-radius: 999px; background: var(--ink); color: #FFFFFF;
  font-size: 14px; font-weight: 600; letter-spacing: -0.006em;
}
.soon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 3px rgba(199, 255, 53, 0.22);
}

/* The form: the field and its action in one capsule, as the platform's
   search field holds its button. On a phone they stack, full width. */
.join { position: relative; width: min(540px, 100%); }
.hero .join { margin-inline: auto; }
.join-field {
  display: flex; align-items: center; gap: 8px;
  height: 64px; padding: 6px 6px 6px 24px;
  border-radius: 999px; background: var(--chalk);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.join-field:focus-within {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink), 0 18px 40px -20px rgba(10, 18, 30, 0.45);
}
.join input[type="email"] {
  flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; outline: none;
  font: inherit; font-size: 17px; letter-spacing: -0.012em; color: var(--ink);
}
.join input[type="email"]::placeholder { color: var(--ash); opacity: 1; }
.join input[aria-invalid="true"] { caret-color: var(--error); }
.join-field:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--error); }
.join .btn { flex: none; height: 52px; padding: 0 24px; cursor: pointer; border: 0; font-family: inherit; }
.join .btn:hover { transform: none; }
.join .btn[aria-disabled="true"] { cursor: progress; }
.join-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.join-error {
  margin-top: 12px; padding-left: 24px; text-wrap: balance;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--error);
}
.join-error[hidden] { display: none; }
.join-error::before {
  content: "!"; display: inline-grid; place-items: center; vertical-align: -3px; margin-right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--error); color: #FFFFFF; font-size: 12px; font-weight: 700;
}
.join-note { margin-top: 14px; padding-left: 24px; max-width: 46ch; font-size: 14px; line-height: 1.45; color: var(--ash); }
.join-note a { color: var(--slate); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.join-note a:hover { color: var(--ink); }
.hero .join-error, .hero .join-note { padding-left: 0; margin-inline: auto; text-align: center; }

@media (max-width: 560px) {
  .join-field, .join-field:focus-within {
    flex-direction: column; align-items: stretch; gap: 10px;
    height: auto; padding: 0; background: none; box-shadow: none;
  }
  .join input[type="email"] {
    flex: none; height: 56px; padding: 0 22px; border-radius: 999px;
    background: var(--chalk); box-shadow: inset 0 0 0 1px var(--rule);
  }
  .join input[type="email"]:focus { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
  .join-field:has(input[aria-invalid="true"]) { box-shadow: none; }
  .join-field:has(input[aria-invalid="true"]) input[type="email"] { box-shadow: inset 0 0 0 2px var(--error); }
  .join .btn { height: 56px; width: 100%; }
  .join-error, .join-note { padding-left: 0; }
}

/* Joined: the form becomes the confirmation in its own place, the lime
   check drawn once, then the two questions, then the link to pass on. */
.joined {
  width: min(560px, 100%); padding: 28px;
  border-radius: 28px; background: var(--chalk); text-align: left;
}
.hero .joined { margin-inline: auto; }
.joined-head { display: flex; align-items: flex-start; gap: 16px; }
.joined-mark, .join-done-mark {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--lime);
}
.joined-mark svg, .join-done-mark svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--ink-on-lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.joined-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; outline: none; }
.joined-sub { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--slate); overflow-wrap: anywhere; }
.joined-more { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.joined-ask { font-size: 15px; line-height: 1.45; color: var(--slate); }
.joined-ask strong { display: block; margin-bottom: 2px; font-size: 17px; letter-spacing: -0.015em; }
.joined fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.joined legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.chip:hover span { box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.22); }
.chip input:checked + span { background: var(--lime); color: var(--ink-on-lime); box-shadow: inset 0 0 0 1px rgba(15, 20, 6, 0.14); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.joined-saved { min-height: 20px; margin-top: 14px; font-size: 14px; color: var(--ash); }
.joined-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule);
}
.joined-share p { font-size: 15px; color: var(--slate); }
.joined-share .btn { height: 44px; padding: 0 20px; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.joined-share .btn:hover { background: var(--paper); transform: none; box-shadow: inset 0 0 0 1px rgba(10, 12, 15, 0.22); }
.join-done { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; text-align: left; }
.join-done-mark { width: 28px; height: 28px; }
.join-done-mark svg { width: 18px; height: 18px; }

.motion .joined:not(.is-still) { animation: rise 560ms var(--settle) both; }
.motion .joined:not(.is-still) .joined-mark { animation: pop 520ms var(--settle) 120ms both; }
.motion .joined:not(.is-still) .joined-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 420ms var(--ease) 320ms forwards; }
.motion .joined:not(.is-still) .joined-more,
.motion .joined:not(.is-still) .joined-share { animation: rise 600ms var(--settle) 380ms both; }
@keyframes pop { from { scale: 0.4; opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 560px) {
  .joined { padding: 22px 18px; border-radius: 24px; }
  .joined-title { font-size: 21px; }
}

/* On the night (the closing photograph): the field is glass over the
   picture, its focus and its button lime, the app's primary. */
.closing .join-field {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.closing .join-field:focus-within { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 2px var(--lime); }
.closing .join input[type="email"] { color: #FFFFFF; }
.closing .join input[type="email"]::placeholder { color: var(--mist); }
.closing .join-field:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--error-night); }
.closing .join-error { color: var(--error-night); }
.closing .join-error::before { background: var(--error-night); color: var(--ink); }
.closing .join-note { color: var(--mist); }
.closing .join-note a { color: var(--fog); }
.closing .join-note a:hover { color: #FFFFFF; }
.closing .joined {
  background: rgba(16, 18, 22, 0.74); box-shadow: inset 0 0 0 1px var(--edge-night);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
}
.closing .joined strong { color: #FFFFFF; }
.closing .joined-sub, .closing .joined-ask, .closing .joined-share p { color: var(--fog); }
.closing .joined-more, .closing .joined-share { border-top-color: var(--edge-night); }
.closing .chip span { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.closing .chip:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.closing .chip input:checked + span { background: var(--lime); color: var(--ink-on-lime); }
.closing .chip input:focus-visible + span { outline-color: var(--lime); }
.closing .joined-saved { color: var(--mist); }
.closing .joined-share .btn { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.closing .joined-share .btn:focus-visible { outline-color: var(--lime); }
.closing .join-done { color: #FFFFFF; }
#join { scroll-margin-block: 120px; }

@media (max-width: 760px) {
  .closing .join-field, .closing .join-field:focus-within { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 560px) {
  .closing .join input[type="email"] { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
  .closing .join input[type="email"]:focus { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 2px var(--lime); }
  .closing .join-field:has(input[aria-invalid="true"]) { box-shadow: none; }
  .closing .join-field:has(input[aria-invalid="true"]) input[type="email"] { box-shadow: inset 0 0 0 2px var(--error-night); }
}

/* ------------------------------------------------ the campaign page --- */

/* rallix.io/waitlist (D288): for a link in a bio. The hero is the form,
   then the rally holding on its moment, then the loop on the app's own
   screens, then the form again on the night. */
.campaign .hero h1 { font-size: clamp(42px, 5.6vw, 80px); }
.campaign .hero-actions { margin-top: 30px; }
.campaign .hero .lede { text-wrap: pretty; }

.loop { padding-top: 150px; }
.loop h2 span { white-space: nowrap; }
.loop-lede { margin-top: 18px; max-width: 34em; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.48; color: var(--slate); letter-spacing: -0.014em; }
.loop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 72px; }
.loop-list li { display: flex; flex-direction: column; }
.loop-list .device { --w: 260px; align-self: center; }
.loop-list li:nth-child(2) .device { --rise-turn: -2.5deg; }
.loop-list h3 { margin-top: 44px; font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.025em; }
.loop-list p { margin-top: 10px; max-width: 32ch; font-size: 17px; line-height: 1.5; color: var(--slate); }

@media (max-width: 860px) {
  .loop { padding-top: 110px; }
  .loop-list {
    display: flex; gap: 20px; margin-top: 48px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 28px;
    scroll-padding-inline: var(--gutter);
  }
  .loop-list::-webkit-scrollbar { display: none; }
  .loop-list li { flex: none; width: min(300px, 76vw); scroll-snap-align: start; }
  .loop-list .device { --w: min(250px, 64vw); }
}

.campaign .closing-copy .join { margin-top: 4px; }
.campaign .closing .lede { margin-bottom: 30px; }
.more-link { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 500; color: var(--fog); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.more-link:hover { color: #FFFFFF; }
