:root {
  --bg: #06111b;
  --panel: #0f1b2a;
  --panel-alt: #111f30;
  --text: #e8eef5;
  --muted: #9eb0c2;
  --line: #2d4359;
  --accent: #4fd384;
  --accent-strong: #31ba6a;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, #10304b 0%, var(--bg) 40%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.bg-orb-a {
  width: 420px;
  height: 420px;
  background: #2d6cff;
  top: -120px;
  left: -120px;
}

.bg-orb-b {
  width: 360px;
  height: 360px;
  background: #34d399;
  bottom: -120px;
  right: -80px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: calc(100% - 2rem);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0 0.7rem;
}

.header-spacer {
  display: none;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f085c 0%, #0d7a59 100%);
  box-shadow: 0 8px 22px rgba(5, 22, 38, 0.34);
  border: 1px solid rgba(143, 246, 200, 0.38);
  backdrop-filter: blur(2px);
}

.brand-wordmark {
  display: block;
  height: 50px;
  width: auto;
  max-width: min(340px, 72vw);
  flex: 0 1 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.3rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  margin-top: 2.2rem;
  padding: 2.8rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(17, 31, 48, 0.95), rgba(12, 25, 39, 0.9));
  box-shadow: var(--shadow);
}

.eyebrow {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  max-width: 16ch;
}

.hero-copy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  color: #05200f;
}

.btn-outline,
.btn-ghost {
  color: var(--text);
  border-color: #3b5166;
  background: transparent;
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: #6d849a;
}

.hero-kpis {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-kpis article {
  background: rgba(6, 17, 27, 0.6);
  border: 1px solid #355066;
  border-radius: 14px;
  padding: 1rem;
}

.hero-kpis h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-kpis p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-top: 3.2rem;
}

.partner-strip {
  margin-top: 2rem;
}

.partner-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  justify-items: start;
  gap: 1rem;
}

.partner-card {
  background: rgba(10, 21, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
  width: fit-content;
  min-width: 280px;
}

.partner-card img {
  width: auto;
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.35rem;
}

.partner-card h3 {
  margin: 0;
  font-size: 1rem;
}

.section-alt {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 31, 48, 0.85), rgba(11, 23, 35, 0.85));
}

/* About / Contact: full shell width like every other page. Long legal text
   (privacy, terms) keeps a reading width, centred. */
