/*
  Stride: running app landing page (Screenery template)
  Jet black ground, one acid volt, huge italic Kanit numerals and Dela Gothic One headings. Phones are drawn in CSS.
  Structure: tokens and base, kit (buttons, fields, chips), header, hero with the run phone, numerals band, app phones
  (plan, summary), features spec sheet, pace calculator, clubs, pricing, download, footer, kinetic motion, narrow screens.
*/

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0b0b0a;          /* jet: the ground */
  --ink-2: #131311;        /* raised panels, phone screens */
  --ink-3: #1c1c19;        /* wells, inputs */
  --line: #2e2e29;         /* hairlines */
  --line-2: #45453e;       /* stronger rules, input borders */
  --bone: #f1f1ea;         /* text */
  --mute: #a7a79e;         /* secondary text (7.9:1 on ink) */
  --volt: #d4ff1e;         /* the one acid colour */
  --volt-dim: #9fbf16;     /* volt on hover-out states, scrollbar */
  --warn: #ff6a45;         /* GPS lost, errors (6.6:1 on ink) */
  --warn-bg: #2a130d;

  --z1: #6b6b63; --z2: #9a9a90; --z3: #c4dd6a; --z4: var(--volt); --z5: var(--warn);

  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --sans: "Kanit", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.4rem, 2.2vw, 1.75rem);
  --fs-h2: clamp(2.2rem, 5.4vw, 4.4rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-pill: 999px;
  --r-phone: 54px;
  --r-screen: 42px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* exponential ease-out */
  --speed: 0;                              /* scroll velocity 0..1, set by script.js */
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--volt-dim) var(--ink); scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--fs-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--volt); color: var(--ink); }
input, button { font: inherit; color: inherit; }
input { caret-color: var(--volt); }
:root { accent-color: var(--volt); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 50; background: var(--volt); color: var(--ink); padding: var(--s2) var(--s4); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s3); }
[hidden] { display: none !important; }

