/* WOD BOD design system (dark theme): orange-500 brand, near-black surfaces, white ink. */
:root {
  --orange-500: #FB5000;
  --orange-700: #C43F00;
  --surface: #1A1A1A;
  --surface-raised: #252525;
  --surface-sunken: #141414;
  --ink: #FFFFFF;
  --ink-soft: #DADAD4;
  --ink-muted: #BDBDB6;
  --ink-faint: #8C8C86;
  --line: #3A3A38;
  --line-strong: #5A5A55;
  --on-accent: #1A1A1A;
  --signal-pass: #6CA6E0;
  --signal-fail: #FB5000;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--orange-500); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap, .wrap-md, .wrap-sm { margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; }
.wrap-md { max-width: 1000px; }
.wrap-sm { max-width: 760px; }
@media (min-width: 700px) { .wrap, .wrap-md, .wrap-sm { padding-left: 24px; padding-right: 24px; } }
.section-pad { padding-block: 72px; }
.section-pad-sm { padding-block: 48px 72px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 28px; }
.split > * { flex: 1 1 340px; min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.align-start { align-self: flex-start; }
.band { background: var(--surface-raised); border-block: 1px solid var(--line); padding-block: 72px; }

/* Type */
.display, .h1, .h2, .h3, .step-num, .test-num, .stat, .summary-num { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; margin: 0; text-wrap: balance; }
.display { font-size: clamp(44px, 7vw, 72px); line-height: 0.95; }
.h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1; }
.h2 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.05; }
.h3 { font-size: 22px; line-height: 1.1; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34rem; margin: 0; }
.muted { color: var(--ink-soft); margin: 0; }
.faint { color: var(--ink-faint); margin: 0; }
.small { font-size: 14px; }
.strong { font-weight: 600; }
.accent { color: var(--orange-500); }
.pass-text { color: var(--signal-pass); }
.error-text { color: var(--orange-500); margin: 0; font-size: 15px; }
.label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); }
.label-ink { color: var(--ink); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow-accent { color: var(--orange-500); }
.step-num { font-size: 40px; line-height: 1; color: var(--orange-500); }
.test-num { font-size: 44px; line-height: 1; color: var(--orange-500); }
.stat { font-size: 34px; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-soft); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.header-row { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.logo { width: 200px; height: 46px; object-fit: cover; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; }
.stepper { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.stepper li { padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink-soft); }
.stepper li.done { border-color: var(--signal-pass); color: var(--signal-pass); }
.stepper li.active { background: var(--orange-500); border-color: var(--orange-500); color: var(--on-accent); font-weight: 600; }
.demo-banner { background: #3A2A20; color: #FFD9C2; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid #6B3A1E; }

/* Buttons */
.btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--orange-500); color: #FFFFFF; }
.btn-primary:hover { background: #FF6A1F; color: #FFFFFF; }
.btn-primary:disabled { background: var(--line); color: var(--ink-faint); cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { border-color: var(--orange-500); color: var(--orange-500); }
.btn-ghost { background: transparent; color: var(--ink-soft); text-decoration: underline; padding-inline: 8px; }

/* Cards */
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.cta-card { background: var(--surface-raised); border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta-card > .stack-sm { flex: 1 1 380px; }

/* Landing */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero > * { flex: 1 1 420px; min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--line); }
.waitlist { border: 2px solid var(--orange-500); scroll-margin-top: 90px; }
/* Mailchimp waitlist form, themed to the page */
.waitlist-form { position: relative; }
#mc_embed_signup .mc-field-group { display: flex; flex-direction: column; gap: 6px; }
#mc_embed_signup label { font-size: 14px; font-weight: 600; color: var(--ink); }
#mc_embed_signup input[type="email"] { font: inherit; font-size: 17px; color: var(--ink); background: var(--surface-sunken); border: 2px solid #FB5000; border-radius: var(--radius-sm); padding: 14px 16px; min-height: 52px; width: 100%; box-sizing: border-box; }
#mc_embed_signup input[type="email"]::placeholder { color: var(--ink-faint); }
#mc_embed_signup input[type="email"]:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
#mc_embed_signup input.mce_inline_error { border-color: #FF8A5C; }
#mc_embed_signup div.mce_inline_error { margin-top: 6px; color: #FF8A5C; font-size: 14px; font-weight: 600; background: none; padding: 0; }
#mc_embed_signup #mc-embedded-subscribe { width: 100%; }
#mc_embed_signup .response { font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); }
#mc_embed_signup #mce-success-response { color: var(--on-accent); background: var(--signal-pass); }
#mc_embed_signup #mce-error-response { color: var(--ink); border: 2px solid #FB5000; }
#mc_embed_signup #mce-error-response a { color: var(--ink); }
.test-card { padding: 0; overflow: hidden; }
.test-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.test-card .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.test-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.test-card strong { color: var(--ink); font-weight: 600; }
.footer { border-top: 1px solid var(--line); }
.footer-row { padding-block: 28px; color: var(--ink-faint); font-size: 14px; }

/* Upload */
.segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.segments div { height: 8px; border-radius: var(--radius-pill); background: var(--line); }
.segments .current { background: var(--orange-500); }
.segments .done { background: var(--signal-pass); }
.segments .skipped { background: var(--line-strong); }
.title-row { display: flex; align-items: center; gap: 14px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.upload-col { display: flex; flex-direction: column; gap: 12px; }
.dropzone { flex: 1; min-height: 300px; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-sunken); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; color: var(--ink); }
.dropzone:hover, .dropzone.drag { border-color: var(--orange-500); }
.drop-title { font-size: 17px; font-weight: 600; }
.uploaded { flex: 1; min-height: 300px; border: 2px solid var(--signal-pass); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.uploaded img { width: 100%; max-width: 280px; border-radius: var(--radius-sm); }
.reading { min-height: 300px; display: flex; gap: 12px; align-items: center; justify-content: center; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-soft); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--orange-500); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Upload slots: one card per side */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.slot { background: var(--surface-sunken); border: 1px solid var(--line); border-top: 4px solid var(--line-strong); border-radius: var(--radius-md); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.slot-done { border-top-color: var(--signal-pass); }
.slot-head { display: flex; flex-direction: column; gap: 2px; }
.slot-label { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; }
.slot-hint { margin: 0; color: var(--ink-soft); font-size: 15px; min-height: 2.9em; }
.slot-drop { font: inherit; color: var(--ink); min-height: 170px; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); background: transparent; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 16px; cursor: pointer; }
.slot-drop:hover, .slot-drop.drag { border-color: var(--orange-500); color: var(--orange-500); }
.slot-reading { min-height: 170px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--ink-soft); border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); }
.slot-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.slot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slot-file { overflow-wrap: anywhere; }
.stack-xs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.label-accent { color: var(--orange-500); }

/* Results grouped by test */
.test-section { gap: 14px; scroll-margin-top: 90px; }
.test-section-head { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.side-label { color: var(--ink); }

/* Analysis */
.bar { height: 12px; background: var(--surface-raised); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--orange-500); transition: width 0.4s ease; }
.status-list { margin: 0; padding: 0; list-style: none; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.status-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list .msg { flex-basis: 100%; color: var(--ink-soft); font-size: 14px; margin: 0; }
.pill { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.pill-wait { border: 1px solid var(--line-strong); color: var(--ink-muted); }
.pill-now { background: var(--orange-500); color: var(--on-accent); }
.pill-done { background: var(--signal-pass); color: var(--on-accent); }
.pill-fail { background: var(--signal-fail); color: var(--on-accent); }
.pill-flag { border: 2px solid var(--signal-fail); color: var(--signal-fail); }
.pill-pass { background: var(--signal-pass); color: var(--on-accent); }
.pill-skip { border: 1px solid var(--line-strong); color: var(--ink-muted); }

/* Loading */
.screen-loading { min-height: calc(100vh - 68px); }
.loading-wrap { max-width: 640px; margin: 0 auto; padding: 40px 16px 72px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.loading-logo { width: 420px; max-width: 90%; height: 120px; object-fit: cover; }
.ring { --deg: 0deg; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(var(--orange-500) var(--deg), #2B2B29 0deg); display: flex; align-items: center; justify-content: center; }
.ring-inner { width: 168px; height: 168px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 56px; }
.check-list { margin: 0; padding: 0; list-style: none; width: 100%; max-width: 420px; text-align: left; }
.check-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #2B2B29; }
.check-list .waiting { color: var(--ink-faint); }

/* Results */
.summary { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.summary-main { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); }
.summary-num { font-size: 64px; line-height: 1; color: var(--ink); }
.summary-tiles { flex: 3 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.summary-tiles a { text-decoration: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.summary-tiles a:hover { border-color: var(--orange-500); }
.result-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-wrap: wrap; gap: 28px; scroll-margin-top: 90px; }
.result-frames { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-frames figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.result-frames figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.result-frames canvas { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--surface-sunken); }
.result-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.result-angle { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result-angle .big { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; }
.comp-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.comp-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.comp-list .mark { flex: none; font-family: var(--font-mono); font-size: 12px; padding-top: 3px; width: 36px; }
.comp-list .yes { color: var(--signal-fail); }
.comp-list .no { color: var(--signal-pass); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--orange-500); color: var(--orange-500); border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 600; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spinner { animation: none; } .bar-fill { transition: none; } }
/* Waitlist pop-up */
.modal { width: min(440px, calc(100% - 32px)); padding: 32px 28px 28px; color: var(--ink); background: var(--surface-raised); border: 2px solid var(--orange-500); border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal::backdrop { background: rgba(0, 0, 0, 0.7); }
.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--ink-muted); background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-close:focus-visible { outline: 3px solid var(--ink); }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
/* Hero button note, and the Signal / Why I built this text sections */
.hero-actions { align-items: flex-start; }
.cta-stack { display: flex; flex-direction: column; gap: 8px; }
.cta-note { margin: 0; font-size: 14px; color: var(--ink-faint); }
#mc_embed_signup .cta-note { text-align: center; }
.prose { max-width: 40rem; }
.prose p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.prose .prose-lead { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.prose .signoff { font-size: 15px; color: var(--ink-faint); }

/* Sample result on the squat test cards (challenge page) */
.result-shot { position: relative; }
.result-tag { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: rgba(0,0,0,0.75); color: #fff; padding: 4px 10px; border-radius: var(--radius-pill); }
.result-mini { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.result-head { display: flex; justify-content: space-between; align-items: center; }
.result-mini ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.result-mini li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.result-mini .mark { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; min-width: 30px; padding-top: 2px; }
.result-mini .mark.yes { color: var(--signal-fail); font-weight: 600; }
.result-mini .mark.no { color: var(--ink-muted); }
.result-legend { display: flex; gap: 18px; padding: 10px 22px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.result-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.sw-bar { border-color: #FB5000; }
.sw-mid { border-color: #FFC93C; border-top-style: dashed; }
.sw-fault { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: radial-gradient(#FB5000 0 35%, transparent 40%); }
.test-card .result-shot img { border-bottom: 0; }
.test-card .result-shot img { aspect-ratio: 4 / 3; }

/* Squat sample results: You vs Target ring cards (same design as the app's result screen) */
.result-targets { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.target-cards { display: flex; flex-direction: column; gap: 8px; }
.target-card { background: var(--surface); border-radius: var(--radius-md); padding: 14px; display: flex; gap: 12px; align-items: center; }
.target-ring { --pct: 0%; flex: none; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--signal-fail) 0 var(--pct), var(--line) var(--pct) 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.target-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.target-ring span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.target-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.target-info strong { font-size: 15px; color: var(--ink); }
.target-nums { display: flex; gap: 14px; }
.target-nums > span { display: flex; flex-direction: column; }
.target-nums .label, .target-gap .label { font-size: 10px; letter-spacing: 1px; }
.target-nums .num { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 24px; color: var(--ink); }
.target-nums .num.muted { color: var(--ink-muted); font-weight: 600; }
.target-gap { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding-left: 12px; border-left: 1px solid var(--line); }
.target-gap .big { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 34px; color: var(--signal-fail); }
.target-gap .big small { font-size: 18px; }

/* Fault dots on the sample results: orange core, pulsing red halo (same as the app) */
.result-shot .fault-mark { position: absolute; width: 0; height: 0; pointer-events: none; }
.fault-mark::before, .fault-mark::after { content: ""; position: absolute; left: 0; top: 0; border-radius: 50%; }
.fault-mark::before { width: 26px; height: 26px; background: radial-gradient(rgba(255,59,59,0.9), rgba(255,59,59,0) 70%); transform: translate(-50%, -50%) scale(0.8); opacity: 0.35; animation: fault-halo 1.8s ease-in-out var(--d, 0s) infinite; }
.fault-mark::after { width: 9px; height: 9px; background: var(--orange-500); border: 1.5px solid #fff; transform: translate(-50%, -50%); }
@keyframes fault-halo { 0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.35; } 50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.8; } }
.result-legend .key-title { color: var(--ink); }
.sw-dot { position: relative; width: 12px; height: 12px; border: 0; }
.sw-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(rgba(255,59,59,0.9), rgba(255,59,59,0) 70%); transform: translate(-50%, -50%) scale(0.8); animation: fault-halo 1.8s ease-in-out infinite; }
.sw-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); border: 1.5px solid #fff; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .fault-mark::before, .sw-dot::before { animation: none; opacity: 0.6; } }

/* Squat sample score */
.score-chip { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink-muted); }
.score-chip b { font-size: 36px; color: var(--orange-500); }

/* Squat sample: the remaining checks, each worth a point */
.other-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.other-checks .label { font-size: 11px; letter-spacing: 1px; }
.other-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.other-checks li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink); }
.other-checks .mark { flex: none; width: 54px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; }
.other-checks .mark.met { color: var(--signal-pass); }
.other-checks .mark.missed { color: var(--signal-fail); }

/* Squat section: film, analyze, score path (scan reveal in step 2) */
.flow { position: relative; max-width: 460px; margin: 4px 0 28px; }
.flow-title { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 34px; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.flow-steps { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; display: flex; flex-direction: column; gap: 24px; }
.flow-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.flow-num { position: absolute; left: -46px; top: 0; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--orange-500); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); z-index: 1; }
.flow-num.last { background: var(--orange-500); color: var(--on-accent); border: 0; }
.flow-row { display: flex; gap: 14px; align-items: center; }
.flow-thumb { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; flex: none; display: block; }
.flow-text { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.flow-text strong { font-size: 16px; color: var(--ink); }
.flow-text > span:last-child:not(.flow-label) { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.flow-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange-500); }
.flow-scan { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.flow-scan > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-reveal { position: absolute; inset: 0; background: rgba(12,12,12,0.18); animation: flow-reveal 6s ease-in-out infinite; }
.flow-reveal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-tags { position: absolute; left: 59.8%; top: 9%; display: flex; flex-direction: column; gap: 7px; }
.flow-tags span { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(12,12,12,0.82); font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.flow-tags i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange-500); }
.flow-scan .fault-mark { position: absolute; width: 0; height: 0; }
.flow-scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orange-500); box-shadow: 0 0 14px 4px rgba(251,80,0,0.6); animation: flow-scan 6s ease-in-out infinite; }
.flow-chip { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 10px; background: rgba(12,12,12,0.9); font-size: 14px; font-weight: 600; color: #fff; animation: flow-chip 6s ease-in-out infinite; }
.flow-score { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-muted); }
.flow-score b { font-size: 26px; color: var(--orange-500); }
.flow-score.big b { font-size: 34px; }
.flow-legend { border: 0; padding: 0; }
.flow-result { background: var(--surface-raised); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.flow-result-head { display: flex; justify-content: space-between; align-items: center; }
.flow-gap { display: flex; gap: 12px; align-items: center; }
.flow-gap .target-ring { width: 46px; height: 46px; }
.flow-gap .target-ring::before { background: var(--surface-raised); }
.flow-gap .target-ring span { font-size: 14px; }
.flow-gap .name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.flow-gap .gap { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--orange-500); }
.flow-gap .gap small { font-size: 16px; }
.flow-pulse { position: absolute; left: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 10px 3px rgba(251,80,0,0.6); animation: flow-travel 6s ease-in-out infinite; z-index: 2; }
@keyframes flow-travel { 0% { top: 70px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 60px); opacity: 0; } }
@keyframes flow-reveal { 0%, 10% { clip-path: inset(0 0 100% 0); opacity: 1; } 55%, 88% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes flow-scan { 0%, 10% { top: 0%; opacity: 1; } 55% { top: 100%; opacity: 1; } 56%, 100% { top: 100%; opacity: 0; } }
@keyframes flow-chip { 0%, 56% { opacity: 0; transform: translateY(8px); } 64%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .flow-reveal, .flow-chip, .flow-pulse, .flow-scanline { animation: none; }
  .flow-reveal { clip-path: none; opacity: 1; }
  .flow-chip { opacity: 1; transform: none; }
  .flow-scanline, .flow-pulse { display: none; }
}

/* Squat section header (layout AA) */
.squat-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.squat-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 56px; text-transform: uppercase; color: var(--ink); }
.squat-sub { margin: 0; font-size: 18px; line-height: 26px; color: var(--ink-muted); }
.flow-title { font-size: 22px; line-height: 24px; color: var(--ink-muted); }
.flow-results { display: flex; flex-direction: column; gap: 10px; }
.flow-results .target-card { background: var(--surface-raised); }
.flow-results .target-ring::before { background: var(--surface-raised); }

/* Test rails: swipe on phones, grid on wider screens */
.rail-group { display: flex; flex-direction: column; gap: 14px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rail-count { font-size: 11px; letter-spacing: 1px; display: none; }
@media (max-width: 699px) {
  .rail-count { display: inline; }
  .test-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .test-rail::-webkit-scrollbar { display: none; }
  .test-rail > .test-card { flex: 0 0 240px; scroll-snap-align: start; }
  .test-rail .test-card .body { padding: 12px 14px 14px; gap: 5px; }
  .test-rail .test-card .label { font-size: 11px; }
  .test-rail .test-card h3 { font-size: 22px; line-height: 24px; }
}

/* "Where you lost points" panel around the sample result cards (matches the app) */
.lost-panel { background: rgba(251, 80, 0, 0.08); border: 1px solid rgba(251, 80, 0, 0.35); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lost-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lost-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; text-transform: uppercase; color: var(--orange-500, #fb5000); }
.lost-head .label { font-size: 11px; letter-spacing: 1px; }
.flow-results .lost-panel .target-card { background: var(--surface); }
.flow-results .lost-panel .target-ring::before { background: var(--surface); }
.lost-panel .target-nums .num { white-space: nowrap; }
@media (max-width: 480px) {
  .lost-panel { padding: 10px 8px; }
  .lost-head { padding-inline: 4px; }
  .lost-panel .target-card { padding: 12px 10px; gap: 10px; }
  .lost-panel .target-ring { width: 50px; height: 50px; }
  .lost-panel .target-ring::before { inset: 5px; }
  .lost-panel .target-ring span { font-size: 17px; }
  .lost-panel .target-nums { gap: 12px; }
  .lost-panel .target-nums .num { font-size: 19px; }
  .lost-panel .target-gap { padding-left: 10px; }
  .lost-panel .target-gap .big { font-size: 30px; line-height: 30px; }
}

/* Email field in the hero (2026-11-18): signup without the extra "Save my spot" tap */
.hero-signup { max-width: 440px; margin-top: 24px; }
.hero-signup #mc_embed_signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.hero-more:hover { color: var(--ink); }
.waitlist .waitlist-open { width: 100%; }
.waitlist .cta-note { text-align: center; }

/* "What you get" section on the challenge page (2026-11-18, design HB) */
.value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.value-tile { background: var(--surface); padding: 18px 16px; gap: 10px; }
.value-tile .h3 { font-size: 24px; line-height: 1.05; }
.value-tile p { font-size: 15px; line-height: 1.45; }
.value-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(251, 80, 0, 0.14); color: var(--orange-500); display: flex; align-items: center; justify-content: center; }
.score-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.score-bar { display: grid; grid-template-columns: 46px 1fr 22px; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-muted); }
.score-track { height: 8px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.score-fill { height: 100%; border-radius: var(--radius-pill); background: var(--ink-faint); }
.score-bar.is-now .score-fill { background: var(--orange-500); }
.score-bar b { color: var(--ink); font-size: 13px; text-align: right; }
.run-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.run-strip li { border-top: 3px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.run-strip li.is-on { border-color: var(--orange-500); }
.run-strip .label { font-size: 11px; letter-spacing: 1px; }
.run-strip b { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.how-cta { align-self: flex-start; }
@media (max-width: 699px) {
  .value-tile { padding: 16px 14px; }
  .value-tile .h3 { font-size: 22px; }
  .value-tile p { font-size: 14px; }
  .how-cta { align-self: stretch; text-align: center; }
}

/* Hero scan reveal (2026-11-18, design R2B): a scan line sweeps left to right and reveals
   the scored result, same timing as the squat scan below. No dragging. */
.reveal-block { display: flex; flex-direction: column; gap: 16px; }
.reveal-sub { margin: 0; color: var(--ink-muted); font-size: 16px; }
.reveal { position: relative; aspect-ratio: 358 / 300; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.hero-media .reveal .reveal-img { position: absolute; width: 228.5%; max-width: none; left: -64.2%; top: -12.7%; aspect-ratio: auto; height: auto; border: 0; border-radius: 0; }
.reveal-after { position: absolute; inset: 0; animation: reveal-sweep 6s ease-in-out infinite; }
.reveal-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); }
.reveal-after svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal-scanline { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--orange-500); box-shadow: 0 0 14px 4px rgba(251, 80, 0, 0.6); animation: reveal-scan 6s ease-in-out infinite; }
@keyframes reveal-sweep { 0%, 10% { clip-path: inset(0 100% 0 0); opacity: 1; } 55%, 88% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes reveal-scan { 0%, 10% { left: 0%; opacity: 1; } 55% { left: 100%; opacity: 1; } 56%, 100% { left: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-after { animation: none; clip-path: none; opacity: 1; }
  .reveal-scanline { display: none; }
}
.reveal-joint { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.reveal-deg { position: absolute; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 26px; padding: 2px 8px; border-radius: 6px; background: var(--orange-500); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.reveal .fault-mark { position: absolute; width: 0; height: 0; }
.reveal-tag { position: absolute; font-size: 12px; line-height: 15px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: rgba(20, 20, 20, 0.82); border: 1px solid rgba(251, 80, 0, 0.6); white-space: nowrap; color: #fff; }
.reveal-start { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #fff; opacity: 0.8; }
.reveal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reveal-stat { background: var(--surface-raised); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.reveal-stat .label { font-size: 10px; letter-spacing: 1.2px; }
.reveal-stat b { font-family: var(--font-display); font-size: 30px; line-height: 30px; }
.reveal-stat.is-miss { background: rgba(251, 80, 0, 0.1); box-shadow: inset 3px 0 0 var(--orange-500); }
.reveal-stat.is-miss b { color: var(--orange-500); }
.reveal-lbl { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-pill); background: rgba(20, 20, 20, 0.8); color: #fff; }
.reveal-lbl.is-right { left: auto; right: 10px; }
/* Hero result: "Where you lost points" with a You vs Target card (design S5) */
.reveal-block .lost-panel .target-card { background: var(--surface-raised); }
.reveal-block .lost-panel .target-ring::before { background: var(--surface-raised); }
.lost-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-raised); font-size: 15px; font-weight: 600; }
.lost-x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-500); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
