/* ==========================================================================
   Fitness Arena — landing styles

   One dark mode, warm charcoal. The whole photo library is lit the same way
   (#171412 → #0B0A0A ground, orange rim light), so the page is built on that
   ground rather than dropping the photography into a light layout, where every
   frame reads as a black rectangle.

   Order below follows the page: tokens → reset → utilities → header → hero →
   gain → start → board → count → verdict → privacy → disciplines → partners →
   faq → get → footer → legal documents → motion.

   Motion rules: transform and opacity only, nothing else is animated. Every
   scene has a static form used when scripting is off and under
   prefers-reduced-motion, and the two share one selector list.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

/* Two voices, and they do different work. Golos Text carries the display
   sizes: a Cyrillic-first grotesk with squared shoulders and a tight aperture,
   which is what a page about elimination and a verdict should sound like.
   Nunito Sans, the app's own face, carries everything that has to be read
   rather than heard. Both are subset to Latin, Cyrillic and the Kazakh letters
   Ә Ғ Қ Ң Ө Ұ Ү Һ І, both are local, and neither costs a request. */
@font-face {
  font-family: 'Golos Text';
  src: url('../assets/fonts/GolosText-Black.woff2') format('woff2'),
    url('../assets/fonts/GolosText-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/NunitoSans-Regular.woff2') format('woff2'),
    url('../assets/fonts/NunitoSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/NunitoSans-SemiBold.woff2') format('woff2'),
    url('../assets/fonts/NunitoSans-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/NunitoSans-ExtraBold.woff2') format('woff2'),
    url('../assets/fonts/NunitoSans-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Ground. Three steps, all warm — the same neutral drift the photography
     has, so a photo never sits on a colder rectangle than itself. */
  --bg: #0b0a0a;
  --bg-2: #131110;
  --bg-3: #1c1917;

  /* Text. Warm white rather than #fff: pure white next to a warm charcoal
     photograph reads blue. */
  --ink: #f6f2ed;
  --ink-2: #cfc7bd;
  --ink-muted: #9d948a;

  --line: rgba(246, 242, 237, 0.1);
  --line-2: rgba(246, 242, 237, 0.22);

  /* Accent — palette.accent from the app, the same hue as the rim light in
     every frame. On this ground it finally works as text (6.4:1), which it
     never did on the light page. */
  --accent: #ff7a00;
  --accent-hi: #ff9a3c;
  --accent-dim: rgba(255, 122, 0, 0.16);
  --on-accent: #140f0a;

  /* Verdict colours. Used as chip fills with dark ink on top, never as text
     on the page ground. */
  /* Tuned to the warm ground rather than lifted from a framework palette:
     these are the only saturated non-orange values on the page. */
  --ok: #6bd08a;
  --no: #f4685a;

  --font: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Golos Text', var(--font);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 64px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --r-s: 3px;
  --r-m: 12px;
  --r-pill: 999px;

  /* One value for the one role the page repeats a dozen times: a small
     uppercase label. Twelve components were carrying seven different values. */
  /* Everything under the display sizes belongs to one of four jobs. Ten hand
     -picked steps between 11 and 21 px carried no more meaning than these. */
  --text-label: 12px;
  --text-fine: 13px;
  --text-sm: 15px;
  --text-base: 17px;
  --text-lead: clamp(16px, 1.8vw, 19px);
  --text-mid: clamp(21px, 2.6vw, 30px);
  --text-display: clamp(32px, 5.2vw, 72px);
  --text-numeral: clamp(64px, 8vw, 108px);
  --text-numeral-sm: 40px;
  --text-pull: clamp(17px, 1.9vw, 21px);
  --text-metric: clamp(26px, 3vw, 34px);
  --text-step: clamp(23px, 3.1vw, 40px);
  --text-doc: clamp(30px, 5vw, 46px);
  --text-section: clamp(32px, 4.4vw, 58px);
  --text-pivot: clamp(34px, 6.6vw, 92px);

  /* Leading is named the same way the sizes are: fourteen hand-set values had
     one size taking two different ones in two places. */
  --lh-numeral: 0.85;
  --lh-display: 0.98;
  --lh-tight: 1.15;
  --lh-snug: 1.4;
  --lh-read: 1.5;
  --lh-body: 1.62;

  --track-label: 0.14em;
  /* Three bands instead of nine hand-picked values: display type, the middle
     sizes, and running text. Every new heading picks the band it belongs to
     rather than adding a tenth number. */
  --track-display: -0.028em;
  --track-mid: -0.018em;
  --track-text: -0.012em;

  /* One amplitude for every press on the page. */
  --press: 0.96;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over the whole page. Static: an animated turbulence filter is one
   of the most expensive things a phone GPU can be asked for. On a dark ground
   it screens instead of multiplying, or it disappears. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(255, 122, 0, 0.45);
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-color: var(--accent);
  }
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: var(--track-mid);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* --- Utilities ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-m) 0;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.muted {
  color: var(--ink-muted);
}

