/* Nuvethra Active: night ride telemetry.
   The app's colours (ink and electric lime) and its figure typeface. */

@font-face { font-family: "Barlow SC"; src: url("/fonts/barlow-sc-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/fonts/barlow-sc-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b0d10;
  --ink-2: #101317;
  --ink-3: #14181d;
  --ink-4: #1b2027;
  --line: #242a32;
  --line-2: #3a424d;
  --text: #f2f4f7;
  --muted: #9ba4b0;
  --lime: #c8f031;
  --lime-soft: #e2f98a;
  --lime-deep: #2c3708;
  --font: "Barlow SC", "Arial Narrow", sans-serif;
  --rail: 0px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 1100px) { :root { --rail: 64px; } }
/* Pages without the course rail keep their left edge. */
body:not(:has(.course)) { --rail: 0px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 500 clamp(17px, 1.1vw + 12px, 19px)/1.55 var(--font);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A faint grain over everything: night air. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3 { font-weight: 700; line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(44px, 6.4vw, 96px); }
h3 { font-size: 22px; letter-spacing: .02em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad) 14px calc(var(--pad) + var(--rail));
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(11, 13, 16, .78); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand__name { font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.brand__name b { color: var(--lime); font-weight: 700; }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--muted); transition: color .2s; }
.bar__nav a:hover { color: var(--text); }
@media (max-width: 820px) { .bar__nav { display: none; } .bar__cta { margin-left: auto; } }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 0; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.pill--lime { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 0 rgba(200,240,49,.5); }
.pill--lime:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px rgba(200,240,49,.6); }
.pill--ghost { background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pill--ghost:hover { box-shadow: inset 0 0 0 1px var(--lime); color: var(--lime); }
.bar__cta { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------------------------------------------------------------- course rail */
.course { display: none; }
@media (min-width: 1100px) {
  .course {
    display: block; position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--rail);
    border-right: 1px solid var(--line); background: linear-gradient(var(--ink), var(--ink-2));
  }
  .course__track { position: absolute; left: 31px; top: 90px; bottom: 70px; width: 2px; background: var(--line); }
  .course__fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--lime); box-shadow: 0 0 12px rgba(200,240,49,.7); }
  .course__laps { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 90px; bottom: 70px; width: 100%; }
  .course__laps li { position: absolute; left: 24px; width: 16px; height: 16px; transform: translateY(-50%); }
  .course__laps li::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--line-2); transition: background .3s, box-shadow .3s; }
  .course__laps li.is-past::before { background: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 0 10px rgba(200,240,49,.6); }
  .course__laps li span {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    opacity: 0; transition: opacity .2s; pointer-events: none;
  }
  .course:hover .course__laps li span { opacity: 1; }
  .course__finish {
    position: absolute; left: 20px; bottom: 44px; width: 24px; height: 16px;
    background: conic-gradient(var(--text) 25%, var(--ink) 0 50%, var(--text) 0 75%, var(--ink) 0) 0 0 / 8px 8px;
    opacity: .5;
  }
}
/* On narrower screens: a thin bar along the top. */
.course-top { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 0; background: var(--lime); box-shadow: 0 0 10px rgba(200,240,49,.7); }
@media (min-width: 1100px) { .course-top { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--pad) 40px calc(var(--pad) + var(--rail)); isolation: isolate; }
.hero__world { position: absolute; inset: 0 0 0 var(--rail); z-index: -2; overflow: hidden; background: #0d1622; }
.hero__world iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 1.6s var(--ease); filter: saturate(.92) contrast(1.06) brightness(.86); }
.hero__world iframe.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0 0 0 var(--rail); z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,13,16,.85) 0%, rgba(11,13,16,0) 22%),
    linear-gradient(90deg, rgba(11,13,16,.88) 0%, rgba(11,13,16,.55) 38%, rgba(11,13,16,0) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11,13,16,.6) 18%, rgba(11,13,16,0) 42%);
}
/* Before the 3D (or instead of it): a road into the night. */
.hero__poster { position: absolute; inset: 0; }
.poster__sky { position: absolute; inset: 0 0 45% 0; background: radial-gradient(120% 90% at 70% 100%, #29445f 0%, #142233 45%, #0b0d10 100%); }
.poster__road {
  position: absolute; left: -50%; right: -50%; top: 55%; bottom: -60%;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 0;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(200,240,49,.9) 49.6% 50.4%, transparent 50.6%) 0 0 / 100% 120px,
    repeating-linear-gradient(90deg, rgba(200,240,49,.10) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(200,240,49,.10) 0 1px, transparent 1px 80px),
    linear-gradient(#10161d, #0b0d10);
  mask-image: linear-gradient(transparent, #000 25%);
  animation: roll 1.2s linear infinite;
}
.poster__road::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.6%, rgba(200,240,49,.95) 49.7% 50.3%, transparent 50.4%) 0 0 / 100% 120px; background-repeat: repeat-y; mask-image: repeating-linear-gradient(0deg, #000 0 60px, transparent 60px 120px); }
@keyframes roll { to { background-position: 0 120px, 0 0, 0 80px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .poster__road { animation: none; } }
/* Still once the 3D is showing, or the hero is out of view. */
.hero.has-world .poster__road, .hero.is-away .poster__road { animation: none; }
.hero.has-world .hero__poster { visibility: hidden; }

.hero__copy { max-width: 760px; padding-bottom: 150px; }
@media (max-height: 760px) and (min-width: 721px) { .hero__lede { margin-top: 16px; } .hero__actions { margin-top: 20px; } .kicker { margin-bottom: 14px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,240,49,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,240,49,0); } 100% { box-shadow: 0 0 0 0 rgba(200,240,49,0); } }
.hero__title { font-size: clamp(48px, min(10.5vw, 13.5vh), 156px); line-height: .86; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title .line--lime { color: var(--lime); text-shadow: 0 0 40px rgba(200,240,49,.25); }
@keyframes rise { to { transform: none; } }
.hero__lede { margin-top: 26px; max-width: 520px; font-size: clamp(19px, 1.3vw + 12px, 23px); color: #d6dbe2; opacity: 0; animation: fade .9s .5s var(--ease) forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; opacity: 0; animation: fade .9s .65s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .hero__lede, .hero__actions { animation: none; transform: none; opacity: 1; }
}

/* The live figures. */
.hud {
  position: absolute; left: calc(var(--pad) + var(--rail)); right: var(--pad); bottom: 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: end;
  opacity: 0; animation: fade 1s .9s var(--ease) forwards;
}
.hud__switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(11,13,16,.6); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
.hud__switch button { font: 600 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.hud__switch button.is-on { background: var(--lime); color: var(--ink); }
.hud__figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.hud__figures > div { padding: 10px 0 0 16px; border-left: 1px solid rgba(255,255,255,.12); }
.hud__figures dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hud__figures dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 6px; }
.hud__figures b { font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.hud__figures small { font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.hud__strip { grid-column: 1 / -1; position: relative; height: 4px; background: rgba(255,255,255,.1); border-radius: 4px; }
.hud__strip-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lime); border-radius: 4px; }
.hud__ghost { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,.75); box-shadow: 0 0 0 3px rgba(255,255,255,.15); left: 0; }
@media (max-width: 720px) {
  .hud { grid-template-columns: 1fr; }
  .hud__figures { grid-template-columns: repeat(2, 1fr); }
  .hud__figures > div:nth-child(3) { border-left: 0; }
  .hero__copy { padding-bottom: 250px; }
}

/* ---------------------------------------------------------------- laps */
.lap { position: relative; padding: clamp(96px, 14vw, 180px) var(--pad) 0 calc(var(--pad) + var(--rail)); max-width: calc(var(--max) + 2 * 72px + var(--rail)); margin: 0 auto; }
.lap__no { font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.lap__no::before { content: ""; width: 40px; height: 2px; background: var(--lime); }
.lap__head { max-width: 760px; }
.lap__lede { margin-top: 26px; font-size: clamp(19px, 1vw + 14px, 22px); color: #c9cfd7; max-width: 620px; }
.fine { font-size: 15px; color: var(--muted); margin-top: 22px; max-width: 680px; }
.fine a { color: var(--lime); }

/* Reveal as the course reaches it. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Lap 1 */
.sports { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.sport { background: var(--ink-2); padding: 28px 24px 30px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.sport:hover { background: var(--ink-3); }
.sport svg { width: 48px; height: 48px; fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.sport h3 { margin-top: 36px; }
.sport p { color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (max-width: 1000px) { .sports { grid-template-columns: repeat(2, 1fr); } .sport:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .sports { grid-template-columns: 1fr; } .sport { min-height: 0; } .sport h3 { margin-top: 18px; } }
.sensors { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sensors__label { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }

/* Lap 2 */
.lap--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .lap--split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-size: 19px; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--lime); transform: translateY(1px) rotate(45deg); }
.phone { justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2a3038, #0e1114); box-shadow: 0 40px 120px -30px rgba(200,240,49,.25), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-3deg); }
.phone__screen { height: 100%; border-radius: 36px; background: radial-gradient(130% 70% at 50% 0%, #1a2028, var(--ink)); padding: 54px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.msg { border-radius: 20px; padding: 16px 18px; font-size: 16px; line-height: 1.4; }
.msg--coach { background: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line); }
.msg--coach strong { display: block; font-size: 22px; text-transform: uppercase; margin: 4px 0 6px; }
.msg--coach p { color: var(--muted); }
.msg__who { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.msg__tag { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.msg--you { align-self: flex-end; max-width: 85%; background: var(--lime-deep); color: var(--lime-soft); display: flex; gap: 10px; align-items: center; }
.msg--short { color: var(--muted); }
.wave { width: 22px; height: 16px; flex: none; display: flex; gap: 3px; align-items: center; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--lime); transform: scaleY(.35); animation: talk .9s ease-in-out infinite alternate; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; } .wave i:nth-child(4) { animation-delay: .45s; }
@keyframes talk { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i, .dot { animation: none; } }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: 13px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.week .on { background: rgba(200,240,49,.12); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(200,240,49,.4); }

/* Live: each sport's screen, as in the app. */
.live__body { margin-top: 48px; }
.live__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.live__tabs button { font: 600 15px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: color .2s, background .2s; }
.live__tabs button:hover { color: var(--text); }
.live__tabs button.is-on { background: var(--lime); color: var(--ink); }
.screen {
  margin-top: 18px; border-radius: 30px; padding: clamp(18px, 3vw, 36px);
  background: radial-gradient(90% 120% at 20% 0%, #161b22, var(--ink-2) 60%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -60px rgba(0,0,0,.9);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px 28px; align-items: center;
  animation: screen-in .5s var(--ease);
}
.screen[hidden] { display: none; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } }
.screen__side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.screen__strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 18px; border-top: 1px solid var(--line); align-items: flex-end; }
.screen__strip span { display: flex; align-items: baseline; gap: 6px; }
.screen__strip small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.screen__strip b { font-size: 30px; font-variant-numeric: tabular-nums; }
.strip__step { flex-direction: column; align-items: flex-start !important; gap: 2px !important; margin-right: auto; }
.strip__step b { font-size: 22px; text-transform: uppercase; color: var(--lime); }
.strip__trace { flex-direction: column; align-items: flex-start !important; margin-right: auto; }
.strip__trace svg { width: min(320px, 60vw); height: 56px; }
.strip__trace polyline { fill: none; stroke: #4c8df6; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
@media (max-width: 860px) { .screen { grid-template-columns: 1fr; } }

.dial { position: relative; text-align: center; }
.dial svg { width: 100%; height: auto; display: block; overflow: visible; }
.dial__track { fill: none; stroke: #232932; stroke-width: 12; stroke-linecap: round; }
.dial__fill { fill: none; stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.dial__tick { stroke: #4a525e; stroke-width: 2; }
.dial__label { fill: var(--muted); font: 600 11px var(--font); text-anchor: middle; }
.dial--big .dial__label { font-size: 10px; }
.dial__needle { stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
.dial__hub { fill: var(--text); stroke: var(--ink); stroke-width: 3; }
.dial__peak { stroke: var(--ink); stroke-width: 2; }
.dial__reading { position: absolute; left: 0; right: 0; top: 66%; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dial__reading b { font-size: clamp(30px, 6vw, 64px); font-variant-numeric: tabular-nums; }
.dial__reading small { font-size: 13px; color: var(--muted); letter-spacing: .1em; margin-top: 4px; }
.dial__reading span { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; min-height: 1em; }
.dial:not(.dial--big) .dial__reading { top: 62%; }
.dial:not(.dial--big) .dial__reading b { font-size: clamp(24px, 3vw, 36px); }
.dial:not(.dial--big) .dial__reading span { display: none; }
.dial__name { margin-top: -6px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dial--big { max-width: 440px; justify-self: center; width: 100%; }

.bands { display: grid; gap: 10px; align-self: center; }
.bands p { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bands i { display: block; height: 12px; width: 0; border-radius: 6px; background: #2fa37a; transition: width .6s var(--ease); }
.bands p:nth-child(1) i { opacity: .35; } .bands p:nth-child(2) i { opacity: .6; } .bands p:nth-child(4) i { background: var(--lime); }

.screen--figures { grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; overflow: hidden; background: var(--line); align-items: stretch; }
.fig { background: var(--ink-2); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 4px; min-height: 140px; justify-content: flex-end; }
.fig small { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fig b { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.fig--hero { grid-column: span 2; grid-row: span 2; background: radial-gradient(100% 100% at 0% 0%, rgba(76,141,246,.16), var(--ink-2) 60%); }
.fig--hero b { font-size: clamp(72px, 10vw, 140px); color: #8fb6ff; }
.screen__note { grid-column: 1 / -1; background: var(--ink-2); padding: 16px 26px; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .screen--figures { grid-template-columns: 1fr 1fr; } .fig--hero { grid-column: 1 / -1; grid-row: auto; } }

.screen--strength { grid-template-columns: 1.4fr 1fr; }
.sets__now { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; }
.sets__now small { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.sets__now b { font-size: clamp(48px, 6vw, 80px); text-transform: uppercase; line-height: .95; }
.sets__now span { color: #c9cfd7; font-size: 20px; }
.sets__plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sets__plan li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; }
.sets__plan li span { color: var(--muted); }
.sets__plan .done { opacity: .55; text-decoration: line-through; text-decoration-color: var(--lime); }
.sets__plan .now { box-shadow: inset 0 0 0 1.5px var(--lime); background: rgba(200,240,49,.06); }
.rest { display: grid; justify-items: center; gap: 22px; }
.rest__ring { --p: 1; width: min(220px, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--ink-2) 82%, transparent 83% 100%), conic-gradient(var(--lime) calc(var(--p) * 360deg), #232932 0); }
.rest__ring b { font-size: 52px; font-variant-numeric: tabular-nums; line-height: 1; }
.rest__ring small { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rest__log { cursor: default; }
@media (max-width: 860px) { .screen--strength { grid-template-columns: 1fr; } }

/* Bring your own AI: its own panel, under the coach. */
.byo {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px 56px; align-items: start;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(200,240,49,.14), transparent 55%), var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(200,240,49,.35);
}
.byo__kicker { grid-column: 1; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--lime); }
.byo h3 { grid-column: 1; font-size: clamp(34px, 3.6vw, 54px); line-height: .95; }
.byo__chips { grid-column: 1; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.byo__chips li { padding: 9px 16px; border-radius: 999px; background: rgba(200,240,49,.1); color: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(200,240,49,.4); font-weight: 600; letter-spacing: .06em; }
.byo__points { grid-column: 2; grid-row: 1 / span 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.byo__points li { border-top: 2px solid var(--line-2); padding-top: 12px; color: var(--muted); font-size: 17px; }
.byo__points b { display: block; color: var(--text); text-transform: uppercase; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .byo { grid-template-columns: 1fr; }
  .byo__points { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) { .byo__points { grid-template-columns: 1fr; } }

/* Lap 3 */
.lap--world .lap__head { max-width: 900px; }
.feature-row { list-style: none; padding: 0; margin: 56px 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature-row li { padding: 22px 22px 0 0; display: grid; gap: 8px; }
.feature-row li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.feature-row b { font-size: 21px; text-transform: uppercase; color: var(--lime); }
.feature-row span { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } .feature-row li:nth-child(3) { padding-left: 0; border-left: 0; } }

/* Lap 4 */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--ink-2); border-radius: 22px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.tile h3 { font-size: 15px; letter-spacing: .18em; color: var(--muted); }
.tile--chart { grid-column: span 2; grid-row: span 2; }
.tile--big { grid-row: span 2; justify-content: space-between; background: linear-gradient(160deg, #1d2408, var(--ink-2) 60%); box-shadow: inset 0 0 0 1px rgba(200,240,49,.25); }
.tile--wide { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile--chart, .tile--wide { grid-column: 1 / -1; } .tile--big { grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.tile .huge { font-size: clamp(80px, 9vw, 128px); font-weight: 700; line-height: .9; color: var(--lime); font-variant-numeric: tabular-nums; }
.tile .huge small { font-size: .3em; margin-left: 6px; color: var(--text); }
.tile .up { color: var(--lime-soft); font-size: 16px; }
.tile__note, .tile p { color: var(--muted); font-size: 16px; }
.chart { width: 100%; height: auto; margin-top: auto; overflow: visible; }
.chart path { fill: none; stroke-linecap: round; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__fit { stroke: var(--lime); stroke-width: 3; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.2s var(--ease); filter: drop-shadow(0 0 6px rgba(200,240,49,.5)); }
.chart__fat { stroke: #7b8796; stroke-width: 2; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 2.2s .2s var(--ease); }
.is-in .chart__fit, .is-in .chart__fat { stroke-dashoffset: 0; }
.tile__legend { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.k { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.k--fit { background: var(--lime); } .k--fat { background: #7b8796; margin-left: 10px; }
.records { margin: 0; display: grid; gap: 8px; }
.records div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.records dt { color: var(--muted); }
.records dd { margin: 0; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }

/* Lap 5: the one bright block. */
.lap--yours { max-width: none; padding-left: calc(var(--rail)); padding-right: 0; }
.yours { background: var(--lime); color: var(--ink); padding: clamp(64px, 9vw, 130px) var(--pad); position: relative; overflow: hidden; }
.yours::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(11,13,16,.05) 0 2px, transparent 2px 14px); pointer-events: none; }
.yours .lap__no { color: var(--ink); }
.yours .lap__no::before { background: var(--ink); }
.yours h2 { font-size: clamp(56px, 9vw, 140px); }
.yours__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: var(--max); position: relative; }
.yours__grid p { font-size: 18px; border-top: 2px solid var(--ink); padding-top: 14px; }
.yours__grid b { display: block; text-transform: uppercase; font-size: 22px; margin-bottom: 6px; }
@media (max-width: 900px) { .yours__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .yours__grid { grid-template-columns: 1fr; } }

/* Lap 6 */
.prices { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { position: relative; background: var(--ink-2); border-radius: 26px; padding: 34px 30px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; }
.price--main { background: linear-gradient(170deg, #1f2709, var(--ink-2) 55%); box-shadow: inset 0 0 0 1.5px var(--lime), 0 30px 80px -40px rgba(200,240,49,.5); transform: translateY(-10px); }
@media (max-width: 900px) { .price--main { transform: none; } }
.price h3 { font-size: 18px; letter-spacing: .2em; color: var(--muted); }
.price__tag { font-size: 64px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price__tag small { font-size: 17px; color: var(--muted); margin-left: 8px; font-weight: 500; letter-spacing: .06em; }
.price--main .price__tag { color: var(--lime); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #cfd5dc; }
.price li { padding-left: 24px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.price__flag { position: absolute; top: -13px; left: 28px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.price__flag--ghost { background: var(--ink-4); color: var(--lime); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Lap 7 */
.works { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 30px; }
.works h3 { margin-bottom: 12px; }
.works p { color: var(--muted); }
.works__strava img { margin-top: 22px; width: 219px; height: auto; }
@media (max-width: 900px) { .works { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 48px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: clamp(21px, 1.2vw + 15px, 26px); font-weight: 600; text-transform: uppercase; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 26px; color: #c9cfd7; max-width: 720px; }
.faq a { color: var(--lime); }

/* ---------------------------------------------------------------- finish */
.finish { margin-top: clamp(110px, 14vw, 180px); padding-left: var(--rail); }
.finish__flag { height: 28px; background: conic-gradient(var(--text) 25%, var(--ink) 0 50%, var(--text) 0 75%, var(--ink) 0) 0 0 / 28px 28px; opacity: .9; }
.finish__inner { padding: 48px var(--pad) 56px; display: grid; gap: 24px; grid-template-columns: auto 1fr; align-items: center; }
.finish nav { display: flex; gap: 28px; justify-self: end; flex-wrap: wrap; }
.finish nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--muted); }
.finish nav a:hover { color: var(--lime); }
.finish .fine { grid-column: 1 / -1; margin: 0; max-width: none; font-size: 14px; }
@media (max-width: 700px) { .finish__inner { grid-template-columns: 1fr; } .finish nav { justify-self: start; } }

/* ---------------------------------------------------------------- document pages */
.doc { max-width: 820px; margin: 0 auto; padding: 140px var(--pad) 40px calc(var(--pad) + var(--rail)); }
.doc h1 { font-size: clamp(48px, 7vw, 92px); margin-bottom: 18px; }
.doc h2 { font-size: clamp(26px, 2.2vw + 14px, 36px); margin: 54px 0 16px; color: var(--lime); }
.doc h3 { margin: 30px 0 10px; }
.doc p, .doc li { color: #d3d8df; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.doc a { color: var(--lime); }
.doc strong { color: var(--text); }
.doc .meta { color: var(--muted); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.doc .table { overflow-x: auto; margin: 20px 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 640px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ink-2); }
.doc tr:last-child td { border-bottom: 0; }
.doc .card { background: var(--ink-2); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 26px; }
.doc .card h2 { margin-top: 0; }
.doc .big-link { font-size: clamp(24px, 2vw + 14px, 34px); font-weight: 700; color: var(--lime); text-decoration: none; letter-spacing: .01em; word-break: break-word; }
