/* Hybrift home page. Shared header, footer and utility pages live in styles.css. */

.home {
  --g0: #20252B;
  --g1: #2C343E;
  --g2: #2C343E;
  --g3: #3D4754;
  --g4: #586372;
  --paper: #F2F1EC;
  --paper-2: #e5e1d6;
  --sheet: #faf8f3;
  --ink: #111111;
  --ink-2: #4d4b46;
  --text: #F2F1EC;
  --text-2: #C0C6CF;
  --text-3: #B9C1CB;
  --gold: #DAC38C;
  --c-strength: #7d7aff;
  --c-run: #64d2ff;
  --c-hyrox: #c8ff00;
  --c-wod: #ff9f0a;
  --c-station: #bf5af2;
  --c-loss: #ff453a;
  --c-gain: #32d74b;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background: var(--g0);
}

.home .defs {
  position: absolute;
  width: 0;
  height: 0;
}

.home main > section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--site-pad);
  overflow: hidden;
}

/* ---------- Shared type ---------- */

.h-head {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  color: var(--ink);
}

.h-head h2,
.h-hero h1,
.h-launch h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.012em;
}

.h-head h2 {
  font-size: clamp(2.9rem, 6.2vw, 5.8rem);
}

.h-week .h-head {
  max-width: 62rem;
}

.h-head em,
.h-hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
}

.h-head > p:not(.h-eyebrow) {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.h-head-light {
  color: var(--text);
}

.h-head-light > p:not(.h-eyebrow) {
  color: var(--text-2);
}

.h-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.h-eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

.h-head-light .h-eyebrow {
  color: var(--text-3);
}

.h-eyebrow-lime,
.h-head-light .h-eyebrow-lime {
  color: var(--gold);
}

.h-eyebrow-ink {
  color: var(--ink);
}

.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.h-btn:hover {
  transform: translateY(-2px);
}

.h-btn-lime {
  color: var(--ink);
  background: var(--gold);
}

.h-btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.h-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.h-btn-ink {
  color: var(--gold);
  background: var(--ink);
}

.h-btn:focus-visible,
.seg button:focus-visible,
.ai-steps button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Discipline pills ---------- */

.disc {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.82em;
  color: var(--text-2);
}

.disc::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--c, var(--text-3));
}

.disc-strength { --c: var(--c-strength); }
.disc-run { --c: var(--c-run); }
.disc-hyrox { --c: var(--c-hyrox); }
.disc-wod { --c: var(--c-wod); }

/* ---------- iPhone ---------- */

.iphone {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 1 / 2.06;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(135deg, #6a6c70 0%, #2b2c2f 14%, #17181a 48%, #2a2b2e 84%, #75777b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 calc(var(--w) * 0.013) #08080a,
    0 60px 90px -40px rgba(0, 0, 0, 0.95),
    0 30px 50px -30px rgba(0, 0, 0, 0.8);
}

.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: calc(var(--w) * 0.011);
  border-radius: 2px;
  background: linear-gradient(90deg, #4b4d51, #8d8f93);
}

.iphone::before {
  right: calc(var(--w) * -0.009);
  top: 27%;
  height: 12%;
}

.iphone::after {
  left: calc(var(--w) * -0.009);
  top: 21%;
  height: 7%;
  box-shadow: 0 calc(var(--w) * 0.11) 0 #6a6c70;
}

.iphone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.142);
  background: #20252B;
  color: var(--text);
  font-family: var(--ui);
  font-size: calc(var(--w) * 0.0425);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

.iphone-screen::before {
  content: "";
  position: absolute;
  z-index: 10;
  top: 0.85em;
  left: 50%;
  width: 31%;
  height: 2.25em;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.iphone-screen::after {
  content: "";
  position: absolute;
  z-index: 11;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 31%);
}

.ios-status {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25em 2.1em 0 2.4em;
  font-weight: 600;
  font-size: 1.12em;
}

