/* ==========================================================================
   fantasycricketmatch.com — Editorial Longform Hub
   Selected combo:
   - Layout 109: Editorial Longform Hub
   - Homepage 071: Guide authority-first
   - Menu System 007
   - Color System 320: DARK_BLUE_TRUST
   - Typography 006: DM Sans + Noto Sans Devanagari
   - CTA Variant 016: Trusted primary niche
   ========================================================================== */

:root {
  /* Palette — dark broadcast navy with restrained cricket-green signals */
  --primary: #5090F7;
  --primary-dark: #3E70C1;
  --primary-soft: rgba(80, 144, 247, 0.16);
  --accent: #26BF8C;
  --accent-soft: rgba(38, 191, 140, 0.18);
  --warn: #F0B95B;

  --background: #081120;
  --background-deep: #050B16;
  --surface: #0E1B36;
  --surface-2: #172C4B;
  --surface-3: #1F3A60;
  --surface-tint: rgba(255, 255, 255, 0.04);

  --text: #F8FAFC;
  --text-strong: #FFFFFF;
  --muted: #CBD5E1;
  --muted-2: #8FA1BC;
  --muted-3: #5D6E87;

  --border: rgba(255, 255, 255, 0.14);
  --soft-border: rgba(255, 255, 255, 0.08);
  --soft-border-2: rgba(255, 255, 255, 0.05);

  --gradient-page: linear-gradient(180deg, #081120 0%, #0A162A 50%, #0E1B36 100%);
  --gradient-card: linear-gradient(155deg, rgba(23, 44, 75, 0.65) 0%, rgba(14, 27, 54, 0.45) 100%);
  --gradient-hero: linear-gradient(115deg, rgba(5, 11, 22, 0.92) 0%, rgba(8, 17, 32, 0.78) 40%, rgba(8, 17, 32, 0.45) 100%);
  --gradient-rule: linear-gradient(90deg, transparent 0%, rgba(80, 144, 247, 0.6) 50%, transparent 100%);

  /* Radii — one consistent soft-radius system */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;

  /* Spacing */
  --gap-1: 6px;
  --gap-2: 10px;
  --gap-3: 16px;
  --gap-4: 22px;
  --gap-5: 32px;
  --gap-6: 48px;
  --gap-7: 64px;
  --gap-8: 96px;

  /* Type */
  --font-sans: "DM Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(80, 144, 247, 0.25), 0 12px 32px rgba(80, 144, 247, 0.18);

  /* Container */
  --container-max: 1240px;
}

/* ====== Reset ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--background);
  background-image: var(--gradient-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: #79AEFC; }

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

/* ====== Layout ====== */
.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--narrow { padding-block: clamp(36px, 4vw, 56px); }
.section--surface { background: var(--surface); border-top: 1px solid var(--soft-border); border-bottom: 1px solid var(--soft-border); }
.section--deep    { background: var(--background-deep); border-top: 1px solid var(--soft-border); border-bottom: 1px solid var(--soft-border); }

/* ====== Typography ====== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
h4 { font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted); }
p strong { color: var(--text-strong); }

.lede {
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  color: #DCE3F0;
}

.score-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-2);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  font-feature-settings: "tnum";
}
.score-strip .label { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.score-strip .value { color: var(--text-strong); font-weight: 700; }
.score-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ====== Header ======
   site-header intentionally uses no z-index so it does NOT create a stacking
   context. The hamburger inside it is position:fixed on mobile, which would
   otherwise be trapped at z-index:200 (the header's value) and unable to
   stack above .mobile-drawer (z-index:360). With no z-index on the header,
   the hamburger's own z-index:400 places it in the root stacking context. */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(8, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--soft-border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: grid; place-items: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 18px rgba(80,144,247,0.35);
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-strong);
  border-bottom-color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--r-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  color: var(--text-strong);
  transition: background 180ms ease, transform 180ms ease;
}
.hamburger:hover { background: var(--surface-3); }
.hamburger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====== Buttons / CTA variant 016 — Trusted Primary Niche ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-2);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(80, 144, 247, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(80, 144, 247, 0.5); color: white; }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text-strong);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text-strong); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 11px 18px;
}
.btn-ghost:hover { color: #79AEFC; background: var(--primary-soft); }
.btn .arrow {
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

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

/* ====== Mobile Drawer ======
   Critical: .site-header uses position:sticky + z-index:200 which creates a
   stacking context. The hamburger lives inside it, so its own z-index cannot
   escape the header. On mobile we therefore promote the hamburger to
   position:fixed at the root level (z-index:400, above the drawer) and
   provide a separate, labelled close button inside the drawer itself. */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 88vw);
  background: linear-gradient(180deg, #0A162A 0%, #050B16 100%);
  border-left: 1px solid var(--border);
  z-index: 360;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(10, 22, 42, 0.98) 0%, rgba(10, 22, 42, 0.92) 100%);
  border-bottom: 1px solid var(--soft-border);
  z-index: 1;
}
.drawer-head .drawer-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease;
}
.drawer-close:hover { background: var(--surface-3); }
.drawer-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.drawer-close::before {
  content: "\00D7"; /* multiplication sign = clear × glyph */
}

