/*
 * The BowlMe site: the landing page and the privacy policy. Direction A from the app's design system
 * (docs/design/SYSTEM.md), "sports broadcast": a night ground lit from the top, glass cards, amber for
 * the bowler and cyan for the ghost, and a daylight version for a light-mode browser. The colours are
 * the app's own tokens (ui/theme/Ground.kt and Palette.kt). System fonts only; nothing loaded from
 * anywhere else, which the CSP in firebase.json and vercel.json enforces and the hosting test checks.
 */

:root {
  --page-lit: #1b2c4d;
  --page: #0b1223;
  --page-edge: #05070d;
  --glass-top: #222b40;
  --glass-bottom: #131a2c;
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-sheen: rgba(255, 255, 255, 0.14);
  --ink: #eef3ff;
  --ink-muted: #a3b5d6;
  --ink-faint: #7584a0;
  --hairline: #2e3850;
  --amber: #ffb020;        /* ink: the bowler's colour, written */
  --amber-fill: #ffb020;   /* fill: the bowler's colour, lit */
  --amber-fill-2: #ff9500;
  --on-amber: #241800;
  --ghost: #35d0d8;
  --ghost-fill: #35d0d8;
  --shadow: rgba(0, 0, 0, 0.55);
  --phone: #05070d;
  --focus: #35d0d8;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --page-lit: #fafbfd;
    --page: #edf1f7;
    --page-edge: #e1e7f0;
    --glass-top: #ffffff;
    --glass-bottom: #f5f7fb;
    --glass-edge: rgba(14, 26, 51, 0.1);
    --glass-sheen: #ffffff;
    --ink: #0e1a33;
    --ink-muted: #4a5a78;
    --ink-faint: #76839a;
    --hairline: #d5dce7;
    --amber: #8a5600;
    --ghost: #0e5f65;
    --shadow: rgba(26, 44, 85, 0.18);
    --phone: #0e1a33;
    --focus: #0e5f65;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--page);
  background: radial-gradient(140% 70rem at 50% -10rem, var(--page-lit) 0%, var(--page) 60%, var(--page-edge) 100%) no-repeat, var(--page-edge);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: var(--amber-fill); color: var(--on-amber); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.muted { color: var(--ink-muted); }
.you { color: var(--amber); }
.ghost { color: var(--ghost); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-fill); box-shadow: 0 0 12px var(--amber-fill); }
.eyebrow.ghosted .dot { background: var(--ghost-fill); box-shadow: 0 0 12px var(--ghost-fill); }

/* ---- glass ---- */

.glass {
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 1px 0 var(--glass-sheen), 0 18px 48px -18px var(--shadow);
}

/* ---- top bar ---- */

.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--glass-edge);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topbar nav a {
  padding: 8px 12px; border-radius: 10px;
  color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
}
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); background: var(--glass-edge); }
.topbar nav a.nav-cta { color: var(--on-amber); background: var(--amber-fill); margin-left: 6px; }
.topbar nav a.nav-cta:hover { background: var(--amber-fill-2); color: var(--on-amber); }

@media (max-width: 720px) {
  .topbar nav a.nav-hide { display: none; }
}

/* ---- buttons ---- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 16px;
  font-weight: 750; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  transition: transform 90ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.button:active { transform: scale(0.97); }
.button.primary {
  color: var(--on-amber);
  background: linear-gradient(180deg, var(--amber-fill), var(--amber-fill-2));
  box-shadow: 0 10px 28px -8px rgba(255, 160, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.button.primary:hover { box-shadow: 0 14px 34px -8px rgba(255, 160, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.button.secondary {
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
}
.button.secondary:hover { border-color: var(--ink-faint); }

.note { margin-top: 16px; font-size: 0.92rem; color: var(--ink-muted); }

/* ---- hero ---- */

.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .ghost { display: block; }
.lede { margin: 20px 0 28px; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-muted); max-width: 34em; }
.hero-visual { position: relative; display: flex; justify-content: center; }

@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
}

/* ---- phone frame ---- */

.phone {
  position: relative;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #3a4560, #10151f 40%, #1c2334);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 90px -10px rgba(255, 176, 32, 0.22);
}