/* The one recurring micro-label. Tracked capitals, never a pill: a pill is
   what every template puts above a headline. */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.85em;
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
}

.kicker::before {
  content: counter(block, decimal-leading-zero);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

#main {
  counter-reset: block;
}

.board,
.count,
.section {
  counter-increment: block;
}

.section {
  position: relative;
  z-index: 2;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section__head {
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 56ch;
}

.section__title {
  margin-top: var(--sp-4);
  font-size: var(--text-section);
}

.section__lead {
  margin-top: var(--sp-5);
  max-width: 54ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: var(--lh-read);
}

@media (min-width: 940px) {
  .section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
    /* The two columns are asked to end on the same line of type, not on the
       same edge of a box: their leadings differ, so equal boxes still leave the
       baselines a dozen pixels apart. */
    align-items: last baseline;
    max-width: none;
  }

  .section__head > .kicker {
    grid-area: 1 / 1;
  }

  .section__head > .section__title {
    grid-area: 2 / 1;
  }

  /* Both columns are asked to end on the same line. The heading is set at
     1.06 and the lead at 1.55, so their boxes end well apart even when the
     baselines agree; the difference is half the leading of each. */
  .section__head > .section__lead {
    grid-area: 2 / 2;
    margin-top: 0;
  }

  /* A masthead with no lead leaves nothing for the second column, so the
     heading takes the whole measure rather than breaking into a narrow stack. */
  .section__head:not(:has(.section__lead)) > .section__title {
    grid-column: 1 / -1;
    max-width: 22ch;
  }
}

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

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 2px;
  pointer-events: none;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

/* --- Header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 10, 10, 0.92);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(11, 10, 10, 0.98);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
  padding-block: var(--sp-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: var(--track-text);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  flex: none;
}

.nav {
  display: flex;
  gap: var(--sp-5);
  margin-inline: auto;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform 0.14s var(--ease-out);
}

.nav a:active {
  transform: scale(var(--press));
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}

.nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--ink);
  }

  .nav a:hover::after {
    transform: scaleX(1);
  }
}

@media (max-width: 959px) {
  .header__inner {
    flex-wrap: wrap;
    row-gap: 2px;
    padding-bottom: var(--sp-2);
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    gap: var(--sp-4);
    margin-inline: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* The scrollbar is hidden, so the fade is the only thing telling a reader
       that the row continues past the edge. */
    -webkit-mask-image: linear-gradient(90deg, #000 0 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 88%, transparent 100%);
    padding-inline-end: var(--sp-5);
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    font-size: var(--text-fine);
  }

  .nav + .lang {
    margin-inline-start: auto;
  }

  :root {
    --header-h: 56px;
  }
}

.lang {
  display: flex;
  gap: 2px;
  margin-inline-start: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(246, 242, 237, 0.06);
}

.nav + .lang {
  margin-inline-start: 0;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-weight: 800;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 0.14s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lang__btn:hover {
    color: var(--ink);
  }
}

.lang__btn:active {
  transform: scale(var(--press));
}

.lang__btn[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}

/* The default ring is the accent, and this button is filled with it. */
.lang__btn[aria-pressed='true']:focus-visible {
  outline-color: var(--ink);
}

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

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

@media (max-width: 540px) {
  .stores {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: var(--sp-5);
  }

  .store {
    min-height: 52px;
  }
}

/* Two states that must not be told apart by a border pattern: one of these is
   the only working way into the product. The live one is a filled button, the
   one with nothing behind it is an outline. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 24px 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  text-decoration: none;
  transition: transform 0.18s var(--ease-out);
}

.store:not(.store--live) {
  cursor: default;
}

.store:not(.store--live) .store__kicker {
  color: var(--ink-muted);
}

.store--live {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

/* Placed after the base rules below would be neater, but the cascade only
   needs them to win on order — see .store svg further down. */
.store--live .store__kicker {
  color: var(--on-accent);
}

/* The ring defaults to the accent, and this button is filled with it. */
.store--live:focus-visible {
  outline-color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .store--live:hover {
    transform: translateY(-2px);
    background: var(--accent-hi);
  }
}

.store--live:active {
  transform: translateY(0) scale(var(--press));
}

.store svg {
  flex: none;
  color: var(--ink-muted);
}

.store--live svg {
  color: var(--on-accent);
}

.store__text {
  display: flex;
  flex-direction: column;
  line-height: var(--lh-snug);
  text-align: start;
}

