:root {
  color-scheme: light dark;
  --bg: #F6F7FB;
  --bg-card: #FFFFFF;
  --bg-card-2: #F0F1F7;
  --border: #E4E5EE;
  --text: #1A1A2E;
  --text-secondary: #6B6E8A;
  --text-muted: #A0A3B8;
  --accent: #3185FC;
  --accent-2: #7C3AED;
  --accent-text: #FFFFFF;
  --grad: linear-gradient(135deg, #3185FC 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, rgba(49,133,252,0.16), rgba(124,58,237,0.16));
  --nav-bg: rgba(246, 247, 251, 0.85);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C14;
    --bg-card: #16172A;
    --bg-card-2: #1E1F36;
    --border: #2A2B45;
    --text: #F0F0F8;
    --text-secondary: #8B8DA8;
    --text-muted: #5A5C78;
    --accent: #5B9CFF;
    --accent-2: #A78BFA;
    --accent-text: #0C0C14;
    --grad: linear-gradient(135deg, #5B9CFF 0%, #A78BFA 100%);
    --grad-soft: linear-gradient(135deg, rgba(91,156,255,0.18), rgba(167,139,250,0.18));
    --nav-bg: rgba(12, 12, 20, 0.85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Outfit', -apple-system, system-ui, sans-serif; font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Hero banner (video background) */
.hero-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Instant paint before the video decodes, and the fallback if it can't. */
  background: #0C0C14 url(/hero-poster.jpg) center top / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Light enough to let the video read through, dark/accent enough to keep
     white text legible — mirrors the app login's 25–45% treatment. */
  background:
    linear-gradient(160deg, rgba(12,12,20,0.62) 0%, rgba(49,133,252,0.34) 55%, rgba(124,58,237,0.68) 100%);
}
/* Fade the bottom into the page background so the banner blends in. */
.hero-overlay::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-banner .hero { position: relative; z-index: 2; }

/* Hero */
.hero {
  padding: 64px 20px 64px;
  text-align: center;
}
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-brand img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6);
}
.hero-brand span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: 0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  line-height: 1;
}
/* On the video banner, text and controls go light for contrast. */
.hero-banner .eyebrow {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.hero-banner .hero h1 { color: #FFFFFF; text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero-banner .hero .sub { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.hero-banner .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.hero-banner .browser-link {
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--grad-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
}
.hero .sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #FFFFFF;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }

.browser-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

/* Store badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.badge svg { width: 20px; height: 20px; flex: none; }

/* Hero mock */
.hero-shot-wrap { position: relative; z-index: 3; }
.hero-shot {
  margin: -48px auto 0;
  max-width: 720px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-2));
  padding: 28px;
  text-align: left;
  box-shadow: 0 24px 60px -24px rgba(12, 12, 20, 0.55);
}
.hero-shot .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hero-shot .row:last-child { border-bottom: none; }
.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #FFFFFF;
}

/* Benefits grid */
.section { padding: 56px 20px; }
.section h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  text-align: center;
  letter-spacing: -0.01em;
}
.section .section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 15px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* MatchTrak note */
.matchtrak {
  margin-top: 40px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.matchtrak .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.matchtrak .icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.matchtrak p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.matchtrak strong { color: var(--text); }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 52px 20px 36px;
  border-top: 1px solid var(--border);
}
.final-cta h2 { font-size: clamp(24px, 4vw, 34px); }
.final-cta .sub {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 12px auto 0;
  font-size: 15px;
}

/* Footer — note the footer also carries .wrap (max-width + 20px gutters),
   and .wrap's padding out-specifies a bare `footer` rule, so scope this to
   footer.wrap to keep the vertical padding AND the horizontal gutters. */