.ios-icons {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.ios-icons i {
  display: block;
  height: 0.78em;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}

.ios-icons .sig {
  width: 1.15em;
  --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'><rect x='0' y='8' width='3' height='4' rx='1'/><rect x='5' y='5.5' width='3' height='6.5' rx='1'/><rect x='10' y='3' width='3' height='9' rx='1'/><rect x='15' y='0' width='3' height='12' rx='1'/></svg>");
}

.ios-icons .wifi {
  width: 1.05em;
  --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path d='M8 12 5.6 9.2a3.4 3.4 0 0 1 4.8 0zM2.8 6.6l1.5 1.6a5.3 5.3 0 0 1 7.4 0l1.5-1.6a7.5 7.5 0 0 0-10.4 0zM0 3.8l1.5 1.6a9.4 9.4 0 0 1 13 0L16 3.8a11.6 11.6 0 0 0-16 0z'/></svg>");
}

.ios-icons .bat {
  width: 1.65em;
  --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'><rect x='.5' y='.5' width='22' height='11' rx='3' fill='none' stroke='black' stroke-opacity='.45'/><rect x='2' y='2' width='17' height='8' rx='1.6'/><rect x='23.6' y='4' width='1.6' height='4' rx='.8' fill-opacity='.45'/></svg>");
}

.ios-body {
  padding: 1.6em 1.3em 6em;
}

.ios-avatar {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: #1f1f21 radial-gradient(circle at 50% 40%, #3a3a3c 0 22%, transparent 23%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ios-large {
  margin-top: 0.45em;
  font-size: 2.45em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ios-sub,
.ios-muted {
  color: var(--text-3);
  font-size: 0.86em;
}

.ios-ask {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0 1.1em;
  color: var(--gold);
  font-size: 1.05em;
}

.ask-ic {
  width: 1.15em;
  height: 0.95em;
  border: 1.6px solid currentColor;
  border-radius: 0.3em 0.3em 0.3em 0;
}

.ios-card {
  margin-bottom: 0.75em;
  padding: 0.95em 1em;
  border-radius: 1.05em;
  background: var(--g2);
}

.ios-row-sm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35em;
}

.ios-title {
  font-size: 1.13em;
  font-weight: 600;
  line-height: 1.25;
}

.ios-cta {
  display: block;
  margin-top: 0.85em;
  padding: 0.78em;
  border-radius: 0.85em;
  color: #20252B;
  background: var(--gold);
  font-weight: 600;
  text-align: center;
}

.ios-cta.ghost {
  color: var(--gold);
  background: var(--g3);
}

.ios-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.15em 0 0.55em;
  font-size: 1.08em;
  font-weight: 600;
}

.ios-link {
  color: var(--gold);
  font-size: 0.85em;
  font-weight: 400;
}

.ios-link.b {
  font-weight: 600;
}

.ios-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15em;
  text-align: center;
}

.ios-week div {
  display: grid;
  justify-items: center;
  gap: 0.15em;
  padding: 0.45em 0 0.55em;
  border-radius: 0.7em;
}

.ios-week small {
  color: var(--text-3);
  font-size: 0.72em;
}

.ios-week b {
  font-size: 1.12em;
  font-weight: 600;
}

.ios-week i {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--g4);
}

.ios-week i[class] {
  box-shadow: none;
  opacity: 0.45;
}

.ios-week .is-done i {
  opacity: 1;
}

.ios-week .is-today {
  background: var(--g2);
}

.ios-week .is-today i {
  opacity: 1;
}

.ios-week .disc-strength { background: var(--c-strength); }
.ios-week .disc-run { background: var(--c-run); }
.ios-week .disc-hyrox { background: var(--c-hyrox); }
.ios-week .disc-wod { background: var(--c-wod); }

.ios-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.7em;
}