.phone img { width: 100%; height: auto; border-radius: 34px; background: var(--phone); }
.phone.small { width: min(100%, 264px); border-radius: 40px; padding: 9px; }
.phone.small img { border-radius: 31px; }
.phone.ghostlit { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 90px -10px rgba(53, 208, 216, 0.25); }

@media (prefers-color-scheme: light) {
  .phone { box-shadow: 0 0 0 1px rgba(14, 26, 51, 0.2), 0 40px 70px -24px rgba(26, 44, 85, 0.45), 0 0 90px -20px rgba(255, 176, 32, 0.35); }
  .phone.ghostlit { box-shadow: 0 0 0 1px rgba(14, 26, 51, 0.2), 0 40px 70px -24px rgba(26, 44, 85, 0.45), 0 0 90px -20px rgba(53, 208, 216, 0.4); }
}

.glow {
  position: absolute; inset: 10% -10% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(53, 208, 216, 0.18), transparent);
  filter: blur(10px); pointer-events: none;
}

/* ---- the promise strip ---- */

.promises { padding: 8px 0 24px; }
.promise-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 6px;
}
.promise-row li { list-style: none; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.promise-row li + li { border-left: 1px solid var(--hairline); }
.promise-row strong { font-size: 1.02rem; }
.promise-row span { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.45; }
ul.promise-row { margin: 0; }

@media (max-width: 860px) {
  .promise-row { grid-template-columns: 1fr 1fr; }
  .promise-row li:nth-child(3) { border-left: 0; }
  .promise-row li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 480px) {
  .promise-row { grid-template-columns: 1fr; }
  .promise-row li + li { border-left: 0; border-top: 1px solid var(--hairline); }
}

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

section { scroll-margin-top: 72px; }
.section { padding: 72px 0; }
.section-head { max-width: 42em; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--ink-muted); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- feature rows ---- */

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature .shot { display: flex; justify-content: center; }
.feature.flip .shot { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.feature-copy > p { margin-top: 14px; color: var(--ink-muted); font-size: 1.08rem; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--amber-fill); box-sizing: border-box;
}
.ticks.ghosted li::before { border-color: var(--ghost-fill); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature.flip .shot { order: 0; }
}

/* ---- more tiles ---- */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.tile { padding: 22px; }
.tile h3 { font-size: 1.08rem; }
.tile p { margin-top: 8px; color: var(--ink-muted); font-size: 0.97rem; line-height: 1.5; }
.tile .mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 10px; font-weight: 800; font-size: 1.2rem; line-height: 1;
  color: var(--on-amber); background: var(--amber-fill);
}
.tile .mark.cyan { background: var(--ghost-fill); color: #002a2d; }

@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* ---- ghost explainer ---- */

.ghost-band {
  position: relative;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ghost-fill) 7%, transparent) 30%, color-mix(in srgb, var(--ghost-fill) 7%, transparent) 70%, transparent);
}
.ghost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-weight: 800; font-size: 1.15rem;
  color: var(--ghost); border: 2px solid var(--ghost-fill);
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: 4px; color: var(--ink-muted); font-size: 0.98rem; }

/* A frame strip that shows the reveal rule in miniature: your frames lit, theirs sealed. */
.strip { padding: 18px; margin-top: 18px; }
.strip-row { display: grid; grid-template-columns: 64px repeat(10, 1fr); gap: 4px; align-items: stretch; }
.strip-row + .strip-row { margin-top: 6px; }
.strip-row .who { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; align-self: center; }
.strip-row .cell {
  min-height: 42px; border-radius: 6px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.strip-row.you .cell.on { box-shadow: inset 0 -3px 0 var(--amber-fill); }
.strip-row.them .cell.on { box-shadow: inset 0 -3px 0 var(--ghost-fill); }
.strip-row .cell.sealed {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 7%, transparent) 0 5px, transparent 5px 10px);
  color: var(--ink-faint);
}
.strip-row .cell.now { outline: 2px solid var(--amber-fill); outline-offset: -2px; }
.strip-caption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-muted); }

@media (max-width: 860px) {
  .ghost-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .strip { padding: 12px; }
  .strip-row { grid-template-columns: 40px repeat(10, 1fr); gap: 2px; }
  .strip-row .who { font-size: 0.62rem; letter-spacing: 0.02em; }
  .strip-row .cell { min-height: 34px; font-size: 0.78rem; border-radius: 4px; }
}