.legal-shell--reading {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.legal-shell p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-shell a {
  color: #9be8c0;
}

html.theme-light .legal-shell a {
  color: var(--accent-strong);
}

/* Contact / feedback form controls: themed, not hard-coded dark. */
.feedback-form select,
.feedback-form textarea,
.feedback-form input {
  font: inherit;
  color: var(--text);
  background: rgba(6, 17, 27, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

.feedback-form textarea::placeholder,
.feedback-form input::placeholder {
  color: var(--muted);
}

html.theme-light .feedback-form select,
html.theme-light .feedback-form textarea,
html.theme-light .feedback-form input {
  background: #ffffff;
  border-color: #b9c7d6;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(15, 27, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card p,
.muted {
  margin: 0;
  color: var(--muted);
}

#solutions .card a,
#sports .card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

#solutions .card a:hover,
#sports .card a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* The "Football software · Live competitions" action row on sport cards. */
#sports .card p:last-child {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.readiness {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  background: rgba(10, 21, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  position: relative;
}

.price-card.featured {
  border-color: #3f9964;
  box-shadow: inset 0 0 0 1px rgba(79, 211, 132, 0.2);
}

.badge {
  display: inline-block;
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #041b0e;
  font-weight: 800;
  background: linear-gradient(130deg, #73f1ad, #3ed782);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
}

.price-card ul {
  margin: 0.9rem 0 1rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.price-card li {
  margin: 0.4rem 0;
}

.pricing-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 27, 42, 0.8);
  padding: 0.9rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--muted);
  margin: 0.7rem 0 0;
}

.site-footer {
  margin-top: 3.4rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-nav {
    font-size: 0.95rem;
  }

  .brand-wordmark {
    height: 44px;
  }

  .hero {
    padding: 1.6rem;
  }

  .hero-kpis,
  .cards,
  .readiness,
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* Match Centre callout band (home page) */
.mc-band {
  margin-top: 2rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(49, 186, 106, 0.16), rgba(45, 108, 255, 0.12));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.mc-band-text h2 { margin: 0.3rem 0 0.4rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.mc-band-text p { margin: 0; color: var(--muted); max-width: 52ch; }

.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; border-radius: 16px; flex: 0 0 auto; }

@media (max-width: 700px) {
  .mc-band { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
  .site-footer div { justify-content: center; }
}

/* Match Centre band when nested directly under the hero heading */
.hero .mc-band.hero-mc { margin: 1.3rem 0 0.4rem; padding: 1.2rem 1.4rem; }
.hero .mc-band.hero-mc .mc-band-text h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* ---- Light theme (html.theme-light, toggled by /theme.js) ---- */
html.theme-light {
  --bg: #eef3f8;
  --panel: #ffffff;
  --panel-alt: #f6f9fc;
  --text: #0f172a;
  --muted: #52657a;
  --line: #d3dde7;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}
html.theme-light,
html.theme-light body {
  background: radial-gradient(circle at top right, #dcebf7 0%, var(--bg) 40%);
}
html.theme-light .bg-orb { opacity: 0.25; }
html.theme-light .mc-card,
html.theme-light .mc-card-link,
html.theme-light table.mc-table,
html.theme-light .ribbon-day,
html.theme-light .bk-match,
html.theme-light .mc-head { background: #ffffff; }
html.theme-light .mc-search input,
html.theme-light .mc-filter,
html.theme-light .mc-season,
html.theme-light .mc-tabs,
html.theme-light .mc-chip,
html.theme-light .mc-score b,
html.theme-light .share-btn { background: #f1f5f9; color: var(--text); }
html.theme-light .mc-tab { color: var(--muted); }
html.theme-light .mc-fx.cancelled { opacity: 0.6; }
/* The follow box, chips and badges carry hard-coded dark backgrounds in the
   page styles — whiten them here (higher specificity wins over the page). */
html.theme-light .mc-follow { background: #ffffff; }
html.theme-light .mc-follow input[type='email'] { background: #f1f5f9; color: var(--text); }
html.theme-light .mc-season-chip,
html.theme-light .mc-view-chip { background: #f1f5f9; color: var(--text); }
html.theme-light .mc-season-chip.active,
html.theme-light .mc-view-chip.active { background: var(--accent); color: #ffffff; }
/* Light accent is a DARK green — accent-filled controls need white text. */
html.theme-light .mc-follow button,
html.theme-light .mc-filter.active { color: #ffffff; }
html.theme-light .mc-avatar,
html.theme-light .mc-ha { background: #f1f5f9; }
html.theme-light ul.mc-team-list li { background: #ffffff; }
/* --line is too faint for pill outlines on the light background. */
html.theme-light .mc-filter,
html.theme-light .mc-chip,
html.theme-light .mc-season,
html.theme-light .mc-season-chip,
html.theme-light .mc-view-chip,
html.theme-light .mc-view-comp,
html.theme-light .share-btn { border-color: #b7c5d3; }
html.theme-light .bk-side.bk-win { background: rgba(49, 186, 106, 0.15); }
.theme-btn { min-width: 2.2rem; justify-content: center; }

/* ---- Match-centre polish: themed scrollbars, bracket spacing, light-mode contrast ---- */
.bk-scroll, .mc-grid-scroll, .ribbon { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bk-scroll::-webkit-scrollbar, .mc-grid-scroll::-webkit-scrollbar, .ribbon::-webkit-scrollbar { height: 8px; }
.bk-scroll::-webkit-scrollbar-thumb, .mc-grid-scroll::-webkit-scrollbar-thumb, .ribbon::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.bk-scroll::-webkit-scrollbar-track, .mc-grid-scroll::-webkit-scrollbar-track, .ribbon::-webkit-scrollbar-track { background: transparent; }
.bk-scroll { padding-bottom: 1.1rem; margin-bottom: 0.8rem; }
html.theme-light { --accent: #17945a; --accent-strong: #0f7c49; }
html.theme-light .bk-match { border-color: #b9c7d6; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08); }
html.theme-light .bk-side + .bk-side { border-top-color: #dde6ee; }
html.theme-light .share-btn { background: transparent; }
/* Active states must beat the light-theme surface overrides above. */
html.theme-light .mc-tab.active,
html.theme-light .mc-filter.active,
html.theme-light .ribbon-day.selected {
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: transparent;
}
html.theme-light .ribbon-day.selected .rd-wd,
html.theme-light .ribbon-day.selected .rd-m { color: rgba(255, 255, 255, 0.85); }
html.theme-light .ribbon-day.selected .rd-dot.on { background: #ffffff; }

/* Light theme: marketing surfaces. The dark values are hardcoded gradients/
   rgba panels above, so each needs an explicit light counterpart — without
   these the panels stay dark while the text flips (unreadable). */
html.theme-light .hero {
  background: linear-gradient(160deg, #ffffff 0%, #f1f6fb 100%);
}
html.theme-light .section-alt {
  background: linear-gradient(180deg, #f8fbfd, #eef4f9);
}
html.theme-light .card,
html.theme-light details {
  background: #ffffff;
}
html.theme-light .hero-kpis article {
  background: #f6f9fc;
  border-color: var(--line);
}
html.theme-light .partner-card,
html.theme-light .price-card {
  background: #ffffff;
}
html.theme-light .mc-band {
  background: linear-gradient(135deg, rgba(23, 148, 90, 0.1), rgba(45, 108, 255, 0.07));
}
/* Light mode's accent greens are darker, so solid buttons need white text
   (same treatment as the match-centre active chips). */
html.theme-light .btn-solid {
  color: #ffffff;
}
html.theme-light .btn-ghost,
html.theme-light .btn-outline {
  border-color: var(--line);
}
html.theme-light .btn-ghost:hover,
html.theme-light .btn-outline:hover {
  border-color: var(--accent);
}

/* Light/dark toggle on marketing pages (match-centre pages style their own). */
.site-header { position: relative; }
.site-header .theme-btn { position: absolute; top: 1rem; right: 1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.site-header .theme-btn:hover { border-color: var(--accent); }

/* Product tour — real app captures (tools/website-shots.mjs), phone by
   default with a tablet toggle. Each figure carries both; the section's
   data-device attribute picks which shows. */
.device-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.device-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.device-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: #05200f;
}

.product-tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 2.2rem;
  justify-items: center;
}

.product-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.product-shot img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

.product-shot figcaption {
  text-align: center;
  max-width: 300px;
}

.product-shot figcaption h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.product-shot figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

section[data-device="phone"] .shot--tablet,
section[data-device="tablet"] .shot--phone {
  display: none;
}

section[data-device="tablet"] .product-tour-grid {
  grid-template-columns: repeat(2, 1fr);
}

section[data-device="tablet"] .product-shot img {
  max-width: 420px;
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .product-tour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-tour-grid,
  section[data-device="tablet"] .product-tour-grid {
    grid-template-columns: 1fr;
  }
}

/* Guide: an inline capture beside a step. */
.guide-shot {
  margin: 14px auto 0;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}

.guide-figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 12px 0 22px;
}

.guide-figure {
  max-width: 300px;
  text-align: center;
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Pricing: one early-access panel (no tiers while pricing may still change). */
.early-access-panel {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  background: var(--panel, rgba(255, 255, 255, 0.03));
}

.early-access-lead {
  margin: 0 0 1.2rem;
  color: var(--text);
  line-height: 1.6;
}

.early-access-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.early-access-columns h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.early-access-columns ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.early-access-columns li {
  margin-bottom: 0.35rem;
}

.early-access-panel .hero-actions {
  margin-top: 1.5rem;
}

@media (max-width: 760px) {
  .early-access-columns {
    grid-template-columns: 1fr;
  }
}