.ios-stats b {
  display: block;
  font-size: 1.32em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ios-stats small {
  color: var(--text-3);
  font-size: 0.78em;
}

.ios-tabbar {
  position: absolute;
  z-index: 8;
  right: 0.75em;
  bottom: 1.25em;
  left: 0.75em;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35em;
  border-radius: 2.2em;
  background: rgba(38, 38, 40, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
}

.ios-tabbar span {
  display: grid;
  justify-items: center;
  gap: 0.2em;
  padding: 0.45em 0 0.35em;
  border-radius: 1.8em;
  font-size: 0.64em;
  font-weight: 600;
}

.ios-tabbar .is-on {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.ios-tabbar i {
  width: 2em;
  height: 2em;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}

.t-home { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2.5 11h2.5v9h5v-6h4v6h5v-9h2.5z'/></svg>"); }
.t-plan { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 4h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 5v10h14V9zm2 2h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2zm-8 4h2v2H7zm4 0h2v2h-2z'/></svg>"); }
.t-train { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 6 6 4-6 4z'/></svg>"); }
.t-prog { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='11' width='5' height='10' rx='1.5'/><rect x='9.5' y='6' width='5' height='15' rx='1.5'/><rect x='16' y='3' width='5' height='18' rx='1.5'/></svg>"); }
.t-me { --m: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='7.5' r='4.5'/><path d='M3 21c0-5 4-8 9-8s9 3 9 8z'/></svg>"); }

/* ---------- Apple Watch ---------- */

.awatch {
  --w: 170px;
  position: relative;
  width: var(--w);
}

.awatch-band {
  width: 74%;
  height: calc(var(--w) * 0.5);
  margin: 0 auto;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #141516, #26272a 50%, #141516);
}

.awatch-band-top {
  border-radius: 40% 40% 0 0 / 18% 18% 0 0;
  margin-bottom: -3%;
}

.awatch-band-bottom {
  border-radius: 0 0 40% 40% / 0 0 18% 18%;
  margin-top: -3%;
}

.awatch-case {
  position: relative;
  z-index: 2;
  aspect-ratio: 0.84;
  padding: 6.5%;
  border-radius: 27%;
  background: linear-gradient(145deg, #8a8c90 0%, #3b3c3f 22%, #1b1c1e 55%, #4a4b4f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 0 0 calc(var(--w) * 0.02) #050506,
    0 40px 60px -25px rgba(0, 0, 0, 0.9);
}

.awatch-crown {
  position: absolute;
  top: 22%;
  right: -5%;
  width: 6%;
  height: 17%;
  border-radius: 3px;
  background: repeating-linear-gradient(0deg, #9a9ca0 0 1px, #55575b 1px 3px);
}

.awatch-side {
  position: absolute;
  top: 50%;
  right: -2.5%;
  width: 3.5%;
  height: 22%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4f5054, #8a8c90);
}

.awatch-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 10% 9% 8%;
  border-radius: 22%;
  background: #000;
  color: #fff;
  font-family: var(--ui);
  font-size: calc(var(--w) * 0.068);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

.awatch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09), transparent 40%);
  pointer-events: none;
}

.wa-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.05em;
}

.wa-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4em;
  margin-top: 0.25em;
  font-size: 1.05em;
}

.wa-lime {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wa-muted {
  color: #8e8e93;
  font-size: 0.9em;
}

.wa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0.45em 0 0.6em;
}

.wa-grid small {
  display: block;
  color: #8e8e93;
  font-size: 0.62em;
  font-weight: 700;
}

.wa-grid b {
  font-size: 1.1em;
  font-variant-numeric: tabular-nums;
}

.wa-grid i {
  font-style: normal;
  font-size: 0.7em;
  color: #8e8e93;
  margin-left: 0.15em;
}

.wa-btn {
  padding: 0.55em;
  border-radius: 999px;
  color: #000;
  background: var(--gold);
  font-weight: 800;
  text-align: center;
}

.wa-label {
  margin-top: 1.1em;
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wa-clock {
  color: var(--gold);
  font-size: 3em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wa-center {
  margin: 0.25em 0 0.7em;
}

/* ---------- Hero ---------- */

.h-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: 100svh;
  padding-top: clamp(7rem, 12vw, 9rem) !important;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(255, 240, 210, 0.09), transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 85%, rgba(218, 195, 140, 0.06), transparent 70%),
    var(--g0);
}

.h-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.h-hero-copy {
  position: relative;
  z-index: 2;
}

.h-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.h-kicker .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(218, 195, 140, 0.15);
}

.h-hero h1 {
  font-size: clamp(3.6rem, 8.4vw, 8.8rem);
}

.h-lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.h-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.h-replaces {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.h-replaces-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h-replaces ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-replaces li {
  position: relative;
  padding: 0.42rem 0.8rem;
  border-radius: 8px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.h-replaces li::after {
  content: "";
  position: absolute;
  top: 52%;
  left: 0.6rem;
  right: 0.6rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(0.6, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 110ms + 500ms);
}

.h-replaces.is-visible li::after {
  transform: scaleX(1);
}

.h-replaces li:nth-child(2) { --i: 1; }
.h-replaces li:nth-child(3) { --i: 2; }
.h-replaces li:nth-child(4) { --i: 3; }
.h-replaces li:nth-child(5) { --i: 4; }

.h-hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40rem;
}

.h-hero-phone {
  --w: clamp(250px, 23vw, 320px);
  transform: rotate(3deg) translateX(8%);
}

.h-hero-watch {
  --w: clamp(130px, 11.5vw, 170px);
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 9%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.6));
}

.h-floor {
  position: absolute;
  bottom: 1%;
  left: 15%;
  right: 5%;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85), transparent 70%);
  z-index: -1;
}

/* ---------- Week board ---------- */

.h-week {
  color: var(--ink);
  background: var(--paper);
}

.h-week::before,
.h-hyrox::before,
.h-data::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.week-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.wk {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1rem 0.95rem 0.9rem;
  border-radius: 14px;
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 12px 24px -18px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--c, #bbb);
}

.wk-strength { --c: var(--c-strength); }
.wk-run { --c: var(--c-run); }
.wk-wod { --c: var(--c-wod); }
.wk-hyrox { --c: #9acc00; }
.wk-rest { --c: #c9c4b6; }

.wk header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #807c71;
}

.wk header em {
  font-style: normal;
  color: var(--ink);
}

.wk h3 {
  margin: 0.55rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 0.95;
}

.wk dl {
  display: grid;
  gap: 0.5rem;
  margin: auto 0 0;
}

.wk dt {
  color: #807c71;
  font-size: 0.7rem;
}

.wk dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wk footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.14);
  color: #807c71;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.wk .pr {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: #7a5d00;
  background: #ffe48a;
  font-weight: 500;
}

.wk-spark {
  width: 100%;
  height: 2.2rem;
  margin-bottom: 0.6rem;
  fill: none;
  stroke: var(--c-run);
  stroke-width: 2;
  stroke-linejoin: round;
}

