@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(assets/fonts/Barlow_500Medium.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(assets/fonts/Barlow_600SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(assets/fonts/BarlowCondensed_700Bold.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(assets/fonts/BarlowCondensed_800ExtraBold.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Stencil'; font-weight: 900; font-display: swap; src: url(assets/fonts/BigShouldersStencil_900Black.woff2) format('woff2'); }

/* Same tokens as the app's Dark look, Lift palette (lib/appearance.ts, lib/accentColors.ts: Blood). */
:root {
  color-scheme: dark;
  --bg: #121214;
  --bg-2: #18181B;
  --card: #1D1D20;
  --card-2: #242428;
  --bone: #F2EFEA;
  --bone-2: #A8A39B;
  --bone-3: #827E77;
  --border: rgba(242, 239, 234, 0.10);
  --border-strong: rgba(242, 239, 234, 0.22);
  --fill: #A3111C;
  --red: #FF3B47;
  --brand: #8F1E25; /* logo red: the app's Blood button red, fixed */
  --red-dark: #6E0B13;
  --wash: #2C0D10;
  --deep: #1A0A0C;
  --line: rgba(255, 59, 71, 0.35);
  --render: #DDC3C1;
  --on-fill: #F2EFEA;
  --nav: rgba(18, 18, 20, 0.86);
  --band: rgba(24, 24, 27, 0.92);
  --phone: #26262A;
  --shadow: rgba(0, 0, 0, 0.9);
  --glow: 32%;
  --radius: 4px;
  --gutter: 20px;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --stencil: 'Big Shoulders Stencil', 'Barlow Condensed', sans-serif;
}

/* The page is always dark and red. The settings (look, main color,
   pattern) only change the phone screens; main.js sets --ph-* and
   data-phone-look for those. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--cond); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin: 0; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.red { color: var(--red); }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Wordmark: IRON bone + GRIT blood red, stencil like the app logo. */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-family: var(--stencil); font-weight: 900; font-size: 26px; letter-spacing: 0.04em; line-height: 1; }
.wordmark b { color: var(--brand); font-weight: 900; }

/* Buttons: ActionButton look. Red fill, bone caps, square corners. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px;
  background: var(--fill); color: var(--on-fill);
  border: 1px solid var(--fill); border-radius: var(--radius);
  font-family: var(--cond); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .15s, border-color .15s, transform .15s; cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--bone); }
.btn-outline:hover { background: var(--card-2); border-color: var(--bone-3); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.btn-lg { height: 64px; padding: 0 34px; font-size: 22px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 800; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker .ic { width: 14px; height: 14px; }

/* NAV */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--nav);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-2);
}
.nav-links a:hover { color: var(--bone); }
/* Menu button: phones and tablets only. Opens the section links under the bar. */
.nav-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex: none;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--bone); cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .ic-close, .nav.open .nav-toggle .ic-open { display: none; }
.nav.open .nav-toggle .ic-close { display: block; }

/* HERO */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--fill) var(--glow), transparent), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(64px, 9.6vw, 128px); line-height: 0.88; }
.lede { margin-top: 26px; font-size: 20px; color: var(--bone-2); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--bone-3); }
.hero-phone { position: relative; justify-self: center; width: min(340px, 80vw); }

