/* ==========================================================================
   TrueForm marketing site — components and layout.
   Built on assets/ds/tokens.css. No literal hex outside tokens.css.
   ========================================================================== */

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

/* The UA's [hidden] rule loses to any author `display`, so a component that
   sets display (.beta-form is flex) stays on screen when JS hides it. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-200%);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus {
  transform: translateY(0);
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 900px) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: var(--space-12);
  position: relative;
  /* Clear the sticky header when an anchor link jumps here. */
  scroll-margin-top: 68px;
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-24);
  }
}

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

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-head .app-label {
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--space-3);
}

.section-head .web-lead {
  margin-top: var(--space-5);
}

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header {
    background: var(--bg);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark svg,
.wordmark img {
  height: 22px;
  width: auto;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  padding: 0 var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-instant) var(--ease-out),
    border-color var(--dur-instant) var(--ease-out),
    transform var(--dur-instant) var(--ease-out);
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-accent);
  height: var(--control-height);
}
.btn--primary:hover {
  background: var(--primary-pressed);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  height: var(--control-height);
}
.btn--secondary:hover {
  border-color: var(--line-control);
  background: var(--surface);
}

.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  padding-inline: var(--space-3);
  font-weight: 500;
}
.btn--quiet:hover {
  color: var(--ink);
}

.btn--sm {
  min-height: 38px;
  height: 38px;
  font-size: 15px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-sm);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

@media (max-width: 599px) {
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row .btn {
    width: 100%;
  }
}

/* --- Trust line ----------------------------------------------------------- */
.trust-line {
  margin-top: var(--space-5);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .card {
    padding: var(--space-6);
  }
}

.card__label {
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--space-3);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 26px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 26px;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.hero__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-16);
  }
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero .web-lead {
  max-width: 34ch;
}

.hero__cta {
  margin-top: var(--space-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: var(--radius-full);
  padding: 6px var(--space-3);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* --- Phone frame + HUD ---------------------------------------------------- */
.phone {
  --phone-w: 340px;
  width: var(--phone-w);
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -24px #000000b3;
}

@media (min-width: 1000px) {
  .phone {
    --phone-w: 360px;
    margin-inline: 0 auto;
  }
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0c0f;
  isolation: isolate;
}

.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #000;
  z-index: 9;
}

/* The camera "feed": a graphite gym scene stand-in. Flat fills only,
   per the DS performance rule for the live screen. */
.hud {
  position: absolute;
  inset: 0;
  font-family: var(--font-ui);
}

.hud__feed {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 80% at 50% 12%,
      #1b2027 0%,
      #0f1216 55%,
      #090b0e 100%
    );
}

.hud__feed::after {
  /* single-source gym light from the top-left, desaturated to graphite */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, #ffffff0f 0%, transparent 42%);
}

.hud__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, #05070980 60%, #050709);
}

/* Scrims — full strength for the first 30-40%, faded out by 36% of frame */
.hud__scrim--top,
.hud__scrim--bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 36%;
  pointer-events: none;
  z-index: 3;
}
.hud__scrim--top {
  top: 0;
  background: linear-gradient(180deg, var(--hud-scrim) 0%, transparent 100%);
}
.hud__scrim--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--hud-scrim) 0%, transparent 100%);
}

