/*
 * maw.gg - the one stylesheet for the public site.
 * Copyright (c) 2026 Turner Technologies LLC. All rights reserved.
 *
 * Served as /assets/site-v7.css with a one-year immutable cache, so any edit
 * that reaches production bumps the name (site-v8.css) and every page's link.
 * pkg/sitecheck fails on a page that references a file that is not here.
 *
 * Rules this file keeps (docs/business/WEBSITE.md section 6, GT 2026-10-02):
 * - A dark and a light theme. Every page follows the device's light/dark
 *   setting by default: no page carries data-theme in its HTML, and the light
 *   tokens apply to :root:not([data-theme]) under prefers-color-scheme: light,
 *   CSS only, so it holds without script too (GT, 2026-10-03; D-12 did this
 *   for the policy pages and the 404 first). The header toggle
 *   (assets/site-v3.js) saves a choice on the device only, and
 *   assets/theme-v2.js puts it on <html data-theme> before first paint, so
 *   the choice always wins over the device. The script-free pages have no
 *   toggle and always follow the device.
 * - Inter, self-hosted (assets/fonts/, SIL OFL 1.1, licence beside it), one
 *   Latin variable WOFF2 preloaded by every page (GT, 2026-10-03, D-13).
 * - Indigo is the brand accent. #6366f1 is for large text, icons and focus
 *   rings only; button backgrounds use #4f46e5 so white labels pass AA.
 * - Red (--live) means LIVE and nothing else, always beside the word.
 * - No inline style anywhere: the CSP is style-src 'self'.
 * - Every animation is decoration. prefers-reduced-motion turns all of it off,
 *   and every looping figure has a Pause control that works without script.
 *
 * Video slots (WEBSITE.md section 5.2, shot ids H1 and S2-S14):
 *   A slot is <figure class="slot" data-shot="H1"> holding the designed
 *   motion graphic. When real footage exists, put the encoded files in
 *   maw-platform/deploy/www/maw/media/ (served at /media/, the ONE base path
 *   nginx maps; moving to media.maw.gg is a change to that location only) and
 *   add inside the slot, after the graphic:
 *     <video class="slot-video" autoplay muted loop playsinline controls
 *            preload="metadata" width="1280" height="720"
 *            poster="/media/h1-poster-v1.jpg">
 *       <source src="/media/h1-720-v1.webm" type="video/webm"
 *               media="(prefers-reduced-motion: no-preference)">
 *       <source src="/media/h1-720-v1.mp4" type="video/mp4"
 *               media="(prefers-reduced-motion: no-preference)">
 *     </video>
 *   The video covers the graphic. With reduced motion no source matches, so
 *   the poster shows and nothing downloads. pkg/sitecheck enforces all of it.
 */

