/*
  ONE UP home page. One flat near-black background, neutral glass panels,
  lime (#6AC006) only as an accent. Headings in Bebas Neue (hosted here, see
  fonts/BebasNeue-OFL.txt), body text in the device's own font. Nothing loads
  from other companies.

  Modes (home.js uses the same media queries):
    hero pinned  (min-width: 1024px) and (min-height: 620px): the dot figure
                 stays put and, as you scroll, zooms down into the real Home
                 screen (scrubbed: scrolling back plays it backwards).
    tour pinned  (min-width: 768px) and (min-height: 620px), with the script:
                 one phone stays put beside the tour.
    otherwise everything flows, each part with its own real screen.

  Motion: the hero plays once (done in about 4 seconds), then the dots react
  to the pointer and the map -> phone change follows the scroll; further
  down, parts rise with the browser's own scroll-driven animations, so a
  browser without them shows everything in place. Reduced motion keeps
  short fades.
*/

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --ink: #f4f5f1;
  --body: #c3c8bf;
  --muted: #8b9187;
  --pane: rgba(255, 255, 255, 0.045);
  --pane-2: rgba(255, 255, 255, 0.075);
  --pane-solid: #141414;
  --rim: rgba(255, 255, 255, 0.09);
  --rim-2: rgba(255, 255, 255, 0.17);
  --line: rgba(255, 255, 255, 0.08);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --accent: #6ac006;
  --accent-hover: #7bd414;
  --on-accent: #0a0a0a;
  --foot-word: #161616;
  --word: #181818;
  --outline: rgba(255, 255, 255, 0.28);
  --dot-body: rgba(255, 255, 255, 0.16);
  --dot-skin: rgba(255, 255, 255, 0.09);
  --dot-muscle: rgba(255, 255, 255, 0.3);
  --dot-rest: rgba(255, 255, 255, 0.62);
  --r-lg: 28px;
  --r-md: 20px;
  --r-pill: 999px;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --std: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --section: clamp(48px, 5.6vw, 80px);
  --title-gap: clamp(28px, 3.6vw, 52px);
  --bar: 64px;
  --gutter: 28px;
  /* The page grows with wide screens: 1280px up to 1600px wide, 1680px from 2240px. */
  --wrap: clamp(1280px, calc(62.5vw + 280px), 1680px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: #2c2e2a var(--bg); accent-color: var(--accent); caret-color: var(--accent);
}
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.skip:focus-visible { outline-color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.lime { color: var(--accent); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
/* Line icons: one 24px grid, 2px round strokes, the colour of the text. */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.label { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.h2 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; hyphens: none;
  font-size: clamp(48px, 6.4vw, 96px); line-height: 0.9; letter-spacing: 0.004em; text-wrap: balance;
}
h3 { hyphens: none; }
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--body); max-width: 34rem; }
.note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.section { padding-block: var(--section); }
.section-title { margin: 0 0 var(--title-gap); display: flex; flex-direction: column; gap: 22px; }
/* Heading lines rise into their own box, like the logo's letters. */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; }

/* ---------- Buttons, badges, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 0;
  font: 650 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, scale 0.1s;
}
.btn:active { scale: 0.97; }
.btn .icon, .arrow-link .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon, .arrow-link:hover .icon { transform: translateX(4px); }
.btn-lime { background: var(--accent); color: var(--on-accent); }
.btn-lime:hover { background: var(--accent-hover); }
.btn-lime:focus-visible, .btn-light:focus-visible { outline-color: var(--ink); }
.btn-ghost { background: var(--pane); border: 1px solid var(--rim-2); color: var(--ink); }
.btn-ghost:hover { background: var(--pane-2); border-color: rgba(255, 255, 255, 0.3); }
.btn-light { background: var(--ink); color: var(--on-accent); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px 0 20px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
[data-magnet] { translate: var(--mx, 0) var(--my, 0); transition: translate 0.5s var(--ease), background-color 0.2s, scale 0.1s; }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 2px 11px 0; vertical-align: 0.1em;
  border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-size: 17px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.badge-quiet { background: transparent; color: var(--body); border: 1px solid var(--rim-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid var(--rim-2); border-radius: var(--r-pill); padding: 4px 14px; font-size: 14px; line-height: 1.2; color: var(--body); background: var(--pane); }
.round-btn {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--pane); border: 1px solid var(--rim-2); transition: background-color 0.2s, opacity 0.2s;
}
.round-btn:hover { background: var(--pane-2); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
/* The arrow, drawn with two borders. */
.round-btn::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg); }
.round-prev::before { transform: translateX(2px) rotate(-135deg); }

/* ---------- Header and bar ---------- */
.top-slot { position: relative; z-index: 30; min-height: var(--bar); animation: fade 0.8s 0.1s var(--ease) backwards; }
.site-top { position: relative; z-index: 30; }
.nav { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 16px; }
.nav > .brand, .nav-main { min-height: var(--bar); }
/* It starts at the top of the window, so its focus ring goes inside, in 6px
   of room that does not move the logo. */
.brand { display: flex; align-items: center; justify-self: start; gap: 11px; min-width: 0; padding-inline: 6px; margin-inline: -6px; text-decoration: none; }
.brand:focus-visible { outline-offset: -3px; }
.brand img { width: 26px; height: 28px; }
.brand-word { flex: none; width: auto; height: 17px; }
.nav-main { display: flex; align-items: center; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--pane); }
.nav > .btn-join { min-height: 44px; margin-left: 8px; }
.menu { display: none; grid-column: 1 / -1; }
.menu > summary {
  position: absolute; top: calc((var(--bar) - 44px) / 2); right: var(--gutter); display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 92px; height: 44px; border-radius: var(--r-pill); background: var(--pane); border: 1px solid var(--rim-2);
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; transition: background-color 0.2s;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--pane-2); }
.menu-icon { position: relative; width: 16px; height: 10px; border-block: 2px solid currentColor; }
.menu[open] .menu-icon { height: 2px; border-bottom: 0; }
.menu-panel {
  margin: 0 0 14px; padding: 8px; border-radius: var(--r-md);
  background: var(--pane-solid); border: 1px solid var(--rim); box-shadow: var(--hi);
}
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel a {
  display: flex; align-items: center; min-height: 56px; padding: 4px 16px 0; border-radius: 14px;
  font-family: var(--display); font-size: 28px; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
}
.menu-panel a:hover { background: var(--pane); }
/* The bar: fixed to the top once the logo is well out of view (home.js).
   Solid, so nothing scrolling under it ever shows through; it slides in
   whole (no fade), so it is opaque on every frame. */