/* ---------- 3. Kit ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-md); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: var(--bone); }
.btn--line { border-color: var(--line-2); color: var(--bone); background: transparent; }
.btn--line:hover { border-color: var(--bone); }
.btn:disabled { cursor: progress; opacity: .7; }

.field { display: grid; gap: var(--s2); }
.field label, legend { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0; }
input[type=text], input[type=email] {
  width: 100%; min-height: 52px; padding: 0 var(--s4);
  background: var(--ink-3); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  font-size: var(--fs-lg); font-weight: 500;
  transition: border-color .2s var(--ease);
}
input::placeholder { color: #8f8f87; }
input:hover { border-color: #5d5d55; }
input:focus-visible { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgb(212 255 30 / .22); }
input[aria-invalid=true] { border-color: var(--warn); }
.err { color: var(--warn); font-size: var(--fs-sm); min-height: 0; }
.err:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button {
  min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill);
  border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 500;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chips button:hover { border-color: var(--bone); }
.chips [aria-checked=true], .chips [aria-pressed=true] { background: var(--volt); border-color: var(--volt); color: var(--ink); }

.check { display: flex; align-items: center; gap: var(--s3); cursor: pointer; font-size: var(--fs-sm); color: var(--mute); min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; flex: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.check .box .ic { width: 16px; height: 16px; opacity: 0; color: var(--ink); stroke-width: 2.2; }
.check input:checked + .box { background: var(--volt); border-color: var(--volt); }
.check input:checked + .box .ic { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--volt); outline-offset: 3px; }

.h2 { font: 400 var(--fs-h2)/1.02 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.h3 { font: italic 800 var(--fs-h3)/1.1 var(--sans); letter-spacing: -0.01em; }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s6);
  padding: var(--s3) var(--gut);
  background: rgb(11 11 10 / .94);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; min-height: 44px; }
.mark-glyph { width: 30px; height: 30px; fill: var(--volt); }
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a { font-size: var(--fs-sm); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--mute); padding: var(--s2) 0; transition: color .2s var(--ease); }
.nav a:hover { color: var(--bone); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: var(--s7);
  max-width: var(--max); margin: 0 auto;
  padding: var(--s8) var(--gut) var(--s9);
  isolation: isolate;
}
.hero-title { font: 400 clamp(3.2rem, 7.6vw, 6rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -0.02em; transform-origin: left bottom; }
.hero-title span { display: inline-block; transform: skewX(-9deg); }
.hero-title span:last-child { color: var(--volt); }
.hero-lede { margin-top: var(--s5); max-width: 52ch; font-size: var(--fs-lg); font-weight: 300; color: var(--bone); }
.picker { margin-top: var(--s7); }
.picker legend { margin-bottom: var(--s3); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; max-width: 480px; }
.seg button {
  display: grid; gap: 0; justify-items: start; padding: var(--s3) var(--s4); min-height: 64px;
  background: transparent; border: 0; border-left: 1.5px solid var(--line-2); cursor: pointer; text-align: left;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg button:first-child { border-left: 0; }
.seg button b { font: italic 900 1.6rem/1 var(--sans); letter-spacing: -0.02em; }
.seg button small { font-size: var(--fs-xs); color: var(--mute); letter-spacing: .04em; }
.seg button:hover { background: var(--ink-3); }
.seg [aria-checked=true] { background: var(--volt); color: var(--ink); }
.seg [aria-checked=true]:hover { background: var(--volt); }
.seg [aria-checked=true] small { color: #2c3300; }
.seg button:focus-visible { outline-offset: -4px; }
.picker-note { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--mute); max-width: 52ch; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s6); margin: var(--s7) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
.hero-facts dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.hero-facts dd { margin: 0; font-weight: 500; font-size: var(--fs-sm); }
.hero-phone { display: grid; justify-items: center; }

/* Speed streaks behind the hero: they brighten and stretch with scroll speed, and drift while a run is live */
.streaks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.streaks i {
  position: absolute; right: -10%; height: 1.5px; width: 46%;
  background: linear-gradient(90deg, transparent, rgb(241 241 234 / .55) 70%, transparent);
  opacity: calc(var(--speed) * .9);
  transform: translateX(calc(var(--speed) * -120px)) scaleX(calc(1 + var(--speed) * .8));
  transform-origin: right;
}
.streaks i:nth-child(1) { top: 18%; width: 38%; }
.streaks i:nth-child(2) { top: 31%; width: 54%; right: -18%; }
.streaks i:nth-child(3) { top: 47%; width: 30%; background: linear-gradient(90deg, transparent, rgb(212 255 30 / .7) 70%, transparent); }
.streaks i:nth-child(4) { top: 58%; width: 62%; right: -24%; }
.streaks i:nth-child(5) { top: 71%; width: 34%; }
.streaks i:nth-child(6) { top: 83%; width: 48%; right: -14%; background: linear-gradient(90deg, transparent, rgb(212 255 30 / .5) 70%, transparent); }
.streaks i:nth-child(7) { top: 92%; width: 28%; }
@media (prefers-reduced-motion: no-preference) {
  .is-running .streaks i { animation: drift 1.6s linear infinite; opacity: max(.22, calc(var(--speed) * .9)); }
  .is-running .streaks i:nth-child(2n) { animation-duration: 2.3s; animation-delay: -.7s; }
  .is-running .streaks i:nth-child(3n) { animation-duration: 1.9s; animation-delay: -1.2s; }
}
@keyframes drift { from { translate: 30% 0; } to { translate: -260% 0; } }
@media (prefers-reduced-motion: reduce) { .streaks { display: none; } }