/* Phone frame around the real app screenshots */
.phone {
  position: relative; border-radius: 30px; padding: 9px;
  background: var(--phone); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.phone img { border-radius: 22px; width: 100%; height: auto; }
.phone-live { overflow: hidden; }
/* The picked background pattern, laid into the screenshot only where the
   app's page shows (a mask per screen), at the app's tile size and fade. */
.phone-pat {
  position: absolute; inset: 9px; border-radius: 22px; pointer-events: none;
  background-image: var(--ph-tile, url(assets/patterns/knurl.png)); background-size: calc(100% * var(--ph-cell-n, 9) / 390) auto;
  opacity: var(--ph-pat-opacity, 1);
  -webkit-mask-image: var(--mask), linear-gradient(#000, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.2));
  mask-image: var(--mask), linear-gradient(#000, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.2));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
:root[data-phone-look="light"] .phone-pat { filter: brightness(0); }
.phone-pat::after { content: ''; position: absolute; inset: 0; background: inherit; opacity: var(--ph-pat2-opacity, 0); }
/* Animated clip laid over the still in the live workout screenshot. */
.live-clip {
  position: absolute; left: 9px; right: 9px;
  top: calc(9px + (100% - 18px) * var(--top)); height: calc((100% - 18px) * var(--h));
  background: var(--ph-render, var(--render)); display: flex; justify-content: center;
}
.live-clip .clip { height: 100%; width: auto; aspect-ratio: 1; background: transparent; }
.live-clip .clip .mask { background: var(--ph-muscle, var(--red)); }
.float {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border: 1px solid var(--border-strong); border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
}
.float-k { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); }
.float-v { font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1; }
.float-a { left: -72px; top: 44%; }
.float-b { right: -40px; top: 22%; flex-direction: row; align-items: center; gap: 8px; color: var(--red); }
.float-b .float-v { color: var(--bone); }

/* NUMBERS: StatStrip look */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid div { padding: 28px 12px; text-align: center; border-left: 1px solid var(--border); }
.strip-grid div:first-child { border-left: 0; }
.strip-grid b { display: block; font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: 1; }
.strip-grid span { display: block; margin-top: 6px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-2); }

/* FEATURES */
.feature { padding: 112px 0; position: relative; }
.feature-dark { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature h2 { font-size: clamp(44px, 6vw, 76px); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-copy p:not(.kicker) { margin-top: 20px; color: var(--bone-2); font-size: 18px; max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 520px; }
.ticks li { position: relative; padding-left: 30px; color: var(--bone-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; background: var(--fill); border-radius: 2px; }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--on-fill); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks b { color: var(--bone); font-weight: 600; }
.feature-media { position: relative; display: flex; justify-content: center; min-height: 520px; }
.feature-media .phone { width: min(300px, 70vw); z-index: 2; }
.feature-media .phone-back { position: absolute; z-index: 1; width: min(260px, 60vw); right: 2%; top: 64px; opacity: 0.55; transform: rotate(4deg); }
.feature-media .phone:first-child { transform: translateX(-18%); }
.feature-media.single .phone:first-child { transform: none; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.kicker) { margin-top: 20px; color: var(--bone-2); font-size: 18px; }
.note { margin-top: 32px; color: var(--bone-2); font-size: 15px; max-width: 720px; }

/* CLIPS: athlete left half as is, white mask right half filled with the main color. */
.clip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.clip-grid figure { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.clip-grid figcaption { padding: 12px 14px; font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; }
.clip { position: relative; aspect-ratio: 1; background: var(--render); overflow: hidden; }
.clip img, .clip .mask { position: absolute; top: 0; left: 0; height: 100%; width: 200%; max-width: none; }
.clip .mask {
  width: 100%;
  background: var(--red);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* STATS: rows like the app's MenuRow, icon in a square plate */
.stats-grid { align-items: start; }
.coach-groups { min-width: 0; }
.coach-groups .stat-rows + .menu-head { margin-top: 24px; }
.stat-rows { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-rows li { display: flex; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--border); }
.stat-rows li:first-child { border-top: 0; }
.stat-rows .plate { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); color: var(--red); }
.stat-rows .plate .ic { width: 20px; height: 20px; }
.stat-rows div { min-width: 0; }
.stat-rows b { display: block; font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
.stat-rows p { margin-top: 6px; color: var(--bone-2); font-size: 15px; }

/* RANK */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: r; }
.ranks li {
  counter-increment: r; position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 6px;
}
.ranks li::before { content: counter(r, decimal-leading-zero); position: absolute; right: 16px; top: 16px; font-family: var(--cond); font-weight: 800; font-size: 14px; color: var(--bone-3); letter-spacing: 0.1em; }
.ranks .gp { font-family: var(--cond); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; color: var(--red); }
.ranks b { font-family: var(--cond); font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; }
.ranks i { font-style: normal; color: var(--bone-2); font-size: 15px; }
.ranks li.top { background: var(--wash); border-color: var(--line); border-top: 3px solid var(--red); }

/* GEAR */
.gear-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gear-grid figure { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px 12px; text-align: center; }
.gear-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.gear-grid figcaption { margin-top: 6px; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-2); }

/* IMPORT + YOURS */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.card-red { border-top: 3px solid var(--red); }
.card h3 { font-size: 44px; }
.card p:not(.kicker) { margin-top: 16px; color: var(--bone-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 12px; font-family: var(--cond); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gear-grid svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
/* Dark / Light switch */
.look { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.look button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--bone-2); cursor: pointer; font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.look button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); }
.nav-right { display: flex; align-items: center; gap: 10px; }
/* Page backdrop: the app's Knurl tiles in plain bone, fading down the
   screen like GymBackdrop. Always Knurl: the pattern setting is for the phones. */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url(assets/patterns/knurl.png);
  background-size: 9px 9px;
  opacity: 0.86;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.2) 100%);
}

/* Floating settings button, bottom right on every screen size */
.fab {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--on-fill); border: 1px solid var(--fill); cursor: pointer;
  box-shadow: 0 14px 30px -10px var(--shadow);
  transition: background-color .2s, transform .15s;
}
.fab .ic { width: 24px; height: 24px; transition: transform .3s; }
.fab:hover { background: var(--red-dark); }
.fab[aria-expanded="true"] .ic { transform: rotate(60deg); }
.fab:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.settings {
  position: fixed; z-index: 41;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 1px solid var(--border-strong); border-top: 3px solid var(--red); border-radius: var(--radius);
  padding: 18px 18px 20px; box-shadow: 0 30px 60px -20px var(--shadow);
}
.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings h2 { font-size: 30px; }
.settings-close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--bone); cursor: pointer; }
.settings-close:hover { background: var(--card-2); }
.settings-sub { margin-top: 6px; font-size: 14px; color: var(--bone-2); }
.settings-block { margin-top: 20px; }
.settings-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-3); }
.settings-label b { color: var(--red); font-weight: 800; letter-spacing: 0.1em; }
.settings .look { display: flex; }
.settings .look button { flex: 1; justify-content: center; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatches button { position: relative; aspect-ratio: 1; width: 100%; padding: 0; cursor: pointer; border-radius: var(--radius); background: var(--c); border: 3px solid var(--card); outline: 1px solid var(--border-strong); }
.swatches button:hover { transform: translateY(-1px); }
.swatches button[aria-pressed="true"] { outline: 2px solid var(--bone); }
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.patterns button { display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--bone-2); cursor: pointer; overflow: hidden; text-align: center; }
.patterns button[aria-pressed="true"] { border-color: var(--red); outline: 1px solid var(--red); color: var(--bone); }
.pat-swatch { display: block; height: 52px; background-image: var(--tile); background-size: var(--cell) var(--cell); background-position: center; }
.pat-name { font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 4px; }
.open-settings { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .fab .ic { transition: none; } }