.site-top.is-stuck {
  position: fixed; inset: 0 0 auto; background: #0d0d0d; border-bottom: 1px solid var(--line);
  animation: bar-in 0.24s var(--ease) both;
}
.is-stuck .menu-panel { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); margin-top: 8px; }

/* ---------- Hero ---------- */
/* The real ONE UP logo is the headline, on its own row. Everything else
   sits on the stage below it, in the page flow; nothing is placed over the
   logo and nothing moves up towards it. */
.hero { position: relative; overflow-x: clip; --sh: min(820px, calc(100svh - var(--bar) - 32px)); }
.hero-inner { padding-top: 8px; padding-bottom: clamp(40px, 5vw, 72px); }
.hero-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; margin-bottom: clamp(20px, 3.4vh, 34px); animation: rise-soft 1s 0.05s var(--ease) both;
}
.hero-status { color: var(--body); gap: 10px; }
.dot-live { flex: none; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); animation: pulse 2.4s ease-in-out 2; }

/* The logo, one path per letter. The svg box is the mask: each letter rises
   into it along the logo's own slant (about 12 degrees), with a beat before UP. */
.hero-logo { position: relative; z-index: 3; margin: 0; line-height: 0; }
.hero-logo svg { width: 100%; height: auto; aspect-ratio: 1323 / 183; overflow: hidden; }
.hero-logo .lt { animation: letter 1.2s var(--ease) both; animation-delay: calc(var(--i) * 85ms + 0.2s); }

.hero-stage {
  position: relative; z-index: 1; margin-top: clamp(24px, 3.6vh, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; text-align: center;
}
.hero-left { display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* The words follow the logo closely, so the page reads (and paints) early. */
.hero-lead { max-width: 30rem; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink); animation: rise-soft 1s 0.35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: rise-soft 1s 0.45s var(--ease) both; }
.hero-facts { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1; letter-spacing: 0.08em; color: var(--muted); animation: rise-soft 1s 0.55s var(--ease) both; }

/* Small glass chips: the rest timer, the XP and "works offline". */
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: var(--r-md);
  background: var(--pane-2); border: 1px solid var(--rim); box-shadow: var(--hi), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}
.chip > svg { flex: none; }
.chip-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.chip-label { font-family: var(--display); font-size: 16px; letter-spacing: 0.08em; color: var(--muted); }
.chip-big { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: 0.01em; white-space: nowrap; }
.chip-small { font-size: 14px; color: var(--body); line-height: 1.2; text-align: left; }
.chip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.hero-xp { padding-left: 18px; }
.hero-xp .chip-big { color: var(--ink); }
.hero-offline { font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; }
.hero-rest { animation: pop 0.9s 0.65s var(--ease) both; }
.hero-xp { animation: pop 0.9s 0.75s var(--ease) both; }
.hero-offline { animation: pop 0.9s 0.85s var(--ease) both; }

/* The figure: the app's recovery-map body in dots (home.js draws it). It
   reacts to the mouse or a finger and names the muscle under it; scrolling
   always wins on touch screens (pan-y), and the toolbar home.js adds gives
   the same names to keyboards and screen readers. */
.figure-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.figure-canvas {
  width: min(100%, 560px); height: auto; aspect-ratio: 1.0906;
  touch-action: pan-y pinch-zoom; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
}
.figure-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-size: 18px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.key { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.key-rest { margin-left: 14px; background: var(--dot-rest); }
.figure-hint { margin-left: 14px; color: var(--body); }
:root:not(.figure-live) .figure-canvas, :root:not(.figure-live) .figure-legend { display: none; }
/* The muscle's name and state, in a small glass pill above it. */
.map-label {
  position: absolute; z-index: 4; left: 0; top: 0; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 16px); padding: 7px 13px 7px 11px;
  border-radius: var(--r-pill); background: rgba(20, 20, 20, 0.94); border: 1px solid var(--rim-2); box-shadow: var(--hi), 0 12px 28px -12px rgba(0, 0, 0, 0.9);
  font: 600 14px/1.2 var(--sans); color: var(--ink); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s var(--std), transform 0.18s var(--ease);
}
.map-label.is-on { opacity: 1; }
/* While hidden it moves at once, so it never glides in from its last place. */
.map-label:not(.is-on) { transition: opacity 0.15s var(--std); }
.map-label.is-key { outline: 2px solid var(--accent); outline-offset: 3px; }
.map-label b { font-weight: 700; }
.map-label i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-muscle); }
.map-label[data-s="ready"] i { background: var(--accent); }
.map-label[data-s="rest"] i { background: var(--dot-rest); }
/* The muscle buttons for keys and screen readers (hidden): fixed, so focusing
   one never scrolls the page (inside the pinned stage it would). */
.map-ui { position: fixed; left: 0; top: 0; }

/* The recovery map run (#inside sits inside the hero). */
.inside { width: 100%; text-align: left; }
.run-step, .run-text { display: flex; flex-direction: column; gap: 18px; }
.run-step .h2, .coach-head .h2 { font-size: clamp(44px, 4.6vw, 72px); }
.run-step h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 44px); line-height: 0.95; }
.run-step p:not(.label) { margin: 0; color: var(--body); }
.run-step[data-step="1"] { margin-top: 36px; }
.inside-phone { --hw: 220px; margin: 32px auto 0; }

/* Flow modes (tablets, phones, short windows): the figure only, and the real
   Home screen beside or under the recovery-map words. Without the script
   there is no figure, just the Home screen. */
