/* Deep Third landing page.
   Near-black page, one blue for actions, broadcast graphics in condensed type. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-500.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.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;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.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;
}

:root {
  color-scheme: dark;
  --bg: #08090c;
  --bg-2: #0c0f14;
  --bg-3: #10141b;
  --surface: #11151c;
  --surface-2: #171c25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f6fa;
  --ink-2: #b3bbc9;
  --ink-3: #8b94a5;
  --brand: #3e6ae1;
  --brand-hi: #5b84ee;
  --brand-soft: #9db4f5;
  --gold: #f2c14e;
  --pitch-a: #22211c;
  --pitch-b: #262520;
  --ok: #8fe3b0;
  --bad: #ff9b8a;
  --radius: 14px;
  --wrap: 1180px;
  --gutter: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-bc: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
.sr-only {
  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 14px;
  background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hi); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { background: rgba(8, 9, 12, 0.88); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-word { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-2); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 880px) {
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 104px;
  background:
    radial-gradient(1100px 560px at 80% -12%, rgba(62, 106, 225, 0.2), transparent 62%),
    radial-gradient(700px 420px at 0% 8%, rgba(62, 106, 225, 0.07), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
  font-size: 13px; color: var(--ink-2);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.14); }
.hero h1 {
  margin-top: 22px; color: var(--ink);
  font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4.05rem); font-weight: 640; line-height: 1.03; letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%239db4f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 980px) {
  .hero { padding: 48px 0 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* ---------- broadcast frame ---------- */