.store__kicker {
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
}

.store__name {
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: var(--track-text);
}

/* --- The board -----------------------------------------------------------
   One scene that opens as the hero and ends as the rule explained. The wall of
   faces fills the stage; the type is anchored to the bottom edge, poster-style,
   over a scrim that darkens exactly where the words are. Scrolling empties the
   wall and swaps the headline for the four steps of the rule.

   js/main.js writes --wall-on (0 at rest, 1 once the wall is the subject) and
   toggles the per-cell and per-step classes.

   Cell shape: the portraits are cropped head-and-shoulders in a 5:4 frame.
   The column count per breakpoint keeps the cell between about 0.8 and 1.6, so
   the crop only ever loses a little from the sides or a little from the top and
   bottom — never enough to cut the face. It is never taller than wide, because
   a tall cell over a wide picture shows a band of empty floor under every
   face. */

.board {
  position: relative;
  z-index: 2;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.js .board {
  height: 330vh;
}

.board__stage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px);
}

.js .board__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  /* A floor in pixels does not scale with the viewport the way 330vh does: on
     a phone held sideways the floor ate the whole pin, and the headline, the
     count and the caption all sat below the fold. */
  min-height: min(600px, 100svh);
  padding-block: 0;
  display: grid;
  align-items: end;
}

.board__wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.js .board__wall {
  position: absolute;
  inset: 0;
  /* svh is the viewport with the address bar showing; once it hides, the
     largest viewport is what the reader is actually looking at. */
  min-height: 100lvh;
  grid-template-rows: repeat(10, 1fr);
}

@media (min-width: 560px) {
  .board__wall {
    grid-template-columns: repeat(5, 1fr);
  }

  .js .board__wall {
    grid-template-rows: repeat(8, 1fr);
  }
}

@media (min-width: 1024px) {
  .board__wall {
    grid-template-columns: repeat(8, 1fr);
  }

  .js .board__wall {
    grid-template-rows: repeat(5, 1fr);
  }
}

.cell {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-s);
  background: var(--bg-2);
  aspect-ratio: 5 / 4;
}

.js .board__wall .cell {
  aspect-ratio: auto;
  height: 100%;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

/* Going out is an opacity change on a ground-coloured plate, not a filter:
   filters on 40 tiles at once are what makes a mid-range phone drop frames. */
.cell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}

/* The survivors are ringed at the end, so the last few read as a result and
   not as the tiles that happened not to be touched. */
.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid var(--accent);
  border-radius: var(--r-s);
  opacity: 0;
  transition: opacity 0.22s var(--ease-out);
}

.cell.is-out::before {
  opacity: 0.88;
}

.cell.is-out img {
  transform: scale(0.94);
}

.cell.is-last::after {
  opacity: 1;
}

/* Two layers over the wall. The scrim is constant and is what gives the type
   its contrast — heavy along the bottom, where the words are, and light across
   the middle, where the faces are. The veil sets the overall depth and lifts
   as the wall stops being a backdrop. */
.board__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 10, 0.86) 0%,
    rgba(11, 10, 10, 0.34) 22%,
    rgba(11, 10, 10, 0.52) 46%,
    rgba(11, 10, 10, 0.94) 74%,
    rgba(11, 10, 10, 0.99) 100%
  );
}

.js .board__scrim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: calc(0.62 - 0.5 * var(--wall-on, 0));
}

.js .board__scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(11, 10, 10, 0.82) 0%, rgba(11, 10, 10, 0) 62%);
  opacity: calc(1 - 0.55 * var(--wall-on, 0));
}

/* Narrow: the copy spans the width and the bottom row carries the caption on
   the left and the count on the right. Wide: the count moves up beside the
   copy and the caption runs the full measure underneath. */
.board__inner {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--sp-5);
  row-gap: clamp(14px, 2.2vw, 28px);
  padding-bottom: clamp(14px, 3vh, 36px);
}

.board__copy {
  grid-column: 1 / -1;
  display: grid;
  max-width: min(100%, 820px);
}

@media (min-width: 900px) {
  .board__copy {
    grid-column: 1;
  }
}

.js .board__intro,
.js .board__steps {
  grid-area: 1 / 1;
  align-self: end;
}

.board__title {
  margin-top: var(--sp-3);
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
}

@media (min-width: 900px) {
  .board__title {
    margin-top: var(--sp-4);
    line-height: var(--lh-display);
  }
}

.board__title span {
  display: block;
}

.board__title--dim {
  color: var(--ink-2);
}

.board__lead {
  margin-top: var(--sp-4);
  max-width: 34ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: var(--lh-read);
}

.board__steps {
  display: grid;
  list-style: none;
}