@media (max-width: 1023.98px), (max-height: 619.98px) {
  .figure-phone { display: none; }
  :root:not(.figure-live) .figure-stage { display: none; }
}
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 768px) and (max-height: 619.98px) {
  .hero-stage { gap: 36px; }
  .inside { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 40px; align-items: center; margin-top: 24px; }
  .inside > .run-step[data-step="0"] { grid-column: 1; grid-row: 1; }
  .inside > .run-step[data-step="1"] { grid-column: 1; grid-row: 2; }
  .inside-phone { --hw: 280px; grid-column: 2; grid-row: 1 / 3; margin: 0 auto; }
  .figure-canvas { width: min(100%, 500px); }
}

/* Hero pinned (laptops): the figure stays put beside the recovery-map steps
   and, between "Know what's ready to train" and "Your day starts on your
   map", zooms down into the real Home screen as you scroll. On tall screens
   the stage sits in the middle of the room under the bar. */
@media (min-width: 1024px) and (min-height: 620px) {
  .hero { --stick: max(calc(var(--bar) + 16px), calc((100svh - var(--sh)) / 2 + var(--bar) / 2)); --tt: max(0px, calc(var(--sh) / 2 - 150px)); }
  .hero-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 40px; row-gap: 28px; justify-items: stretch; align-items: start; text-align: left; }
  .hero-left { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .hero-chips { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .inside { grid-column: 1; grid-row: 3; }
  .figure-stage { grid-column: 2; grid-row: 1 / 4; align-self: start; position: sticky; top: var(--stick); height: var(--sh); display: block; --rail: 0px; }
  .figure-canvas { position: absolute; z-index: 2; left: 0; top: 0; width: calc(100% - var(--rail)); height: 100%; aspect-ratio: auto; }
  /* home.js moves it under the figure (translateY). */
  .figure-legend { position: absolute; z-index: 3; left: 0; right: var(--rail); top: 0; }
  .figure-phone { position: absolute; top: 12px; left: 0; right: var(--rail); margin-inline: auto; --hw: min(380px, calc((var(--sh) - 24px) * 0.4579)); }
  .inside-phone { display: none; }
  .run-step[data-step="0"] { min-height: max(420px, 52svh); padding-top: 64px; margin: 0; }
  /* Room for the whole stage: the docked phone stays whole under the bar. */
  .run-step[data-step="1"] { min-height: calc(var(--sh) + 64px); padding-top: 72px; margin: 0; }
  /* With the script each step's words stay beside the figure: first a pause
     on the map, then a long window for the change (home.js: the larger of
     1100px and 130svh), then the docked phone and its words leave together.
     The zooming phone is cut only at the sides, so it never covers the
     words or the chips. */
  .figure-live .run-text { position: sticky; top: calc(var(--stick) + var(--tt)); }
  .figure-live .run-step[data-step="0"] { min-height: calc(max(1100px, 130svh) + 20svh + 64px); }
  .figure-live .run-step[data-step="1"] { min-height: calc(var(--sh) - var(--tt) + 72px + 30svh); }
  .figure-live .run-step[data-step="1"] > .run-text { min-height: calc(var(--sh) - var(--tt)); }
  .figure-live .figure-stage { clip-path: inset(-100vh var(--rail) -100vh 0); }
  .figure-live .is-morph .figure-canvas { pointer-events: none; }
  .figure-live .is-zoom .figure-phone { will-change: transform, opacity; }
}
/* Wide laptops and screens: two columns; the chips are a rail beside the
   figure, pinned with it (never under the bar). */
@media (min-width: 1200px) and (min-height: 620px) {
  .hero-stage { grid-template-columns: minmax(380px, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(48px, 4vw, 80px); }
  .run-step .h2 { font-size: clamp(44px, 3.9vw, 64px); }
  .inside { grid-row: 2; }
  .figure-stage { grid-row: 1 / 3; --rail: 266px; }
  .hero-chips {
    grid-column: 2; grid-row: 1 / 3; position: sticky; z-index: 3; top: var(--stick); align-self: start; justify-self: end;
    width: 250px; height: var(--sh); flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start;
    padding-top: var(--chips-top, clamp(24px, 8svh, 96px));
  }
  .hero-chips .chip { white-space: nowrap; }
  .hero-chips .hero-xp { margin-left: 24px; }
  .hero-chips .hero-offline { margin-left: 8px; }
}
/* With the script the Home phone stays hidden until the change; home.js then
   sets its zoom and opacity on every frame (so no transitions here). The
   screenshot shows once it is decoded. */
.figure-live .figure-phone { opacity: 0; visibility: hidden; transform-origin: 0 0; transition: none; }
.figure-live .figure-phone .handset-view img { opacity: 0; transition: opacity 0.25s var(--std); }
.figure-live .phone-shown .figure-phone .handset-view img { opacity: 1; }
/* Without the script: the static Home phone arrives softly. */
:root:not(.figure-live) .figure-phone { animation: rise-soft 1s 0.7s var(--ease) both; }

/* ---------- The phone ---------- */
/* A generic modern Android phone, drawn in CSS around the real app
   screenshots. It has one size, --hw (its width); every other measure is in
   --u, 1/440 of that width, and the height comes from the content, so the
   screenshot always shows whole: nothing zoomed, nothing cropped.
     across: 4 frame + 10 bezel + 412 screen + 10 bezel + 4 frame = 440u
     down:   4 + 10 + 28 status bar + 887 screenshot + 18 gesture bar + 10 + 4 = 961u
   so width / height = 440 / 961 = 0.4579. */
.handset { container-type: inline-size; width: var(--hw, 280px); max-width: 100%; flex: none; }
.handset-body { --u: calc(var(--hw, 280px) / 440); position: relative; isolation: isolate; }
@supports (width: 1cqw) {
  .handset-body { --u: calc(100cqw / 440); }
}
/* The shadow has its own layer under the keys, so it never darkens them. */
.handset-body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: calc(56 * var(--u));
  box-shadow:
    calc(10 * var(--u)) calc(36 * var(--u)) calc(64 * var(--u)) calc(-20 * var(--u)) rgba(0, 0, 0, 0.8),
    calc(2 * var(--u)) calc(8 * var(--u)) calc(18 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, 0.55);
}
/* Flat matte aluminium frame, with a hairline outer edge. */
.handset-frame {
  position: relative; z-index: 1; padding: calc(4 * var(--u)); border-radius: calc(56 * var(--u)); background: #2c2c2e;
  box-shadow:
    inset 0 0 0 max(0.5px, calc(0.8 * var(--u))) rgba(255, 255, 255, 0.13),
    inset 0 max(0.5px, calc(0.9 * var(--u))) 0 rgba(255, 255, 255, 0.07);
}
/* The front glass: an even, thin black bezel. */
.handset-glass {
  padding: calc(10 * var(--u)); border-radius: calc(52 * var(--u)); background: #040404;
  box-shadow: 0 0 0 max(0.5px, calc(0.7 * var(--u))) #111112, inset 0 0 0 max(0.5px, calc(0.6 * var(--u))) rgba(255, 255, 255, 0.045);
}
/* The display, in the app's own black. */
.handset-screen { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(42 * var(--u)); background: #0d0d0d; }
.handset-status { display: block; width: 100%; height: auto; aspect-ratio: 412 / 28; }
.handset-nav { position: relative; height: calc(18 * var(--u)); }
.handset-nav::after {
  content: ""; position: absolute; left: 50%; top: calc(7.5 * var(--u)); width: calc(104 * var(--u)); height: max(1px, calc(3.6 * var(--u)));
  margin-left: calc(-52 * var(--u)); border-radius: calc(2 * var(--u)); background: rgba(255, 255, 255, 0.86);
}
/* Power key above the volume rocker, on the right side like Android phones. */
.handset-key {
  position: absolute; z-index: 0; right: calc(-3 * var(--u)); width: calc(6 * var(--u)); border-radius: calc(1.6 * var(--u)); background: #313133;
  box-shadow: inset calc(-0.9 * var(--u)) 0 0 rgba(255, 255, 255, 0.16), inset 0 calc(0.6 * var(--u)) 0 rgba(255, 255, 255, 0.08);
}
.handset-power { top: 25.5%; height: 6.6%; }
.handset-volume { top: 36.5%; height: 12.6%; }
/* The real screenshots, at their own shape (412 x 887). The first is in the
   normal flow and sets the height; the others lie exactly on top of it, so
   changing screens never moves anything. The last 12 units (under the app's
   floating tab bar) fade out, like content scrolling under the gesture bar. */
.handset-view { position: relative; isolation: isolate; }
.handset-view > * { position: relative; display: block; }
.handset-view > * ~ * { position: absolute; left: 0; top: 0; width: 100%; }
.handset-view :is(img, video) {
  display: block; width: 100%; height: auto; aspect-ratio: 412 / 887;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 12 * var(--u)), transparent calc(100% - 1 * var(--u)));
  mask-image: linear-gradient(#000 calc(100% - 12 * var(--u)), transparent calc(100% - 1 * var(--u)));
}
/* A screen recording (README, "Put the real app inside the phone") fills the same shape. */
.handset-view video { object-fit: cover; object-position: top center; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Word band ---------- */
.band { border-block: 1px solid var(--line); overflow: hidden; overflow: clip; padding-block: 26px; display: flex; flex-direction: column; gap: 12px; }
.band-row { margin: 0; display: flex; align-items: center; width: max-content; padding-inline: var(--gutter); white-space: nowrap; font-family: var(--display); text-transform: uppercase; line-height: 0.9; }
.band-a { gap: 0.3em; font-size: clamp(64px, 9vw, 136px); }
.band-a .outline { color: transparent; -webkit-text-stroke: 1.5px var(--outline); }
.band-a b { font-weight: 400; color: var(--accent); -webkit-text-stroke: 0; }
/* Separators lean like the logo. */
.band-a i { flex: none; width: 0.06em; height: 0.56em; background: var(--accent); transform: skewX(-12deg); }
.band-b { gap: 0.55em; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: 0.02em; color: var(--muted); }
.band-b b { font-weight: 400; color: rgba(255, 255, 255, 0.24); }

/* ---------- The tour ---------- */
.tour { position: relative; overflow-x: clip; padding-top: var(--section); --sh: min(820px, calc(100svh - var(--bar) - 32px)); }
.chapter { padding-top: clamp(32px, 4vw, 56px); }
.chapter:first-of-type { padding-top: 0; }
.chapter-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.chapter-head .h2 { font-size: clamp(40px, 4.2vw, 64px); }
.beat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-block: 32px; border-top: 1px solid var(--line); }
.beat-text { display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.beat h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 2.8vw, 44px); line-height: 0.95; letter-spacing: 0.005em; transition: color 0.3s; }
.beat p { margin: 0; color: var(--body); transition: color 0.3s; }
.beat .small { font-size: 15px; }
.beat-label { display: flex; gap: 10px; }
.beat-phone { --hw: 260px; }
.tour-note { padding-top: 32px; }
/* Swipe buttons only where the rows scroll sideways (phones). */
@media (min-width: 768px) {
  .beats-ui { display: none; }
}
.callouts { display: none; }
:root:not(.js) .tour-stage, .js.no-home .tour-stage { display: none; }
@media (max-width: 767.98px), (max-height: 619.98px) {
  .tour-stage { display: none; }
}