.bc {
  position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: #0b130e;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75);
}
.bc-scene { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(180deg, #132a1b, #1c3a26 46%, #17311f); }
.bc-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-tag {
  position: absolute; top: 14px; left: 18px; z-index: 2; padding: 4px 12px 3px;
  background: var(--gold); color: #12151b; font: 700 13px/1.2 var(--font-bc); letter-spacing: 0.1em; text-transform: uppercase;
  transform: skewX(-14deg);
}
.bc-tag > span { display: inline-block; transform: skewX(14deg); }
.bc-id { position: absolute; top: 10px; right: 16px; z-index: 2; text-align: right; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.bc-over { display: block; font: 700 30px/1 var(--font-bc); }
.bc-who { display: block; margin-top: 4px; font: 600 12px/1.2 var(--font-bc); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.bc-lower {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr;
  background: rgba(7, 9, 13, 0.86); border-top: 3px solid var(--brand); border-radius: 3px 3px 10px 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bc-lower > div { min-width: 0; padding: 9px 14px 11px; }
.bc-lower > div + div { border-left: 1px solid var(--line); }
.bc-lower dt { font: 600 11px/1.2 var(--font-bc); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.bc-lower dd { margin-top: 3px; color: #fff; font: 700 26px/1.05 var(--font-bc); transition: opacity 0.25s; }
.bc-lower dd small { margin-left: 4px; color: var(--ink-2); font: 600 14px/1 var(--font-bc); letter-spacing: 0.04em; }
.bc-lower dd.is-pending { opacity: 0.18; }
.est { margin-left: 4px; color: var(--ink-3); font-weight: 500; letter-spacing: 0.06em; text-transform: none; }
@media (max-width: 600px) {
  .bc-lower { position: static; border-radius: 0; }
  .bc-lower > div { padding: 8px 10px 10px; }
  .bc-lower dd { font-size: 20px; }
  .bc-lower dd small { font-size: 12px; }
  .bc-tag { top: 10px; left: 12px; font-size: 11px; }
  .bc-id { top: 8px; right: 12px; }
  .bc-over { font-size: 22px; }
  .bc-who { font-size: 10px; }
}

/* scene text and marks (SVG) */
.sc-tag { font: 700 17px var(--font-bc); letter-spacing: 0.02em; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, 0.55); stroke-width: 4px; stroke-linejoin: round; }
.sc-zone { font: 700 15px var(--font-bc); letter-spacing: 0.12em; fill: var(--gold); paint-order: stroke; stroke: rgba(0, 0, 0, 0.5); stroke-width: 4px; stroke-linejoin: round; }
.sc-num { font: 700 13px var(--font-bc); }
.fade-in { animation: fade-in 0.35s ease-out both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.pulse { animation: pulse 0.7s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.eyebrow { color: var(--brand-soft); font: 600 14px/1.2 var(--font-bc); letter-spacing: 0.18em; text-transform: uppercase; }
.section h2 {
  max-width: 22em; margin-top: 14px; color: var(--ink);
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem); font-weight: 620; line-height: 1.08; letter-spacing: -0.028em;
  text-wrap: balance;
}
.section-lede { max-width: 40em; margin-top: 18px; font-size: 1.075rem; }
@media (max-width: 720px) { .section { padding: 80px 0; } }

/* what you get */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.feature { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.icon { width: 40px; height: 40px; color: var(--brand-soft); }
.feature h3, .step h3, .who h3, .cmp h3 { color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.feature h3 { margin-top: 18px; }
.feature p { margin-top: 8px; font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 1060px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- sample console ---------- */
.console {
  margin-top: 48px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.bug { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #0e131c, #121927); }
.bug-title {
  display: flex; align-items: center; padding: 0 34px 0 20px; background: var(--brand); color: #fff;
  font: 700 17px/1 var(--font-bc); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.bug-cells { display: flex; flex: 1; flex-wrap: wrap; }
.bug-cell { padding: 10px 22px 11px; }
.bug-cell + .bug-cell { border-left: 1px solid var(--line); }
.bug-cell dt { color: var(--ink-3); font: 600 11px/1.2 var(--font-bc); letter-spacing: 0.16em; text-transform: uppercase; }
.bug-cell dd { margin-top: 2px; color: #fff; font: 700 22px/1.1 var(--font-bc); }
.bug-cell dd small { margin-left: 3px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
@media (max-width: 720px) {
  .bug { flex-direction: column; }
  .bug-title { padding: 11px 16px; clip-path: none; }
  .bug-cells { display: grid; grid-template-columns: 1fr 1fr; }
  .bug-cell { padding: 9px 16px 10px; border-top: 1px solid var(--line); }
  .bug-cell + .bug-cell { border-left: 0; }
  .bug-cell:nth-child(even) { border-left: 1px solid var(--line); }
}

.tabs { display: flex; gap: 6px; padding: 4px 14px 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 14px 14px 12px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--ink-3); font: 600 16px/1 var(--font-bc); letter-spacing: 0.1em; text-transform: uppercase;
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--brand); }
.tab:focus-visible { outline-offset: -4px; }
@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .tab { padding: 14px 8px 12px; font-size: 14px; text-align: center; }
  .tab:nth-child(odd) { border-right: 1px solid var(--line); }
  .tab:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.panel { padding: 22px; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: -3px; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.panel-note { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }
.side-title { color: var(--ink-3); font: 600 13px/1.2 var(--font-bc); letter-spacing: 0.16em; text-transform: uppercase; }
.side-title + * { margin-top: 12px; }
@media (max-width: 900px) {
  .panel { padding: 16px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 16px; }
.toolbar-note { color: var(--ink-3); font-size: 13px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.seg button {
  padding: 7px 12px; border: 0; border-radius: 7px; background: none; cursor: pointer; white-space: nowrap;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.11); color: #fff; }

/* ball list (ball tracking) */
.ball-list { display: grid; gap: 6px; }
.ball-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02);
  color: var(--ink-2); text-align: left; cursor: pointer; font-size: 13px; line-height: 1.35;
}
.ball-btn:hover { background: rgba(255, 255, 255, 0.05); }
.ball-btn[aria-pressed="true"] { border-color: var(--brand); background: rgba(62, 106, 225, 0.13); }
.ball-btn .n { color: #fff; font: 700 21px/1 var(--font-bc); }
.ball-btn .z b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.ball-btn .s { color: #fff; font: 700 20px/1 var(--font-bc); white-space: nowrap; }
.ball-btn .s small { margin-left: 2px; color: var(--ink-3); font: 600 12px var(--font-bc); }

/* charts */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; }
.tick-strong { fill: var(--ink-2); font: 600 13px var(--font-bc); letter-spacing: 0.1em; }
.zone-name { fill: var(--ink-2); font: 600 14px var(--font-bc); letter-spacing: 0.08em; }
.hit { fill: transparent; cursor: pointer; }
.pitch-a { fill: var(--pitch-a); }
.pitch-b { fill: var(--pitch-b); }
@media (max-width: 600px) { .sc-tag, .sc-zone, .over-tag { display: none; } }
.is-narrow .zone-name { font-size: 12px; letter-spacing: 0.06em; }
.tooltip {
  position: absolute; z-index: 5; min-width: 168px; padding: 10px 12px; pointer-events: none;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(12, 15, 21, 0.97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); color: var(--ink-2); font-size: 13px; line-height: 1.4;
  opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.tooltip.is-on { opacity: 1; transform: none; }
.tt-head { color: var(--ink-3); font: 600 12px/1.2 var(--font-bc); letter-spacing: 0.12em; text-transform: uppercase; }
.tt-v { margin-top: 3px; color: #fff; font: 700 19px/1.15 var(--font-bc); }

/* bars (a bowler's lengths) */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; }
.bar-row .lbl { color: var(--ink-2); line-height: 1.25; }
.bar-stack { display: grid; gap: 3px; }
.bar-line { display: flex; align-items: center; gap: 8px; min-height: 12px; }
.bar { flex: none; height: 9px; min-width: 2px; border-radius: 0 4px 4px 0; }
.bar-line .v { color: var(--ink); font: 700 14px/1 var(--font-bc); font-variant-numeric: tabular-nums; }

/* tiles (a player's numbers) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.tile dt { color: var(--ink-3); font-size: 13px; }
.tile dd { margin-top: 6px; color: #fff; font: 700 34px/1 var(--font-bc); }
.tile dd small { margin-left: 4px; color: var(--ink-2); font: 600 15px var(--font-bc); }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* tables (screen-reader twin of the scoring-areas map) */
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { position: sticky; top: 0; background: var(--surface-2); color: var(--ink-3); font: 600 12px var(--font-bc); letter-spacing: 0.12em; text-transform: uppercase; }
table.data td { color: var(--ink-2); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* clips */
.clip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 22px 0 12px; }
.clip-head h3 { color: var(--ink); font-size: 1rem; font-weight: 600; }
.clip-head p { color: var(--ink-3); font-size: 13px; }
.clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clip { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.clip-frame { position: relative; aspect-ratio: 16 / 10; background: #17311f; }
.clip-frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip-n { position: absolute; top: 7px; left: 7px; padding: 2px 7px; border-radius: 4px; background: rgba(7, 9, 13, 0.82); color: #fff; font: 700 15px/1.2 var(--font-bc); }
.clip-play { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.clip-play::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid #12151b; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.clip-cap { padding: 9px 11px 11px; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.clip-cap b { display: block; color: var(--ink); font: 700 16px/1.15 var(--font-bc); }
.clip-more {
  display: grid; place-content: center; gap: 4px; min-height: 120px; padding: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); text-align: center;
}
.clip-more b { color: #fff; font: 700 30px/1 var(--font-bc); }
.clip-more span { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 960px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- players: pictures, the naming hero, the workflow and the Players tab ---------- */
/* --pc is the player's colour, set per card from the script. */
.crop { position: relative; display: block; overflow: hidden; aspect-ratio: 120 / 190; border-radius: 10px; background: #10141b; }
.crop[data-role="batter"] { aspect-ratio: 9 / 10; }
.crop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A bowler's colour, the one that marks them in the pitch map and speed chart, as a bar under the picture. */
.crop[data-role="bowler"]::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: var(--pc, transparent); }
.share-chip .crop::after, .share-mock .crop::after { height: 2px; }
.pcaret { display: inline-block; flex: none; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-media { display: grid; gap: 16px; min-width: 0; margin: 0; }
.reel { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(180deg, #132a1b, #1c3a26 46%, #17311f); }
.reel > svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.reel-title {
  position: absolute; top: 15px; right: 16px; z-index: 2; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font: 600 13px/1.2 var(--font-bc); letter-spacing: 0.1em; text-transform: uppercase;
}
.reel-play {
  position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; place-items: center; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border: 2px solid rgba(255, 255, 255, 0.92); border-radius: 50%; background: rgba(8, 10, 14, 0.55); cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background-color 0.15s, opacity 0.2s;
}
.reel-play:hover { transform: scale(1.06); background: var(--brand); }
.reel-play > span { width: 0; height: 0; margin-left: 6px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.reel[data-state="playing"] .reel-play { opacity: 0; pointer-events: none; transform: scale(0.9); }
.reel-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}
.reel-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.reel-btn:hover { background: rgba(255, 255, 255, 0.12); }
.reel-btn > span { width: 0; height: 0; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.reel[data-state="playing"] .reel-btn > span { width: 4px; height: 13px; margin: 0 6px 0 -2px; border: 0; background: #fff; box-shadow: 7px 0 0 #fff; }
.reel-track { position: relative; flex: 1; height: 4px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.reel-track > i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 2px; background: #fff; }
.reel-time { color: rgba(255, 255, 255, 0.85); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-media .bc-lower { position: static; border-radius: 0; }
.hero-players { display: grid; gap: 9px; }
.hero-players-label { color: var(--ink-3); font: 600 12px/1.2 var(--font-bc); letter-spacing: 0.16em; text-transform: uppercase; }
.hero-players-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hp-thumb { display: grid; gap: 6px; width: 64px; padding: 0; border: 0; background: none; color: var(--ink-3); text-align: center; cursor: pointer; }
.hp-thumb .crop { border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow 0.15s, transform 0.15s; }
.hp-thumb:hover .crop { transform: translateY(-2px); }
.hp-thumb[aria-pressed="true"] .crop { box-shadow: 0 0 0 2px var(--pc); }
.hp-thumb[aria-pressed="true"] .hp-name { color: var(--ink); }
.hp-name { overflow: hidden; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .reel-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .reel-play > span { margin-left: 5px; border-left-width: 17px; border-top-width: 10px; border-bottom-width: 10px; }
  .reel-title { top: 12px; right: 12px; font-size: 10.5px; }
  .hero-players-row { gap: 8px; }
  .hp-thumb { width: 49px; }
  .hp-name { font-size: 10.5px; }
}

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin-top: 48px; }
/* Subgrid rows give the three pictures one shared height, so the step texts line up. */
.flow-step {
  display: grid; grid-row: span 2; grid-template-rows: auto 1fr; grid-template-rows: subgrid;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3);
}
.flow-visual {
  display: grid; place-items: center; min-height: 300px; padding: 22px 18px;
  border-bottom: 1px solid var(--line); background: radial-gradient(420px 220px at 50% 0%, rgba(62, 106, 225, 0.1), transparent 70%), var(--surface);
}
.flow-text { padding: 20px 22px 24px; }
.flow-text h3 { margin-top: 12px; color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.flow-text p { margin-top: 8px; font-size: 0.97rem; line-height: 1.55; }
.mini-roster { display: grid; grid-template-columns: repeat(3, 66px); gap: 12px 14px; }
.mini { display: grid; justify-items: center; gap: 2px; }
.mini .crop { width: 66px; margin-bottom: 5px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); }
.mini-l { color: var(--ink); font-size: 11.5px; font-weight: 600; }
.mini-c { color: var(--ink-3); font-size: 11px; }
.name-demo { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; max-width: 330px; }
.name-demo .crop { box-shadow: 0 0 0 2px var(--pc); }
.name-mock { display: grid; gap: 9px; min-width: 0; }
.name-mock-l { color: var(--ink-3); font-size: 12px; text-decoration: line-through; text-decoration-color: rgba(139, 148, 165, 0.6); }
.name-mock-box {
  display: flex; align-items: center; height: 40px; padding: 0 12px; overflow: hidden;
  border: 1px solid var(--pc); border-radius: 9px; background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 32%, transparent);
  color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap;
}
.name-mock-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.bar.bar-player { background: var(--pc); }
.share-demo { display: grid; gap: 10px; width: 100%; max-width: 280px; }
.share-demo .clip { border-top: 2px solid var(--pc); }
.share-mock {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.04);
}
.share-mock .crop { width: 30px; border-radius: 6px; box-shadow: 0 0 0 2px var(--pc); }
.share-mock-to { min-width: 0; }
.share-mock-to small { display: block; color: var(--ink-3); font-size: 11.5px; }
.share-mock-to b { display: block; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.share-mock-btn { height: 34px; padding: 0 16px; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .flow-step { grid-row: auto; grid-template-rows: auto 1fr; }
  .flow-visual { min-height: 0; }
}

.players-layout { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 24px; align-items: start; }
.roster {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start;
  max-height: 680px; overflow-y: auto; padding: 0 4px 2px 0; scrollbar-width: thin;
}
.rcard {
  display: grid; gap: 4px; min-width: 0; padding: 4px 4px 6px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.02); color: inherit; text-align: left; cursor: pointer;
}
.rcard:hover { background: rgba(255, 255, 255, 0.05); }
.rcard[aria-pressed="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); box-shadow: inset 0 0 0 1px var(--pc); }
.rname { overflow: hidden; padding: 0 2px; color: var(--ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rcount { padding: 0 2px; color: var(--ink-3); font-size: 10.5px; }
.rcard .crop { border-radius: 7px; }
.detail { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.detail-id { display: grid; gap: 16px; align-content: start; }
.detail-id .crop { box-shadow: 0 0 0 2px var(--pc); }
.name-form { display: grid; gap: 7px; }
.name-form label { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.name-row .input { flex: 1; min-width: 0; height: 40px; }
.name-row .btn { height: 40px; }
.name-status { min-height: 20px; color: var(--ok); font-size: 12.5px; line-height: 1.4; }
.detail-info { display: grid; gap: 14px; align-content: start; min-width: 0; }
.detail-name { color: var(--ink); font-size: 1.6rem; font-weight: 620; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.detail-sub { margin-top: -10px; color: var(--ink-3); }
.tiles.tiles-sm { margin-bottom: 0; }
/* A label that wraps to two lines keeps its value on the same line as the others. */
.tiles-sm .tile { display: flex; flex-direction: column; }
.tiles-sm dd { margin-top: auto; padding-top: 6px; font-size: 28px; }
@media (max-width: 640px) {
  .tiles.tiles-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles-sm .tile { padding: 10px 10px 12px; }
  .tiles-sm dt { font-size: 12px; }
  .tiles-sm dd { font-size: 21px; }
  .tiles-sm dd small { font-size: 12px; }
}
.detail .clip { border-top: 3px solid var(--pc); }
/* Share: a button on each clip card, and one panel under the clips for the clip being shared.
   The button sits at the foot of the card, so the buttons in a row line up when a caption wraps. */
.clip-cap.has-share { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; }
.clip-cap-t { display: block; }
.clip-share {
  display: flex; align-items: center; gap: 6px; width: max-content; height: 28px; margin-top: auto; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 7px; background: rgba(255, 255, 255, 0.04);
  color: var(--ink); font: 600 12.5px/1 var(--font); cursor: pointer;
}
.clip-share svg { width: 14px; height: 14px; }
.clip-share:hover { background: rgba(255, 255, 255, 0.09); }
.clip-share[aria-expanded="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); }
.clip[data-sharing] { box-shadow: 0 0 0 2px var(--pc); }
.share-sheet {
  display: grid; gap: 12px; padding: 14px 16px 16px; border: 1px solid var(--line-2); border-top: 3px solid var(--pc);
  border-radius: 12px; background: var(--surface-2);
}
.share-sheet[hidden] { display: none; }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-title { color: var(--ink); font-size: 15px; font-weight: 600; }
.share-title:focus { outline: none; }
.share-close {
  width: 32px; height: 32px; margin: -6px -8px -6px 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer;
}
.share-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.share-what { color: var(--ink-2); font-size: 13px; }
.share-what b { margin-right: 8px; color: #fff; font: 700 17px/1 var(--font-bc); }
.share-l { color: var(--ink-3); font: 600 12px/1.2 var(--font-bc); letter-spacing: 0.14em; text-transform: uppercase; }
.share-to { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.share-chip {
  display: inline-grid; grid-template-columns: 22px auto; align-items: center; gap: 9px; padding: 4px 14px 4px 4px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.03);
  color: inherit; text-align: left; cursor: pointer;
}
.share-chip:hover { background: rgba(255, 255, 255, 0.07); }
.share-chip[aria-pressed="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); box-shadow: inset 0 0 0 1px var(--pc); }
.share-chip .crop { width: 22px; border-radius: 5px; }
.share-chip b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.share-chip small { display: block; color: var(--ink-3); font-size: 11.5px; }
.share-send { justify-self: start; }
.share-status { min-height: 18px; margin-top: -4px; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 900px) {
  .players-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .roster { grid-auto-flow: column; grid-auto-columns: 74px; grid-template-columns: none; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 6px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .detail-id { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.step { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-n { color: var(--brand-soft); font: 700 15px/1 var(--font-bc); letter-spacing: 0.16em; }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; }
@media (max-width: 880px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- who ---------- */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.who article { padding: 22px 4px 4px; border-top: 2px solid var(--brand); }
.who p { margin-top: 8px; font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 1000px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (max-width: 560px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
/* Broadcast tracking in translucent red, Deep Third in translucent green (owner, 2026-10-11). */
.cmp {
  padding: 26px 24px 28px; border: 1px solid rgba(239, 68, 68, 0.45); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.05));
}
.cmp-kicker { color: var(--bad); font: 600 13px/1.2 var(--font-bc); letter-spacing: 0.16em; text-transform: uppercase; }
.cmp h3 { margin-top: 8px; }
.cmp ul { display: grid; gap: 10px; margin-top: 18px; font-size: 0.97rem; line-height: 1.5; }
.cmp li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.cmp li::before { content: ""; width: 6px; height: 6px; margin: 9px 0 0 3px; border-radius: 50%; background: var(--bad); }
.cmp-us { border-color: rgba(34, 197, 94, 0.55); background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.05)); }
.cmp-us .cmp-kicker { color: var(--ok); }
.cmp-us li { color: var(--ink); }
.cmp-us li::before { background: var(--ok); }
@media (max-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* ---------- waitlist ---------- */
.section-cta { background: radial-gradient(900px 480px at 85% 0%, rgba(62, 106, 225, 0.24), transparent 62%), var(--bg-2); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cta-copy p:not(.eyebrow) { max-width: 30em; margin-top: 18px; font-size: 1.075rem; }
.form {
  position: relative; padding: 28px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(11, 14, 20, 0.88);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.field .opt { margin-left: 6px; color: var(--ink-3); font-weight: 400; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: var(--ink); font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #6f7889; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62, 106, 225, 0.35); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b3bbc9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px;
}
select.input option { background: #11151c; color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 22px; margin-top: 12px; font-size: 14px; }
.form-status.is-error { color: var(--bad); }
.form-status a { text-decoration: underline; }
.fine { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.form-done[hidden] { display: none; }
.form-done h3 { color: var(--ink); font-size: 1.35rem; font-weight: 620; letter-spacing: -0.015em; }
.form-done p { margin-top: 10px; }
.form-done .check { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: rgba(143, 227, 176, 0.12); color: var(--ok); display: grid; place-items: center; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 520px) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form { padding: 20px; }
}

/* ---------- footer ---------- */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-row .brand { margin-right: auto; }
.footer-row a:hover { color: var(--ink); }

/* ---------- simple pages (thanks, 404) ---------- */
.simple { display: grid; min-height: calc(100vh - 64px); place-items: center; padding: 48px var(--gutter); text-align: center; }
.simple h1 { color: var(--ink); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 620; letter-spacing: -0.03em; }
.simple p { max-width: 30em; margin: 14px auto 28px; }

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

/* A batter's scoring areas: runs by length and line as a heatmap, with its key. The 2px stroke in
   the pitch colour keeps a gap between cells. */
.heat-wrap { display: grid; gap: 10px; }
.heat-wrap .panel-note { margin-top: 0; }
.heat-cell { stroke: var(--pitch-a); stroke-width: 2px; stroke-linejoin: round; }
.heat-n { font: 700 17px var(--font-bc); letter-spacing: 0.02em; pointer-events: none; }
.heat-n.is-none { fill: var(--ink-3); font-weight: 600; }
.is-narrow .heat-n { font-size: 15px; }
.heat-key { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12.5px; }
.heat-key span:first-child { margin-right: 6px; }
.heat-key span:last-child { margin-left: 6px; }
.heat-key i { width: 22px; height: 10px; border-radius: 2px; }