.step__day {
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
}

.step__body {
  font-family: var(--font-display);
  font-weight: 900;
  margin-top: var(--sp-4);
  font-size: var(--text-step);
  font-weight: 800;
  /* At the small end this runs to four lines, and 1.14 closes them up into a
     block. The leading opens as the type gets smaller, not tighter. */
  line-height: var(--lh-snug);
  letter-spacing: var(--track-mid);
}

@media (min-width: 900px) {
  .step__body {
    line-height: var(--lh-tight);
  }
}

/* The count. Tabular figures, so the number does not shuffle sideways while it
   falls. */
.meter {
  grid-column: 1 / -1;
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

@media (min-width: 900px) {
  .meter {
    grid-row: 1;
    grid-column: 2;
    display: block;
    text-align: end;
  }
}

.meter__label,
.meter__of {
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.meter__value {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent);
  font-size: var(--text-numeral-sm);
  font-weight: 800;
  line-height: var(--lh-numeral);
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

@media (min-width: 900px) {
  .meter__value {
    font-size: var(--text-numeral);
  }
}

.board__disclaimer {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: var(--text-label);
  line-height: var(--lh-snug);
}

/* --- The hero -------------------------------------------------------------
   The page opens on what the product is and what the reader gets, so the hero
   is type first and photography second. Below 900px the frame is a band above
   the copy rather than a backdrop behind it: a phone has no clean third to
   hold a headline, and text over a photograph is the one contrast risk this
   page will not take. */

.hero {
  position: relative;
  border-top: 0;
  padding-block: 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero__art {
  position: relative;
  margin-inline: 0;
  aspect-ratio: 16 / 10;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The two athletes sit right of centre in the source frame. */
  object-position: 68% center;
}

/* The band meets the copy on a fade rather than an edge: a hard seam between a
   photograph and the page ground reads as a pasted rectangle. */
.hero__art::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(11, 10, 10, 0), var(--bg) 92%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(28px, 4vw, 44px);
}

.hero__title {
  margin: var(--sp-4) 0 0;
  font-size: var(--text-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
}

.hero__title span {
  display: block;
}

.hero__title--dim {
  color: var(--ink-2);
}

.hero__lead {
  margin-top: var(--sp-5);
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: var(--lh-read);
}

.hero__copy .stores {
  margin-top: clamp(24px, 3vw, 36px);
}

.hero__note {
  margin: var(--sp-5) 0 0;
  color: var(--ink-muted);
  font-size: var(--text-fine);
  line-height: var(--lh-read);
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: min(82svh, 720px);
    padding-block: clamp(56px, 6vw, 96px);
  }

  .hero__art {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .hero__art img {
    object-position: right center;
  }

  /* The copy sits on the clean left third of the frame; the scrim carries the
     ground across it so the type is set on the page's own black, not on a
     photograph. It clears the athletes before it reaches them. */
  .hero__art::after {
    inset: 0;
    height: auto;
    background: linear-gradient(
      90deg,
      var(--bg) 0%,
      var(--bg) 30%,
      rgba(11, 10, 10, 0.82) 46%,
      rgba(11, 10, 10, 0.3) 64%,
      rgba(11, 10, 10, 0) 80%
    );
  }

  /* Measured against the display size, not the body size: 40ch of running
     text is barely five characters of a 64px headline, and the title broke
     into five lines before it ran out of clean ground. */
  .hero__copy {
    max-width: min(660px, 52%);
  }
}

/* --- What you get ---------------------------------------------------------
   Hairlines and air, like every other list on the page. Cards would be the
   fourth surface in a design that has three. */

.gain-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.gain__item {
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.gain__item:last-child {
  border-bottom: 1px solid var(--line);
}

.gain__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-mid);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-mid);
}

.gain__body {
  margin: var(--sp-3) 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: var(--lh-read);
}

@media (min-width: 760px) {
  .gain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 5vw, 80px);
  }

  /* In one column every item carries its own top rule and the last one closes
     the list. In two columns the bottom rule belongs to the bottom row. */
  .gain__item:nth-child(n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

/* --- How to start ---------------------------------------------------------
   The numbered list the page already owns, with a line of its own for the
   step's name. */

.fact__title {
  margin: 0 0 var(--sp-2);
  font-size: var(--text-base);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-text);
}

.fact__title + .fact__body {
  margin: 0;
}

/* --- Questions ------------------------------------------------------------
   Native details/summary: open without scripting, reachable from the keyboard
   without a single line of JavaScript, and legible with motion turned off. */

.faq__list {
  display: grid;
}

.qa {
  border-top: 1px solid var(--line);
}

.qa:last-child {
  border-bottom: 1px solid var(--line);
}