.drawer-nav {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer nav { display: contents; }
.mobile-drawer .drawer-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--soft-border);
  font-weight: 500;
}
.mobile-drawer .drawer-nav a:last-child { border-bottom: 0; }
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 22, 0.6);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; visibility: visible; }

/* ====== Hero ====== */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 110px) clamp(48px, 6vw, 88px);
  background: var(--background-deep);
  overflow: hidden;
  border-bottom: 1px solid var(--soft-border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 30%, rgba(80, 144, 247, 0.18), transparent 60%),
    radial-gradient(600px 300px at 12% 80%, rgba(38, 191, 140, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  margin-block: 18px 16px;
}
.hero-lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: #DCE3F0;
  line-height: 1.55;
  max-width: 56ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-cta { margin-top: 28px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--soft-border);
}
.hero-trust figure {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.hero-trust .trust-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  font-feature-settings: "tnum";
}
.hero-trust .trust-lbl {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.hero-figure {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-figure-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(5, 11, 22, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-1);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ====== Compliance strip ====== */
.compliance {
  background: var(--surface-2);
  padding-block: 14px;
  border-bottom: 1px solid var(--soft-border);
  font-size: 13px;
  color: var(--muted);
}
.compliance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.compliance-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.compliance-row .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ====== Card systems ====== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 24px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient-rule);
  opacity: 0;
  transition: opacity 220ms ease;
}
.card:hover::after { opacity: 1; }
.card h3 { margin: 12px 0 8px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.card .icon.green { background: var(--accent-soft); color: var(--accent); }
.card .icon.amber { background: rgba(240, 185, 91, 0.15); color: var(--warn); }

.card a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

/* Featured card with image */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 200ms ease, box-shadow 220ms ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.feature-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.feature-card:hover .thumb img { transform: scale(1.04); }
.feature-card .body {
  padding: 22px;
}
.feature-card .tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.feature-card h3 { margin: 0 0 8px; }
.feature-card .meta {
  font-size: 13px;
  color: var(--muted-2);
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

/* ====== Lead story (asymmetric) ====== */
.lead-story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.lead-story .image {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}
.lead-story .image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.lead-story .body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-story h2 { margin-top: 14px; }
.lead-story .byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted-2);
}
.lead-story .byline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ====== Scorecard widget ====== */
.scorecard {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.scorecard-head {
  background: var(--surface-3);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.scorecard-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.scorecard-head .live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

.scorecard-body { padding: 18px 16px; }
.matchup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-border);
}
.matchup:last-child { border-bottom: none; }
.matchup .team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}
.matchup .team .crest {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--primary);
  border: 1px solid var(--soft-border);
}
.matchup .score {
  font-size: 18px;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--text-strong);
}
.matchup .status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ====== Table ====== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border-radius: var(--r-3);
  overflow: hidden;
}
.data-table thead {
  background: var(--surface-2);
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--soft-border);
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 600;
}
.data-table td { color: var(--text); }
.data-table tbody tr:hover { background: var(--surface-tint); }

/* ====== FAQ ====== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-strong);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--primary);
  transition: transform 220ms ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 20px; color: var(--muted); }

/* ====== Step / how-to ====== */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 18px 22px;
}
.step .num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  counter-increment: step;
}
.step .num::before { content: counter(step); }

/* ====== Inline image rows ====== */
.inline-image {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-block: 22px;
}
.inline-image .frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.inline-image .frame img { width: 100%; height: 100%; object-fit: cover; }
.inline-image figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--soft-border);
}

/* ====== Inline image + text row ====== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split .frame {
  border-radius: var(--r-3);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--soft-border);
}
.split .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ====== Section heading variants ====== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}
.section-head h2 { margin: 8px 0 0; }
.section-head .lead { max-width: 60ch; color: var(--muted); margin: 0; }

/* ====== Stats / callouts ====== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.stat-tile {
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 22px;
}
.stat-tile .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-strong);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}
.stat-tile .lbl {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ====== Quote ====== */
.quote-block {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  padding: 24px 26px;
  margin-block: 24px;
  border-radius: 0 var(--r-3) var(--r-3) 0;
  font-size: 17px;
  line-height: 1.6;
  color: #DCE3F0;
  font-style: italic;
}
.quote-block cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted-2);
}

/* ====== Tool cards ====== */
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 24px;
  transition: border-color 200ms ease;
}
.tool-card:hover { border-color: var(--primary); }
.tool-card .badge {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--background-deep);
  border-top: 1px solid var(--border);
  padding-block: 56px 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}
