/* Split Tracker marketing site.
   Colors come from the app (StColors, ResultsPalette); the product mockups keep
   the app's own colors in both themes, the page around them follows the theme. */

:root {
  color-scheme: light;

  /* Brand, fixed in both themes */
  --st-navy: #23395d;
  --st-night: #0e1a2e;
  --st-night-2: #15263f;
  --st-green: #28ff92;
  --st-green-soft: #80ffbe;
  --st-blue: #2196f3;
  --st-deep-blue: #0d47a1;
  --st-orange: #ff9800;
  --st-red: #f44336;

  /* Page, light */
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #e9eff6;
  --ink: #142030;
  --ink-2: #4b576a;
  --ink-3: #7c879a;
  --line: #d9e1ea;
  --link: #0d47a1;
  --accent-ink: #04603a;
  --focus: #2196f3;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304603a' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(14, 26, 46, .06), 0 12px 32px -12px rgba(14, 26, 46, .18);
  --shadow-lg: 0 2px 6px rgba(14, 26, 46, .08), 0 40px 80px -24px rgba(14, 26, 46, .35);

  /* Navy bands, fixed in both themes */
  --band: #0e1a2e;
  --band-2: #16273f;
  --on-band: #ffffff;
  --on-band-2: rgba(255, 255, 255, .74);
  --on-band-3: rgba(255, 255, 255, .52);
  --band-line: rgba(255, 255, 255, .12);

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-word: "Unbounded", "Rubik", system-ui, sans-serif;
  --font-clock: "Archivo", "Rubik", system-ui, sans-serif;
  --font-sheet: "Courier Prime", "Courier New", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1424;
    --surface: #111e33;
    --surface-2: #172841;
    --ink: #e8eef7;
    --ink-2: #a9b5c7;
    --ink-3: #7d8aa0;
    --line: #22344f;
    --link: #7cc0ff;
    --accent-ink: #28ff92;
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328ff92' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .75);
    --band: #060e1b;
    --band-2: #0e1a2e;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1424;
  --surface: #111e33;
  --surface-2: #172841;
  --ink: #e8eef7;
  --ink-2: #a9b5c7;
  --ink-3: #7d8aa0;
  --line: #22344f;
  --link: #7cc0ff;
  --accent-ink: #28ff92;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328ff92' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -24px rgba(0, 0, 0, .75);
  --band: #060e1b;
  --band-2: #0e1a2e;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; }
img, video { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.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;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); line-height: 1.06; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--st-green);
  box-shadow: 0 0 0 1px rgba(14, 26, 46, .08);
}
.band .eyebrow { color: var(--on-band-2); }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.band .lede { color: var(--on-band-2); }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

.band {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(33, 150, 243, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(40, 255, 146, .08), transparent 60%),
    var(--band);
  color: var(--on-band);
}
.band a:not(.btn) { color: var(--st-green-soft); }

.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons and badges ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-go { background: var(--st-green); color: #06201a; box-shadow: 0 8px 24px -10px rgba(40, 255, 146, .7); }
.btn-go:hover { background: #4dffa6; }
.btn-ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--st-navy); color: #fff; }
.btn-dark:hover { background: #2c4773; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink-3); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; border-radius: 9px; }
.badges img { height: 46px; width: auto; }

/* ---------- Promo bar ---------- */

.promo {
  background: var(--st-green); color: #06201a; font-size: .9375rem; line-height: 1.4;
  padding: 10px var(--gutter); text-align: center;
}
.promo strong { font-weight: 700; }
.promo a { color: inherit; font-weight: 600; margin-left: .5em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--band);
  background: color-mix(in srgb, var(--band) 94%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--band-line);
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark {
  font-family: var(--font-word); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--on-band-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .signin { color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem; }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--band-line); color: #fff; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-links, .nav-actions .signin { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions { order: 3; }
  .nav { gap: 12px; }
}
@media (max-width: 520px) {
  .nav-actions { display: none; }
}

.mobile-menu {
  border-top: 1px solid var(--band-line); padding: 12px var(--gutter) 22px; display: grid; gap: 4px;
}
.mobile-menu a { color: #fff; text-decoration: none; padding: 12px 4px; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--band-line); }
.mobile-menu .btn { margin-top: 14px; border-bottom: 0; }

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

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 .hl { color: var(--st-green); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-band-3); font-size: .875rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st-green); }
.hero .badges { margin-top: 4px; }
.hero .web-link { color: var(--on-band-2); font-size: .9375rem; }

.stage { position: relative; padding-bottom: 7%; }
.stage .browser { width: 100%; }
.stage .phone-land { position: absolute; left: -7%; bottom: -2%; width: 58%; }
.stage-note {
  position: absolute; right: 2%; bottom: 3%; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #142030; border-radius: 12px; padding: 10px 14px 10px 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); font-size: .8125rem; line-height: 1.3;
  max-width: 46%;
}
.stage-note b { display: block; font-size: .875rem; }
.stage-note .dot { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(40, 255, 146, .3); display: grid; place-items: center; color: #04603a; font-weight: 800; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 720px; margin-inline: auto; width: 100%; padding-bottom: 16%; }
  .stage .phone-land { left: 0; width: 62%; bottom: 0; }
}
@media (max-width: 560px) {
  .stage-note { display: none; }
}