.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 44px;
  padding-block: var(--sp-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-base);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-text);
}

.qa__q::-webkit-details-marker {
  display: none;
}

/* A plus that turns into a cross. Drawn from two hairlines rather than set in
   Golos Black, whose plus arrives as a slab twice the weight of every other
   rule on the page. */
.qa__q::after {
  content: '';
  flex: none;
  width: 15px;
  height: 15px;
  background: linear-gradient(var(--accent), var(--accent)) center / 15px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.5px 15px no-repeat;
  transform: rotate(0deg);
  transition: transform 0.24s var(--ease-out);
}

.qa[open] .qa__q::after {
  transform: rotate(45deg);
}

.qa__a {
  padding-bottom: var(--sp-6);
  /* Measured against the rule above it: a 66ch answer ended near the middle of
     a 1130px hairline and read as a column that had lost its box. */
  max-width: 78ch;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: var(--lh-read);
}

.qa__a p {
  margin: 0;
}

.qa__a a {
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .qa__q:hover {
    color: var(--accent-hi);
  }
}

/* --- How the camera counts ------------------------------------------------
   The stage pins only where scrubbing a video by scroll is safe: a wide
   viewport with a precise pointer. Everywhere else the clip loops on its own
   and the section is an ordinary two-column block. */

.count {
  position: relative;
  z-index: 2;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.count__stage {
  padding-block: clamp(72px, 9vw, 128px);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.count__inner {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .count__inner {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    column-gap: clamp(40px, 6vw, 88px);
  }
}

/* Scrubbing a video from the scroll position is only reliable on a wide
   viewport with a precise pointer: a touch device seeks in fits, and a phone
   would rather play the clip. So the pin lives in one media query and nowhere
   else — js/main.js tests the identical condition before it takes over the
   clip. */
@media (min-width: 900px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js:not(.no-scrub) .count {
    height: 240vh;
  }

  .js:not(.no-scrub) .count__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 620px;
    padding-block: 0;
    display: grid;
    align-items: center;
  }

  /* The timeline and the caption belong to the clip, so the column is exactly
     as wide as the clip and no wider: fit-content sizes to the caption instead
     and ran the rail 56px past the frame. 0.5625 is the clip's 720:1280. */
  .js:not(.no-scrub) .count__media {
    width: calc(min(70svh, 620px) * 0.5625);
    justify-self: center;
  }

  .js:not(.no-scrub) .count__video {
    width: 100%;
    height: auto;
  }
}

.count__media {
  position: relative;
  justify-self: start;
  width: min(100%, 340px);
}

@media (max-width: 899px) {
  /* Otherwise the reader meets 600px of clip before the heading that says
     what it is. */
  .count__media {
    order: 2;
  }
}

.count__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.count__caption {
  margin-top: var(--sp-4);
  color: var(--ink-muted);
  font-size: var(--text-fine);
}

.count__note {
  margin-top: var(--sp-6);
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* At the wrap of the clip the count used to fall from three to nothing inside
   one frame. It rests on three, then the readout steps back while the clip
   returns to its start. */
.tally,
.rail {
  transition: opacity 0.36s var(--ease-out);
}

.count.is-resetting .tally,
.count.is-resetting .rail {
  opacity: 0.14;
}

.tally {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: clamp(20px, 2.5vw, 28px);
  padding-inline-end: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line-2);
}

.tally__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-numeral);
  font-weight: 800;
  line-height: var(--lh-numeral);
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  color: var(--accent);
}

/* The clip's own timeline. The three marks are the moments the athlete in the
   footage finishes standing up — 1.25 s, 4.63 s and 6.92 s of eight — so the
   head passing a mark and the counter moving are the same event. */
/* Read as a progress mark, not as a control: no knob, and the marks sit under
   the bar rather than straddling it. */
.rail {
  position: relative;
  height: 2px;
  margin-top: var(--sp-4);
  margin-bottom: 9px;
  background: var(--line);
}

/* Unlit the mark is a neutral tick; lit, an accent one fades in over it. The
   colour is carried by a second layer so the change is an opacity, not a
   repaint of the fill. */
.rail__mark {
  position: absolute;
  top: 4px;
  left: var(--at);
  width: 2px;
  height: 5px;
  margin-left: -1px;
  background: var(--line-2);
  transition: transform 0.2s var(--ease-out);
  transform-origin: top center;
}

.rail__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}

.rail__mark.is-on {
  transform: scaleY(1.6);
}

.rail__mark.is-on::after {
  opacity: 1;
}

.rail__head {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--head, 0));
  transform-origin: left center;
}

.tally__label {
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  list-style: none;
}

/* Sized columns rather than four equal shares: the row carries two facts now,
   and equal shares would have stretched each across half the panel. */