/* ---- privacy promise ---- */

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.privacy-grid .glass { padding: 24px; }
.privacy-grid h3 { font-size: 1.1rem; }
.privacy-grid p { margin-top: 8px; color: var(--ink-muted); font-size: 0.98rem; }
.privacy-more { margin-top: 24px; }

@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */

.faq { max-width: 820px; margin: 0 auto; padding: 6px 0; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-weight: 700; color: var(--ink-muted); border: 1px solid var(--glass-edge);
}
.faq details[open] summary::after { content: "\2212"; color: var(--amber); }
.faq details p { padding: 0 24px 20px; color: var(--ink-muted); }
.faq details p + p { padding-top: 0; margin-top: -8px; }

/* ---- final call ---- */

.cta-band { padding: 48px 32px; text-align: center; }
.cta-band h2 { max-width: 18em; margin: 0 auto; }
.cta-band p { margin: 14px auto 26px; color: var(--ink-muted); max-width: 34em; font-size: 1.08rem; }
.cta-band .actions { justify-content: center; }
.cta-band.glass { border-radius: 28px; box-shadow: inset 0 1px 0 var(--glass-sheen), 0 30px 80px -30px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--amber-fill) 25%, transparent); }

/* ---- footer ----
   The BowlBrain suite footer, the same on every BowlBrain site: /bowlbrain-footer.css, markup in
   firebase/hosting/bowlbrain-footer.html. It brings its own dark ground in either look. */

.bbf { margin-top: 56px; }

/* ---- placeholders the owner fills in ---- */

.placeholder {
  padding: 0 4px; border-radius: 4px;
  background: color-mix(in srgb, var(--amber-fill) 22%, transparent);
  outline: 1px dashed var(--amber);
  color: var(--ink);
  font-weight: 600;
}

/* ---- the privacy policy page ---- */

.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 40px; align-items: start; }
.toc { position: sticky; top: 80px; padding: 18px 8px 18px 18px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.9rem; }
.toc-title { font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--ink-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); background: var(--glass-edge); }