/* ---------- Device frames ---------- */

/* A mockup is drawn at a fixed design size and scaled to its box by site.js. */
.fit { position: relative; width: 100%; }
.fit > .fit-inner { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(0, 0, 0, .65);
}
.section:not(.band) .browser { box-shadow: 0 0 0 1px rgba(14, 26, 46, .08), var(--shadow-lg); }
.browser-bar {
  height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: #e8edf3; border-bottom: 1px solid #d6dde6;
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #c6ced9; }
.browser-dots i:first-child { background: #ff6159; }
.browser-dots i:nth-child(2) { background: #ffbd2e; }
.browser-dots i:nth-child(3) { background: #28c941; }
.browser-url {
  flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 7px; background: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 12px/1 var(--font-body); color: #556072;
}
.browser-url svg { width: 11px; height: 11px; }

.phone {
  background: #0b0f17; border-radius: 48px; padding: 11px;
  box-shadow: 0 0 0 1.5px #2a3242, 0 0 0 3px #0b0f17, 0 50px 90px -30px rgba(0, 0, 0, .7);
}
.phone-screen { position: relative; overflow: hidden; border-radius: 38px; background: #000; height: 100%; }
.phone-land .phone { border-radius: 40px; padding: 10px; }
.phone-land .phone-screen { border-radius: 31px; }
.island {
  position: absolute; z-index: 20; background: #000; border-radius: 20px;
}
.phone-port .island { top: 11px; left: 50%; width: 118px; height: 34px; transform: translateX(-50%); }
.phone-land .island { left: 10px; top: 50%; width: 32px; height: 104px; transform: translateY(-50%); }

/* ---------- Capture screen mockup (landscape phone, 844 x 390) ---------- */

.cap { position: absolute; inset: 0; display: flex; background: #000; color: #fff; font-family: var(--font-body); }
.cap-view { position: relative; flex: 1; overflow: hidden; background: #111; }
.cap-view video, .cap-view img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 18%, transparent 80%, rgba(0,0,0,.35)); pointer-events: none; }
.cap-top { position: absolute; z-index: 2; top: 16px; left: 58px; right: 16px; display: flex; align-items: center; gap: 10px; }
.cap-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .22);
  font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.cap-pill.rec { background: rgba(244, 67, 54, .92); border-color: transparent; }
.cap-pill.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s steps(2, start) infinite; }
.cap-pill.pause { color: #ff8a80; border-color: rgba(255, 138, 128, .45); }
.cap-badge {
  max-width: 250px; height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(35, 57, 93, .88); font: 600 12.5px/1 var(--font-body); white-space: nowrap; overflow: hidden;
}
.cap-badge b { color: var(--st-green); font-weight: 700; }
.cap-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 13px; background: rgba(0,0,0,.55); font: 600 13px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.cap-mini::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-green); }
.cap-zoom { position: absolute; z-index: 2; left: 58px; bottom: 26px; width: 34px; height: 150px; border-radius: 17px; background: rgba(0,0,0,.45); display: grid; justify-items: center; padding: 10px 0; }
.cap-zoom span { font: 600 11px/1 var(--font-body); }
.cap-zoom i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; }
.cap-zoom i::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.cap-side { width: 214px; flex: none; background: #0b0b0d; display: flex; flex-direction: column; align-items: center; padding: 18px 14px 12px; gap: 10px; }
.clock {
  font-family: var(--font-clock); font-weight: 900; font-style: italic; letter-spacing: .01em; line-height: 1;
  display: inline-flex; white-space: nowrap;
}
.clock .d { display: inline-block; width: .64em; text-align: center; }
.clock .c { display: inline-block; width: .3em; text-align: center; }
.cap-clock { font-size: 40px; color: #fff; }
.rec-btn {
  margin-top: 4px; width: 78px; height: 78px; border-radius: 50%; border: 4px solid #fff; background: transparent;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.rec-btn::before { content: ""; width: 62px; height: 62px; border-radius: 50%; background: var(--st-red); transition: all .2s ease; }
.rec-btn.on::before { width: 28px; height: 28px; border-radius: 6px; }
.rec-btn.photo::before { background: #fff; }
.rec-hint { font: 500 12px/1 var(--font-body); color: rgba(255,255,255,.7); }
.modes { display: flex; gap: 6px; }
.mode {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.75);
  font: 600 10.5px/1 var(--font-body); letter-spacing: .06em; cursor: pointer;
}
.mode svg { width: 14px; height: 14px; }
.mode[aria-pressed="true"] { background: #fff; color: #0b0b0d; border-color: #fff; }
.clips { width: 100%; display: grid; gap: 8px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; overflow: hidden; }
.clip { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; animation: clipIn .35s ease both; }
.clip-thumb { width: 58px; height: 40px; border-radius: 6px; background-size: cover; background-position: center; background-color: #333; }
.clip-time { font: 600 16px/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
.clip-meta { display: flex; gap: 6px; margin-top: 4px; color: rgba(255,255,255,.6); }
.clip-meta svg { width: 13px; height: 13px; }
.clip-meta .ok { color: var(--st-green); }
@keyframes clipIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes blink { to { visibility: hidden; } }

/* Names mode: the athletes' names where the camera would be */
.names { position: absolute; inset: 0; background: #0b0b0d; padding: 14px 12px 12px 58px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.names-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.names-hint { flex: 1; font: 500 13px/1.2 var(--font-body); color: rgba(255,255,255,.62); }
.names-edit { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35); font: 600 10.5px/1 var(--font-body); letter-spacing: .06em; display: inline-flex; align-items: center; }
.names-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.name-tile {
  position: relative; height: 62px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08); color: #fff; text-align: left; padding: 10px 12px; cursor: pointer;
  font: 600 15px/1.15 var(--font-body);
}
.name-tile small { display: block; font-weight: 400; color: rgba(255,255,255,.6); font-size: 12px; margin-top: 3px; }
.name-tile.lit { border: 2px solid var(--st-green); background: rgba(40,255,146,.16); padding: 9px 11px; }
.name-tile .split { position: absolute; right: 10px; top: 10px; font: 700 12px/1 var(--font-body); color: var(--st-green); font-variant-numeric: tabular-nums; }

/* ---------- Tagging screen mockup (portrait phone, 390 x 844) ---------- */

.tag { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f5f7fa; font-family: var(--font-body); color: #142030; }
.tag-bar { background: #23395d; color: #fff; padding: 56px 14px 12px; display: flex; align-items: center; gap: 10px; }
.tag-bar .back { width: 24px; height: 24px; }
.tag-title { flex: 1; font: 600 19px/1 var(--font-body); }
.tag-save { display: inline-flex; align-items: center; gap: 6px; color: var(--st-green); font: 600 16px/1 var(--font-body); }
.tag-save svg { width: 18px; height: 18px; }
.tag-event { background: #1b2e4d; color: rgba(255,255,255,.8); font: 500 12.5px/1 var(--font-body); padding: 9px 16px; display: flex; gap: 8px; }
.tag-event b { color: #fff; font-weight: 600; }
.tag-media { background: #000; padding: 8px 8px 0; }
.tag-frame { position: relative; height: 212px; border-radius: 10px 10px 0 0; overflow: hidden; background-color: #222; background-repeat: no-repeat; }
.tag-frame .play { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.tag-frame .play svg { width: 14px; height: 14px; color: #000; }
.tag-frame .cross { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(40,255,146,.85); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.strip { position: relative; height: 58px; background: #111; display: flex; overflow: hidden; touch-action: none; cursor: ew-resize; }
.strip span { flex: 1; background-repeat: no-repeat; border-right: 1px solid #000; opacity: .9; }
.strip .head { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.ticks { display: flex; justify-content: space-between; background: #000; padding: 6px 6px 8px; color: rgba(255,255,255,.8); font: 500 10.5px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.split-bar { background: #000; padding: 0 8px 10px; }
.split-panel { background: #1c2a44; border-radius: 12px; display: grid; grid-template-columns: 34px 44px 1fr 44px 34px; align-items: center; gap: 4px; padding: 10px 8px; }
.split-panel button { border: 0; background: transparent; color: var(--st-green); display: grid; place-items: center; cursor: pointer; padding: 0; height: 40px; }
.split-panel button svg { width: 22px; height: 22px; }
.split-panel .circle { width: 40px; height: 40px; border: 2px solid var(--st-green); border-radius: 50%; }
.split-read { text-align: center; color: #fff; }
.split-read small { display: block; font: 600 10px/1 var(--font-body); letter-spacing: .14em; color: rgba(255,255,255,.7); }
.split-read span { display: block; margin-top: 4px; font: 700 30px/1 var(--font-body); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 2px; background: #f5f7fa; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #c9d1dc; }
.dots i.on { width: 20px; background: #2196f3; }
.tag-list { flex: 1; overflow: hidden; padding: 6px 12px 0; display: grid; align-content: start; gap: 8px; }
.tag-list-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; font: 600 18px/1 var(--font-body); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e3e8ef; font: 600 12px/1 var(--font-body); color: #556072; }
.tagged-pill { margin-left: auto; font: 600 11.5px/1 var(--font-body); color: #04603a; background: rgba(40,255,146,.28); padding: 5px 9px; border-radius: 10px; }
.ath {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; min-height: 58px;
  padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e9f0; cursor: pointer; text-align: left;
  font-family: var(--font-body); color: #142030; width: 100%;
}
.ath .chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #8b94a3; display: grid; place-items: center; }
.ath .chk svg { width: 16px; height: 16px; color: #fff; opacity: 0; }
.ath b { display: block; font: 500 16.5px/1.2 var(--font-body); }
.ath small { display: block; font: 400 12.5px/1.2 var(--font-body); color: #556072; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ath .undo { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1.5px solid #ffb74d; color: #ef8a00; font: 600 12px/1 var(--font-body); background: #fff; }
.ath .undo svg { width: 13px; height: 13px; }
.ath.sel { background: #b7c3d4; border-color: #9fb0c6; }
.ath.sel .chk { background: #2196f3; border-color: #2196f3; }
.ath.sel .chk svg { opacity: 1; }
.ath.flash { animation: flash .6s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(40,255,146,.9); } 100% { box-shadow: 0 0 0 12px rgba(40,255,146,0); } }
.tag-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px 30px; background: #23395d; }
.tag-foot span { display: grid; place-items: center; height: 46px; border-radius: 12px; font: 600 15px/1 var(--font-body); }
.tag-foot .later { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.tag-foot .finish { background: var(--st-green); color: #06201a; }
.tag-toast {
  position: absolute; left: 14px; right: 14px; bottom: 96px; z-index: 5; background: #142030; color: #fff; border-radius: 12px;
  padding: 12px 14px; font: 500 14px/1.35 var(--font-body); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  transition: opacity .25s ease, transform .25s ease;
}
.tag-toast b { color: var(--st-green); }
.tag-toast.hide { opacity: 0; transform: translateY(8px); }

/* ---------- Results: shared ---------- */

.rs { font-family: var(--font-body); color: #142030; }
.cell {
  display: inline-block; min-width: 54px; padding: 3px 6px; border-radius: 5px; text-align: center;
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.cell.fast { color: #04603a; font-weight: 600; }
.cell.slow { color: #8a3d00; font-weight: 600; }
.medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 11px/1 var(--font-body); color: #556072; }
.medal.m1 { background: #f3c94a; color: #3f3000; }
.medal.m2 { background: #d7dde5; color: #2d394a; }
.medal.m3 { background: #e6af88; color: #4e2b0e; }
.up { color: #078a4c; font-weight: 600; }
.down { color: #be5a00; font-weight: 600; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.swatch.fast { background: rgba(40,255,146,.42); }
.swatch.slow { background: rgba(255,152,0,.26); }

/* ---------- Results web box score (1180 x 760) ---------- */

.rw { position: absolute; inset: 0; background: #f5f7fa; display: flex; flex-direction: column; }
.rw-band { background: linear-gradient(180deg, #23395d, #1f3456); color: #fff; padding: 14px 24px 0; }
.rw-top { display: flex; align-items: center; gap: 10px; }
.rw-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.78); font: 500 13px/1 var(--font-body); margin-right: auto; }
.rw-back svg { width: 15px; height: 15px; }
.rw-act { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 7px; border: 1px solid rgba(255,255,255,.28); font: 500 12px/1 var(--font-body); color: #fff; }
.rw-act svg { width: 14px; height: 14px; }
.rw-act.share { background: var(--st-green); color: #06201a; border-color: transparent; font-weight: 600; }
.rw-meta { margin-top: 12px; font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.rw-title { margin-top: 7px; font: 800 24px/1.1 var(--font-body); letter-spacing: -.01em; }
.rw-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.rw-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 9px 12px; }
.rw-stat small { display: flex; align-items: center; gap: 6px; font: 600 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.rw-stat small i { width: 7px; height: 7px; border-radius: 50%; }
.rw-stat div { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.rw-stat b { font: 700 17px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.rw-stat span { font: 400 11px/1 var(--font-body); color: rgba(255,255,255,.62); overflow: hidden; text-overflow: ellipsis; }
.rw-tabs { display: flex; gap: 22px; margin-top: 14px; }
.rw-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0 11px; border: 0; background: none; color: rgba(255,255,255,.66); font: 600 13px/1 var(--font-body); border-bottom: 2.5px solid transparent; cursor: pointer; }
.rw-tab svg { width: 15px; height: 15px; }
.rw-tab[aria-selected="true"] { color: #fff; border-color: var(--st-green); }
.rw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 336px; gap: 16px; padding: 16px 24px 18px; }
.rw-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rw-tools { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #e9ecf1; }
.rw-tools .lbl { font: 600 9.5px/1.2 var(--font-body); letter-spacing: .1em; color: #8b94a3; }
.chips { display: inline-flex; gap: 4px; padding: 3px; background: #eef1f5; border-radius: 9px; }
.chip { border: 0; background: transparent; height: 28px; padding: 0 13px; border-radius: 7px; font: 600 12.5px/1 var(--font-body); color: #556072; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.chip:hover { color: #142030; }
.chip.sel { background: #fff; color: #142030; box-shadow: inset 0 0 0 1.5px #b7c8e3; border: 0; }
.chip.sorted { background: #23395d; color: #fff; }
.find { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; width: 210px; padding: 0 10px; border: 1px solid #d5dae2; border-radius: 8px; color: #8b94a3; font: 400 12.5px/1 var(--font-body); }
.find svg { width: 14px; height: 14px; }
.find input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; color: #142030; background: transparent; }
.find kbd { font: 600 10px/1 var(--font-body); border: 1px solid #d5dae2; border-radius: 4px; padding: 2px 5px; color: #8b94a3; }
.rw-table { flex: 1; min-height: 0; overflow: auto; }
.rw-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rw-table th { position: sticky; top: 0; z-index: 1; background: #f5f7fa; text-align: left; padding: 9px 8px; font: 600 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #8b94a3; border-bottom: 1px solid #e9ecf1; white-space: nowrap; }
.rw-table th.num, .rw-table td.num { text-align: right; }
.rw-table th.leg { text-align: center; cursor: pointer; }
.rw-table th.leg.sel { background: #dce6f5; color: #23395d; }
.rw-table th.leg.sorted { background: #23395d; color: #fff; }
.rw-table td { padding: 5px 8px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.rw-table td.leg { text-align: center; }
.rw-table td.leg.selcol { background: #f3f7fc; }
.rw-table td.leg.sortcol { background: #edf2f9; }
.rw-table tr { cursor: pointer; }
.rw-table tbody tr:hover td { background: #f7f9fc; }
.rw-table tr.open td { background: #eaf1fb; }
.rw-table tr.open td:first-child { box-shadow: inset 3px 0 0 #2196f3; }
.rw-table tr.missed td { color: #8b94a3; }
.rw-table td .nm { font-weight: 600; color: #142030; }
.rw-table td .mv { margin-left: 6px; font-size: 11px; }
.rw-table td .sub { display: block; font-size: 10.5px; color: #8b94a3; margin-top: 1px; }
.rw-table .divider td { background: #fff7e8; color: #7a4300; font: 600 10.5px/1 var(--font-body); padding: 7px 10px; letter-spacing: .02em; }
.rw-foot { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-top: 1px solid #e9ecf1; font: 400 11px/1.2 var(--font-body); color: #556072; }
.rw-foot .hint { margin-left: auto; color: #8b94a3; }
.rw-banner { display: flex; align-items: center; gap: 14px; margin: 10px 14px 0; padding: 10px 14px; border-radius: 10px; background: #f3f7fc; border: 1px dashed #b7c8e3; font: 400 12px/1.35 var(--font-body); color: #354256; }
.rw-banner.sorted { background: #edf2f9; border-style: solid; border-color: #d0dcee; }
.rw-banner b { color: #142030; }
.rw-banner .cap { font: 700 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #23395d; white-space: nowrap; }
.rw-banner .next { margin-left: auto; font-weight: 700; color: #23395d; white-space: nowrap; }

.rw-pane { padding: 16px; gap: 14px; overflow: auto; }
.rw-pane h4 { font: 700 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #8b94a3; margin: 0 0 8px; }
.pane-head { display: flex; align-items: center; gap: 10px; }
.pane-head b { display: block; font: 700 17px/1.15 var(--font-body); }
.pane-head small { display: block; font: 400 12px/1.2 var(--font-body); color: #556072; margin-top: 2px; }
.pane-fin { display: flex; align-items: flex-end; justify-content: space-between; background: #f5f7fa; border-radius: 10px; padding: 12px 14px; }
.pane-fin small { display: block; font: 600 9.5px/1 var(--font-body); letter-spacing: .1em; color: #8b94a3; }
.pane-fin b { display: block; margin-top: 6px; font: 800 28px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.pane-fin .r { text-align: right; font: 500 12px/1.35 var(--font-body); color: #556072; }
.pane-fin .r strong { display: block; color: #142030; font-weight: 700; font-size: 13px; }
.pos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 500 12px/1 var(--font-body); }
.pos span { background: #eef1f5; border-radius: 7px; padding: 6px 8px; color: #354256; }
.pos span b { color: #142030; }
.pos i { color: #8b94a3; font-style: normal; }
.bars { display: grid; gap: 8px; font: 500 12px/1 var(--font-body); }
.bar-row { display: grid; grid-template-columns: 66px 1fr 58px 36px; align-items: center; gap: 8px; }
.bar-track { position: relative; height: 8px; border-radius: 4px; background: #eef1f5; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #28d67f; }
.bar-fill.slow { background: #ffb74d; }
.bar-avg { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #142030; }
.bar-row .pc { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row .df { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.legs { width: 100%; border-collapse: collapse; font: 400 12px/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
.legs th { font: 600 9px/1 var(--font-body); letter-spacing: .1em; color: #8b94a3; text-align: left; padding: 0 0 6px; }
.legs td { padding: 7px 0; border-top: 1px solid #eef1f5; }
.legs td:not(:first-child), .legs th:not(:first-child) { text-align: right; }
.legs td small { color: #8b94a3; font-size: 10.5px; margin-left: 4px; }

/* Web "Results sheet" tab */
.rw-sheet { flex: 1; min-height: 0; overflow: auto; background: #e9edf2; padding: 18px; }

.paper {
  background: #fffef9; color: #1f1f1f; border-radius: 4px; margin: 0 auto;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px -12px rgba(0,0,0,.25);
  font-family: var(--font-sheet); white-space: pre; line-height: 1.32;
}
.paper .ln { display: block; min-height: 1.32em; }
.paper .ln.name { font-weight: 700; }
.paper .ln.hit { background: #fff3c2; }
.rw-sheet .paper { width: max-content; padding: 26px 30px; font-size: 12.5px; }

/* ---------- Results phone (390 x 844) ---------- */

.rp { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.rp-head { background: #23395d; color: #fff; padding: 54px 12px 12px; }
.rp-row { display: flex; align-items: center; gap: 10px; }
.rp-row svg { width: 22px; height: 22px; flex: none; }
.rp-t { flex: 1; min-width: 0; }
.rp-t b { display: block; font: 700 18px/1.15 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-t small { display: block; font: 400 12.5px/1.2 var(--font-body); color: rgba(255,255,255,.72); margin-top: 3px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.14); }
.seg button { height: 36px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: 600 14.5px/1 var(--font-body); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.seg button svg { width: 17px; height: 17px; }
.seg button[aria-pressed="true"] { background: #fff; color: #23395d; }
.rp-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
.rp-body::-webkit-scrollbar { display: none; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 16px 6px; gap: 8px; }
.rp-stats small { display: block; font: 600 10px/1 var(--font-body); letter-spacing: .1em; color: #8b94a3; }
.rp-stats b { display: block; margin-top: 6px; font: 700 21px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.rp-stats span { display: block; margin-top: 4px; font: 400 11.5px/1.2 var(--font-body); color: #556072; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 16px 10px; font: 400 11.5px/1.3 var(--font-body); color: #556072; }
.rp-legend b { color: #142030; font-weight: 600; }
.rp-sort { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; }
.rp-sort .lbl { font: 600 9.5px/1.15 var(--font-body); letter-spacing: .1em; color: #8b94a3; width: 36px; }
.pill { height: 36px; min-width: 50px; padding: 0 14px; border-radius: 18px; border: 1.5px solid #d5dae2; background: #fff; font: 600 13.5px/1 var(--font-body); color: #142030; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pill small { font: 500 9px/1 var(--font-body); }
.pill.sel { border: 1.5px dashed #23395d; background: #f3f7fc; }
.pill.sorted { background: #23395d; border-color: #23395d; color: #fff; }
.rp-sort .hint { font: 400 10.5px/1.3 var(--font-body); color: #8b94a3; }
.rp-banner { margin: 0 12px 10px; padding: 12px 14px; border-radius: 14px; background: #f1f5fb; border: 1px dashed #b7c8e3; font: 400 12.5px/1.4 var(--font-body); color: #354256; }
.rp-banner.sorted { border-style: solid; border-color: #dce6f5; background: #eef3fa; }
.rp-banner .top { display: flex; align-items: flex-start; gap: 10px; }
.rp-banner .cap { font: 700 9.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #556072; }
.rp-banner .tt { font: 800 21px/1.1 var(--font-body); color: #142030; margin-top: 5px; }
.rp-banner .x { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid #d5dae2; background: #fff; font: 600 12px/1 var(--font-body); color: #142030; cursor: pointer; white-space: nowrap; }
.rp-banner p { margin-top: 6px; }
.rp-banner .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.rp-banner .three small { display: block; font: 600 9px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #8b94a3; }
.rp-banner .three b { display: block; margin-top: 4px; font: 700 17px/1 var(--font-body); color: #142030; font-variant-numeric: tabular-nums; }
.rp-banner .three span { display: block; margin-top: 3px; font-size: 11px; color: #556072; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-banner .bb { display: inline-flex; margin-top: 10px; height: 32px; align-items: center; padding: 0 12px; border-radius: 16px; border: 1px solid #d5dae2; background: #fff; font: 600 12.5px/1 var(--font-body); color: #142030; }
.rp-banner .bb.primary { background: #23395d; color: #fff; border-color: #23395d; margin-right: 6px; }
.rp-banner .next { margin-top: 10px; font-weight: 700; color: #142030; }
.rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-table th { background: #f5f7fa; padding: 9px 4px; font: 600 9.5px/1.1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #8b94a3; text-align: center; border-top: 1px solid #e9ecf1; border-bottom: 1px solid #e9ecf1; }
.rp-table th:first-child { width: 30px; }
.rp-table th.nm { text-align: left; }
.rp-table th small { display: block; font: 500 8.5px/1 var(--font-body); letter-spacing: 0; text-transform: none; margin-top: 2px; }
.rp-table th.sel { background: #dce6f5; color: #23395d; }
.rp-table th.sorted { background: #23395d; color: #fff; }
.rp-table td { padding: 9px 3px; border-bottom: 1px solid #eef1f5; text-align: center; vertical-align: middle; }
.rp-table td:first-child { padding-left: 10px; }
.rp-table td.nm { text-align: left; }
.rp-table td.nm b { display: block; font: 600 15px/1.15 var(--font-body); }
.rp-table td.nm small { display: block; font: 400 12.5px/1.2 var(--font-body); color: #556072; }
.rp-table td.leg .cell { min-width: 50px; font-size: 12.5px; padding: 5px 4px; border-radius: 6px; }
.rp-table td.leg.selcol { background: #f3f7fc; }
.rp-table td.leg.sortcol { background: #edf2f9; }
.rp-table td.leg small { display: block; font-size: 10.5px; color: #8b94a3; margin-top: 2px; }
.rp-table td.fin { text-align: right; padding-right: 12px; }
.rp-table td.fin b { display: block; font: 700 15px/1.1 var(--font-body); }
.rp-table td.fin small { display: block; font: 400 11px/1.2 var(--font-body); color: #8b94a3; margin-top: 2px; }
.rp-table tr.missed td { color: #8b94a3; }
.rp-table tr.div td { background: #fff7e8; color: #7a4300; font: 600 11px/1 var(--font-body); padding: 8px 12px; text-align: left; }
.rp-sheet { padding: 14px 10px 30px; background: #e9edf2; min-height: 100%; }
.rp-sheet .paper { font-size: 9.6px; padding: 14px 10px; width: max-content; }
.rp-sheetbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px 28px; background: #23395d; }
.rp-sheetbar span { display: grid; place-items: center; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.45); color: #fff; font: 600 14px/1 var(--font-body); }

/* ---------- Page sections ---------- */

.split-steps { display: grid; gap: clamp(64px, 9vw, 110px); }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.step.flip .step-copy { order: 2; }
.step-copy { display: grid; gap: 16px; align-content: start; }
.step-k { display: inline-flex; align-items: center; gap: 10px; font: 600 .8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.step-k b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--st-navy); color: var(--st-green); font-size: .875rem; letter-spacing: 0; }
.step-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.step-copy p { color: var(--ink-2); max-width: 34em; }
.step-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.step-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 1rem; }
.step-list li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(40,255,146,.28) var(--check) center / 12px no-repeat; }
.step-list li b { color: var(--ink); font-weight: 600; }
.step-visual { position: relative; }
.try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.try span { font-size: .8125rem; color: var(--ink-3); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.try button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: .875rem; font-weight: 500; cursor: pointer; }
.try button:hover { border-color: var(--ink-3); }
.new-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 7px; border-radius: 6px; background: var(--st-green); color: #06201a; font: 700 .6875rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }

.cap-visual { width: 100%; max-width: 640px; margin-inline: auto; }
.tag-visual { width: 100%; max-width: 360px; margin-inline: auto; }

@media (max-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step.flip .step-copy { order: 0; }
}

/* Results showcase */
.results-section { position: relative; }
.results-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.results-top .section-head { margin-bottom: 0; }
.viewswitch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.viewswitch button { border: 0; background: transparent; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.viewswitch button svg { width: 18px; height: 18px; }
.viewswitch button[aria-selected="true"] { background: var(--st-navy); color: #fff; }
.results-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.results-stage .demo-web { width: 100%; }
.results-stage .demo-phone { width: min(380px, 100%); margin-inline: auto; }
.results-stage .demo-sheet { width: 100%; }
.sheet-frame { background: #e3e8ee; border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 32px); overflow-x: auto; }
.sheet-frame .paper { width: max-content; padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 38px); font-size: clamp(9.5px, 1.18vw, 13.5px); }
.guide { display: grid; gap: 18px; position: sticky; top: 100px; }
.guide h3 { font-size: 1.125rem; }
.guide ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: g; }
.guide li { counter-increment: g; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.guide li::before { content: counter(g); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font: 700 .75rem/1 var(--font-body); color: var(--ink); }
.guide li button { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.guide li button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.guide .legend { display: grid; gap: 8px; font-size: .875rem; color: var(--ink-2); padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.guide .legend .swatch { width: 14px; height: 14px; }
@media (max-width: 1080px) {
  .results-stage { grid-template-columns: minmax(0, 1fr); }
  .guide { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.trio > div { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.trio h3 { font-size: 1.125rem; }
.trio p { color: var(--ink-2); font-size: 1rem; }
.trio .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--st-navy); color: var(--st-green); display: grid; place-items: center; }
.trio .ico svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* Coaches / course */
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.course { position: relative; border-radius: var(--radius-lg); background: var(--band-2); border: 1px solid var(--band-line); padding: 28px 24px 24px; overflow: hidden; }
.course svg.path { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-points { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp { background: rgba(8, 16, 30, .78); border: 1px solid var(--band-line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cp-top { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--on-band-2); }
.cp-flag { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--st-green); color: #06201a; font-weight: 700; font-size: .75rem; letter-spacing: .04em; }
.cp-dev { margin-left: auto; font-size: .75rem; color: var(--on-band-3); }
.cp .clock { font-size: 30px; color: #fff; }
.cp-who { font-size: .875rem; color: var(--on-band-2); }
.cp-who b { color: #fff; font-weight: 600; }
.cp-clip { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--on-band-2); font-variant-numeric: tabular-nums; }
.cp-clip i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.course-copy { display: grid; gap: 20px; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--on-band-2); }
.facts li b { color: #fff; font-weight: 600; }
.facts svg { width: 22px; height: 22px; color: var(--st-green); margin-top: 2px; }
@media (max-width: 900px) {
  .course-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .course-points { grid-template-columns: minmax(0, 1fr); }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.feature svg { width: 26px; height: 26px; color: var(--st-deep-blue); }
:root[data-theme="dark"] .feature svg { color: var(--st-green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature svg { color: var(--st-green); } }
.feature h3 { font-size: 1.0625rem; }
.feature p { color: var(--ink-2); font-size: .96875rem; line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: minmax(0, 1fr); } }

.web-strip { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.web-strip .devs { display: flex; gap: 10px; color: var(--ink-3); }
.web-strip .devs svg { width: 30px; height: 30px; }
.web-strip div.t { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.web-strip div.t b { font-size: 1.125rem; }
.web-strip div.t span { color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--st-navy); padding: 27px 25px 25px; }
:root[data-theme="dark"] .plan.featured { border-color: var(--st-green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.featured { border-color: var(--st-green); } }
.plan-badge { position: absolute; top: -13px; left: 24px; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--st-navy); color: #fff; display: inline-flex; align-items: center; font: 700 .6875rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.plan-name { display: grid; gap: 4px; }
.plan-name h3 { font-size: 1.375rem; font-weight: 800; }
.plan-name p { color: var(--ink-2); font-size: .9375rem; }
.price { display: grid; gap: 4px; min-height: 76px; align-content: start; }
.price-main { display: flex; align-items: baseline; gap: 6px; }
.price-main b { font: 800 2.75rem/1 var(--font-body); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-main span { color: var(--ink-2); font-weight: 500; }
.price-sub { color: var(--ink-3); font-size: .875rem; }
.price-sk { display: block; height: 44px; width: 60%; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.price-err { color: var(--ink-2); font-size: .9375rem; }
.trial { align-self: start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; background: rgba(40, 255, 146, .24); color: var(--accent-ink); font-weight: 600; font-size: .8125rem; }
.plan-promo { border-radius: 12px; background: rgba(40, 255, 146, .16); border: 1px solid rgba(40, 255, 146, .5); padding: 10px 12px; font-size: .875rem; line-height: 1.4; }
.plan-promo b { display: block; color: var(--accent-ink); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .96875rem; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: rgba(40,255,146,.3) var(--check) center / 11px no-repeat; }
.plan li.hl { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: .875rem; }
.demo-card { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--band); color: #fff; }
.demo-card div { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.demo-card b { font-size: 1.1875rem; }
.demo-card span { color: var(--on-band-2); }
@media (max-width: 920px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.0625rem; display: flex; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; margin-left: auto; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-list details > div { padding: 0 22px 20px; color: var(--ink-2); display: grid; gap: 10px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Final CTA */
.cta { text-align: left; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta-actions { display: grid; gap: 18px; justify-items: start; }
.cta-actions .row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.form-note { font-size: .875rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }
.contact-copy { display: grid; gap: 16px; }
.contact-copy .mail { font-weight: 600; user-select: all; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-form .row2 { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { padding-block: 56px 40px; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--on-band-2); max-width: 26em; }
.site-footer h4 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-band-3); font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--on-band-2) !important; text-decoration: none; }
.site-footer ul a:hover { color: #fff !important; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-band-3); font-size: .875rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Mockup details ---------- */

.rw-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.rw-banner .bb { flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid #d5dae2; background: #fff; font: 600 11.5px/1 var(--font-body); color: #142030; cursor: pointer; white-space: nowrap; }
.rw-banner .bb.primary { background: #23395d; border-color: #23395d; color: #fff; }
.rw-table td b { font-weight: 700; }
.rp-banner .bb { cursor: pointer; }
.rp-banner .x svg { width: 14px; height: 14px; }
.modes { gap: 4px; }
.mode { padding: 0 7px; gap: 4px; }
.tag-frame .play { border: 0; cursor: pointer; padding: 0; }
.tag-bar svg.back { width: 24px; height: 24px; flex: none; }
.rp-row > svg { opacity: .95; }
.promo s { opacity: .7; }
.plan-promo s { color: var(--ink-3); }
@media (max-width: 520px) {
  .viewswitch button { padding: 0 12px; white-space: nowrap; font-size: .875rem; gap: 6px; }
  .viewswitch button svg { width: 16px; height: 16px; }
}

/* ---------- Real race footage (Great American Invitational clips) ---------- */

img.clip-thumb { display: block; width: 58px; height: 40px; border-radius: 6px; object-fit: cover; background: #333; }
.tag-frame { height: 196px; background: #000; }
.tag-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.strip { height: 54px; }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.names-grid { grid-template-columns: repeat(2, 1fr); }
.name-tile { height: 70px; }

/* ---------- Spectator view ---------- */

.spec-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.spec-copy { display: grid; gap: 18px; align-content: start; }
.spec-copy .fine { color: var(--ink-3); font-size: .9375rem; }
.spec-visual { position: relative; width: 100%; max-width: 380px; margin-inline: auto; padding-top: 58px; }
.live-activity {
  position: absolute; z-index: 3; top: 0; left: -14%; width: 104%;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 22px;
  background: rgba(18, 33, 66, .96); color: #fff; font-family: var(--font-body);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -18px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.la-icon svg { width: 30px; height: 30px; color: #34c759; display: block; }
.la-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.la-text b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-text small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.la-clock { font-size: 24px; font-weight: 600; color: #34c759; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.spec { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; font-family: var(--font-body); }
.spec-bar { background: #23395d; color: #fff; padding: 58px 14px 14px; display: flex; align-items: center; gap: 12px; }
.spec-bar svg { width: 24px; height: 24px; color: var(--st-green); flex: none; }
.spec-bar b { font: 700 18px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.spec-live { flex: none; padding: 4px 8px; border-radius: 12px; background: rgba(40, 255, 146, .2); color: var(--st-green); font: 700 11px/1 var(--font-body); letter-spacing: .05em; }
.spec-grid { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 116px; gap: 8px; padding: 12px; align-content: start; }
.spec-tile { position: relative; border-radius: 10px; overflow: hidden; background: #e9edf2; }
.spec-tile.fresh { animation: clipIn .4s ease both; }
.spec-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.spec-tile .pc { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: rgba(255, 255, 255, .8); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.spec-clock { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 11px/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
.spec-wait { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #8b94a3; font: 500 11px/1.2 var(--font-body); text-align: center; }
.spec-wait svg { width: 22px; height: 22px; margin: 0 auto; animation: pulse 1.4s ease-in-out infinite; }
.spec-foot { padding: 10px 16px 34px; background: #fff; box-shadow: 0 -1px 0 #e9ecf1; }
.spec-results { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 25px; background: var(--st-green); color: #23395d; font: 600 16px/1 var(--font-body); }
.spec-results svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .spec-layout { grid-template-columns: minmax(0, 1fr); }
  .live-activity { left: -4%; width: 108%; }
}

/* Six nav links need a little more room before they fold into the menu. */
.nav-links { gap: 22px; }
@media (max-width: 1100px) {
  .nav-links, .nav-actions .signin { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions { order: 3; }
  .nav { gap: 12px; }
}