@media (min-width: 620px) {
  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
  }
}

.metric {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.metric__num {
  font-family: var(--font-display);
  font-weight: 900;
  display: block;
  font-size: var(--text-metric);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-mid);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  display: block;
  margin-top: var(--sp-1);
  color: var(--ink-muted);
  font-size: var(--text-fine);
  line-height: var(--lh-snug);
}

/* --- The verdict ---------------------------------------------------------- */

.verdict__pair {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

@media (min-width: 720px) {
  .verdict__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.frame {
  position: relative;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
}

.frame__media {
  position: relative;
}

.frame img {
  width: 100%;
  height: auto;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
}

/* Thigh and shin, drawn over the picture rather than measured from it: the
   joints are placed by eye, so the marks say which frame is deeper and print
   no number that would be a measurement nobody took. The thresholds live in
   the text, where they belong. */
.frame__marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.frame__marks path {
  stroke: currentColor;
}

.frame__marks circle {
  fill: var(--bg);
  stroke: currentColor;
  stroke-width: 5;
}

.frame__marks--ok {
  color: var(--ok);
}

.frame__marks--no {
  color: var(--no);
}

.frame--no img {
  opacity: 0.72;
}

.frame figcaption {
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
}

.frame__text {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: var(--lh-read);
}

.chip {
  position: absolute;
  z-index: 1;
  inset-block-start: var(--sp-4);
  inset-inline-start: var(--sp-4);
  display: inline-flex;
  align-items: center;
  padding: 5px 14px 6px;
  border-radius: var(--r-pill);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--on-accent);
}

.chip--ok {
  background: var(--ok);
}

.chip--no {
  background: var(--no);
}

.verdict__note {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* --- Privacy -------------------------------------------------------------- */

.privacy__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}

@media (min-width: 900px) {
  .privacy__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.facts {
  list-style: none;
  display: grid;
}

.fact {
  display: grid;
  grid-template-columns: 3.2ch 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}

.fact:last-child {
  border-bottom: 1px solid var(--line);
}

.fact__num {
  font-size: var(--text-fine);
  font-weight: 800;
  letter-spacing: var(--track-label);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35em;
}

.fact__body {
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: var(--lh-read);
}

/* One set, and the three seconds of it that leave the phone. The slice is put
   in place by js/main.js at a random offset, which is what actually happens. */
.clip {
  margin: 0;
}

.clip__bar {
  position: relative;
  height: clamp(120px, 16vw, 176px);
  border-radius: var(--r-s);
  background: repeating-linear-gradient(
    90deg,
    var(--bg-3) 0 2px,
    transparent 2px 8px
  );
  border: 1px solid var(--line);
  overflow: hidden;
}

.clip__slice {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 5%;
  background: var(--accent);
  transform: translateX(var(--slice, 300%));
  transition: transform 0.9s var(--ease-out);
}

/* The slice is drawn once per load and never redrawn, which is the rule the
   board runs on wearing different clothes. Saying so is what makes the two
   rhyme. */
.clip__draw {
  margin-top: var(--sp-4);
  max-width: 34ch;
  color: var(--ink);
  font-size: var(--text-pull);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-text);
}

.clip__legend {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  color: var(--ink-muted);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* Two cells side by side only where the column is wide enough for both to
   stay on one line: between about 900 and 1100 the privacy grid has already
   split in two and the left label wrapped. */
@media (min-width: 620px) and (max-width: 899px), (min-width: 1100px) {
  .clip__legend {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

.clip__out {
  color: var(--accent);
  font-weight: 800;
}

/* --- Disciplines ---------------------------------------------------------- */

/* Edge to edge, like the wall the page opens with. Held inside the measure
   these six read as cards from a set; run to the edges they read as the same
   table the board is made of. */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
  counter-reset: disc;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

@media (min-width: 860px) {
  .disc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.disc {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-s);
  background: var(--bg-3);
  counter-increment: disc;
}

.disc__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.22s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .disc:hover .disc__img {
    transform: scale(1.04);
  }
}

/* The pictures run to the edge of the screen; their names do not — a caption
   belongs to the text column, and at the edge it sat 142px outside the measure
   every other word on the page keeps to. */
.disc-grid {
  --measure-inset: calc((100vw - min(var(--maxw), 100vw)) / 2 + var(--gutter));
}

.disc-grid > .disc:nth-child(2n + 1) .disc__name {
  padding-inline-start: max(var(--sp-4), var(--measure-inset));
}

.disc-grid > .disc:nth-child(2n) .disc__name {
  padding-inline-end: max(var(--sp-4), var(--measure-inset));
}

@media (min-width: 860px) {
  .disc-grid > .disc:nth-child(2n + 1) .disc__name,
  .disc-grid > .disc:nth-child(2n) .disc__name {
    padding-inline: var(--sp-4);
  }

  .disc-grid > .disc:nth-child(3n + 1) .disc__name {
    padding-inline-start: max(var(--sp-4), var(--measure-inset));
  }

  .disc-grid > .disc:nth-child(3n) .disc__name {
    padding-inline-end: max(var(--sp-4), var(--measure-inset));
  }
}

.disc__name {
  font-family: var(--font-display);
  font-weight: 900;
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  white-space: nowrap;
  padding: var(--sp-7) var(--sp-4) var(--sp-4);
  background: linear-gradient(
    180deg,
    rgba(11, 10, 10, 0) 0%,
    rgba(11, 10, 10, 0.55) 38%,
    rgba(11, 10, 10, 0.94) 72%,
    rgba(11, 10, 10, 0.97) 100%
  );
  color: var(--ink);
  font-weight: 800;
  font-size: var(--text-pull);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-text);
}

.disc__name span,
.disc__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The longest name is seven pixels over the plate at the narrowest column. */
@media (max-width: 560px) {
  .disc__name {
    padding-inline: var(--sp-3);
    gap: var(--sp-2);
  }
}

.disc__name::before {
  content: '0' counter(disc);
  flex: none;
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* --- Partners ------------------------------------------------------------- */

.partners__note {
  margin-top: var(--sp-5);
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.partners__mail {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-mid);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-mid);
}

/* The one underlined link on the page was also its only target under 44px. */
.partners__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --- Get it --------------------------------------------------------------- */

/* The last two blocks were the shortest on the page, so it stopped rather
   than closed. The closing one gets the room to be a close. */
.get {
  position: relative;
  padding-block: clamp(96px, 13vw, 180px);
  background: var(--bg);
}

.partners {
  padding-bottom: clamp(88px, 11vw, 150px);
}

.get__inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

@media (min-width: 940px) {
  .get__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 80px);
    align-items: end;
  }
}