/* The athlete + skeleton overlay occupy the central 50% width */
.hud__pose {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Form verdict frame: a thick stroke plus a wider glow stroke at 35% */
.hud__frame {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: 38px;
  border: var(--frame-phone) solid var(--verdict, var(--hud-warn));
  box-shadow: inset 0 0 0 14px
    color-mix(in srgb, var(--verdict, var(--hud-warn)) 35%, transparent);
  transition: border-color var(--dur-verdict) var(--ease-in-out),
    box-shadow var(--dur-verdict) var(--ease-in-out);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .hud__frame {
    box-shadow: none;
  }
}

/* Verdict pill: solid signal colour, on-signal text, plus an icon */
.hud__verdict-pill {
  position: absolute;
  top: calc(var(--hud-inset) + var(--frame-phone) + 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--verdict, var(--hud-warn));
  color: var(--hud-on-signal);
  padding: 7px var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background var(--dur-verdict) var(--ease-in-out);
}

.hud__verdict-pill svg {
  width: 15px;
  height: 15px;
}

/* Zones */
.hud__zone {
  position: absolute;
  z-index: 6;
}
.hud__zone--tl {
  top: calc(var(--hud-inset) + var(--frame-phone) + 58px);
  left: calc(var(--hud-inset) + var(--frame-phone));
}
.hud__zone--tr {
  top: calc(var(--hud-inset) + var(--frame-phone) + 58px);
  right: calc(var(--hud-inset) + var(--frame-phone));
}
.hud__zone--bl {
  bottom: calc(var(--hud-inset) + var(--frame-phone));
  left: calc(var(--hud-inset) + var(--frame-phone));
}
.hud__zone--br {
  bottom: calc(var(--hud-inset) + var(--frame-phone));
  right: calc(var(--hud-inset) + var(--frame-phone));
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}

/* Glass panels */
.glass {
  background: var(--hud-glass);
  border: 1px solid var(--hud-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--hud-ink);
}

.glass--strong {
  background: var(--hud-glass-strong);
}

.hud__label {
  color: var(--hud-ink-2);
  display: block;
  margin-bottom: 3px;
}

/* Stat bar: detected exercise + confidence meter + muscle chip */
.hud__statbar {
  min-width: 132px;
}

.hud__exercise {
  color: var(--hud-ink);
}

.hud__conf {
  margin-top: var(--space-2);
  height: 3px;
  border-radius: var(--radius-full);
  background: #ffffff2e;
  overflow: hidden;
}

.hud__conf-fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: var(--hud-ink);
  animation: conf-fill 5.6s var(--ease-out) infinite;
}

@keyframes conf-fill {
  0%,
  4% {
    width: 12%;
  }
  18%,
  100% {
    width: 91%;
  }
}

.hud__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  background: var(--hud-muscle);
  color: var(--hud-on-signal);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Live score cell */
.hud__score {
  text-align: right;
  min-width: 62px;
}
.hud__score .hud-value {
  color: var(--verdict, var(--hud-warn));
  transition: color var(--dur-verdict) var(--ease-in-out);
}

/* Rep counter with its own radial scrim puddle */
.hud__reps {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  color: var(--hud-ink);
}

.hud__reps::before {
  content: "";
  position: absolute;
  left: -34px;
  top: -34px;
  right: -46px;
  bottom: -30px;
  background: radial-gradient(
    60% 60% at 36% 50%,
    var(--hud-scrim) 0%,
    transparent 100%
  );
  z-index: -1;
}

.hud__reps .hud-rep {
  animation: rep-pop var(--dur-pop) var(--ease-pop);
}

.hud__reps .hud-rep-target {
  color: var(--hud-ink-2);
  padding-bottom: 10px;
}

@keyframes rep-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Control cluster */
.hud__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hud__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--hud-glass);
  border: 1px solid var(--hud-line);
  color: var(--hud-ink);
}
.hud__btn svg {
  width: 18px;
  height: 18px;
}
.hud__btn--end {
  background: var(--hud-bad);
  border-color: transparent;
  color: var(--hud-on-signal);
}

/* Cue toast */
.hud__cue {
  position: absolute;
  z-index: 7;
  left: calc(var(--hud-inset) + var(--frame-phone));
  right: calc(var(--hud-inset) + var(--frame-phone));
  top: 40%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--hud-glass-strong);
  border: 1px solid var(--hud-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

/* Portrait: the cue sits under the stat bar and score, centred — never over
   the athlete, who owns the central 50% between shoulders and knees. */
.hud__cue {
  top: 27%;
}

.hud__cue-disc {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--hud-warn);
  color: var(--hud-on-signal);
}
.hud__cue-disc svg {
  width: 17px;
  height: 17px;
}

.hud__cue .hud-cue {
  font-size: 17px;
  line-height: 21px;
  color: var(--hud-ink);
}

/* --- The animated loop: amber -> green as depth is fixed ------------------ */
.hud--loop {
  --verdict: var(--hud-warn);
  animation: verdict-cycle 5.6s steps(1, end) infinite;
}