/* The shared phone (tour pinned). */
.tour-stage { container-type: inline-size; --hw: min(380px, calc((var(--sh) - 24px) * 0.4579)); }
.tour-stage .handset { --hw: min(380px, calc((var(--sh) - 24px) * 0.4579)); }
.tour-frame { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; }
.tour-word { position: absolute; z-index: -1; left: -60%; right: -60%; top: 22%; height: 1em; overflow: hidden; font-family: var(--display); font-size: clamp(120px, 18vw, 280px); line-height: 1; text-transform: uppercase; color: var(--word); }
.tour-word span { position: absolute; inset: 0; text-align: center; opacity: 0; transform: translateY(100%); transition: opacity 0.2s, transform 0s 0.2s; }
.tour[data-chapter="0"] [data-word="0"], .tour[data-chapter="1"] [data-word="1"],
.tour[data-chapter="2"] [data-word="2"], .tour[data-chapter="3"] [data-word="3"] { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.56s var(--ease); }
.tour-rail { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tour-rail li { min-width: 60px; padding-top: 6px; border-top: 2px solid var(--rim-2); font-family: var(--display); font-size: 15px; line-height: 16px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.tour[data-chapter="0"] .tour-rail li:nth-child(1), .tour[data-chapter="1"] .tour-rail li:nth-child(2),
.tour[data-chapter="2"] .tour-rail li:nth-child(3), .tour[data-chapter="3"] .tour-rail li:nth-child(4) { border-color: var(--accent); color: var(--ink); }
/* Changing screens, like the app: between tabs it fades through black (the
   two never mix); in a flow the new one slides in whole over the old. */
.tour-phone .screen { opacity: 0; transition: opacity 0.12s linear; }
.tour-phone .screen.is-on { opacity: 1; z-index: 2; transition: opacity 0.3s var(--std) 0.1s; }
.tour-phone .screen.is-on.from-right { animation: slide-r 0.45s var(--std) both; transition: none; }
.tour-phone .screen.is-on.from-left { animation: slide-l 0.45s var(--std) both; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .tour-phone:has(.from-right, .from-left) .screen:not(.is-on) { transition: opacity 0s 0.5s; }
}
/* Callouts (wide screens): the screen's own words, level with them, with a
   leader that stops at the phone's edge (it never crosses the screen). */
.callout {
  --lead: calc((100cqw - 48px) * 2 / 7 + 48px - var(--hw) / 2);
  position: absolute; left: 0; top: calc((42 + var(--y)) * var(--hw) / 440); max-width: 100%; margin: 0; padding: 8px 14px;
  font-size: 14px; line-height: 1.3; color: var(--ink); background: var(--pane-2); border: 1px solid var(--rim); border-radius: 18px;
  opacity: 0; translate: 16px -50%; transition: opacity 0.2s var(--ease-in), translate 0s 0.2s;
}
.callout.is-on { opacity: 1; translate: 0 -50%; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); }
.callout::before { content: ""; position: absolute; right: 100%; top: 50%; width: var(--lead); height: 1px; background: rgba(255, 255, 255, 0.22); transform: scaleX(0); transform-origin: right center; transition: transform 0s 0.2s; }
.callout::after { content: ""; position: absolute; top: 50%; right: calc(100% + var(--lead) - 3px); width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0s 0.2s; }
.callout.is-on::before { transform: none; transition: transform 0.4s var(--ease) 0.1s; }
.callout.is-on::after { transform: none; transition: transform 0.2s var(--ease) 0.45s; }

@media (min-width: 768px) and (min-height: 620px) {
  .js:not(.no-home) .tour { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 32px; align-items: start; }
  .js:not(.no-home) .tour > .chapter, .js:not(.no-home) .tour-note { grid-column: 1; }
  .js:not(.no-home) .tour-stage { display: block; grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--bar) + 16px); height: var(--sh); }
  .js:not(.no-home) .beat-phone { display: none; }
  .js:not(.no-home) .beat { display: flex; align-items: center; min-height: max(300px, 34svh); padding-block: 16px; border-top: 0; }
  .js:not(.no-home) .chapter-head { margin-bottom: 0; }
  .js:not(.no-home) .beat:first-child { min-height: max(180px, calc(34svh - 150px)); }
  .js:not(.no-home) #progress .beat:last-child { min-height: max(480px, 60svh); }
  .home-live:not(.no-home) .tour .beat:not(.is-active) :is(h3, p) { color: var(--muted); }
}
@media (min-width: 1024px) and (min-height: 620px) {
  .js:not(.no-home) .tour { column-gap: 40px; }
}
@media (min-width: 1200px) and (min-height: 620px) {
  .js:not(.no-home) .tour { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); column-gap: 48px; }
  .js:not(.no-home) .tour-stage { grid-column: 2 / 4; }
  .js:not(.no-home) .tour .tags { display: none; }
  .js:not(.no-home) .tour .beat-text { max-width: 30em; }
  .tour-frame { width: calc((100cqw - 48px) * 4 / 7); }
  .js:not(.no-home) .callouts { display: block; position: absolute; top: 0; bottom: 0; right: 0; left: calc((100cqw - 48px) * 4 / 7 + 48px); }
}