.wk-zones {
  display: flex;
  gap: 2px;
  height: 0.6rem;
  margin-bottom: 0.8rem;
  border-radius: 4px;
  overflow: hidden;
}

.wk-zones i {
  width: var(--w);
}

.wk-zones i:nth-child(1) { background: #0a84ff; }
.wk-zones i:nth-child(2) { background: #64d2ff; }
.wk-zones i:nth-child(3) { background: #66d4a8; }
.wk-zones i:nth-child(4) { background: #ffd60a; }
.wk-zones i:nth-child(5) { background: #ff453a; }

.wk-race {
  display: flex;
  gap: 2px;
  height: 0.6rem;
  margin-bottom: 0.8rem;
}

.wk-race i,
.wk-race b {
  flex: 1;
  border-radius: 2px;
}

.wk-race i { background: var(--c-run); }
.wk-race b { background: var(--c-station); flex: 0.85; }

.wk-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6rem;
  margin: auto auto 0;
}

.wk-ring svg {
  width: 100%;
  transform: rotate(-90deg);
}

.wk-ring circle {
  fill: none;
  stroke: #e4e0d5;
  stroke-width: 3.4;
}

.wk-ring .v {
  stroke: #32b14a;
  stroke-dasharray: 94.2;
  stroke-dashoffset: 17;
  stroke-linecap: round;
}

.wk-ring b {
  position: absolute;
  font-family: var(--display);
  font-size: 1.6rem;
}

.wk-hand {
  margin: 0 0 0.4rem;
  font-family: var(--marker);
  font-size: 0.98rem;
  line-height: 1.35;
  color: #20253a;
  transform: rotate(-1.5deg);
}

.ai-tag {
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  color: var(--gold);
  background: var(--ink);
}

.wk.is-today {
  color: var(--text);
  background: #16171a;
  box-shadow: 0 0 0 1px rgba(218, 195, 140, 0.35), 0 26px 40px -22px rgba(0, 0, 0, 0.7);
  transform: translateY(-0.6rem);
}

.wk.is-today header,
.wk.is-today footer {
  color: var(--text-3);
  border-color: rgba(255, 255, 255, 0.14);
}

.wk.is-today header em {
  color: var(--c-wod);
}

.wk.is-today .wk-hand {
  color: #e9e6dc;
}

.week-totals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.week-totals b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.week-totals span {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.week-totals p {
  max-width: 22rem;
  margin: 0 0 0 auto;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ---------- AI: whiteboard ---------- */

.h-ai {
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    var(--g0);
}

.ai-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "wall phone"
    "steps steps";
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.ai-wall {
  grid-area: wall;
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 3rem);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 55% at 45% 0%, rgba(255, 244, 222, 0.22), transparent 70%),
    linear-gradient(180deg, #3b3a37, #2a2927 60%, #232220);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ai-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.board {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  transform: rotate(-0.6deg);
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.55));
}

.board-surface {
  position: relative;
  aspect-ratio: 1.45;
  padding: 7% 8% 6%;
  border: clamp(8px, 1.1vw, 13px) solid transparent;
  border-radius: 6px;
  background:
    radial-gradient(ellipse 35% 22% at 72% 30%, rgba(160, 170, 185, 0.16), transparent 70%),
    radial-gradient(ellipse 28% 18% at 20% 80%, rgba(150, 160, 175, 0.14), transparent 70%),
    linear-gradient(165deg, #fdfdfb 0%, #f2f3ef 50%, #e7e9e4 100%) padding-box,
    linear-gradient(135deg, #f0f1f3, #a4a8ad 28%, #dfe2e5 50%, #8e9298 75%, #d3d6d9) border-box;
  overflow: hidden;
  color: #1b2030;
  font-family: var(--marker);
  container-type: inline-size;
}

.board-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.7) 46%, transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.board-ghost span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(40, 55, 80, 0.09);
  font-size: 3.3cqi;
  white-space: nowrap;
  transform: rotate(var(--r));
  filter: blur(1.4px);
}

.board-ink {
  position: relative;
  z-index: 1;
  filter: url(#ink);
}

.board-ink p {
  position: relative;
  width: fit-content;
  margin: 0 0 0.12em;
  font-size: 5.3cqi;
  line-height: 1.12;
  transform: rotate(var(--r));
}

.board-ink small {
  font-size: 0.62em;
  vertical-align: 0.25em;
}

.ink-red {
  color: #c2262e;
}

.ink-blue {
  color: #1d4fa8;
}

.board-ink .l-date {
  margin-bottom: 0.35em;
  font-size: 3.4cqi;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.board-ink .l-fmt {
  font-size: 7.2cqi;
  margin-bottom: 0.25em;
}

.circled {
  display: inline-block;
  padding: 0 0.22em;
  border: max(2px, 0.45cqi) solid #c2262e;
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  color: #c2262e;
  transform: rotate(-6deg);
}

.board-ink .l-note {
  position: absolute;
  right: -4%;
  bottom: -12%;
  font-size: 3cqi;
}


.magnet {
  position: absolute;
  z-index: 2;
  width: clamp(14px, 1.6vw, 20px);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.4);
}

.m1 { top: 5%; right: 6%; background: #d63b2f; }
.m2 { top: 6%; left: 46%; background: #222; }

.board-tray {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: clamp(14px, 1.8vw, 20px);
  margin: 0 3%;
  padding: 0 6%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #d5d8dc, #8d9196);
}

.mk {
  display: block;
  width: clamp(48px, 6vw, 70px);
  height: clamp(9px, 1vw, 12px);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--k) 0 22%, #eee 22% 92%, #bbb 92%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(-45%) rotate(var(--t, 0deg));
}

.mk-black { --k: #222; }
.mk-red { --k: #c2262e; --t: -3deg; }
.mk-blue { --k: #1d4fa8; --t: 2deg; }

.eraser {
  width: clamp(40px, 5vw, 58px);
  height: clamp(12px, 1.4vw, 16px);
  margin-left: auto;
  border-radius: 3px;
  background: linear-gradient(180deg, #2b2b2b 0 55%, #e7e2d6 55%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(-40%);
}

/* OCR overlay, step 2 and 3 */

.board-ink [data-line] > span {
  position: relative;
  display: inline-block;
  padding: 0 0.2em;
  border-radius: 6px;
  transition: background 360ms ease, box-shadow 360ms ease;
  transition-delay: calc(var(--d) * 140ms);
}

.board-ink [data-line]::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 0.7rem);
  top: 50%;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  color: var(--gold);
  background: #111;
  font-family: var(--ui);
  font-size: max(9px, 1.75cqi);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-6px, -50%) rotate(calc(var(--r) * -1));
  transition: opacity 360ms ease, transform 360ms ease;
  transition-delay: calc(var(--d) * 140ms + 120ms);
}

.board-ink [data-line="5"]::after {
  left: 0.2em;
  top: calc(100% + 0.35rem);
  transform: translate(-6px, 0) rotate(calc(var(--r) * -1));
}

.ai-stage:not([data-step="1"]) .board-ink p[data-line="5"]::after {
  transform: rotate(calc(var(--r) * -1));
}

.ai-stage:not([data-step="1"]) .board-ink [data-line] > span {
  background: rgba(218, 195, 140, 0.22);
  box-shadow: 0 0 0 2px #93bb00;
}

.ai-stage:not([data-step="1"]) .board-ink [data-line]::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(calc(var(--r) * -1));
}

.scanline {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 18px 6px rgba(218, 195, 140, 0.45);
  opacity: 0;
  pointer-events: none;
}

.ai-stage[data-step="2"] .scanline {
  animation: scan 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes scan {
  0% { top: 0; opacity: 0.2; }
  15% { opacity: 1; }
  100% { top: 100%; opacity: 0.9; }
}

/* Phone over the wall */

.ai-phone {
  --w: clamp(240px, 21vw, 290px);
  grid-area: phone;
  z-index: 3;
  margin-left: clamp(-7rem, -6vw, -3rem);
  transform: rotate(4deg);
}

.ai-screen {
  position: absolute;
  inset: 3.3em 0 0;
  display: flex;
  flex-direction: column;
  padding: 0 1em 1.2em;
  opacity: 0;
  transform: translateY(0.8em);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.ai-stage[data-step="1"] [data-screen="1"],
.ai-stage[data-step="2"] [data-screen="2"],
.ai-stage[data-step="3"] [data-screen="3"] {
  opacity: 1;
  transform: none;
}

.cam-top,
.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.6em 0.2em 0.8em;
  font-size: 0.92em;
}

.cam-top b,
.nav-bar b {
  font-weight: 600;
}

.cam-top span:first-child {
  color: var(--gold);
}

.nav-bar span:last-child {
  text-align: right;
}

.cam-view {
  position: relative;
  flex: 1;
  margin: 0 -1em;
  overflow: hidden;
  background: linear-gradient(180deg, #3b3a37, #262523);
}

.cam-clone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  pointer-events: none;
}

.cam-view .c {
  position: absolute;
  width: 1.8em;
  height: 1.8em;
  border: 0 solid #ffd60a;
}

.cam-view .tl { top: 14%; left: 7%; border-width: 3px 0 0 3px; border-top-left-radius: 0.6em; }
.cam-view .tr { top: 14%; right: 7%; border-width: 3px 3px 0 0; border-top-right-radius: 0.6em; }
.cam-view .bl { bottom: 14%; left: 7%; border-width: 0 0 3px 3px; border-bottom-left-radius: 0.6em; }
.cam-view .br { bottom: 14%; right: 7%; border-width: 0 3px 3px 0; border-bottom-right-radius: 0.6em; }

.cam-hint {
  margin: 0.8em 0 0.4em;
  color: var(--text-2);
  font-size: 0.82em;
  text-align: center;
}

.cam-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.6em;
  font-size: 0.72em;
  color: var(--gold);
  text-align: center;
}

.shutter {
  width: 4.6em;
  height: 4.6em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.3em #000, 0 0 0 0.55em #fff;
}

.read-thumb {
  position: relative;
  height: 34%;
  margin-bottom: 1em;
  overflow: hidden;
  border-radius: 0.9em;
  background: #2a2927;
}

.read-thumb .scanline {
  opacity: 1;
}

.ai-stage[data-step="2"] .read-thumb .scanline {
  animation-duration: 1.1s;
}

.read-status {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.9em;
}

.read-status b {
  display: block;
  font-weight: 600;
}

.read-status small {
  color: var(--text-3);
  font-size: 0.8em;
}

.spinner {
  width: 1.5em;
  height: 1.5em;
  border: 2.5px solid var(--g4);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.read-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 0.9em;
  background: var(--g2);
}

.read-list li {
  padding: 0.62em 0.9em;
  border-bottom: 1px solid var(--g3);
  font-size: 0.9em;
  opacity: 0;
  transform: translateX(-0.6em);
  transition: opacity 300ms ease, transform 300ms ease;
}

.read-list li:last-child {
  border-bottom: 0;
}

.ai-stage[data-step="2"] .read-list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--d) * 260ms + 300ms);
}

.rv-name {
  margin: 0.1em 0 0.6em;
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ios-group {
  margin-bottom: 0.7em;
  border-radius: 0.9em;
  background: var(--g2);
}

.ios-group-label {
  margin: 0.2em 0 0.4em 0.9em;
  color: var(--text-3);
  font-size: 0.78em;
}

.ios-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6em;
  padding: 0.58em 0.9em;
  border-bottom: 1px solid var(--g3);
  font-size: 0.88em;
}

.ios-cell:last-child {
  border-bottom: 0;
}

.ios-cell b {
  color: var(--text-2);
  font-weight: 400;
  white-space: nowrap;
}

.ios-cell small {
  display: block;
  color: #ffd60a;
  font-size: 0.8em;
}

.ios-cell.flag {
  background: rgba(255, 214, 10, 0.07);
}

.rv-muscles {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em 0.9em;
  border-radius: 0.9em;
  background: var(--g2);
  font-size: 0.8em;
}

.rv-muscles p {
  margin: 0;
  color: var(--text-2);
}

.rv-muscles b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.mini-body {
  flex: none;
  width: 1.9em;
  height: 2.6em;
  background: linear-gradient(180deg, #40bce8, #1f5f7a);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'><circle cx='10' cy='3' r='2.6'/><path d='M5 7h10l3 9-2 .6-2.4-6L13 27h-2.4L10 17l-.6 10H7l-.6-16.4L4 16.6 2 16z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'><circle cx='10' cy='3' r='2.6'/><path d='M5 7h10l3 9-2 .6-2.4-6L13 27h-2.4L10 17l-.6 10H7l-.6-16.4L4 16.6 2 16z'/></svg>") center / contain no-repeat;
}

.rv-actions {
  display: grid;
  gap: 0;
  margin-top: auto;
}

.rv-actions .ios-cta {
  margin-top: 0.5em;
}

/* Steps */

.ai-steps {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.ai-steps button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  width: 100%;
  padding: 1.1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-3);
  background: none;
  text-align: left;
  cursor: pointer;
}

.ai-steps button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
}

.ai-steps button[aria-selected="true"] {
  color: var(--text);
}

.ai-steps button[aria-selected="true"]::before {
  width: 100%;
  transition: width var(--cycle, 0ms) linear;
}

.ai-stage.is-auto .ai-steps button[aria-selected="true"]::before {
  animation: fill var(--cycle, 4200ms) linear forwards;
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

.ai-steps span {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding-top: 0.25rem;
}

.ai-steps b {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.ai-steps small {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--text-3);
}

/* AI coach */

.coach-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem;
  margin: clamp(5rem, 9vw, 8rem) 0 2rem;
}

.coach-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.92;
}