@keyframes verdict-cycle {
  0%,
  52% {
    --verdict: var(--hud-warn);
  }
  53%,
  100% {
    --verdict: var(--hud-good);
  }
}

/* Correction arrows fade out once form is good */
.hud--loop .pose-arrow {
  animation: arrow-life 5.6s var(--ease-in-out) infinite;
}

@keyframes arrow-life {
  0%,
  50% {
    opacity: 1;
    transform: translate(0, 0);
  }
  56%,
  100% {
    opacity: 0;
    transform: translate(0, 6px);
  }
}

.hud--loop .pose-joint--off {
  animation: joint-life 5.6s var(--ease-in-out) infinite;
}

@keyframes joint-life {
  0%,
  50% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

.hud--loop .pose-figure {
  animation: lift 5.6s var(--ease-in-out) infinite;
  transform-origin: 50% 100%;
}

@keyframes lift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.hud--loop .hud__reps .hud-rep {
  animation: rep-pop var(--dur-pop) var(--ease-pop) infinite;
  animation-duration: 5.6s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hud--loop,
  .hud--loop *,
  .hud__conf-fill {
    animation: none !important;
  }
  .hud--loop {
    --verdict: var(--hud-warn);
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Annotated HUD (section 2) -------------------------------------------- */
.annotated {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .annotated {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: var(--space-16);
  }
}

.callouts {
  display: grid;
  gap: var(--space-2);
  counter-reset: callout;
}

.callout {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.callout__num {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-numeric);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.callout p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
}

/* --- Capability rows ------------------------------------------------------ */
.caprow {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-12);
}

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

@media (min-width: 900px) {
  .caprow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }
  .caprow--flip .caprow__text {
    order: 2;
  }
}

.caprow h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

.caprow p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 28px;
  max-width: 46ch;
}

.caprow p + p {
  margin-top: var(--space-4);
}

/* Demo panels used beside each capability row */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  place-items: center;
  min-height: 300px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo--dark {
  background: #0a0c0f;
  border-color: var(--hud-line);
}

/* detection chip resolving */
.detect {
  width: 100%;
  max-width: 300px;
  display: grid;
  gap: var(--space-4);
}

.detect__panel {
  background: var(--hud-glass);
  border: 1px solid var(--hud-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--hud-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 7px var(--space-3);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 18px;
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--muscle);
  flex-shrink: 0;
}

.chip--muscle {
  background: var(--muscle-soft);
  border-color: transparent;
  color: var(--muscle);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* rest screen / score tiles */
.scoretiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
}

@media (max-width: 420px) {
  .scoretiles {
    grid-template-columns: 1fr;
  }
}

.tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  text-align: center;
}

.tile--good {
  background: var(--good-soft);
  border-color: transparent;
}
.tile--warn {
  background: var(--warn-soft);
  border-color: transparent;
}

.tile__label {
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--space-2);
}