.prose { max-width: 46em; min-width: 0; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.prose h1 + p { margin-top: 10px; color: var(--ink-muted); }
.prose h2 { font-size: 1.6rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.prose h3 { font-size: 1.2rem; margin-top: 32px; scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-top: 8px; }
.prose li > ul { margin-top: 6px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose code {
  font: 0.88em/1 ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.prose a { color: var(--ghost); }
.prose { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .toc { position: static; max-height: none; }
  .toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .toc ol { grid-template-columns: 1fr; }
}

picture { display: block; }
.more-title { margin: 48px 0 8px; }

@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .phone.small { width: min(100%, 236px); border-radius: 36px; padding: 8px; }
  .phone.small img { border-radius: 28px; }
  .hero .phone { width: min(100%, 272px); }
  .ghost-grid .phone { width: min(100%, 236px); }
}

/* ---- the real captures: step sequences and the clips ---- */

.live { position: relative; }

.sequence {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start;
}
.sequence li { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.sequence figure { margin: 0; }
.sequence .phone.small { width: min(100%, 250px); }
.step { max-width: 17em; text-align: center; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.5; }
.step strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.step .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px;
  border-radius: 50%; font-weight: 800; font-size: 0.9rem;
  color: var(--on-amber); background: var(--amber-fill);
}
.step .n.ghost-n { color: #002a2d; background: var(--ghost-fill); }
.capture-note { margin-top: 28px; font-size: 0.86rem; color: var(--ink-muted); text-align: center; }

.shot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.shot-grid > .sequence { grid-column: 1 / -1; margin-top: 8px; }
.shot-visual { display: flex; flex-direction: column; align-items: center; }
.shot-visual .capture-note { margin-top: 18px; }

figure.phone { margin: 0; }
/* A clip: a looping video, and its poster as a still (.phone.clip in a phone, .vs-screen.clip on a lane). */
.clip { position: relative; }
.clip video, .clip img { display: block; width: 100%; height: auto; background: #05070d; }
.phone.clip video, .phone.clip img { border-radius: 34px; }
.clip .still { display: none; }
@media (prefers-reduced-motion: reduce) {
  /* Without the script, the still; with it, the script decides (and offers Play). */
  .clip:not(.scripted) video { display: none; }
  .clip:not(.scripted) .still { display: block; }
}
/* site.js adds this when it has paused a clip for reduced motion, and the button beside each clip. */
.clip.stilled video { display: none; }
.clip.stilled .still { display: block; }
/* Under the phone, not on its screen, where it would sit on the app's own buttons. */
.phone.clip { margin-bottom: 60px; }
.clip-toggle {
  position: absolute; left: 50%; bottom: -58px; transform: translateX(-50%); z-index: 1;
  min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 22px;
  border: 1px solid var(--glass-edge); background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom)); color: var(--ink);
  font: 600 0.85rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer;
}
.clip-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 960px) {
  .shot-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  /* Three phones side by side do not fit a phone: they become a row to swipe, inside the page. */
  .sequence {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: thin;
  }
  .sequence li { flex: 0 0 72%; scroll-snap-align: center; }
  .sequence .phone.small { width: min(100%, 230px); }
}
.more-link { margin-top: 20px; }
.more-link a { color: var(--ghost); font-weight: 700; }

/* Their frame's card at full size: the clip is the point, and on a phone frame it is too small. */
.closeup { display: grid; gap: 10px; max-width: 460px; margin: 4px 0 8px; }
.closeup img { width: 100%; height: auto; border-radius: 22px; }

/* ---- the store buttons: both Coming soon ----
   Drawn here rather than the stores' badge images, which would come from another host. Buttons that
   do nothing (aria-disabled, no script) until the app is in each store; see index.html. */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 7px 12px 7px 11px; border-radius: 12px;
  border: 1px solid #5b6478; background: #000; color: #fff;
  font: inherit; text-align: left; cursor: default;
}
.store-badge .store-logo { flex: none; width: 26px; height: 26px; }
.store-badge[aria-disabled="true"] .store-logo, .store-badge[aria-disabled="true"] .store-words { opacity: 0.72; }
.store-words { display: flex; flex-direction: column; line-height: 1.1; }
.store-small { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.store-name { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.store-soon {
  margin-left: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: #002a2d; background: var(--ghost-fill);
}
@media (prefers-color-scheme: light) {
  .store-badge { border-color: #0e1a33; }
}
@media (max-width: 860px) {
  .hero-copy .stores { justify-content: center; }
}
.cta-band .stores { justify-content: center; margin-top: 22px; }
.cta-band .eyebrow { margin-bottom: 10px; }

/* ---- head to head ---- */

.h2h { padding-top: 40px; }
.h2h .section-head p { max-width: 38em; margin-left: auto; margin-right: auto; }

/* The board: one score bug over two lanes, yours and theirs. The lanes are real footage, the names
   and scores illustrative; see index.html. */
.versus { max-width: 860px; margin: 0 auto; padding: 18px; }
.vs-bug {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 12px;
  padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.vs-side { display: flex; align-items: baseline; gap: 10px; font-weight: 800; }
.vs-side b { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.vs-side.you b { color: var(--amber); }
.vs-side.them { justify-content: flex-end; }
.vs-side.them b { color: var(--ghost); }
.vs-score { display: inline-grid; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-variant-numeric: tabular-nums; line-height: 1; }
.vs-lead { display: inline-grid; text-align: center; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
/* Two words in one place, crossfading as their shot lands. */
.vs-lead > span, .vs-score > span { grid-area: 1 / 1; }
.swap-b { opacity: 0; }
.vs-meter {
  grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--amber-fill) 0 50%, var(--ghost-fill) 50% 100%);
}
.vs-needle {
  position: absolute; top: -5px; left: 38%; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--glass-top);
}

/* Each lane is three rows (who, the lane, what happened), lined up across the two by subgrid. */
.vs-lanes { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 0 14px; margin-top: 14px; }
.vs-lane { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-items: end; }
.vs-tag {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.vs-tag .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-fill); box-shadow: 0 0 10px var(--amber-fill); }
.vs-lane.them .vs-tag .dot { background: var(--ghost-fill); box-shadow: 0 0 10px var(--ghost-fill); }
/* A lane as the camera sees it: a real clip of the pin deck, framed dark in either look. */
.vs-screen {
  position: relative; overflow: hidden; margin: 0;
  border-radius: 16px; border: 2px solid color-mix(in srgb, var(--amber-fill) 60%, transparent);
  background: radial-gradient(120% 90% at 50% 0%, #1b2c4d, #05070d);
}
.vs-lane.them .vs-screen { border-color: color-mix(in srgb, var(--ghost-fill) 70%, transparent); box-shadow: 0 0 40px -12px var(--ghost-fill); }
.vs-screen video, .vs-screen img { aspect-ratio: 480 / 576; }
/* On the lane, in a corner the deck does not use, rather than under it like a phone's. */
.vs-screen .clip-toggle { left: auto; right: 8px; bottom: 8px; transform: none; min-height: 36px; padding: 0 12px; font-size: 0.78rem; }
.vs-mark {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  padding: 2px 9px; border-radius: 8px; font-weight: 800;
  font-size: 1.3rem; line-height: 1.3; color: var(--on-amber); background: var(--amber-fill);
}
.vs-mark.them-mark { color: #002a2d; background: var(--ghost-fill); }
.vs-live {
  display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; line-height: 1.7; letter-spacing: 0.06em; text-transform: uppercase;
  color: #002a2d; background: var(--ghost-fill);
}
.vs-caption { align-self: start; margin-top: 8px; font-size: 0.92rem; color: var(--ink-muted); }

/* On a loop beside the clips: their shot lands and the lead swings their way. */
.versus .swap-a { animation: vs-out 6s infinite; }
.versus .swap-b { animation: vs-in 6s infinite; }
.vs-needle { animation: vs-swing 6s ease-in-out infinite; }

@keyframes vs-out { 0%, 50% { opacity: 1; } 56%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes vs-in { 0%, 50% { opacity: 0; } 56%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes vs-swing { 0%, 50% { left: 38%; } 60%, 92% { left: 62%; } 100% { left: 38%; } }

/* Held still (the reduced-motion rule at the top stops every animation): the frame as it ends. */
@media (prefers-reduced-motion: reduce) {
  .versus .swap-a { opacity: 0; }
  .versus .swap-b { opacity: 1; }
  .vs-needle { left: 62%; }
}

.beats {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.beats li { padding: 22px; }
.beats h3 { font-size: 1.15rem; margin-top: 12px; }
.beats p { margin-top: 6px; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.5; }
.beat-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-weight: 800; color: var(--on-amber); background: var(--amber-fill);
}
.beat-n.ghost-n { color: #002a2d; background: var(--ghost-fill); }

.h2h-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.h2h-points .tile a { color: var(--ghost); font-weight: 700; }

@media (max-width: 860px) {
  .beats { grid-template-columns: 1fr; gap: 10px; }
  .beats li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 18px; }
  .beats .beat-n { grid-row: span 2; }
  .beats h3 { margin-top: 4px; }
  .h2h-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .versus { padding: 10px; }
  .vs-bug { padding: 10px; gap: 6px 8px; }
  .vs-side { gap: 6px; }
  .vs-side b { font-size: 0.68rem; letter-spacing: 0.04em; }
  .vs-lead { font-size: 0.74rem; }
  .vs-lanes { gap: 8px; }
  .vs-tag { font-size: 0.64rem; letter-spacing: 0.02em; gap: 5px; }
  .vs-caption { font-size: 0.8rem; }
  /* Small lanes: the mark and the button keep to the corners, off the pins. */
  .vs-mark { left: 6px; bottom: 6px; padding: 0 7px; font-size: 1rem; border-radius: 6px; }
  .vs-screen .clip-toggle { right: 6px; bottom: 6px; min-height: 32px; padding: 0 9px; font-size: 0.7rem; }
  .h2h-points { grid-template-columns: 1fr; gap: 10px; }
  /* Icon beside the words, so six points stay short on a phone. */
  .h2h-points .tile { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px; }
  .h2h-points .tile .mark { grid-row: span 2; margin-bottom: 0; }
  .h2h-points .tile p { margin-top: 4px; }
  .stores { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 300px; }
  .store-soon { margin-left: auto; padding: 3px 7px; font-size: 0.64rem; letter-spacing: 0.04em; }
  .cta-band { padding: 36px 16px; }
}