/* ---------- Plans ---------- */
.plans { overflow-x: clip; }
.plans-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; margin-bottom: var(--title-gap); }
.plans-intro, .plans-side { display: flex; flex-direction: column; gap: 22px; }
.plan-count { margin: 0; font-family: var(--display); font-size: clamp(32px, 3.2vw, 48px); line-height: 0.9; text-transform: uppercase; }
.plan-digits { display: inline-flex; vertical-align: baseline; overflow: hidden; margin-right: 0.3em; padding-top: 0.04em; font-size: clamp(120px, 13vw, 190px); line-height: 0.8; letter-spacing: -0.01em; }
.plan-digits span { display: block; }
.plan-filter .label { margin-bottom: 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button {
  position: relative; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--pane); border: 1px solid var(--rim-2); color: var(--body); font-size: 15px; font-weight: 600; transition: background-color 0.2s, color 0.2s;
}
.filter-chips button:hover { background: var(--pane-2); color: var(--ink); }
.filter-chips [aria-pressed="true"] { background: var(--pane-2); color: var(--ink); }
.filter-chips [aria-pressed="true"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent); }
.plan-foot { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--body); }
.plan-foot li:first-child { color: var(--ink); font-weight: 600; }
.plans-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-left: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter))); }
.plans-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.plans-phone { --hw: 260px; }
.shelf { min-width: 0; }
.plan-shelf {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 232px; gap: 16px;
  margin: 0; padding: 2px var(--gutter) 14px 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.plan-shelf::-webkit-scrollbar { display: none; }
.plan-shelf.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.plan-card {
  scroll-snap-align: start; min-height: 260px; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px;
  background: var(--pane); border: 1px solid var(--rim); border-radius: var(--r-md); box-shadow: var(--hi);
  transition: border-color 0.2s, color 0.2s;
}
.plan-card p { margin: 0; transition: color 0.2s; }
.plan-days { font-family: var(--display); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan-days span { font-size: 64px; line-height: 0.8; letter-spacing: 0; color: var(--ink); }
.plan-name { margin-top: auto !important; font-family: var(--display); font-size: 30px; line-height: 0.95; text-transform: uppercase; }
.plan-meta { font-size: 14px; color: var(--body); }
.plan-bars { display: flex; gap: 5px; margin-top: 6px; }
.plan-bars i { width: 16px; height: 4px; background: rgba(255, 255, 255, 0.3); transform: skewX(-12deg); }
.plan-card.is-dim { order: 1; border-color: var(--line); }
.plan-card.is-dim :is(.plan-days span, .plan-name, .plan-meta) { color: var(--muted); }
.shelf-ui { display: flex; gap: 10px; margin-top: 10px; }

/* ---------- AI coach ---------- */
.coach-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 56px; align-items: start; }
.coach-head { display: flex; flex-direction: column; gap: 22px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; min-width: 0;
  background: var(--pane); border: 1px solid var(--rim); border-radius: var(--r-lg); box-shadow: var(--hi); transition: border-color 0.3s;
}
.tile:hover { border-color: var(--rim-2); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: var(--r-pill); background: var(--pane-2); border: 1px solid var(--rim); }
.tile h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 0.92; letter-spacing: 0.01em; }
.tile p { margin: 0; font-size: 16px; color: var(--body); }
.viewfinder { position: relative; margin-top: auto; height: 132px; border-radius: var(--r-md); background: #060606; border: 1px solid var(--line); overflow: hidden; }
.brackets { position: absolute; inset: 14px; }
.viewfinder .c { position: absolute; width: 22px; height: 22px; border: 2px solid var(--ink); }
.viewfinder .c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 7px 0 0 0; }
.viewfinder .c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 7px 0 0; }
.viewfinder .c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 7px; }
.viewfinder .c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 7px 0; }
.label-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 14px; font-weight: 650; color: var(--on-accent); background: var(--ink); border-radius: var(--r-pill); padding: 7px 14px; }
.swap { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr); align-items: center; gap: 14px; color: var(--muted); }
.swap span { text-align: center; border-radius: var(--r-pill); padding: 13px 10px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: translate 0.5s var(--ease); }
.swap .from { border: 1px dashed var(--rim-2); color: var(--muted); text-decoration: line-through; font-weight: 600; }
.swap .to { background: var(--ink); color: var(--on-accent); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .tile-swap:hover .from, .tile-swap:focus-within .from { translate: calc(100% + 54px) 0; }
  .tile-swap:hover .to, .tile-swap:focus-within .to { translate: calc(-100% - 54px) 0; }
}