.tile__value {
  font-family: var(--font-numeric);
  font-size: 40px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.tile--good .tile__value {
  color: var(--good);
}
.tile--warn .tile__value {
  color: var(--warn);
}

/* rest ring */
.ring {
  display: grid;
  place-items: center;
  position: relative;
  width: 132px;
  height: 132px;
}
.ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring__time {
  font-family: var(--font-numeric);
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* thumbs up demo */
.thumb-demo {
  display: grid;
  gap: var(--space-5);
  place-items: center;
  text-align: center;
}

.thumb-demo__disc {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.thumb-demo__disc svg {
  width: 40px;
  height: 40px;
}

/* --- Pipeline diagram ----------------------------------------------------- */
.pipeline {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

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

.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

@media (min-width: 860px) {
  .stage {
    border-radius: 0;
    border-left: none;
  }
  .stage:first-child {
    border-left: 1px solid var(--line);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  .stage:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }
  .stage + .stage::before {
    content: "";
    position: absolute;
    left: -1px;
    top: var(--space-5);
    bottom: var(--space-5);
    width: 1px;
    background: var(--line);
  }
}

.stage__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  display: block;
  margin-bottom: var(--space-3);
}

.stage h3 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 22px;
  font-weight: 650;
  margin-bottom: var(--space-2);
}

.stage p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 21px;
}

.prose {
  max-width: 68ch;
}
.prose p {
  color: var(--ink-2);
  margin-bottom: var(--space-5);
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 28px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: var(--space-8) 0 var(--space-3);
}
.prose ul {
  margin-bottom: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.prose ul li {
  color: var(--ink-2);
  padding-left: var(--space-5);
  position: relative;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 1px;
  background: var(--ink-3);
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Privacy band --------------------------------------------------------- */
.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

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

.promise {
  display: grid;
  gap: var(--space-4);
}

.promise__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.promise__icon svg {
  width: 23px;
  height: 23px;
}

.promise h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.promise p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 26px;
}

/* --- Setup steps ---------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-6);
}

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

.step__art {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.step__art svg {
  width: 100%;
  height: 100%;
}

.step__n {
  font-family: var(--font-numeric);
  font-size: 15px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 26px;
}

.dont-need {
  margin-top: var(--space-8);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  align-items: center;
}

.dont-need span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
}

.dont-need svg {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* --- Exercise coverage ---------------------------------------------------- */
.coverage {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 700px) {
  .coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .coverage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.group__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-3);
  margin-bottom: var(--space-3);
}

.group__name .dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--muscle);
}

.group ul {
  display: grid;
  gap: var(--space-2);
}

.group li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}

/* --- Stats row ------------------------------------------------------------ */
.statrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .statrow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.statrow .tile {
  text-align: left;
  background: var(--surface);
}

/* --- CTA band ------------------------------------------------------------- */
.cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta__inner {
  max-width: 680px;
  margin-inline: auto;
}

.cta h2 {
  margin-bottom: var(--space-5);
}

.cta .btn-row {
  justify-content: center;
}

.cta .trust-line {
  margin-top: var(--space-6);
}

.disclaimer {
  margin-top: var(--space-6);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 20px;
}

/* --- Beta form ------------------------------------------------------------ */
.beta-form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  max-width: 480px;
}

.cta .beta-form {
  margin-inline: auto;
}

@media (max-width: 599px) {
  .beta-form {
    flex-direction: column;
  }
  .beta-form .btn {
    width: 100%;
  }
}

.field {
  flex: 1;
  min-width: 0;
}

.field input {
  width: 100%;
  height: var(--control-height);
  background: var(--surface-2);
  border: 1px solid var(--line-control);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
}

.field input::placeholder {
  color: var(--ink-3);
}

.field input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--line-control);
}

.form-msg {
  margin-top: var(--space-4);
  font-size: 15px;
  line-height: 22px;
  min-height: 22px;
}
.form-msg[data-state="good"] {
  color: var(--good);
}
.form-msg[data-state="bad"] {
  color: var(--bad);
}
.form-msg[data-state="pending"] {
  color: var(--ink-2);
}

/* --- FAQ ------------------------------------------------------------------ */
.faq {
  display: grid;
  gap: var(--space-6);
  max-width: 820px;
}

@media (min-width: 860px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: var(--space-8) var(--space-16);
  }
}

.faq__item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 25px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

.faq__item p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 26px;
}

.faq__item p + p {
  margin-top: var(--space-3);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-12);
  background: var(--bg);
}

.site-footer__top {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: var(--space-16);
  }
}

.site-footer__blurb {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 26px;
  margin-top: var(--space-4);
  max-width: 36ch;
}

.site-footer h4 {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer nav ul {
  display: grid;
  gap: var(--space-3);
}

.site-footer nav a {
  color: var(--ink-2);
  font-size: 16px;
}
.site-footer nav a:hover {
  color: var(--ink);
}

.site-footer__legal {
  padding-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 20px;
}

@media (min-width: 860px) {
  .site-footer__legal {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

.site-footer__legal p {
  max-width: 76ch;
}

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Sub-page header ------------------------------------------------------ */
.page-head {
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}

.page-head .web-h1 {
  margin-bottom: var(--space-5);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.toc a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 7px var(--space-4);
  color: var(--ink-2);
  font-size: 14px;
}
.toc a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  text-decoration: none;
}

.updated {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