/* ---------- Type ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin-v1.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arial scaled to Inter's metrics, so the swap moves nothing on a slow connection. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;
  --bg: #0a0a12;
  --bg-2: #0e0e18;
  --surface: #12121c;
  --surface-2: #181826;
  --surface-3: #20203a;
  --border: #23233a;
  --border-strong: #33335a;
  --text: #eceef6;
  --text-2: #c9cde0;
  --muted: #9aa2ba;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --link: #a5b4fc;
  --live: #ef4444;
  --soon: #fbbf24;
  --soon-ink: #17130a;
  --ok: #34d399;
  --court: #1b2552;
  --court-2: #22306a;
  --court-out: #121a3a;
  --court-line: rgba(255, 255, 255, 0.86);
  --ball: #e7ff4a;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Consolas, monospace;
  --wrap: 1200px;
  --gutter: 16px;
  /* Component colours that change with the theme. */
  --hero-glow: 1;
  --grid-line: rgba(255, 255, 255, 0.035);
  --hl: linear-gradient(100deg, #a5b4fc 0%, #6366f1 45%, #38bdf8 100%);
  --tile-art: radial-gradient(120% 90% at 50% 0%, #1d2350 0%, #0d1028 70%);
  --roadmap-ink: var(--soon);
  --roadmap-ring: var(--soon);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f1f2f9;
  --surface-3: #e5e7f4;
  --border: #dde0ee;
  --border-strong: #c3c7dc;
  --text: #0d0f1e;
  --text-2: #2c3046;
  --muted: #4a5169;
  --accent: #4f46e5;
  --accent-strong: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-glow: rgba(79, 70, 229, 0.22);
  --link: #4338ca;
  --live: #dc2626;
  --soon: #f59e0b;
  --soon-ink: #1a1405;
  --ok: #047857;
  --shadow: 0 24px 60px -30px rgba(30, 30, 80, 0.35);
  --hero-glow: 0.6;
  --grid-line: rgba(20, 20, 80, 0.05);
  --hl: linear-gradient(100deg, #4338ca 0%, #4f46e5 50%, #0369a1 100%);
  --tile-art: radial-gradient(120% 90% at 50% 0%, #26306e 0%, #121838 70%);
  --roadmap-ink: #8a5a00;
  --roadmap-ring: #b77b00;
}

/* A page with no data-theme (every page until the visitor picks a theme)
   follows the device. The same values as the light block above. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f6f7fb;
    --bg-2: #eef0f8;
    --surface: #ffffff;
    --surface-2: #f1f2f9;
    --surface-3: #e5e7f4;
    --border: #dde0ee;
    --border-strong: #c3c7dc;
    --text: #0d0f1e;
    --text-2: #2c3046;
    --muted: #4a5169;
    --accent: #4f46e5;
    --accent-strong: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: rgba(79, 70, 229, 0.1);
    --accent-glow: rgba(79, 70, 229, 0.22);
    --link: #4338ca;
    --live: #dc2626;
    --soon: #f59e0b;
    --soon-ink: #1a1405;
    --ok: #047857;
    --shadow: 0 24px 60px -30px rgba(30, 30, 80, 0.35);
    --hero-glow: 0.6;
    --grid-line: rgba(20, 20, 80, 0.05);
    --hl: linear-gradient(100deg, #4338ca 0%, #4f46e5 50%, #0369a1 100%);
    --tile-art: radial-gradient(120% 90% at 50% 0%, #26306e 0%, #121838 70%);
    --roadmap-ink: #8a5a00;
    --roadmap-ring: #b77b00;
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

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

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

img,
svg,
video { display: block; max-width: 100%; }

img,
video { height: auto; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 700; }
h2.h3-size { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 700; letter-spacing: -0.025em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }

strong { color: var(--text); font-weight: 700; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
/* The skip link moves focus to <main tabindex="-1"> (UX-24). */
main:focus { outline: none; }

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

.tabular { font-variant-numeric: tabular-nums; }
.stack-top { margin-top: 20px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
  min-height: 44px;
}
/* The wordmark is drawn by CSS from right-sized PNGs (the designer's v3
   files, only downscaled), so a page downloads one theme's file and never the
   other's (an <img> with display:none still downloads). The link's aria-label
   names it. Header 112x35, footer 96x30 (UX-15, UX-32). The W-and-ball icon
   stays for favicons and other small sizes only (GT, 2026-10-03). */
.brand-logo {
  display: block;
  width: 112px;
  height: 35px;
  flex: none;
  background: no-repeat center / contain;
  background-image: url("brand/maw-logo-on-dark-112-v3.png");
  background-image: -webkit-image-set(url("brand/maw-logo-on-dark-112-v3.png") 1x, url("brand/maw-logo-on-dark-224-v3.png") 2x);
  background-image: image-set(url("brand/maw-logo-on-dark-112-v3.png") 1x, url("brand/maw-logo-on-dark-224-v3.png") 2x);
}
.footer-brand .brand-logo {
  width: 96px;
  height: 30px;
  background-image: url("brand/maw-logo-on-dark-96-v3.png");
  background-image: -webkit-image-set(url("brand/maw-logo-on-dark-96-v3.png") 1x, url("brand/maw-logo-on-dark-192-v3.png") 2x);
  background-image: image-set(url("brand/maw-logo-on-dark-96-v3.png") 1x, url("brand/maw-logo-on-dark-192-v3.png") 2x);
}
:root[data-theme="light"] .brand-logo {
  background-image: url("brand/maw-logo-on-light-112-v3.png");
  background-image: -webkit-image-set(url("brand/maw-logo-on-light-112-v3.png") 1x, url("brand/maw-logo-on-light-224-v3.png") 2x);
  background-image: image-set(url("brand/maw-logo-on-light-112-v3.png") 1x, url("brand/maw-logo-on-light-224-v3.png") 2x);
}
:root[data-theme="light"] .footer-brand .brand-logo {
  background-image: url("brand/maw-logo-on-light-96-v3.png");
  background-image: -webkit-image-set(url("brand/maw-logo-on-light-96-v3.png") 1x, url("brand/maw-logo-on-light-192-v3.png") 2x);
  background-image: image-set(url("brand/maw-logo-on-light-96-v3.png") 1x, url("brand/maw-logo-on-light-192-v3.png") 2x);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .brand-logo {
    background-image: url("brand/maw-logo-on-light-112-v3.png");
    background-image: -webkit-image-set(url("brand/maw-logo-on-light-112-v3.png") 1x, url("brand/maw-logo-on-light-224-v3.png") 2x);
    background-image: image-set(url("brand/maw-logo-on-light-112-v3.png") 1x, url("brand/maw-logo-on-light-224-v3.png") 2x);
  }
  :root:not([data-theme]) .footer-brand .brand-logo {
    background-image: url("brand/maw-logo-on-light-96-v3.png");
    background-image: -webkit-image-set(url("brand/maw-logo-on-light-96-v3.png") 1x, url("brand/maw-logo-on-light-192-v3.png") 2x);
    background-image: image-set(url("brand/maw-logo-on-light-96-v3.png") 1x, url("brand/maw-logo-on-light-192-v3.png") 2x);
  }
}
@media (forced-colors: active) {
  .brand-logo { forced-color-adjust: none; }
}

.nav-primary { display: none; margin-left: 12px; }
.nav-primary ul,
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-primary ul { display: flex; gap: 2px; }
.nav-primary a,
.menu-panel nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0 11px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 560;
  border-radius: 10px;
}
.nav-primary a:hover,
.menu-panel nav a:hover { color: var(--text); background: var(--surface-2); }

/* Current page: aria-current="page" on the matching link in both navs
   (pkg/sitecheck checks it is the right link and the only one). */
.nav-primary a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 10px 10px 0 0;
}
.menu-panel nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-actions .signin-link { display: none; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun,
.menu-theme .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun,
:root[data-theme="light"] .menu-theme .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon,
:root[data-theme="light"] .menu-theme .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun,
  :root:not([data-theme]) .menu-theme .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon,
  :root:not([data-theme]) .menu-theme .icon-moon { display: none; }
}
/* The toggle's copy inside the menu panel, for phones (under 400 px). */
.menu-theme { display: none; }
.menu-panel .menu-theme {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  cursor: pointer;
}
.menu-panel .menu-theme:hover { color: var(--text); background: var(--surface-2); }
.menu-theme svg { width: 20px; height: 20px; flex: none; }

.menu { position: relative; }
.menu > summary {
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu[open] > summary { background: var(--surface-2); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu-panel nav a { display: flex; justify-content: flex-start; width: 100%; font-size: 1rem; }
.menu-panel .menu-cta { margin-top: 8px; display: grid; gap: 8px; }
.menu-panel .menu-cta .btn { width: 100%; }

/* Header by width (UX-1). Phones: wordmark, Book a demo, menu (the theme
   toggle moves into the menu). From 400 px the toggle is back in the bar;
   from 560 px the player sign-in joins it; from 1100 px the full nav replaces
   the menu. */
@media (min-width: 1100px) {
  .nav-primary { display: block; }
  .menu { display: none; }
}
@media (min-width: 560px) {
  .header-actions .signin-link { display: inline-flex; }
}
@media (max-width: 399px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions > .theme-toggle { display: none; }
  .menu-panel .menu-theme:not([hidden]) { display: inline-flex; }
  .header-actions .btn-demo { padding: 0 12px; font-size: 0.88rem; }
}
@media (max-width: 351px) {
  .header-actions .btn-demo { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-text { color: var(--text-2); padding: 0 12px; }
.btn-text:hover { color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-live { background: #dc2626; color: #fff; }
.badge-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.badge-vision,
.badge-roadmap { background: var(--soon); color: var(--soon-ink); }
.badge-roadmap { background: transparent; color: var(--roadmap-ink); box-shadow: inset 0 0 0 1.5px var(--roadmap-ring); }
.badge-accent { background: var(--accent-soft); color: var(--link); }
.badge-plain { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  color: var(--text-2);
  max-width: 62ch;
}

.text-muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Sections ---------- */

main { display: block; }

.section { padding-block: clamp(56px, 5vw + 28px, 96px); position: relative; }
.section-tight { padding-block: clamp(40px, 4vw + 20px, 72px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.grid > *,
.split > *,
.hero-grid > *,
.price-grid > * { min-width: 0; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2vw + 10px, 30px);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
/* A linked card: only the heading is the link (so a screen reader reads its
   name, not the whole card), stretched over the card by ::after (UX-31). */
.card-link { display: flex; flex-direction: column; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card-link .card-title a { color: inherit; text-decoration: none; }
.card-link .card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link .card-title a:focus-visible { outline: none; }
.card-link:has(.card-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-link .more { color: var(--link); font-weight: 650; display: inline-flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--link);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.split {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .split.flip > :first-child { order: 2; }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* A short figure beside a long list rides along instead of floating in
     the middle of empty space (UX-9). */
  .split-sticky { align-items: start; }
  .split-sticky > figure { position: sticky; top: 108px; margin-top: 44px; }
}

/* Compact price tiles beside a section's text (Home, Product Studio). */
.price-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pt-name { color: var(--text); font-weight: 650; font-size: 0.95rem; }
.pt-amount { font-family: var(--font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.pt-per { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
@media (max-width: 379px) { .price-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Home About: the founder beside the company line. */
.about-home { display: grid; gap: 28px; align-items: center; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.about-home .section-head { margin-bottom: 0; }
.about-home-photo { margin: 0; width: min(100%, 260px); }
.about-home-photo img { width: 100%; height: auto; border-radius: 24px; background: var(--surface-2); box-shadow: var(--shadow); }
.about-home-photo figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
@media (min-width: 900px) {
  .about-home { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
}

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("img/check-v1.svg") center / 12px no-repeat;
}

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

.hero {
  position: relative;
  padding-block: clamp(48px, 5vw + 24px, 96px) clamp(40px, 4vw + 20px, 80px);
  overflow: hidden;
  isolation: isolate;
}
/* The glow fills the hero and fades out before its bottom edge, so no hero
   ends in a hard line (UX-5). */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -10%;
  z-index: -1;
  opacity: var(--hero-glow);
  -webkit-mask-image: linear-gradient(#000 45%, transparent 98%);
  mask-image: linear-gradient(#000 45%, transparent 98%);
  background:
    radial-gradient(600px 380px at 18% 20%, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(520px 360px at 85% 10%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(700px 500px at 60% 85%, rgba(79, 70, 229, 0.16), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.hero-grid { display: grid; gap: clamp(36px, 4vw, 56px); align-items: center; }
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.hero h1 { margin-bottom: 0.32em; }
.hero h1 .hl {
  background: var(--hl);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-bottom: 30px; }
.hero + .section-tight { padding-top: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; padding: 0; margin: 0; list-style: none; }
.hero-meta li { display: inline-flex; align-items: flex-start; gap: 8px; }
.hero-meta li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--accent); }

.page-hero { padding-block: clamp(48px, 5vw + 24px, 96px) clamp(32px, 3vw + 16px, 56px); }
.page-hero .lede { margin-bottom: 0; }
/* Buttons, chips and notes under a page hero's lede get room (UX-6). */
.page-hero .lede + * { margin-top: 28px; }

/* ---------- Animated figure: pause control (works without script) ---------- */

.anim { position: relative; margin: 0; }
.anim-toggle {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
/* The control is a 44 px round icon button in a corner of the art that
   holds nothing (UX-7): top-right by default, -tl, -bl and -br move it, and
   in a caption (.anim-caption) it sits beside the text. */
.anim-pause {
  position: absolute;
  z-index: 6;
  top: 10px; right: 10px;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 10, 20, 0.72);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.anim .anim-pause svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.anim-pause-tl { right: auto; left: 10px; }
.anim-pause-bl { top: auto; right: auto; bottom: 10px; left: 10px; }
.anim-pause-br { top: auto; bottom: 10px; }
.anim-caption .anim-pause {
  position: static;
  flex: none;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.anim-caption-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.anim-stage { position: relative; }
.anim-pause .is-play { display: none; }
.anim-toggle:checked ~ * .anim-pause .is-play { display: block; }
.anim-toggle:checked ~ * .anim-pause .is-pause { display: none; }
.anim-toggle:focus-visible ~ * .anim-pause { outline: 2px solid var(--accent); outline-offset: 3px; }
.anim-toggle:disabled ~ * .anim-pause { display: none; }
.anim-toggle:checked ~ .anim-stage,
.anim-toggle:checked ~ .anim-stage * { animation-play-state: paused !important; }

figcaption.anim-caption,
.fig-caption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Video slot: the designed graphic stays underneath; a real <video> covers it. */
.slot { position: relative; }
figure.slot { margin-inline: 0; }
.slot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 5;
  background: transparent;
}

/* ---------- Stylised operator monitor ---------- */

.monitor {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, #1c1c2e, #0f0f1a);
  border: 1px solid #2a2a44;
  box-shadow: 0 50px 120px -40px rgba(79, 70, 229, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color: #e6e8f2;
}
.monitor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #9aa2ba;
  text-transform: uppercase;
}
.monitor-bar { overflow: hidden; }
.monitor-bar span { white-space: nowrap; }
.monitor-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
/* Phones: the status bar keeps one line (UX-3). */
@media (max-width: 599px) {
  .monitor-bar .bar-wide { display: none; }
}
.monitor-bar .grow { flex: 1; }
.monitor-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1030;
}
.monitor-screen > svg { width: 100%; height: 100%; }
.monitor-screen-desk { aspect-ratio: 1280 / 620; }
/* Phones: the operator page is cropped to its program picture and transport
   (x 250-1030, y 118-590 of the 1280x620 drawing), so it reads at 360 px
   instead of shrinking to a thumbnail (UX-11). */
@media (max-width: 719px) {
  .monitor-screen-desk { aspect-ratio: 780 / 472; }
  .monitor-screen-desk > svg { width: 164.1%; max-width: none; height: auto; margin: -15.13% 0 0 -32.05%; }
}

.transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.transport .tbtn {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: #1f1f33;
  border: 1px solid #2f2f4c;
  color: #d6d9ea;
  font: inherit;
  font-weight: 650;
}
.transport button.tbtn { cursor: pointer; min-height: 44px; min-width: 44px; }
button.tbtn:hover { background: #2a2a46; }
.transport .tbtn.is-live { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.55); color: #fecaca; }
.transport .tbtn svg { width: 12px; height: 12px; fill: currentColor; }
.tbtn .ico-pause,
.tbtn.is-playing .ico-play { display: none; }
.tbtn.is-playing .ico-pause { display: block; }
.transport .state {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 750;
  letter-spacing: 0.08em;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}
.scrub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #9aa2ba;
}
.scrub-track {
  position: relative;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 8px),
    #15152a;
  overflow: hidden;
}
.scrub-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 72%;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.45));
}
.scrub-head {
  position: absolute;
  top: -2px; bottom: -2px;
  left: 72%;
  width: 3px;
  margin-left: -1px;
  background: #a5b4fc;
  box-shadow: 0 0 12px #6366f1;
}
.anim-on .scrub-head { animation: scrub-step 8s steps(1, end) infinite; }
.anim-on .scrub-fill { animation: scrub-fill 8s steps(1, end) infinite; }
@keyframes scrub-step {
  0% { left: 96%; } 45% { left: 96%; } 50% { left: 82%; } 55% { left: 79%; } 60% { left: 76%; }
  65% { left: 74%; } 70% { left: 72%; } 92% { left: 72%; } 100% { left: 96%; }
}
@keyframes scrub-fill {
  0% { width: 96%; } 45% { width: 96%; } 50% { width: 82%; } 55% { width: 79%; } 60% { width: 76%; }
  65% { width: 74%; } 70% { width: 72%; } 92% { width: 72%; } 100% { width: 96%; }
}

/* The court illustration (SVG classes). */
.c-out { fill: var(--court-out); }
.c-in { fill: var(--court); }
.c-kitchen { fill: var(--court-2); }
.c-line { stroke: var(--court-line); fill: none; stroke-linecap: square; }
.c-net { stroke: rgba(255, 255, 255, 0.92); stroke-width: 3; }
.c-netband { fill: rgba(255, 255, 255, 0.08); }
.c-ball { fill: var(--ball); }
.c-ballglow { fill: rgba(231, 255, 74, 0.35); }
.c-shadow { fill: rgba(0, 0, 0, 0.35); }
.c-trail { fill: none; stroke: rgba(231, 255, 74, 0.55); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.c-mark { fill: none; stroke: rgba(231, 255, 74, 0.9); stroke-width: 2.5; }
.c-ui { fill: rgba(10, 10, 24, 0.78); }
.c-ui-line { fill: none; stroke: rgba(255, 255, 255, 0.16); }
.c-txt { fill: #fff; font-family: var(--font); font-weight: 800; }
.c-txt-m { fill: #c7cbe0; font-family: var(--mono); font-weight: 600; letter-spacing: 0.08em; }
.c-accent { fill: #6366f1; }
.c-live { fill: #ef4444; }
.c-chip { fill: rgba(99, 102, 241, 0.9); }
.c-ring { fill: none; stroke: #a5b4fc; stroke-width: 3; }
.c-glass { fill: rgba(8, 10, 30, 0.55); stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.c-fence { fill: #0a0f2a; }
.c-light { fill: rgba(165, 180, 252, 0.08); }

/* Hero loop: 8 s. Live play, the bounce on the line, the operator pulls the replay
   back frame by frame, the score ticks over. Static state = the bounce frame. */
.anim-on .ball-live { animation: ball-arc 8s linear infinite; }
.anim-on .ball-shadow { animation: ball-shadow 8s linear infinite; }
.anim-on .replay-chip,
.anim-on .bounce-ring,
.anim-on .zoom { animation: replay-on 8s steps(1, end) infinite; }
.anim-on .live-chip { animation: live-on 8s steps(1, end) infinite; }
.anim-on .score-old { animation: score-old 8s ease infinite; }
.anim-on .score-new { animation: score-new 8s ease infinite; }

.replay-chip, .bounce-ring, .zoom { opacity: 1; }
.live-chip { opacity: 0; }
.score-old { opacity: 0; }

@keyframes ball-arc {
  0%   { transform: translate(-330px, -250px); }
  6%   { transform: translate(-280px, -270px); }
  12%  { transform: translate(-225px, -270px); }
  18%  { transform: translate(-170px, -250px); }
  24%  { transform: translate(-115px, -210px); }
  30%  { transform: translate(-62px, -150px); }
  36%  { transform: translate(-20px, -70px); }
  40%  { transform: translate(0, 0); }
  44%  { transform: translate(26px, -52px); }
  48%  { transform: translate(56px, -88px); }
  50%  { transform: translate(-20px, -70px); }
  55%  { transform: translate(-14px, -50px); }
  60%  { transform: translate(-9px, -32px); }
  65%  { transform: translate(-4px, -15px); }
  70%  { transform: translate(0, 0); }
  92%  { transform: translate(0, 0); }
  100% { transform: translate(-330px, -250px); }
}
@keyframes ball-shadow {
  0%   { transform: translate(-330px, -20px) scale(0.6); opacity: 0.3; }
  40%  { transform: translate(0, 0) scale(1); opacity: 1; }
  48%  { transform: translate(56px, -10px) scale(0.8); opacity: 0.6; }
  50%  { transform: translate(-20px, -4px) scale(0.85); opacity: 0.7; }
  70%  { transform: translate(0, 0) scale(1); opacity: 1; }
  92%  { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-330px, -20px) scale(0.6); opacity: 0.3; }
}
@keyframes replay-on {
  0% { opacity: 0; } 49% { opacity: 0; } 50% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes live-on {
  0% { opacity: 1; } 49% { opacity: 1; } 50% { opacity: 0; } 92% { opacity: 0; } 93% { opacity: 1; } 100% { opacity: 1; }
}
@keyframes score-old {
  0% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; transform: translateY(0); }
  84% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-14px); }
}
@keyframes score-new {
  0% { opacity: 0; transform: translateY(14px); } 80% { opacity: 0; transform: translateY(14px); }
  84% { opacity: 1; transform: translateY(0); } 99% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Script-driven replay demo (assets/site-v3.js) stops the CSS loop. */
.is-scrubbing .ball-live,
.is-scrubbing .ball-shadow,
.is-scrubbing .scrub-head,
.is-scrubbing .scrub-fill,
.is-scrubbing .replay-chip,
.is-scrubbing .live-chip,
.is-scrubbing .bounce-ring,
.is-scrubbing .zoom,
.is-scrubbing .score-old,
.is-scrubbing .score-new { animation: none !important; }
.is-scrubbing .live-chip { opacity: 0; }
.is-scrubbing .replay-chip { opacity: 1; }
.is-scrubbing .score-old { opacity: 0; }
.is-scrubbing .score-new { opacity: 1; transform: none; }
.is-scrubbing .bounce-ring,
.is-scrubbing .zoom { opacity: 0; }
.is-scrubbing.at-bounce .bounce-ring,
.is-scrubbing.at-bounce .zoom { opacity: 1; }
.demo-controls[hidden] { display: none; }
.demo-hint { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.demo-hint kbd {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- Feature tiles with small motion graphics ---------- */

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.tile-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tile-art);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.tile-art svg { width: 100%; height: 100%; }
.tile-body { padding: 22px 24px 26px; }
.tile-body p { color: var(--text-2); margin-bottom: 0; }

.anim-on .t-step { animation: t-step 4s steps(1, end) infinite; }
@keyframes t-step {
  0% { transform: translateX(0); } 20% { transform: translateX(-26px); } 40% { transform: translateX(-52px); }
  60% { transform: translateX(-78px); } 80% { transform: translateX(-104px); } 100% { transform: translateX(0); }
}
.anim-on .t-cam-a { animation: t-cam-a 5s ease-in-out infinite; }
.anim-on .t-cam-b { animation: t-cam-b 5s ease-in-out infinite; }
.t-cam-b { opacity: 0; }
@keyframes t-cam-a { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes t-cam-b { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.anim-on .t-sel { animation: t-sel 5s steps(1, end) infinite; }
@keyframes t-sel { 0% { transform: translateX(0); } 50% { transform: translateX(78px); } 100% { transform: translateX(0); } }
.anim-on .t-score { animation: t-score 4s ease infinite; }
@keyframes t-score { 0%, 60% { transform: translateY(0); } 70%, 100% { transform: translateY(-22px); } }
.anim-on .t-lower { animation: t-lower 6s ease infinite; }
@keyframes t-lower { 0% { transform: translateX(-260px); } 12%, 80% { transform: translateX(0); } 92%, 100% { transform: translateX(-260px); } }
.anim-on .t-pulse { animation: t-pulse 2.4s ease-in-out infinite; }
@keyframes t-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.anim-on .t-flow { animation: t-flow 1.6s linear infinite; }
@keyframes t-flow { to { stroke-dashoffset: -24; } }
.anim-on .t-grid-hl { animation: t-grid-hl 8s steps(1, end) infinite; }
@keyframes t-grid-hl {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(98px, 0); } 25% { transform: translate(196px, 0); }
  37.5% { transform: translate(294px, 0); } 50% { transform: translate(0, 66px); } 62.5% { transform: translate(98px, 66px); }
  75% { transform: translate(196px, 66px); } 87.5% { transform: translate(294px, 66px); } 100% { transform: translate(0, 0); }
}
.anim-on .t-trace { animation: t-trace 5s ease-in-out infinite; }
@keyframes t-trace { 0% { stroke-dashoffset: 400; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 400; } }
.anim-on .t-pop { animation: t-pop 5s ease infinite; }
.t-pop { transform-box: fill-box; transform-origin: center; }
@keyframes t-pop { 0%, 55% { opacity: 0; transform: scale(0.6); } 62%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.6); } }
.anim-on .t-spin { animation: t-spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes t-spin { to { transform: rotate(360deg); } }

/* Animated elements rest visible, so with reduced motion the end state shows. */
/* A tagged clip travelling from the venue PC to each player (Product, Players). */
.anim-on .t-send { animation: t-send 5s ease-in-out infinite; }
@keyframes t-send { 0%, 30% { opacity: 0; transform: translateX(0); } 38% { opacity: 1; } 70% { opacity: 1; transform: translateX(118px); } 78%, 100% { opacity: 0; transform: translateX(118px); } }

/* The capability wall (Home, Product): short chips, a highlight that walks
 * across them. Each chip rests readable, so reduced motion shows the wall. */
.cap-wall { position: relative; }
.cap-wall ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cap-soon { color: var(--text-2); font-weight: 500; }
.cap-soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--roadmap-ring); }
.cap-soon .badge { margin-left: 2px; }
.anim-on .cap { animation: cap-lit 9s ease-in-out infinite; }
@keyframes cap-lit {
  0%, 6% { box-shadow: inset 0 0 0 1px var(--border); background: var(--surface); }
  2% { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
}
.cap-wall .anim-pause { position: absolute; right: 0; top: -44px; }
.anim-on .cap:nth-child(1) { animation-delay: 0.0s; }
.anim-on .cap:nth-child(2) { animation-delay: 0.5s; }
.anim-on .cap:nth-child(3) { animation-delay: 1.0s; }
.anim-on .cap:nth-child(4) { animation-delay: 1.5s; }
.anim-on .cap:nth-child(5) { animation-delay: 2.0s; }
.anim-on .cap:nth-child(6) { animation-delay: 2.5s; }
.anim-on .cap:nth-child(7) { animation-delay: 3.0s; }
.anim-on .cap:nth-child(8) { animation-delay: 3.5s; }
.anim-on .cap:nth-child(9) { animation-delay: 4.0s; }
.anim-on .cap:nth-child(10) { animation-delay: 4.5s; }
.anim-on .cap:nth-child(11) { animation-delay: 5.0s; }
.anim-on .cap:nth-child(12) { animation-delay: 5.5s; }
.anim-on .cap:nth-child(13) { animation-delay: 6.0s; }
.anim-on .cap:nth-child(14) { animation-delay: 6.5s; }
.anim-on .cap:nth-child(15) { animation-delay: 7.0s; }
.anim-on .cap:nth-child(16) { animation-delay: 7.5s; }
.anim-on .cap:nth-child(17) { animation-delay: 8.0s; }
.anim-on .cap:nth-child(18) { animation-delay: 8.5s; }
/* Players: scan, record, the clip lands (three panels, one loop). */
.anim-on .t-scanline { animation: t-scanline 6s ease-in-out infinite; }
@keyframes t-scanline { 0% { transform: translateY(0); opacity: 0; } 4% { opacity: 1; } 28% { transform: translateY(70px); opacity: 1; } 32%, 100% { transform: translateY(70px); opacity: 0; } }
.anim-on .t-rec { animation: t-rec 6s steps(1, end) infinite; }
@keyframes t-rec { 0%, 33% { opacity: 0.25; } 34%, 66% { opacity: 1; } 67%, 100% { opacity: 0.25; } }
.anim-on .t-land { animation: t-land 6s ease infinite; }
.t-land { transform-box: fill-box; transform-origin: center; }
@keyframes t-land { 0%, 66% { opacity: 0; transform: translateY(-24px); } 74%, 94% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
.strip-art { aspect-ratio: 16 / 5; border: 0; border-radius: var(--radius-lg); }
@media (max-width: 640px) { .strip-art { aspect-ratio: 16 / 7; } }
/* Coaches: a pen stroke, then a ring, on a frozen frame. */
.anim-on .t-pen { animation: t-pen 6s ease-in-out infinite; }
@keyframes t-pen { 0%, 10% { stroke-dashoffset: 260; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
.anim-on .t-ring { animation: t-ring 6s ease infinite; transform-box: fill-box; transform-origin: center; }
@keyframes t-ring { 0%, 45% { opacity: 0; transform: scale(0.5); } 55%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

.examples summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 0.95rem; }
/* About: the rest of GT's story folds under its photos. */
.bio-more summary { cursor: pointer; color: var(--link); font-weight: 600; margin: 4px 0 18px; }
.bio-more[open] summary { margin-bottom: 14px; }

/* ---------- "Request a feature" band and footer line ---------- */

.ask-band {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--radius-lg, 18px);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
@media (min-width: 860px) { .ask-band { grid-template-columns: 1fr auto; } }
.ask-band h2 { font-size: 1.35rem; margin: 0 0 6px; }
.ask-band p { color: var(--text-2); margin: 0; max-width: 62ch; }
.ask-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-ask { color: var(--text-2); margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.footer-ask a { color: var(--link); font-weight: 600; }

/* ---------- Steps / diagram ---------- */

.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 74px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px; top: 22px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--link);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
}
.steps h3 { margin-bottom: 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-2); font-size: 0.98rem; }

.diagram { margin-top: 28px; }
.diagram svg { width: 100%; height: auto; }
/* Under 720 px the wide diagram's labels would be 4 to 5 px, so a stacked
   version takes its place (UX-4). */
.diagram .diagram-v { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 719px) {
  .diagram .diagram-wide { display: none; }
  .diagram .diagram-v { display: block; }
}
.d-box { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.d-box-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.d-txt { fill: var(--text); font-family: var(--font); font-size: 15px; font-weight: 700; }
.d-txt-s { font-size: 13.5px; }
.d-sub { fill: var(--muted); font-family: var(--font); font-size: 12.5px; }
.d-wire { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; }
.d-ico { fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stats strip (facts, never counts of customers) ---------- */

.facts { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface); padding: 24px; }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 0.94rem; }

/* ---------- AI status card ---------- */

.status-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2vw + 12px, 34px);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(251, 191, 36, 0.7), rgba(99, 102, 241, 0.7)) border-box;
  border: 1.5px solid transparent;
}
.status-card .status-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.status-card .metric { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.status-card p { color: var(--text-2); }

.vision-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vision-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.vision-list li h3,
.vision-list li h4 { margin: 0; font-size: 1.05rem; }
.vision-list li p { grid-column: 1 / -1; margin: 0; color: var(--text-2); font-size: 0.97rem; }

.sport {
  overflow: hidden;
  padding: 0;
}
.sport-art { aspect-ratio: 16 / 9; background: radial-gradient(120% 100% at 50% 0%, #1a2150, #0b0e24); border-bottom: 1px solid var(--border); }
.sport-art svg { width: 100%; height: 100%; }
.sport-body { padding: 20px 22px 24px; }
.sport-body .badge { margin-bottom: 10px; }
.sport-body ul { margin: 0; padding-left: 1.1em; color: var(--text-2); }
.s-field { fill: #123a2a; }
.s-field-2 { fill: #164a34; }
.s-court { fill: #1d2a62; }
.s-sand { fill: #6b4f2a; }
.s-line { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; }
.s-acc { fill: none; stroke: #a5b4fc; stroke-width: 3; stroke-dasharray: 8 6; }
.s-acc-fill { fill: rgba(99, 102, 241, 0.28); stroke: #a5b4fc; stroke-width: 2; }
.s-yel { fill: none; stroke: #fbbf24; stroke-width: 3.5; }
.s-ball { fill: #f8fafc; }
.s-dot { fill: #fff; }
.s-dim { fill: rgba(255, 255, 255, 0.35); }

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

.price-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .price-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, #818cf8, #4f46e5 50%, #0ea5e9) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 80px -50px var(--accent-glow);
}
.price-card .plan-for { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 4px 0 4px;
  font-variant-numeric: tabular-nums;
}
.price .amount { font-family: var(--font-display); font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.price .per { color: var(--muted); font-size: 0.98rem; }
.price-alt { color: var(--text-2); font-size: 0.95rem; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.price-card .checks { margin-bottom: 22px; }
.price-card .btn { width: 100%; }
.price-card .push { margin-top: auto; }
.disclosure {
  max-width: 80ch;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
}
.disclosure p { margin: 0 0 0.4em; }
.disclosure p:last-child { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.9rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: var(--text); font-weight: 650; }
td { color: var(--text-2); }
caption { text-align: left; padding: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
/* Phones: a table of three or more columns (.table-stack) becomes one card
   per row, so no column is cut off behind a sideways scroll (live test
   2026-10-03, F5). The row's own <th> heads the card; each cell shows its
   column's name from data-label, which pkg/sitecheck holds equal to the
   column header. The header row stays in the page for screen readers. A
   stacked cell holds plain text only (sitecheck again): it is a flex row,
   so a wrapped label and a wrapped value both set the cell's height. */
@media (max-width: 599px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; }
  .table-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { padding: 0; border-bottom: 0; }
  .table-stack tbody th { margin-bottom: 6px; font-size: 1rem; }
  .table-stack td { display: flex; gap: 12px; padding: 4px 0; color: var(--text); }
  .table-stack td::before { content: attr(data-label); flex: 0 0 44%; color: var(--muted); font-size: 0.9rem; }
}

.note {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text-2);
}
.note p:last-child { margin: 0; }
.note-small { font-size: 0.9rem; line-height: 1.75; padding: 14px 16px; }
.note .badge { vertical-align: 1px; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  font-weight: 650;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 2px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding-bottom: 18px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Grid motif (eight scenes) ---------- */

.scene-grid-art { border-radius: 16px; overflow: hidden; border: 1px solid #2a2a44; background: #0b0d22; }

.press-swatch { display: grid; place-items: center; min-height: 200px; }
.press-swatch img { width: min(330px, 100%); }
.press-dark { background: #0a0a12; }
.press-light { background: #f6f7fb; border-color: #dde0ee; }

/* ---------- Founder ---------- */

/* About: the portrait is a square head-and-shoulders crop on phones and a
   taller crop beside the opening paragraphs from 760 px (a <picture>). The
   rest of the story runs in the same column as the opening, at a reading
   measure, with the two photos side by side between paragraphs (UX-17). */
.founder { display: grid; gap: 28px; align-items: start; }
@media (min-width: 760px) { .founder { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; } }
.founder-photo {
  display: block;
  width: min(100%, 320px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.founder-photo img { width: 100%; height: auto; }
.founder-intro p,
.bio p { color: var(--text-2); }
.founder-intro p,
.bio > * { max-width: 68ch; }

.bio { margin-top: clamp(8px, 1vw, 16px); }
@media (min-width: 760px) { .bio { padding-left: 360px; } }
/* Equal heights without cropping: the columns follow the photos' widths
   at one height (480x600 and 360x600 are 4:3 in width). */
.bio-photos { display: grid; grid-template-columns: 4fr 3fr; gap: 14px; margin: 28px 0; }
.bio-fig { margin: 0; }
.bio-fig img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--surface-2); }
/* GT, 2026-10-03: Meet the Team sits a little closer to the bio above it.
   Each side of the gap is about three quarters of a .section's padding. */
.about-founder { padding-bottom: clamp(42px, 3.5vw + 26px, 72px); }
.about-team { padding-top: clamp(42px, 3.5vw + 26px, 72px); }

.team { max-width: 760px; }
.team-card img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 18px; background: var(--surface-2); }
.team-card h3 { margin-bottom: 0.25em; }
.team-card p { color: var(--text-2); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(36px, 4vw + 20px, 72px);
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(165, 180, 252, 0.35), transparent 70%),
    radial-gradient(600px 400px at 100% 100%, rgba(14, 165, 233, 0.25), transparent 70%),
    linear-gradient(135deg, #1e1b4b, #312e81 50%, #1e3a8a);
  color: #fff;
  border: 1px solid rgba(165, 180, 252, 0.25);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #fff; max-width: 60ch; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: #1e1b4b; box-shadow: none; }
.cta-band .btn-primary:hover { background: #e0e7ff; color: #1e1b4b; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-band .cta-court {
  position: absolute;
  right: -60px; bottom: -40px;
  width: 420px;
  opacity: 0.22;
  pointer-events: none;
}
@media (max-width: 720px) { .cta-band .cta-court { display: none; } }

/* ---------- Legal and long-form pages ---------- */

.legal-head { padding-block: clamp(40px, 4vw + 20px, 80px) 24px; border-bottom: 1px solid var(--border); }
.legal-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
.legal-dates { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.legal-dates b { color: var(--text-2); font-weight: 650; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 96px; }
.legal-layout > * { min-width: 0; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.legal-toc { font-size: 0.92rem; }
.legal-toc h2 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legal-toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.legal-toc a:hover { background: var(--surface-2); color: var(--text); }
/* Phones and tablets: the contents fold into a <details>, so the first
   paragraph is not 1000 px down (UX-27). From 1024 px: the sticky list. */
.legal-toc .toc-wide { display: none; }
.toc-small { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc-small summary { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 44px 0 16px; cursor: pointer; font-weight: 650; color: var(--text); list-style: none; }
.toc-small summary::-webkit-details-marker { display: none; }
.toc-small summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.toc-small[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.toc-small[open] summary { border-bottom: 1px solid var(--border); }
.toc-small nav { padding: 6px; }
@media (min-width: 1024px) {
  .legal-toc .toc-small { display: none; }
  .legal-toc .toc-wide { display: block; position: sticky; top: 92px; }
}
.prose { max-width: 72ch; color: var(--text-2); }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); margin-top: 2.2em; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose li { margin-bottom: 0.45em; }
.prose a,
.prose code { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 56px 32px;
  font-size: 0.95rem;
}
/* Phones: the brand across, the link columns two by two (UX-30). */
.footer-top { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .footer-top { gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
}
.footer-brand p { color: var(--muted); max-width: 36ch; margin-top: 14px; }
.footer-col h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 750; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col ul { gap: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}
.footer-policy { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 4px; }
.footer-policy a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px; margin-right: 6px; color: var(--text-2); text-decoration: none; border-radius: 8px; }
.footer-policy a:hover { color: var(--text); background: var(--surface-2); }
.footer-company { color: var(--muted); margin: 0; }
.footer-company a { color: var(--text-2); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .anim-on *,
  .badge-live::before { animation: none !important; }
  .anim-pause { display: none; }
  .card-link:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .anim-pause, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; max-width: none; }
}