/* ---------- How it works (the stairs) ---------- */
.how-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px 56px; align-items: end; }
.stairs { --rise: clamp(32px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; margin: 0; padding: 0; list-style: none; }
.stair {
  min-height: calc(200px + var(--i) * var(--rise)); padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px;
  background: var(--pane); border: 1px solid var(--rim); border-radius: var(--r-lg); box-shadow: var(--hi);
  transition: border-color 0.2s, translate 0.2s var(--ease);
}
.stair .n { font-family: var(--display); font-size: 20px; line-height: 1; letter-spacing: 0.08em; color: var(--muted); }
.stair h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 0.92; letter-spacing: 0.01em; }
.stair p { margin: 0; font-size: 16px; color: var(--body); }
.stair-top { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: none; }
.stair-top .n, .stair-top p { color: rgba(10, 10, 10, 0.78); }
@media (hover: hover) and (pointer: fine) {
  .stair:hover, .stair:focus-within { translate: 0 -6px; border-top-color: rgba(255, 255, 255, 0.34); }
}

/* ---------- Privacy ---------- */
.privacy-head { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rim-2); transition: border-color 0.2s; }
.arrow-link:hover { border-color: var(--accent); }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.promise {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px;
  background: var(--pane); border: 1px solid var(--rim); border-radius: var(--r-lg); box-shadow: var(--hi);
}
.promise-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--pane-2); border: 1px solid var(--rim); }
.promise h3 { margin: 4px 0 10px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 0.92; letter-spacing: 0.01em; }
.promise p { margin: 0; color: var(--body); }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 20px; padding: 30px; background: var(--pane); border: 1px solid var(--rim); border-radius: var(--r-lg); box-shadow: var(--hi); }
.price-pro { background: rgba(255, 255, 255, 0.065); border-color: rgba(106, 192, 6, 0.6); }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.price-title { display: flex; flex-direction: column; gap: 20px; }
.price h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.price .amount { margin: 0; font-family: var(--display); font-size: 96px; line-height: 0.8; }
.price .soon { margin: 0; font-family: var(--display); font-size: 56px; line-height: 0.86; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; color: var(--body); }
.checks li { position: relative; padding-left: 30px; }
/* A small tick, drawn with two borders. */
.checks li::before { content: ""; position: absolute; left: 5px; top: 0.3em; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pricing .note { margin-top: 28px; max-width: 46rem; }

/* ---------- Join ---------- */
.join { border-top: 1px solid var(--line); overflow-x: clip; }
.join-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 48px; align-items: center; }
.join-text-col { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.join-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(72px, 11.5vw, 184px); line-height: 0.86; letter-spacing: 0.005em; }
.jt { display: inline-block; }
.join-text { margin: 0; max-width: 32rem; font-size: 18px; color: var(--body); }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.join-fan { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.fan { --fc: 190px; --fs: 170px; position: relative; width: calc(var(--fc) + var(--fs) * 1.4 + 40px); max-width: 100%; height: calc(var(--fc) / 0.4579 + 44px); }
.fan .handset { position: absolute; top: 34px; left: calc(50% - var(--hw) / 2); --hw: var(--fs); transform-origin: 50% 100%; transition: rotate 0.5s var(--ease); }
.fan .fan-c { --hw: var(--fc); top: 0; z-index: 2; }
.fan .fan-l { transform: translateX(-76%) rotate(-10deg); }
.fan .fan-r { transform: translateX(76%) rotate(10deg); }
@media (hover: hover) and (pointer: fine) {
  .fan:hover .fan-l { rotate: -4deg; }
  .fan:hover .fan-r { rotate: 4deg; }
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; }
.foot-row p { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 14px; color: var(--muted); max-width: 460px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.foot-links a { display: flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--accent); }
/* The real wordmark (the same paths as the header), very large and very dark. */
.foot-word { padding-block: 32px 40px; color: var(--foot-word); }
.foot-word svg { width: 100%; height: auto; overflow: hidden; }
.fw { transform-box: fill-box; }

/* ---------- Motion ---------- */
/* In logo units: from below the svg box, back along the letters' slant. */
@keyframes letter { from { transform: translate(-50px, 236px); } to { transform: none; } }
@keyframes letter-soft { from { opacity: 0; transform: translate(-3px, 14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes bar-in { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes slide-r { from { translate: 6% 0; } }
@keyframes slide-l { from { translate: -6% 0; } }
/* Scroll reveals: up and in along the logo's slant. */
@keyframes rise-in { from { opacity: 0; transform: translate(-10px, 46px); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { transform: translate(-0.1em, 104%); } to { transform: none; } }
/* The second line of a heading waits a beat, then lands with the first. */
@keyframes line-in-late { 0%, 25% { transform: translate(-0.1em, 104%); } to { transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes band-a { from { transform: translateX(0); } to { transform: translateX(-28%); } }
@keyframes band-b { from { transform: translateX(-28%); } to { transform: translateX(0); } }
@keyframes digit-in { from { transform: translate(-0.06em, 100%); } to { transform: none; } }
@keyframes curve { 0% { transform: perspective(900px) rotateY(-14deg) scale(0.94); } 30%, 70% { transform: none; } 100% { transform: perspective(900px) rotateY(14deg) scale(0.94); } }
@keyframes swap-from { to { translate: calc(100% + 54px) 0; } }
@keyframes swap-to { to { translate: calc(-100% - 54px) 0; } }
@keyframes lock-on { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fan-l { from { transform: translateX(-12%) rotate(0deg); } }
@keyframes fan-r { from { transform: translateX(12%) rotate(0deg); } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-8%); } to { opacity: 1; transform: none; } }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
@keyframes word-rise { from { transform: translateY(110%); } to { transform: none; } }

/* Scroll-driven reveals, only where the browser has them. Each part plays as
   it comes into view; a part above the window is always in place. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rise-in var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 240px; }
    .rv-lines { view-timeline-name: --lines; }
    .rv-lines .line > span { animation: line-in var(--ease) both; animation-timeline: --lines; animation-range: entry 0% entry 100%; }
    .rv-lines .line + .line > span { animation-name: line-in-late; }
    .stairs { view-timeline-name: --stairs; }
    .stair { animation: step-in var(--ease) both; animation-timeline: --stairs; animation-range: entry calc(var(--i) * 10%) cover calc(28% + var(--i) * 6%); }
    .price { animation-range: entry calc(var(--i) * 6%) entry calc(240px + var(--i) * 6%); }
    /* The word band slides only while it is scrolled past. */
    .band { view-timeline-name: --band; }
    .band-a { animation: band-a linear both; animation-timeline: --band; animation-range: cover 0% cover 100%; }
    .band-b { animation: band-b linear both; animation-timeline: --band; animation-range: cover 0% cover 100%; }
    .plan-count { view-timeline-name: --digits; }
    .plan-digits span { animation: digit-in var(--ease) both; animation-timeline: --digits; animation-range: entry 10% entry 70%; }
    .plan-digits span + span { animation-range: entry 16% entry 76%; }
    .tile-scan .brackets { animation: lock-on var(--ease) both; animation-timeline: view(); animation-range: entry 40% entry 100%; }
    .draw * { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% entry 70%; }
    .fan { view-timeline-name: --fan; }
    .fan .fan-l { animation: fan-l var(--ease) both; animation-timeline: --fan; animation-range: entry 0% cover 45%; }
    .fan .fan-r { animation: fan-r var(--ease) both; animation-timeline: --fan; animation-range: entry 0% cover 45%; }
    .join-title { view-timeline-name: --join; }
    .jt-a { animation: slide-in-l var(--ease) both; animation-timeline: --join; animation-range: entry 0% entry 80%; }
    .jt-b { animation: slide-in-r var(--ease) both; animation-timeline: --join; animation-range: entry 0% entry 80%; }
    .foot-word { view-timeline-name: --foot; }
    .fw-one { animation: word-rise var(--ease) both; animation-timeline: --foot; animation-range: entry 0% entry 80%; }
    .fw-up { animation: word-rise var(--ease) both; animation-timeline: --foot; animation-range: entry 15% entry 95%; }
  }
  @media (prefers-reduced-motion: no-preference) and (pointer: fine) {
    .plan-card { animation: curve linear both; animation-timeline: view(inline); }
  }
  @media (prefers-reduced-motion: no-preference) and (pointer: coarse) {
    .tile-swap { view-timeline-name: --swap; }
    .tile-swap .from { animation: swap-from var(--ease) both; animation-timeline: --swap; animation-range: entry 60% cover 50%; }
    .tile-swap .to { animation: swap-to var(--ease) both; animation-timeline: --swap; animation-range: entry 60% cover 50%; }
  }
  /* Stacked on phones: each stair rises on its own. */
  @media (prefers-reduced-motion: no-preference) and (max-width: 767.98px) {
    .stair { animation-timeline: view(); animation-range: entry 0% entry 200px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .rv, .stair { animation: fade linear both; animation-timeline: view(); animation-range: entry 0% entry 200px; }
    .jt, .foot-word svg { animation: fade linear both; animation-timeline: view(); animation-range: entry 0% entry 200px; }
  }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 1199.98px) {
  .fan { --fc: 170px; --fs: 150px; }
  /* Heading above the tiles, so the swap pills fit. */
  .coach-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .plans-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (max-width: 1023.98px) {
  .stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stair { min-height: calc(210px + var(--i) * 24px); }
  .join-grid { grid-template-columns: minmax(0, 1fr); }
  .plans-head, .how-head { grid-template-columns: minmax(0, 1fr); }
  .plans-body { grid-template-columns: minmax(0, 1fr); }
  .plans-shot { display: none; }
  .join-text-col { align-items: center; text-align: center; }
  .join-actions { justify-content: center; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-max { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .price-max .checks { border-top: 0; padding-top: 0; }
}
@media (max-width: 900px) {
  .nav-main { display: none; }
  .nav > .btn-join { grid-column: 3; margin-right: 102px; }
  .menu { display: block; }
}
@media (max-width: 767.98px) {
  :root { --bar: 56px; --gutter: 18px; --section: 44px; }
  body { font-size: 16px; line-height: 1.5; }
  .label { font-size: 18px; }
  .site-top:not(.is-stuck) .brand-word { display: none; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-stage { gap: 24px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { padding: 0 20px; }
  .hero-chips { gap: 8px; }
  .chip { gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; }
  .chip > svg { width: 36px; height: 36px; }
  .chip-big { font-size: 30px; }
  .inside-phone { --hw: 200px; }
  .run-step[data-step="1"] { margin-top: 32px; }
  .band { padding-block: 20px; }
  /* Each chapter is a row of cards you swipe; the next card peeks. */
  .chapter-head { margin-bottom: 16px; }
  .beats {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 80vw); gap: 14px; margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .beats::-webkit-scrollbar { display: none; }
  .beats.is-dragging { scroll-snap-type: none; }
  .beat { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border: 1px solid var(--rim); border-radius: var(--r-md); background: var(--pane); scroll-snap-align: start; }
  .beat-phone { order: -1; --hw: min(168px, 46vw); align-self: center; }
  .beat-text { gap: 10px; }
  .beat .tags { display: none; }
  .beats-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
  .beats-dots { display: flex; gap: 6px; }
  .beats-dots i { width: 8px; height: 4px; border-radius: var(--r-pill); background: var(--rim-2); transition: width 0.3s var(--ease), background-color 0.3s; }
  .beats-dots i.is-on { width: 22px; background: var(--ink); }
  .plans-body { padding-left: var(--gutter); }
  .plan-shelf { grid-template-rows: auto; grid-auto-columns: 248px; padding-left: 0; }
  .plan-card { min-height: 220px; }
  .tiles, .promises { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 18px; }
  .tile > :not(.tile-icon) { grid-column: 2; }
  .tile-icon { grid-row: 1 / 3; margin: 0; }
  .viewfinder, .swap { grid-column: 1 / -1 !important; margin-top: 10px; }
  .viewfinder { height: 88px; }
  .promise { gap: 18px; padding: 18px; }
  .tile h3, .promise h3, .stair h3 { font-size: 28px; }
  .tile p, .promise p, .stair p { font-size: 15px; }
  .stairs { grid-template-columns: minmax(0, 1fr); }
  .stair { min-height: 0; margin-left: calc(var(--i) * 12px); padding: 20px 20px 22px; }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .price, .price-max { display: flex; gap: 16px; padding: 20px; }
  .price .amount { font-size: 72px; }
  .price .soon { font-size: 48px; }
  .checks { gap: 8px; padding-top: 16px; font-size: 16px; }
  .fan { --fc: 110px; --fs: 96px; }
  .foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 420px) {
  .hero-offline { display: none; }
  /* The Menu button shows its icon only (its name stays for screen readers). */
  .menu > summary { width: 44px; }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav > .btn-join { margin-right: 54px; padding: 0 16px; }
  .nav > .btn-join .icon { display: none; }
  .brand-word { height: 14px; }
  .is-stuck .brand { min-width: max-content; }
}
@media (max-width: 360px) {
  .brand { gap: 8px; }
  .hero-actions .btn { padding: 0 16px; }
}

/* Reduced transparency: solid panels (the bar and the Menu already are). */
@media (prefers-reduced-transparency: reduce) {
  :root { --pane: var(--pane-solid); --pane-2: #1a1a1a; }
  .map-label { background: var(--pane-solid); }
}
/* More contrast: stronger rims and lighter quiet text. */
@media (prefers-contrast: more) {
  :root { --rim: rgba(255, 255, 255, 0.3); --rim-2: rgba(255, 255, 255, 0.4); --muted: #b9beb5; --line: rgba(255, 255, 255, 0.24); }
}
/* Windows contrast themes (forced colours): the phones and the dot figure are
   pictures, so they keep their own colours; the logo's white letters take
   the theme's text colour. */
@media (forced-colors: active) {
  .handset, .figure-canvas { forced-color-adjust: none; }
  .hero-logo path[fill="#fff"], .brand-word path[fill="#fff"] { fill: CanvasText; }
  .band-a .outline { color: CanvasText; -webkit-text-stroke: 0; }
  :focus-visible { outline-color: Highlight; }
}

/* Reduced motion (for example Windows "Animation effects" turned off): no
   travel, zoom, springs, pulsing or magnet (the map just crossfades into the
   phone as you scroll); everything still arrives, with short fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot-live { animation: none !important; }
  .hero-logo .lt { animation-name: letter-soft; animation-duration: 0.8s; animation-delay: calc(var(--i) * 50ms + 0.1s); }
  .hero-rest, .hero-xp, .hero-offline { animation-name: rise-soft; animation-duration: 0.8s; }
  .hero-lead { animation-delay: 0.3s; }
  .hero-actions { animation-delay: 0.35s; }
  .hero-facts { animation-delay: 0.4s; }
  .hero-rest { animation-delay: 0.5s; }
  .hero-xp { animation-delay: 0.55s; }
  .hero-offline { animation-delay: 0.6s; }
  [data-magnet] { translate: none !important; }
  .site-top.is-stuck { animation: none; }
  .map-label { transition: opacity 0.15s; }
  .btn:hover .icon, .arrow-link:hover .icon { transform: none; }
  .tour-phone .screen.is-on, .tour-phone .screen.is-on.from-right, .tour-phone .screen.is-on.from-left { transition: opacity 0.3s var(--std) 0.1s; animation: none !important; }
  .tour-word span { transform: none !important; transition: opacity 0.3s !important; }
  .callout, .callout.is-on { translate: 0 -50%; transition: opacity 0.2s; }
  .callout::before, .callout::after { transform: none; transition: none; }
  .fan:hover .handset { rotate: none; }
  .stair:hover, .stair:focus-within { translate: none; }
  .swap span { transition: none; }
}