/* Color change: page tokens fade over, screens swap once the new shot is loaded. */
body, .btn, .ranks li, .card, .join, .feature-dark { transition: background-color .3s, border-color .3s, color .3s; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--cond); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 30px; font-weight: 800; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 22px; color: var(--bone-2); max-width: 620px; }

/* JOIN */
.join { padding: 120px 0; text-align: center; position: relative; overflow: hidden; background: var(--deep); border-top: 1px solid var(--line); }
.join::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 30%, color-mix(in srgb, var(--fill) var(--glow), transparent), transparent 70%); pointer-events: none; }
.join-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.join h2 { font-size: clamp(56px, 9vw, 112px); margin-top: 18px; }
.join p { margin: 18px 0 34px; color: var(--bone-2); font-size: 19px; }

/* FOOTER */
.foot { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-tag { font-family: var(--cond); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-2); }
.foot-copy { color: var(--bone-3); font-size: 14px; }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.foot-legal a { color: var(--bone-2); }
.foot-legal a:hover { color: var(--bone); }

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

/* TABLET */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); box-shadow: 0 30px 40px -20px var(--shadow); padding: 8px 0;
  }
  .nav.open .nav-links a { padding: 14px 20px; font-size: 18px; border-top: 1px solid var(--border); }
  .nav.open .nav-links a:first-child { border-top: 0; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .feature-grid, .faq-wrap, .two-cards { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid.flip .feature-copy { order: 0; }
  .hero-copy { text-align: left; }
  .feature { padding: 80px 0; }
  .clip-grid, .ranks { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-media { min-height: 0; }
  .float-a { left: -24px; }
  .float-b { right: -16px; }
}

/* PHONE */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wordmark { font-size: 22px; }
  .nav-row { gap: 10px; }
  .nav-right { gap: 8px; }
  .btn-sm { padding: 0 12px; font-size: 14px; letter-spacing: 0.08em; }
  .brand img { width: 34px; height: 34px; }
  .lede { font-size: 18px; }
  .cta-row .btn { width: 100%; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid div:nth-child(3) { border-left: 0; }
  .strip-grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .strip-grid b { font-size: 44px; }
  .hero-phone { width: 76vw; }
  .float-a { left: -14px; top: 40%; }
  .float-b { right: -10px; }
  .feature-media .phone { width: 72vw; }
  .feature-media .phone-back { display: none; }
  .feature-media .phone:first-child { transform: none; }
  .clip-grid { gap: 8px; }
  .clip-grid figcaption { font-size: 15px; padding: 10px; }
  .ranks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ranks li { padding: 16px 14px; }
  .ranks b { font-size: 24px; }
  .ranks i { font-size: 13px; }
  .gear-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card { padding: 24px; }
  .card h3 { font-size: 36px; }
  .faq summary { font-size: 19px; }
  .btn-lg { width: 100%; font-size: 18px; padding: 0 16px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

/* Try the app: the real web build in the hero phone, sample data only.
   Nothing loads until the button is pressed. The app runs at 390 x 844
   (the screenshot size) and is scaled to the frame. */
.try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 22px; text-align: center; }
.try-note { flex-basis: 100%; font-size: 12px; color: var(--bone-3); }
.app-frame {
  position: absolute; left: 9px; top: 9px; width: 390px; height: 844px; border: 0; border-radius: 22px;
  transform-origin: 0 0; transform: scale(var(--app-scale, 1)); background: var(--bg);
  opacity: 0; transition: opacity 0.3s ease;
}
.app-frame.ready { opacity: 1; }
.app-loading {
  position: absolute; inset: 9px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); font-family: var(--cond); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-2);
}
.app-loading::before {
  content: ''; width: 34px; height: 34px; border: 3px solid var(--border-strong); border-top-color: var(--red); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-loading::before { animation-duration: 2.4s; } .app-frame { transition: none; } }
.hero-phone.app-on .float, .hero-phone.app-on .live-clip, .hero-phone.app-on .phone-pat { display: none; }
.clip-grid figure[hidden] { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }

/* PRICING: three plans side by side, then what Pro unlocks (app rows). */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; margin-top: 40px; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.plan-best { border: 1px solid var(--red); box-shadow: 0 0 0 1px var(--red) inset, 0 30px 60px -30px var(--shadow); border-top-left-radius: 0; border-top-right-radius: 0; }
.plan-band {
  position: absolute; left: -1px; right: -1px; bottom: 100%; height: 40px; border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 24px;
  background: var(--fill); color: var(--on-fill); font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
}
.plan-save { font-size: 11px; letter-spacing: 0.14em; padding: 3px 8px; border: 1px solid currentColor; border-radius: 2px; }
.plan-name { font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-2); }
.plan-best .plan-name { color: var(--red); }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-family: var(--cond); font-weight: 800; font-size: 56px; line-height: 0.9; color: var(--bone); }
.price span { font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-3); }
.plan-sub { margin-top: 10px; font-size: 15px; color: var(--bone-2); }
.plan-list { list-style: none; margin: 20px 0 28px; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--bone-2); }
.plan-list .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--red); }
.trial {
  display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 28px; padding: 14px 16px;
  background: var(--wash); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius);
}
.trial .ic { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.trial b { display: block; font-family: var(--cond); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--bone); }
.trial span { display: block; margin-top: 6px; font-size: 13px; color: var(--bone-2); }
.plan .btn { margin-top: auto; width: 100%; }
.pro-unlocks { margin-top: 24px; }
.menu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-2); }
.menu-head .ic { width: 14px; height: 14px; color: var(--red); }
.unlock-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.unlock-grid li { display: flex; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--border); }
.unlock-grid li:nth-child(-n+4) { border-top: 0; }
.unlock-grid li:not(:nth-child(4n+1)) { border-left: 1px solid var(--border); }
.unlock-grid .plate { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); color: var(--red); }
.unlock-grid .plate .ic { width: 20px; height: 20px; }
.unlock-grid b { display: block; font-family: var(--cond); font-weight: 800; font-size: 18px; text-transform: uppercase; line-height: 1.1; }
.unlock-grid p { margin-top: 4px; font-size: 14px; color: var(--bone-2); }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; }
  .plan-best { order: -1; margin-bottom: 0; }
  .plans { row-gap: 12px; }
  .plan-best ~ .plan { margin-top: 0; }
  .unlock-grid { grid-template-columns: 1fr 1fr; }
  .unlock-grid li:nth-child(-n+4) { border-top: 1px solid var(--border); }
  .unlock-grid li:nth-child(-n+2) { border-top: 0; }
  .unlock-grid li:not(:nth-child(4n+1)) { border-left: 0; }
  .unlock-grid li:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .unlock-grid { grid-template-columns: 1fr; }
  .unlock-grid li:nth-child(2) { border-top: 1px solid var(--border); }
  .unlock-grid li:nth-child(even) { border-left: 0; }
}
.free-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--border-strong); color: var(--bone-2); border-radius: 2px; font-size: 11px; letter-spacing: 0.14em; vertical-align: 2px; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; background: var(--fill); color: var(--on-fill); border-radius: 2px; font-size: 11px; letter-spacing: 0.14em; vertical-align: 2px; }

/* Free vs Pro table under the plans */
.compare { margin-top: 32px; }
.compare-rule { margin: 0 0 12px; max-width: 760px; color: var(--bone-2); font-size: 15px; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 12px 16px; border-top: 1px solid var(--border); text-align: left; font-size: 15px; }
.compare-table thead th { border-top: 0; font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-2); }
.compare-table tbody th { font-weight: 500; color: var(--bone); }
.compare-table td, .compare-table thead th + th { width: 84px; text-align: center; }
.compare-table td .ic { width: 18px; height: 18px; color: var(--red); vertical-align: middle; }
.compare-table .dash { color: var(--bone-3); }
.compare-table thead th:last-child { color: var(--red); }
@media (max-width: 560px) { .compare-table th, .compare-table td { padding: 10px 10px; font-size: 14px; } .compare-table td, .compare-table thead th + th { width: 56px; } }

/* Gym floor: tool rows next to the plate card phone */
.feature-copy .stat-rows { margin-top: 28px; max-width: 560px; }
@media (max-width: 560px) { .stat-rows li { padding: 16px; gap: 12px; } }