.footer-grid a:hover { color: var(--text-strong); }
.footer-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--soft-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted-2);
}
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--soft-border);
  color: var(--muted);
  transition: all 180ms ease;
}
.social-row a:hover { background: var(--surface-3); color: var(--text-strong); border-color: var(--primary); }

/* ====== TOC ====== */
.toc {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 20px 24px;
}
.toc h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }
.toc ol { margin: 0; padding-left: 22px; color: var(--text); }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); font-size: 14.5px; }
.toc a:hover { color: var(--primary); }

/* ====== Hub nav (grid for subtopics) ====== */
.hub-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.hub-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-2);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  transition: all 180ms ease;
}
.hub-nav a:hover { background: var(--surface-2); border-color: var(--primary); color: var(--text-strong); }
.hub-nav a::after { content: "→"; color: var(--primary); }

/* ====== Related links block ====== */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-2);
  padding: 16px 18px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}
.related a small { display: block; color: var(--muted-2); font-weight: 400; margin-top: 4px; font-size: 12.5px; }

/* ====== Long-form prose ====== */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: #D2DBED;
}
.prose h2 { margin-block: 36px 14px; }
.prose h3 { margin-block: 28px 12px; color: var(--text-strong); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--primary);
  background: rgba(80, 144, 247, 0.06);
  border-radius: 0 var(--r-3) var(--r-3) 0;
}

/* ====== Side rail (for money pages) ====== */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.side-rail {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.side-rail h4 { margin: 0 0 10px; }
.side-rail .meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-border);
  color: var(--muted);
}
.side-rail .meta-line:last-of-type { border-bottom: none; }
.side-rail .meta-line strong { color: var(--text-strong); font-weight: 600; }

/* ====== Banner image for child pages ====== */
.page-banner {
  aspect-ratio: 21 / 7;
  border-radius: var(--r-4);
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
  background: var(--surface-2);
  border: 1px solid var(--soft-border);
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 24px;
  background: linear-gradient(0deg, rgba(5,11,22,0.92) 0%, transparent 100%);
  color: #DCE3F0;
  font-size: 13.5px;
}

/* ====== Winners / leaderboard ====== */
.leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.leaderboard .player {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.leaderboard .rank {
  width: 36px; height: 36px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.leaderboard .info .name { font-weight: 600; color: var(--text-strong); }
.leaderboard .info .team { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* ====== Feature block (for big editorial blocks) ====== */
.feature-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-4);
  padding: 36px;
  box-shadow: var(--shadow-1);
}
.feature-block .frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-3);
  overflow: hidden;
}
.feature-block .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ====== Player role card ====== */
.role-card {
  background: var(--gradient-card);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.role-card .role-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ====== Pitch diagram (CSS visual) ====== */
.pitch-diagram {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-3);
  padding: 24px;
}
.pitch-strip {
  width: 100%;
  height: 60px;
  background:
    linear-gradient(90deg, var(--accent) 0%, var(--accent) 20%, transparent 20%, transparent 22%, var(--accent) 22%, var(--accent) 80%, transparent 80%);
  border-radius: 8px;
  position: relative;
  margin-block: 12px;
}
.pitch-strip::before,
.pitch-strip::after {
  content: "●";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-strong);
  font-size: 18px;
}
.pitch-strip::before { left: 18%; }
.pitch-strip::after { right: 18%; }

/* ====== Sticky bottom CTA on mobile ====== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(8, 17, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  z-index: 180;
  transform: translateY(100%);
  transition: transform 280ms ease;
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .cta-row { width: 100%; }
.sticky-cta .btn { flex: 1 1 0; justify-content: center; padding: 12px; }

/* ====== Mobile menu state for accessibility ====== */
[aria-hidden="true"] { pointer-events: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 400; /* above .mobile-drawer (360) and .drawer-scrim (350) */
  }
  .header-cta .btn:not(.btn-primary) { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .lead-story { grid-template-columns: 1fr; }
  .lead-story .image { aspect-ratio: 16 / 9; }
  .split, .split.reverse, .feature-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .page-grid { grid-template-columns: 1fr; }
  .side-rail { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, var(--container-max)); }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 32px; }
  .hero-trust { gap: 14px; }
  .header-cta { gap: 6px; }
  .brand-tag { display: none; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .lead-story .body { padding: 24px; }
  /* Reserve space at top for fixed hamburger so brand text doesn't collide */
  .site-header { padding-right: 56px; }
}

@media (max-width: 430px) {
  body { font-size: 15.5px; }
  .hero-figure-cap { font-size: 11px; padding: 6px 10px; }
  .feature-block { padding: 22px; }
}

/* ====== Print & a11y ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