/* The closing count is the largest object in its half, the way "40" is the
   largest in the opening one. The heading steps down to make room for it. */
.meter--close {
  display: grid;
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  justify-items: start;
  text-align: start;
  margin-top: var(--sp-5);
}

.meter--close .meter__value {
  font-size: var(--text-numeral);
}

.get__title {
  margin-top: var(--sp-5);
  font-size: var(--text-section);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  max-width: 14ch;
}

.get__body {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: var(--text-lead);
}

.get__note {
  margin-top: var(--sp-5);
  color: var(--ink-muted);
  font-size: var(--text-fine);
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  padding-block: var(--sp-8) var(--sp-6);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: var(--text-sm);
}

.footer__grid {
  display: grid;
  gap: var(--sp-6);
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-7);
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--text-base);
  letter-spacing: var(--track-text);
}

.footer__tag {
  margin-top: var(--sp-2);
  max-width: 34ch;
  color: var(--ink-muted);
}

.footer__heading {
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer__links {
  margin-top: var(--sp-3);
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover {
    color: var(--accent);
    text-decoration: underline;
  }
}

.footer__legal {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-fine);
}

@media (min-width: 760px) {
  .footer__legal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer__legal dl {
  margin: 0;
}

.footer__legal dt {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  font-size: var(--text-label);
  font-weight: 800;
}

.footer__legal dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.footer__generated {
  margin-top: var(--sp-5);
  color: var(--ink-muted);
  font-size: var(--text-fine);
}

.footer__copy {
  margin-top: var(--sp-2);
  color: var(--ink-muted);
  font-size: var(--text-fine);
}

/* --- Legal documents ------------------------------------------------------
   privacy.html / terms.html / delete.html share this stylesheet. Their markup
   is fixed — the app links straight at those URLs and store reviewers open
   them — so these rules only restyle what is already there. */

/* The reading measure lives on the blocks, not on the wrapper: a narrower
   wrapper gives the page two different left edges, one for the header and one
   for the document under it. */
.doc {
  position: relative;
  z-index: 2;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.doc__title {
  margin-top: var(--sp-6);
  font-size: var(--text-doc);
  line-height: var(--lh-display);
  max-width: 20ch;
}

.doc__updated {
  margin-top: var(--sp-4);
  max-width: 68ch;
  font-size: var(--text-fine);
  color: var(--ink-muted);
}

.doc .notice,
.doc .callout {
  max-width: 68ch;
}

.doc__body {
  max-width: 68ch;
  margin-top: var(--sp-7);
}

/* The one paragraph that stands before the first heading: it says what the
   page is for, so it is set a step above the running text. */
.doc__lead {
  margin: 0 0 var(--sp-8);
  font-size: var(--text-lead);
  line-height: var(--lh-read);
  color: var(--ink-2);
}

.doc__body section + section {
  margin-top: var(--sp-8);
}

.doc__body h2 {
  font-size: var(--text-mid);
}

.doc__body p {
  margin-top: var(--sp-4);
  color: var(--ink-2);
}

.doc__list,
.doc__steps {
  margin-top: var(--sp-4);
  padding-inline-start: 1.3em;
  color: var(--ink-2);
}

.doc__list {
  list-style: none;
  padding-inline-start: 0;
}

.doc__list li {
  position: relative;
  padding-inline-start: 1.3em;
}

.doc__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.25em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc__list li + li,
.doc__steps li + li {
  margin-top: var(--sp-3);
}

.callout,
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* A note about the document's own state must not outweigh the document. */
.notice {
  margin-top: 0;
  padding: var(--sp-3) 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: var(--text-fine);
}

.notice svg,
.callout svg {
  flex: none;
  color: var(--ink-muted);
}

.callout svg {
  color: var(--accent);
}

.callout,
.notice {
  align-items: flex-start;
}

.callout svg,
.notice svg {
  margin-top: 0.15em;
}

/* --- Motion ---------------------------------------------------------------
   Reveal state: the element carries `.reveal`, js/main.js adds `.is-in` when
   it first enters the viewport, `--i` staggers a group. */

/* The stagger is applied by js/main.js from the moment a group lands, not as
   a delay written here: a CSS delay runs from whenever that one element
   crosses the line, which made the last card of a row wait its turn again
   after it was already on screen. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Board: the headline hands the slot over to the steps. */
.js .board__intro {
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out),
    visibility 0s linear 0s;
}

/* visibility, not opacity alone: a faded-out heading stays in the accessibility
   tree and a screen reader still reads it over the step that replaced it. The
   delay is the point at which the fade has effectively finished rather than its
   full length. */
.js .board.is-past .board__intro {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  pointer-events: none;
  transition-delay: 0s, 0s, 0.18s;
}

.js .board__steps .step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
  pointer-events: none;
}