footer.wrap {
  border-top: 1px solid var(--border);
  padding: 30px 20px 26px;
}
footer .brand { font-size: 18px; }
footer .brand img { width: 26px; height: 26px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Inner pages ─────────────────────────────────────────────────────────── */
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
/* Brand left, links in the middle, "Open SOXY" right. On phones the links drop
   to their own row and scroll sideways rather than being hidden. */
.nav-inner .nav-links { order: 2; margin-left: auto; }
.nav-inner > .nav-link { order: 3; margin-left: 18px; }
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; row-gap: 6px; }
  .nav-inner > .nav-link { order: 2; margin-left: auto; }
  .nav-inner .nav-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 18px; padding: 2px 0 6px; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-inner .nav-links a { font-size: 13.5px; color: var(--text-secondary); }
}
.page-hero { padding-top: 56px; padding-bottom: 24px; } /* keep .wrap's side gutters */
.page-hero h1 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin: 10px 0 14px; }
.page-hero .sub { font-size: 18px; color: var(--text-secondary); max-width: 720px; }
.crumbs { font-size: 13px; color: var(--text-secondary); }
.crumbs a { color: inherit; }
.prose { max-width: 760px; }
.prose h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 26px; margin: 40px 0 10px; }
.prose h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 19px; margin: 26px 0 6px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.cmp { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cmp th { font-family: 'Outfit', sans-serif; }
.cmp .src { display: block; font-size: 12px; color: var(--text-secondary); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); color: var(--text); text-decoration: none; font-weight: 700; }
.site-footer { margin-top: 64px; padding: 36px 0 48px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer-grid .footer-h { font-family: 'Outfit', sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 8px; }
.footer-grid a { display: block; color: var(--text); text-decoration: none; font-size: 14px; padding: 3px 0; }

.site-footer .footer-note, .site-footer .footer-copy { color: var(--text-muted); font-size: 13px; margin: 18px 0 0; }
.lineup-preview { overflow-x: auto; }

/* Layout helpers for the longer pages */
.prose { margin-left: auto; margin-right: auto; }
.section .prose h2 { text-align: left; }
.grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 860px) { .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.grid-3, .grid.grid-2 { grid-template-columns: 1fr; } }
a.card:hover { border-color: var(--accent); }
.faq .prose h2 { text-align: left; }
.final-cta .badges { justify-content: center; margin-top: 18px; }
.matchtrak a, .prose a { color: var(--accent); }

.prose ol { padding-left: 22px; }
.prose .fine { font-size: 13.5px; color: var(--text-secondary); margin-top: 28px; }
.page-hero .sub { color: var(--text-secondary); }
.hero-shot-wrap + .section { padding-top: 12px; }

.prose p { margin: 0 0 14px; }

/* ── Lineup sheet maker ──────────────────────────────────────────────────── */
.lt-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lt-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.lt input[type=text], .lt select { font: 500 15px 'DM Sans', sans-serif; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); width: 100%; min-width: 0; }
.lt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 10px; }
.lt-check { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.lt-tabs { display: flex; gap: 6px; }
.lt-tabs button { font: 700 13px 'Outfit', sans-serif; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.lt-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 16px; }
.lt-row { display: grid; grid-template-columns: 118px 1fr 58px; gap: 8px; align-items: center; }
.lt-pos { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.lt-actions { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.lt-actions .btn { cursor: pointer; }
.lineup-preview { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 10px; overflow-x: auto; }
.lineup-preview iframe { display: block; width: 100%; min-width: 860px; aspect-ratio: 13.5 / 8.15; border: 0; background: #fff; }
.lt-hint, .lt-noscript { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }

/* Buttons inside text blocks keep button colours, not link colours. */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: #FFFFFF; }
.prose a.btn-secondary { color: var(--text); }

/* The mock panel is pulled up 48px to overlap the home page's hero photo. On
   inner pages there is no photo, so that pull made it cover the intro text:
   there it sits below the intro with normal spacing instead. */
.page-hero + .hero-shot-wrap .hero-shot { margin-top: 12px; }
.page-hero + .hero-shot-wrap { margin-bottom: 8px; }