/* ---------- 6. Phone (drawn in CSS) ---------- */
.phone {
  position: relative;
  width: min(352px, 100%);
  padding: 11px;
  border-radius: var(--r-phone);
  background: linear-gradient(160deg, #2b2b27, #121210 40%, #1d1d1a);
  box-shadow: inset 0 0 0 1px #3d3d37, inset 0 0 0 3px #0e0e0d, 0 40px 80px -24px rgb(0 0 0 / .85), 0 12px 24px -12px rgb(0 0 0 / .7);
}
.phone-btns i { position: absolute; width: 3px; background: #2f2f2a; border-radius: 2px; }
.phone-btns i:nth-child(1) { left: -3px; top: 120px; height: 34px; }
.phone-btns i:nth-child(2) { left: -3px; top: 168px; height: 58px; }
.phone-btns i:nth-child(3) { right: -3px; top: 150px; height: 84px; }
.screen {
  position: relative; height: 700px; overflow: hidden;
  border-radius: var(--r-screen); background: var(--ink);
  display: flex; flex-direction: column;
  font-size: var(--fs-sm); line-height: 1.4;
}
.sbar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px; font-weight: 600; font-size: .8125rem; flex: none; }
.cam { width: 96px; height: 28px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px #1c1c1a; }
.sbar-icons { display: flex; gap: 6px; align-items: center; }
.sig { width: 16px; height: 10px; background: linear-gradient(90deg, var(--bone) 0 3px, transparent 3px 4.5px, var(--bone) 4.5px 7.5px, transparent 7.5px 9px, var(--bone) 9px 12px, transparent 12px 13.5px, var(--bone) 13.5px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.bat { width: 22px; height: 11px; border: 1.5px solid var(--bone); border-radius: 3px; position: relative; }
.bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--bone); border-radius: 1px; }

/* Run view */
.rv { position: relative; flex: 1; display: flex; flex-direction: column; padding: 4px 18px 18px; min-height: 0; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.rv-title { font: italic 800 1.25rem/1.1 var(--sans); }
.rv-route { font-size: .8125rem; color: var(--mute); }
.gps { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: var(--r-pill); border: 1px solid #3c4a0c; color: var(--volt); font-size: .75rem; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.gps .ic { width: 15px; height: 15px; }
.gps.lost { color: var(--warn); border-color: #5a2416; }
.gps-banner { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--warn-bg); border: 1px solid #6b2a19; font-size: .8125rem; }
.gps-banner .ic { color: var(--warn); width: 18px; height: 18px; margin-top: 1px; }
.gps-banner b { color: var(--warn); font-weight: 600; }
.gps-retry { grid-column: 2; justify-self: start; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--warn); background: transparent; color: var(--bone); font-weight: 600; font-size: .8125rem; cursor: pointer; }
.gps-retry:disabled { opacity: .75; cursor: progress; }

.map { margin: 12px -18px 0; flex: none; height: 176px; border-block: 1px solid var(--line); transition: height .4s var(--ease); }
.rv:has(.gps-banner:not([hidden])) .map { height: 96px; }
.map-svg { display: block; width: 100%; height: 100%; }
.map-label { font-family: var(--sans); font-weight: 500; letter-spacing: .04em; }
.route-ghost { fill: none; stroke: #3d3d36; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 2 5; stroke-linecap: round; }
.route-done { fill: none; stroke: var(--volt); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(212 255 30 / .45)); }
.km-tick { fill: var(--ink); stroke: #6a6a61; stroke-width: 1.2; }
.km-tick.passed { fill: var(--volt); stroke: var(--ink); }
.start-dot { fill: var(--ink); stroke: var(--bone); stroke-width: 2; }
.runner-dot { fill: var(--bone); stroke: var(--ink); stroke-width: 2; }
.runner-halo { fill: rgb(212 255 30 / .22); }
.is-est .runner-dot { fill: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  [data-state=running] .runner-halo { animation: halo 1.2s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.dist { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.dist-n { font: italic 900 5.25rem/.82 var(--sans); letter-spacing: -0.04em; color: var(--volt); padding-right: .06em; }
.dist-u { display: grid; font: italic 700 1.25rem/1 var(--sans); padding-bottom: 6px; }
.dist-u small { font: 400 .75rem/1.3 var(--sans); color: var(--mute); font-style: normal; }
.is-est .dist-n { color: var(--warn); }
.is-est .dist-u small::after { content: ", estimated"; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line); }
.stats div { padding-top: 10px; }
.stats div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.stats dt { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.stats dd { margin: 2px 0 0; font: italic 800 1.6rem/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.stats dd small { font: 400 .75rem var(--sans); font-style: normal; color: var(--mute); margin-left: 2px; letter-spacing: 0; }

.zones { margin-top: 14px; }
.zone-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; align-items: end; height: 14px; }
.zone-bar i { height: 5px; border-radius: 2px; background: var(--line-2); transition: height .4s var(--ease), background-color .4s var(--ease); }
.zone-bar i.on { height: 14px; }
.zone-bar i.on[data-z="1"] { background: var(--z1); } .zone-bar i.on[data-z="2"] { background: var(--z2); } .zone-bar i.on[data-z="3"] { background: var(--z3); }
.zone-bar i.on[data-z="4"] { background: var(--z4); } .zone-bar i.on[data-z="5"] { background: var(--z5); }
.zone-text { margin-top: 6px; font-size: .8125rem; color: var(--mute); }
.zone-text b { color: var(--bone); font-weight: 600; }
.split-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8125rem; }

.ctrls { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: auto; padding-top: 12px; }
.ctrl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; font: italic 800 1.125rem/1 var(--sans); letter-spacing: .01em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.ctrl:active { transform: scale(.98); }
.ctrl .ic { width: 20px; height: 20px; }
.ctrl--go { background: var(--volt); color: var(--ink); }
.ctrl--go .ic { fill: currentColor; }
.ctrl--go:hover { background: var(--bone); }
.ctrl--pause { background: var(--bone); color: var(--ink); }
.ctrl--stop { background: transparent; border-color: var(--line-2); color: var(--bone); }
.ctrl--stop:hover:not(:disabled) { border-color: var(--warn); color: var(--warn); }
.ctrl:disabled { opacity: .45; cursor: not-allowed; }
.ctrl--ghost { background: transparent; border-color: var(--line-2); color: var(--bone); }

.count { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(11 11 10 / .86); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.count.on { opacity: 1; }
.count span { font: italic 900 10rem/1 var(--sans); color: var(--volt); letter-spacing: -0.04em; }
@media (prefers-reduced-motion: no-preference) {
  .count span.pop { animation: pop .65s var(--ease); }
}
@keyframes pop { from { transform: scale(1.6) skewX(-10deg); opacity: 0; filter: blur(6px); } 40% { opacity: 1; filter: blur(0); } to { transform: scale(1) skewX(0); } }

/* Summary view */
.sv { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 18px 18px; }
.sv .sum { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 0; }
.sv-again { margin-top: 12px; flex: none; }
.sum { padding: 4px 18px 18px; overflow-y: auto; scrollbar-width: thin; flex: 1; min-height: 0; }
.sum-title { font: italic 800 1.25rem/1.1 var(--sans); }
.sum-title em { font: normal 500 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin-left: 6px; vertical-align: middle; }
.sum-sub { font-size: .8125rem; color: var(--mute); }
.sum-time { margin-top: 10px; font: italic 900 4rem/.9 var(--sans); letter-spacing: -0.04em; color: var(--volt); }
.sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.sum-stats div + div { padding-left: 10px; border-left: 1px solid var(--line); }
.sum-stats dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sum-stats dd { margin: 0; font: italic 800 1.35rem/1.1 var(--sans); }
.sum-stats dd small { font: 400 .75rem var(--sans); color: var(--mute); margin-left: 2px; }
.sum-zones { display: flex; gap: 2px; height: 8px; margin-top: 14px; border-radius: 3px; overflow: hidden; }
.sum-zones i { flex: 1 1 0; min-width: 0; }
.sum-zones i[data-z="1"] { background: var(--z1); } .sum-zones i[data-z="2"] { background: var(--z2); } .sum-zones i[data-z="3"] { background: var(--z3); }
.sum-zones i[data-z="4"] { background: var(--z4); } .sum-zones i[data-z="5"] { background: var(--z5); }
.sum-zl { display: flex; justify-content: space-between; margin-top: 4px; font-size: .75rem; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.splits { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .8125rem; }
.splits thead th { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: left; padding-bottom: 4px; }
.splits thead th:last-child, .splits td:last-child { text-align: right; }
.splits tbody th { width: 34px; font-weight: 500; color: var(--mute); text-align: left; padding: 3px 0; }
.splits td { padding: 3px 0; }
.splits td:last-child { width: 62px; font-weight: 600; white-space: nowrap; }
.splits td small { display: block; font-size: .75rem; font-weight: 400; color: var(--mute); }
.splits .bar { display: block; height: 10px; border-radius: 2px; background: #5b5b53; transform: skewX(-14deg); transform-origin: left; }
.splits .fast .bar { background: var(--volt); }
.splits .fast th, .splits .fast td:last-child { color: var(--volt); }
.splits .part .bar { background: transparent; border: 1.5px dashed #6d6d64; }
.sum-check { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--mute); }
.sum-check b { color: var(--bone); }

/* ---------- 7. Numerals band ---------- */
.band { padding: var(--s8) 0 var(--s8); border-block: 1px solid var(--line); overflow: hidden; }
.band-rows { display: grid; gap: 0; }
.band-row {
  display: flex; gap: .35em; white-space: nowrap; width: max-content;
  font: italic 900 clamp(5rem, 15vw, 14rem)/.9 var(--sans); letter-spacing: -0.045em;
  margin-left: -8vw;
}
.band-row span { display: inline-flex; align-items: baseline; padding-right: .05em; }
.band-row small { font-size: .26em; font-weight: 700; letter-spacing: 0; margin-left: .1em; }
.band-row .o { color: transparent; -webkit-text-stroke: 1.5px #6d6d64; }
.band-row--volt span:not(.o) { color: var(--volt); }
.band-row--volt { margin-left: -30vw; }
.band-cap { max-width: 62ch; margin: var(--s7) var(--gut) 0 auto; padding-right: var(--gut); font-size: var(--fs-lg); font-weight: 300; }
@media (min-width: 1440px) { .band-cap { margin-right: calc((100vw - var(--max)) / 2); } }

/* ---------- 8. App section ---------- */
.app { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gut); }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s8); align-items: center; margin-top: var(--s8); }
.app-row--flip { grid-template-columns: auto minmax(0, 1fr); }
.app-row--flip .phone { order: -1; }
.app-text { max-width: 54ch; }
.app-text p { margin-top: var(--s4); color: var(--bone); font-weight: 300; font-size: var(--fs-lg); }
.ticks { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s2); }
.ticks li { display: flex; gap: var(--s3); align-items: center; }
.ticks .ic { color: var(--volt); }
.mini-spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s6); margin: var(--s5) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
.mini-spec dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.mini-spec dd { margin: 0; font: italic 700 1.15rem/1.3 var(--sans); }

/* Plan phone */
.pv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pv-head { padding: 4px 18px 12px; border-bottom: 1px solid var(--line); }
.pv-title { font: italic 800 1.25rem/1.1 var(--sans); }
.pv-sub { font-size: .8125rem; color: var(--mute); }
.pv-prog { display: flex; justify-content: space-between; margin-top: 12px; font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.pv-track { height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pv-track i { display: block; height: 100%; background: var(--volt); }
.weeks { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 6px 10px 14px; }
.wk { border-bottom: 1px solid var(--line); }
.wk summary {
  display: grid; grid-template-columns: 34px 1fr auto 20px; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  min-height: 48px; padding: 8px 8px; list-style: none; cursor: pointer; border-radius: 8px;
  transition: background-color .2s var(--ease);
}
.wk summary::-webkit-details-marker { display: none; }
.wk summary:hover { background: var(--ink-2); }
.wk summary:focus-visible { outline-offset: -2px; }
.wk-n { font: italic 900 1.05rem/1 var(--sans); }
.wk-name { font-weight: 500; }
.wk-name em { font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--volt); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.wk-km { font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-bar { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6a6a62 var(--w), var(--line) var(--w)); margin-top: 6px; }
.wk-chev { grid-row: 1 / 3; grid-column: 4; width: 18px; height: 18px; color: var(--mute); transition: transform .3s var(--ease); }
.wk[open] .wk-chev { transform: rotate(180deg); }
.wk--done .wk-n, .wk--done .wk-name { color: var(--mute); }
.wk--now .wk-bar { background: linear-gradient(90deg, var(--volt) var(--w), var(--line) var(--w)); }
.wk--now .wk-n { color: var(--volt); }
.sess { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.ses { display: grid; grid-template-columns: 34px 1fr auto 16px; column-gap: 8px; align-items: start; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .8125rem; }
.ses-d { font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; padding-top: 2px; }
.ses-t { font-weight: 500; }
.ses-t small, .ses-k small { display: block; font-size: .75rem; font-weight: 400; color: var(--mute); line-height: 1.35; }
.ses-k { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ses-ok { width: 16px; height: 16px; color: var(--volt); margin-top: 2px; }
.ses--int .ses-t, .ses--tempo .ses-t { color: var(--volt); }
.ses--race .ses-t { color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .wk[open] .sess { animation: open .4s var(--ease); }
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 9. Features: spec sheet ---------- */
.features { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); border-top: 1px solid var(--line); }
.feat-side { align-self: start; position: sticky; top: 110px; }
.feat-side p { margin-top: var(--s5); max-width: 42ch; font-size: var(--fs-lg); font-weight: 300; }
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: grid; grid-template-columns: 28px minmax(0, 15rem) minmax(0, 1fr); gap: var(--s2) var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); align-items: baseline; }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .ic { color: var(--volt); width: 22px; height: 22px; align-self: start; margin-top: 3px; }
.spec h3 { font: italic 700 1.2rem/1.2 var(--sans); }
.spec p { color: var(--mute); max-width: 60ch; }

/* ---------- 10. Pace calculator ---------- */
.pace { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gut); border-top: 1px solid var(--line); }
.pace-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: end; }
.pace-head p { font-size: var(--fs-lg); font-weight: 300; max-width: 50ch; }
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "dist out" "time out" "go out";
  gap: var(--s6) var(--s8); margin-top: var(--s7); padding: var(--s7); border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2);
}
.calc-dist { grid-area: dist; display: grid; gap: var(--s3); }
.calc-time { grid-area: time; display: grid; gap: var(--s3); }
.calc-go { grid-area: go; justify-self: start; }
.calc legend { margin-bottom: var(--s3); }
.field--custom { margin-top: var(--s3); max-width: 240px; }
.hms { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: end; gap: var(--s3); max-width: 420px; }
.hms input { text-align: center; font: italic 800 1.75rem/1 var(--sans); min-height: 64px; font-variant-numeric: tabular-nums; }
.colon { font: italic 900 2rem/64px var(--sans); color: var(--mute); }
.calc-out { grid-area: out; display: grid; align-content: start; gap: var(--s5); padding-left: var(--s7); border-left: 1px solid var(--line); transition: opacity .3s var(--ease), filter .3s var(--ease); }
.calc-out.is-stale .co-n { color: var(--mute); }
.calc-out.is-stale .co-rest, .calc-out.is-stale .co-note { text-decoration: line-through; text-decoration-color: var(--line-2); }
.co-main { display: flex; align-items: flex-end; gap: var(--s3); }
.co-n { font: italic 900 clamp(5rem, 10vw, 8.5rem)/.82 var(--sans); letter-spacing: -0.045em; color: var(--volt); padding-right: .05em; }
.co-u { font: italic 700 1.4rem/1 var(--sans); padding-bottom: 8px; }
.co-rest { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s6); margin: 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
.co-rest dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.co-rest dd { margin: 0; font: italic 800 1.4rem/1.2 var(--sans); }
.co-note { color: var(--mute); }
@media (prefers-reduced-motion: no-preference) {
  .co-n.flash { animation: flash .7s var(--ease); }
}
@keyframes flash { from { transform: skewX(-12deg) translateX(-10px); filter: blur(3px); opacity: .4; } }

/* ---------- 11. Clubs ---------- */
.clubs { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gut); border-top: 1px solid var(--line); }
.clubs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s7); align-items: end; }
.clubs-head p { font-size: var(--fs-lg); font-weight: 300; max-width: 50ch; }
.chips--filter { grid-column: 1 / -1; margin-top: var(--s4); }
.club-list { list-style: none; margin: var(--s6) 0 0; padding: 0; }
.club {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 170px 80px 120px; gap: var(--s5); align-items: center;
  padding: var(--s5) 0; border-top: 1px solid var(--line);
}
.club:last-child { border-bottom: 1px solid var(--line); }
.club-when { display: grid; }
.club-day { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.club-time { font: italic 900 2.2rem/1 var(--sans); letter-spacing: -0.03em; }
.club-main h3 { font: italic 800 1.35rem/1.2 var(--sans); }
.club-main p { display: flex; gap: var(--s2); align-items: flex-start; color: var(--mute); margin-top: 2px; font-size: var(--fs-sm); }
.club-main .ic { width: 17px; height: 17px; margin-top: 2px; }
.club-pace span { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.club-pace small { color: var(--mute); font-size: var(--fs-xs); }
.club-n { display: flex; align-items: center; gap: 6px; color: var(--mute); font-weight: 500; }
.club-n .ic { width: 18px; height: 18px; }
.club-join[aria-pressed=true] { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.club-empty { margin-top: var(--s5); color: var(--mute); }

/* ---------- 12. Pricing ---------- */
.pricing { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gut); border-top: 1px solid var(--line); }
.price-head { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: end; }
.bill { display: inline-flex; padding: 4px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); }
.bill button { min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font-weight: 500; transition: background-color .25s var(--ease), color .25s var(--ease); }
.bill button small { font-size: var(--fs-xs); font-weight: 600; margin-left: 4px; color: var(--volt); }
.bill [aria-checked=true] { background: var(--bone); color: var(--ink); }
.bill [aria-checked=true] small { color: #3a4500; }
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); margin-top: var(--s7); }
.plan { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s7); border-radius: 20px; border: 1px solid var(--line); background: var(--ink-2); }
.plan h3 { font: 400 1.6rem/1 var(--display); text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.plan-price .num { font: italic 900 clamp(3.5rem, 6vw, 5rem)/.9 var(--sans); letter-spacing: -0.04em; }
.plan-price small { color: var(--mute); font-size: var(--fs-md); }
.plan-math { font-size: var(--fs-sm); max-width: 46ch; }
.plan ul { list-style: none; margin: var(--s2) 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.plan li { display: flex; gap: var(--s3); }
.plan li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: .8em; background: currentColor; transform: skewX(-20deg); }
.plan .btn { margin-top: auto; align-self: start; }
.plan--pro { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.plan--pro .plan-price small { color: #3a4500; }
.plan--pro .btn--volt { background: var(--ink); color: var(--volt); }
.plan--pro .btn--volt:hover { background: #262622; }
.plan--pro :focus-visible { outline-color: var(--ink); }
.price-note { margin-top: var(--s5); color: var(--mute); font-size: var(--fs-sm); max-width: 70ch; }

/* ---------- 13. Download ---------- */
.dl { position: relative; padding: var(--s9) var(--gut); border-top: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s7); align-items: center; max-width: var(--max); margin: 0 auto; }
.dl-type { display: grid; font: 400 clamp(5rem, 13vw, 12rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -0.03em; }
.dl-type span { display: block; }
.dl-type span:first-child { transform: skewX(-9deg); }
.dl-type span:last-child { color: var(--volt); transform: skewX(-9deg); padding-left: .4em; }
.dl-body p { margin-top: var(--s4); font-size: var(--fs-lg); font-weight: 300; max-width: 46ch; }
.dl-body .h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.send { margin-top: var(--s6); display: grid; gap: var(--s3); }
.send-row { display: flex; gap: var(--s3); }
.send-row input { flex: 1; min-width: 0; }
.send-row .btn { min-height: 52px; flex: none; }
.spin { display: none; width: 18px; height: 18px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; }
.is-loading .spin { display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.send-ok, .send-fail { display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); margin-top: var(--s6); padding: var(--s5); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--ink-2); }
.send-ok .ic { color: var(--volt); width: 24px; height: 24px; }
.send-ok p, .send-fail p { margin: 0; font-size: var(--fs-md); }
.send-ok .btn, .send-fail .btn { grid-column: 2; justify-self: start; }
.send-ok:focus { outline: none; }
.send-fail { background: var(--warn-bg); border-color: #6b2a19; }
.send-fail .ic { color: var(--warn); width: 24px; height: 24px; }

/* ---------- 14. Footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: var(--s8) var(--gut) var(--s7); border-top: 1px solid var(--line); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); }
.foot-line { color: var(--mute); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin-top: var(--s7); }
.foot-cols h2 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: var(--s3); }
.foot-cols a { display: block; padding: 6px 0; text-decoration: none; width: fit-content; }
.foot-cols a:hover { color: var(--volt); text-decoration: underline; }
.foot-cols p { color: var(--mute); font-size: var(--fs-sm); margin-top: var(--s2); }
.foot-small { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--mute); font-size: var(--fs-sm); }

/* ---------- 15. Kinetic motion (GSAP adds .kinetic on <html>) ---------- */
.kinetic .kin { will-change: transform; transform-origin: left center; }

/* ---------- 16. Narrow screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: var(--s7); gap: var(--s7); }
  .app-row, .app-row--flip { grid-template-columns: 1fr; gap: var(--s6); justify-items: center; }
  .app-row--flip .phone { order: 0; }
  .app-text { justify-self: stretch; }
  .features { grid-template-columns: 1fr; gap: var(--s6); }
  .feat-side { position: static; }
  .calc { grid-template-columns: 1fr; grid-template-areas: "dist" "time" "go" "out"; padding: var(--s6); }
  .calc-out { padding-left: 0; border-left: 0; padding-top: var(--s6); border-top: 1px solid var(--line); }
  .club { grid-template-columns: 96px minmax(0, 1fr) 150px auto; }
  .club-n { display: none; }
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --s9: 80px; --s8: 56px; }
  .hero-facts, .mini-spec, .co-rest { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .pace-head, .clubs-head { grid-template-columns: 1fr; gap: var(--s4); }
  .spec li { grid-template-columns: 28px minmax(0, 1fr); }
  .spec p { grid-column: 2; }
  .club { grid-template-columns: 76px minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: start; }
  .club-time { font-size: 1.7rem; }
  .club-pace, .club-join { grid-column: 2; }
  .club-pace { display: flex; gap: var(--s2); align-items: baseline; }
  .club-join { justify-self: start; margin-top: var(--s2); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: var(--s6); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .send-row { flex-direction: column; }
  .band-cap { margin-left: var(--gut); }
}
@media (max-width: 400px) {
  .phone { padding: 9px; border-radius: 46px; }
  .screen { border-radius: 38px; height: 680px; }
  .rv { padding-inline: 14px; }
  .map { margin-inline: -14px; }
  .dist-n { font-size: 4.5rem; }
  .stats dd { font-size: 1.35rem; }
  .seg button { padding-inline: var(--s3); }
  .hms input { font-size: 1.4rem; }
}
.app-row:first-child { margin-top: 0; }
.app-h3 { margin-top: var(--s7); }
@media (max-width: 720px) {
  .co-rest div:last-child, .hero-facts div:last-child, .mini-spec div:last-child { grid-column: 1 / -1; }
}