.coach-head p {
  max-width: 30rem;
  margin: 0 0 0 auto;
  color: var(--text-2);
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.coach {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.coach-tag {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet {
  flex: 1;
  padding: 1.15rem;
  border-radius: 20px;
  background: var(--g2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #e5e5ea;
  font-family: var(--ui);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sheet p {
  margin: 0 0 0.7rem;
}

.sheet p:last-child {
  margin-bottom: 0;
}

.sheet-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.sheet-next {
  padding-top: 0.7rem;
  border-top: 1px solid var(--g3);
  color: var(--text-2);
}

.sheet-next b,
.lime {
  color: var(--gold);
  font-weight: 600;
}

.load-hist {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 6.5rem;
  margin-bottom: 0.9rem;
}

.load-hist div {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #5e5ce6, #3d3b9c);
}

.load-hist .sugg {
  background: rgba(218, 195, 140, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  border-style: dashed;
}

.load-hist b {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.load-hist .sugg b {
  color: var(--gold);
}

.loss {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.loss li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.6rem;
  font-size: 0.82rem;
}

.loss i {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-loss) var(--w), var(--g3) var(--w));
}

.loss b {
  grid-row: 1;
  grid-column: 2;
  color: var(--c-loss);
  font-variant-numeric: tabular-nums;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat .q {
  align-self: flex-end;
  max-width: 88%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 1.1rem 1.1rem 0.3rem 1.1rem;
  color: #20252B;
  background: var(--gold);
}

.chat .a {
  max-width: 94%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: var(--g3);
}

.ai-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-promise b {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.ai-promise span {
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ---------- Body map ---------- */

.h-body {
  background:
    radial-gradient(ellipse 50% 60% at 72% 50%, rgba(64, 188, 232, 0.08), transparent 70%),
    #08090a;
}

.body-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  margin-top: 2rem;
  padding: 3px;
  border-radius: 10px;
  background: var(--g2);
  font-family: var(--ui);
}

.seg button {
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 8px;
  color: var(--text-2);
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.seg button[aria-selected="true"] {
  color: var(--text);
  background: var(--g4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.top-muscles {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui);
}

.top-muscles li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.top-muscles b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.top-muscles i {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1f5f7a, #40bce8 70%, #8adfff) 0 0 / var(--w, 0%) 100% no-repeat, var(--g2);
  transition: background-size 600ms ease;
}

.body-panel {
  position: relative;
  margin: 0;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 40%, #17191d, #0d0e10 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.body-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.body-side {
  position: relative;
  display: grid;
  justify-items: center;
}

.body-side figcaption {
  margin-top: 0.8rem;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bm {
  width: 100%;
  max-height: 72vh;
  overflow: visible;
}

.bm [data-m] path {
  fill: #262931;
  stroke: #0d0e10;
  stroke-width: 1.4;
  transition: fill 650ms ease, filter 650ms ease;
}

.bm [data-m="hands"] path,
.bm [data-m="feet"] path,
.bm [data-m="neck"] path,
.bm [data-m="groin"] path {
  fill: #1e2026;
}

.bm [data-l="1"] path { fill: #1f5f7a; }
.bm [data-l="2"] path { fill: #2c8db5; }
.bm [data-l="3"] path { fill: #40bce8; }
.bm [data-l="4"] path { fill: #8adfff; }

.bm [data-l="4"] {
  filter: drop-shadow(0 0 7px rgba(138, 223, 255, 0.45));
}

.bm .bm-lines path,
.bm .bm-lines line,
.bm .bm-lines polyline {
  fill: none;
  stroke: #4a4e66;
  stroke-opacity: 0.85;
}

.body-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--text-3);
  font-family: var(--ui);
  font-size: 0.78rem;
}

.body-legend i {
  width: 1.8rem;
  height: 0.45rem;
  border-radius: 2px;
}

.body-legend .l1 { background: #1f5f7a; }
.body-legend .l2 { background: #2c8db5; }
.body-legend .l3 { background: #40bce8; }
.body-legend .l4 { background: #8adfff; }

.body-legend em {
  margin-left: auto;
  font-style: normal;
}

/* ---------- HYROX ---------- */

.h-hyrox {
  color: var(--ink);
  background: var(--paper);
}

.h-hyrox .h-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.race {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-radius: 26px;
  color: var(--text);
  background: #111214;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.6);
}

.race-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.race-top small {
  display: block;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.race-top b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.race-top div:last-child {
  text-align: right;
}

.race-top div:last-child b {
  color: var(--gold);
}

.race-top em {
  color: var(--text-3);
  font-size: 0.75rem;
  font-style: normal;
}

.race-strip {
  display: flex;
  gap: 3px;
  height: clamp(3.4rem, 6vw, 4.6rem);
}

.race-strip > * {
  position: relative;
  flex: var(--s) 1 0;
  border-radius: 6px;
  min-width: 0;
}

.race-strip .run {
  background: linear-gradient(180deg, #7ad9ff, #3fb7e8);
}

.race-strip b {
  background: linear-gradient(180deg, #cf7bf7, #a548d6);
}

.race-strip u {
  background: repeating-linear-gradient(135deg, #3a3a3c 0 4px, #2a2a2c 4px 8px);
}

.race-strip .loss {
  box-shadow: 0 0 0 2px #111214, 0 0 0 4px var(--c-loss);
}

.race-strip b::after {
  content: attr(data-n);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  color: var(--text-3);
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}

.race-strip b.loss::after {
  color: var(--c-loss);
}

.race-strip {
  margin-top: 1.6rem;
}

.race-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1rem 0 2rem;
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 0.82rem;
}

.race-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.45rem;
  border-radius: 3px;
  vertical-align: -1px;
}

.race-legend .run { background: #64d2ff; }
.race-legend .st { background: #bf5af2; }
.race-legend .rz { background: #3a3a3c; }
.race-legend .ls { box-shadow: inset 0 0 0 2px var(--c-loss); }

.race-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.race-table th {
  padding: 0 0 0.6rem;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.race-table th:not(:first-child),
.race-table td:not(:first-child) {
  text-align: right;
}

.race-table td {
  padding: 0.62rem 0;
  border-top: 1px solid var(--g3);
}

.race-table td:last-child {
  color: #ff9f0a;
}

.race-table td.gain {
  color: var(--c-gain);
}

.race-table tr.worst td {
  color: var(--text);
  font-weight: 600;
}

.race-table tr.worst td:last-child {
  color: var(--c-loss);
}

/* ---------- Watch ---------- */

.h-watch {
  background:
    radial-gradient(ellipse 45% 60% at 25% 50%, rgba(218, 195, 140, 0.07), transparent 70%),
    var(--g0);
}

.watch-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  max-width: 72rem;
  margin: 0 auto;
}

.watch-big {
  --w: clamp(200px, 22vw, 280px);
  transform: rotate(-4deg);
}

.watch-facts {
  display: grid;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
}

.watch-facts li {
  padding-left: 1.4rem;
  position: relative;
}

.watch-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.watch-facts b {
  color: var(--text);
}

/* ---------- Your data ---------- */

.h-data {
  color: var(--ink);
  background: var(--paper-2);
}

.data-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.data-grid article {
  padding: 1.6rem;
  border-radius: 18px;
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.data-grid h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.data-grid p {
  margin: 0;
  color: var(--ink-2);
}

.data-grid a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.chips span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.h-pricing {
  background: var(--g0);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 64rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.price {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 24px;
  color: var(--text);
  background: var(--g1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.price-pro {
  background: linear-gradient(160deg, #1a1d12, #121315 50%);
  box-shadow: inset 0 0 0 1px rgba(218, 195, 140, 0.45);
}

.price-tag {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price h3 {
  margin: 0.6rem 0 0.2rem;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.price-sub {
  margin: 0 0 1.4rem;
  color: var(--text-3);
}

.price ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-2);
}

.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.price-note {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-3);
  font-size: 0.8rem;
}

.price-note a {
  color: var(--gold);
}

/* ---------- Launch ---------- */

.h-launch {
  color: var(--ink);
  background: var(--gold);
}

.launch-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.h-launch h2 {
  font-size: clamp(3rem, 5.6vw, 5.4rem);
}

.h-launch p {
  max-width: 30rem;
}

.home .launch-form {
  width: 100%;
  margin: 0;
}

.home .launch-form label {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .week-board {
    display: flex;
    margin-right: calc(var(--site-pad) * -1);
    margin-left: calc(var(--site-pad) * -1);
    padding: 0.8rem var(--site-pad) 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .week-board::-webkit-scrollbar {
    display: none;
  }

  .wk {
    flex: 0 0 13.5rem;
    scroll-snap-align: start;
  }

  .coach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .h-hero,
  .body-layout,
  .launch-inner,
  .coach-head {
    grid-template-columns: 1fr;
  }

  .h-hero-stage {
    min-height: 34rem;
  }

  .ai-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wall"
      "phone"
      "steps";
  }

  .ai-phone {
    justify-self: center;
    margin: -5rem 0 0;
  }

  .coach-head p {
    margin-left: 0;
  }

  .week-totals {
    grid-template-columns: repeat(4, auto);
  }

  .week-totals p {
    grid-column: 1 / -1;
    margin: 0;
  }

  .watch-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .watch-big {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .h-hero-phone {
    transform: rotate(2deg) translateX(10%);
  }

  .h-hero-watch {
    left: 0;
  }

  .h-replaces li {
    font-size: 0.78rem;
  }

  .board-ink [data-line]::after {
    display: none;
  }

  .ai-steps,
  .coach-grid,
  .ai-promise,
  .data-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .ai-steps {
    gap: 0.4rem;
  }

  .week-totals {
    grid-template-columns: repeat(2, 1fr);
  }

  .seg {
    display: grid;
    grid-auto-flow: column;
    width: 100%;
  }

  .seg button {
    padding: 0.5rem 0.3rem;
  }

  .race-strip b::after {
    display: none;
  }

  .race-top div:last-child {
    text-align: left;
  }

  .body-legend em {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-stage .scanline,
  .spinner {
    animation: none !important;
  }

  .h-replaces li::after,
  .ai-screen,
  .read-list li,
  .board-ink [data-line] > span,
  .board-ink [data-line]::after,
  .bm [data-m] path {
    transition: none !important;
  }
}