.js .board__steps .step.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* --- Static fallbacks -----------------------------------------------------
   Two audiences share one ruleset: a page with scripting off, and a reader who
   asked for no motion. Both get the same document — final states, nothing
   pinned, nothing hidden. */

html:not(.js) .board__scrim {
  display: none;
}

html:not(.js) .board__stage {
  display: flex;
  flex-direction: column;
}

html:not(.js) .board__inner {
  order: 1;
}

html:not(.js) .board__wall {
  order: 2;
  margin-top: var(--sp-7);
}

html:not(.js) .board__steps {
  margin-top: var(--sp-7);
  gap: var(--sp-6);
}

/* Under about 620px of height there is no room for a headline, four steps and
   a wall at once, so the scene falls back to the static form. */
@media (max-height: 620px) and (min-width: 700px) {
  .js .board {
    height: auto;
  }

  .js .board__stage {
    position: static;
    height: auto;
    min-height: 0;
    padding-block: clamp(40px, 6vw, 72px);
    display: flex;
    flex-direction: column;
  }

  .js .board__inner {
    order: 1;
  }

  .js .board__wall {
    order: 2;
    position: static;
    min-height: 0;
    grid-template-rows: none;
    margin-top: var(--sp-7);
  }

  .js .board__wall .cell {
    aspect-ratio: 5 / 4;
    height: auto;
  }

  .js .board__scrim {
    display: none;
  }

  .js .board__intro,
  .js .board__steps {
    grid-area: auto;
  }

  .js .board__steps {
    margin-top: var(--sp-7);
    gap: var(--sp-6);
  }

  .js .board__steps .step {
    grid-area: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .js .board.is-past .board__intro {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .js .board {
    height: auto;
  }

  .js .board__stage {
    position: static;
    height: auto;
    min-height: 0;
    padding-block: clamp(40px, 6vw, 72px);
    display: flex;
    flex-direction: column;
  }

  .js .board__inner {
    order: 1;
  }

  .js .board__wall {
    order: 2;
    position: static;
    grid-template-rows: none;
    margin-top: var(--sp-7);
  }

  .js .board__wall .cell {
    aspect-ratio: 1;
    height: auto;
  }

  .js .board__scrim {
    display: none;
  }

  .js .board__intro,
  .js .board__steps {
    grid-area: auto;
  }

  .js .board__steps {
    margin-top: var(--sp-7);
    gap: var(--sp-6);
  }

  .js .board__steps .step {
    grid-area: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .js .board.is-past .board__intro {
    opacity: 1;
    transform: none;
  }

}
