/* ==========================================================================
   SpreeSports — Marketing site shared stylesheet
   Used by every page under /landing/. Keep design tokens here so pages stay
   visually consistent without copy-pasting CSS.
   ========================================================================== */

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #ff6f00;
  --accent-dark: #c43e00;
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-row: #161e2c;
  --text: #e8eaed;
  --text-dim: #9aa0a6;
  --border: #1f2937;
  --good: #4caf50;
  --bad:  #ef5350;
  --warn: #ffa726;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ---- Nav ---- */

nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; height: 64px;
}
.nav-logo { font-size: 20px; font-weight: 900; letter-spacing: 0.05em; color: var(--accent); text-decoration: none; }
.nav-logo span { color: var(--text); }
.nav-links { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 8px 20px; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.nav-burger span::before { content: ''; transform: translate(-50%, -10px); }
.nav-burger span::after  { content: ''; transform: translate(-50%, 10px);  }
.nav-burger[aria-expanded="true"] span               { background: transparent; }
.nav-burger[aria-expanded="true"] span::before       { transform: translate(-50%, 0) rotate(45deg);  background: var(--text); }
.nav-burger[aria-expanded="true"] span::after        { transform: translate(-50%, 0) rotate(-45deg); background: var(--text); }

.nav-backdrop {
  position: fixed; inset: 64px 0 0 0; z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---- Page hero (every page above the fold) ---- */

.page-hero {
  padding: 130px 40px 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.1) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(21, 101, 192, 0.15), transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 111, 0, 0.1);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 48px; font-weight: 900; line-height: 1.1;
  max-width: 800px; margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 18px; color: var(--text-dim);
  max-width: 640px; margin: 0 auto 32px;
}

/* ---- Buttons ---- */

.btn-primary {
  background: var(--primary); color: #fff; padding: 14px 32px;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text); padding: 14px 32px;
  border: 2px solid var(--border); border-radius: 8px; font-size: 16px;
  font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--text); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Single-line credibility statement under the hero CTAs. Tight, italic,
   slightly dimmed so it doesn't compete with the buttons but registers
   immediately as social proof for skim-readers. */
.hero-social-proof {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}
.hero-social-proof strong {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

/* ---- FAQ accordion ---- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: var(--primary);
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.15s;
}
.faq-item[open] summary::after {
  content: '\2212'; /* en-minus */
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}
.faq-item p a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(21, 101, 192, 0.4);
}
.faq-item p a:hover { text-decoration-color: var(--primary); }

/* ---- Hero video walk-through ---- */
.hero-video {
  margin: 48px auto 0;
  max-width: 1000px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(21, 101, 192, 0.15);
  background: #000;
}
.hero-video figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-video figcaption strong {
  color: var(--text);
}

/* ---- Section wrapper ---- */

section.content {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
section.content.wide { max-width: 1200px; }
section.bg-card { background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.5)); }

.section-title {
  text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text-dim); font-size: 17px; margin-bottom: 48px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ---- Cards / feature grids ---- */

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.cards-grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-grid.two   { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21, 101, 192, 0.15);
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.feature-card ul { margin-top: 12px; padding-left: 18px; color: var(--text-dim); font-size: 13px; }
.feature-card li { padding: 2px 0; }

/* ---- Tables (comparison / pricing) ---- */

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table.compare {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  font-size: 14px;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  background: var(--bg-row); color: var(--text-dim);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}
.compare th.col-spree { color: var(--accent); }
.compare tbody td.row-label { color: var(--text-dim); font-weight: 500; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no  { color: var(--bad);  font-weight: 700; opacity: 0.8; }
.compare .price { font-family: 'SF Mono', Menlo, monospace; font-weight: 700; }
.compare .price.spree   { color: var(--accent); }
.compare .price.expensive { color: var(--text); }
.compare tfoot td { background: var(--bg-row); font-weight: 700; color: var(--text); }
.compare tfoot .price.spree { font-size: 16px; }

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

.pricing-grid {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px;
  text-align: center; width: 320px;
  transition: border-color 0.3s, transform 0.2s;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured { border-color: var(--primary); position: relative; }
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 4px 16px;
  border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.price-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.price-card .tagline { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.price-amount { font-size: 44px; font-weight: 900; margin: 12px 0 4px; }
.price-amount span { font-size: 16px; color: var(--text-dim); font-weight: 400; }
.price-features { list-style: none; text-align: left; margin: 24px 0; padding: 0; }
.price-features li {
  padding: 8px 0; color: var(--text-dim); font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--good); font-weight: 700; flex-shrink: 0; }
.price-features li:last-child { border-bottom: none; }

/* ---- Inline callout ---- */

.callout {
  background: rgba(21, 101, 192, 0.08);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text);
}
.callout strong { color: var(--accent); }
.callout.warn   { background: rgba(255, 167, 38, 0.08); border-left-color: var(--warn); }
.callout.warn strong { color: var(--warn); }

/* ---- Long-form prose (docs) ---- */

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 48px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 19px; font-weight: 700; margin: 32px 0 8px; color: var(--accent); }
.prose p { color: var(--text); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 8px 0 14px 24px; }
.prose li { padding: 4px 0; color: var(--text-dim); }
.prose li strong { color: var(--text); }
.prose code {
  background: var(--bg-row); padding: 2px 6px; border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace; font-size: 13px; color: var(--accent);
}
.prose pre {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 16px; border-radius: 8px; overflow-x: auto;
  font-family: 'SF Mono', Menlo, monospace; font-size: 13px;
  color: var(--text); margin: 14px 0;
  line-height: 1.5;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .toc {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 20px 24px; border-radius: 8px;
  margin: 24px 0;
  font-size: 14px;
}
.prose .toc strong { display: block; color: var(--text); margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.prose .toc a { display: block; padding: 4px 0; color: var(--text-dim); }
.prose .toc a:hover { color: var(--text); }

/* ---- CTA section ---- */

.cta {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--bg));
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--text-dim); margin-bottom: 28px; font-size: 17px; }

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

footer.site-footer {
  padding: 40px; text-align: center; color: var(--text-dim);
  font-size: 13px; border-top: 1px solid var(--border);
}
footer.site-footer .links { margin-bottom: 12px; }
footer.site-footer .links a { color: var(--text-dim); margin: 0 12px; }
footer.site-footer .links a:hover { color: var(--text); }

/* ---- Mobile breakpoint (≤768px) ---- */

@media (max-width: 768px) {
  nav.site-nav { padding: 0 16px; }
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; top: 64px; right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - 64px);
    margin-left: 0;
    padding: 24px 24px 32px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 95;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; padding: 14px 12px; border-radius: 8px; }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.04); }
  .nav-cta { text-align: center; margin-top: 12px; padding: 12px 20px; }

  .page-hero { padding: 110px 20px 50px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero p { font-size: 16px; }

  section.content { padding: 56px 20px; }
  .section-title { font-size: 24px; }
  .section-sub { font-size: 15px; margin-bottom: 32px; }

  .cards-grid, .cards-grid.three, .cards-grid.two { grid-template-columns: 1fr; }
  .price-card { width: 100%; }

  .compare th, .compare td { padding: 10px 12px; }

  .cta { padding: 56px 20px; }
  .cta h2 { font-size: 24px; }

  .prose h2 { font-size: 22px; }
}
