/* COMESPORTSNOW — Dark Hero Cards + Cyan Live Match
   Identity: deep navy match-night surfaces, cyan live-state signals,
   restrained yellow score highlights, broadcast-inspired editorial
   sports desk. DM Sans typography. */

:root {
  --primary: #16BBD7;
  --primary-dark: #1192A8;
  --primary-soft: rgba(22, 187, 215, 0.18);
  --accent: #FDE251;
  --accent-soft: rgba(253, 226, 81, 0.16);
  --live: #FF4D6D;
  --live-soft: rgba(255, 77, 109, 0.22);
  --background: #04141D;
  --background-2: #062234;
  --surface: #072031;
  --surface-2: #0D3752;
  --surface-3: #103E5C;
  --text: #F8FAFC;
  --text-2: #E2E8F0;
  --muted: #CBD5E1;
  --muted-2: #94A3B8;
  --border: rgba(255,255,255,0.14);
  --soft-border: rgba(255,255,255,0.08);
  --shadow: 0 14px 40px rgba(2, 10, 18, 0.55);
  --shadow-soft: 0 6px 18px rgba(2, 10, 18, 0.4);
  --gradient: linear-gradient(135deg, #04141D 0%, #072031 48%, #0D3752 100%);
  --gradient-hero: radial-gradient(1100px 600px at 80% -10%, rgba(22, 187, 215, 0.22) 0%, transparent 60%),
                   radial-gradient(900px 500px at 0% 30%, rgba(253, 226, 81, 0.08) 0%, transparent 60%),
                   linear-gradient(135deg, #04141D 0%, #072031 60%, #0D3752 100%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --container: 1240px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(32px, 4.8vw, 60px); letter-spacing: -0.018em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.012em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: clamp(17px, 2vw, 20px); }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 40px, var(--container-narrow));
  margin-inline: auto;
}
.section {
  padding: clamp(48px, 7vw, 96px) 0;
}
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--alt { background: var(--background-2); }
.section--surface { background: var(--surface); }
.section-head { margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin-bottom: 12px; }
.section-head p.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 20, 29, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--soft-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--background);
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(22, 187, 215, 0.35);
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  position: relative;
  margin-left: auto;
}
.hamburger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .hamburger { display: block; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 55;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  padding: 16px 20px 28px;
  transform: translateY(-110%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer a {
  display: block;
  color: var(--text-2);
  font-size: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--soft-border);
}
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer .btn-block { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #04222C;
  box-shadow: 0 8px 24px rgba(22, 187, 215, 0.32);
}
.btn-primary:hover { color: #04222C; box-shadow: 0 12px 32px rgba(22, 187, 215, 0.45); }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: var(--primary); }
.btn-accent {
  background: var(--accent);
  color: #1A1300;
}
.btn-accent:hover { color: #1A1300; box-shadow: 0 12px 30px rgba(253, 226, 81, 0.4); }
.btn-ghost { color: var(--text); padding: 12px 14px; }
.btn-block { width: 100%; }

/* ---------- Live status / scoreboard ---------- */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  background: var(--live-soft);
  color: var(--live);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(22, 187, 215, 0.4); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.card-meta .tag {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.card-excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.card-link::after { content: "→"; transition: transform 0.18s ease; }
.card-link:hover { color: var(--accent); }
.card-link:hover::after { transform: translateX(3px); }
.card-image {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.04); }

/* News card variants */
.news-card .card-image { aspect-ratio: 16/9; }
.news-card.featured .card-image { aspect-ratio: 16/10; }
.news-card.featured { grid-column: span 2; }
@media (max-width: 760px) { .news-card.featured { grid-column: span 1; } }

/* Hub card */
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.hub-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--primary-soft), transparent 70%);
  pointer-events: none;
}
.hub-card .hub-icon {
  width: 48px; height: 48px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 24px;
  color: var(--primary);
}
.hub-card h3 { margin: 0; font-size: 19px; }
.hub-card p { color: var(--muted); font-size: 14px; margin: 0; }
.hub-card .hub-cta { color: var(--primary); font-size: 13px; font-weight: 600; }

/* Scoreboard card */
.score-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
}
.score-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.score-team { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.score-team .crest {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border);
}
.score-team:last-child { justify-content: flex-end; text-align: right; }
.score-team:last-child .crest { order: 2; }
.score-team:last-child span { order: 1; }
.score-numbers {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.score-numbers .run-rate { font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }
.score-result {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  width: max-content;
  margin-top: 4px;
}
.score-result.upcoming { background: rgba(22, 187, 215, 0.16); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 187, 215, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 187, 215, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--primary); }
.hero h1 .hl-accent { color: var(--accent); }
.hero-lede {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--soft-border);
  font-size: 13px; color: var(--muted);
}
.hero-trust strong { color: var(--text); display: block; font-size: 20px; margin-bottom: 2px; }
.hero-card {
  background: rgba(7, 32, 49, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 187, 215, 0.4), transparent 50%);
  z-index: -1;
  filter: blur(8px);
}
.hero-card h3 {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.trust-item h4 { font-size: 15px; margin: 0 0 4px; }
.trust-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--soft-border);
  vertical-align: middle;
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(22, 187, 215, 0.05); }
.data-table .pos { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); width: 50px; }
.data-table .name { font-weight: 600; }
.data-table .stat { font-variant-numeric: tabular-nums; color: var(--muted); }

/* ---------- Stats / KPI tiles ---------- */
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: grid; gap: 8px;
  position: relative; overflow: hidden;
}
.stat-tile .num {
  font-size: 38px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); line-height: 1;
}
.stat-tile .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-tile .trend { font-size: 12px; color: var(--primary); font-weight: 600; }
.stat-tile.accent .num { color: var(--accent); }
.stat-tile.cyan .num { color: var(--primary); }

/* ---------- Editorial blocks ---------- */
.editorial-prose {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
}
.editorial-prose p { margin-bottom: 1.1em; }
.editorial-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.editorial-prose a:hover { color: var(--accent); }
.editorial-prose h2 { margin-top: 1.6em; }
.editorial-prose h3 { margin-top: 1.4em; font-size: 21px; }
.editorial-prose ul, .editorial-prose ol { padding-left: 22px; margin-bottom: 1.1em; }
.editorial-prose li { margin-bottom: 0.5em; }
.editorial-prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 6px 0 6px 20px;
  margin: 1.6em 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}
.editorial-prose figure { margin: 28px 0; }
.editorial-prose figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.editorial-prose figcaption {
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 32px;
}
.toc h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--text-2); font-size: 15px; }
.toc a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(22, 187, 215, 0.5); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 56px;
}
.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(--primary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- CTA bands ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--primary-soft), transparent 70%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .cta-band { grid-template-columns: 1fr; }
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page banner (child pages) ---------- */
.page-banner {
  background: var(--gradient-hero);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22, 187, 215, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(22, 187, 215, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(800px 400px at 30% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; max-width: 800px; }
.page-banner .lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.page-banner .breadcrumbs {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.page-banner .breadcrumbs a { color: var(--muted-2); }
.page-banner .breadcrumbs a:hover { color: var(--primary); }
.page-banner .breadcrumbs span { margin: 0 8px; opacity: 0.4; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--background-2);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-lockup { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col li a {
  color: var(--muted);
  font-size: 14px;
}
.footer-col li a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--soft-border);
  font-size: 13px;
  color: var(--muted-2);
}
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: all 0.18s ease;
}
.social-row a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.social-row svg { width: 16px; height: 16px; }
.compliance-strip {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}
.compliance-strip strong { color: var(--accent); }

/* ---------- Breadcrumb (children) ---------- */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--soft-border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted-2);
}
.breadcrumb-bar a { color: var(--muted-2); }
.breadcrumb-bar a:hover { color: var(--primary); }
.breadcrumb-bar span.sep { margin: 0 8px; opacity: 0.4; }
.breadcrumb-bar span.current { color: var(--text); }

/* ---------- Inline image row (article body) ---------- */
.inline-figure {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.inline-figure img { width: 100%; height: auto; display: block; }
.inline-figure figcaption {
  padding: 12px 18px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--soft-border);
}
.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 760px) {
  .inline-image-row { grid-template-columns: 1fr; }
}
.inline-image-row .inline-figure { margin: 0; }

/* ---------- Step blocks ---------- */
.step-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--background);
  display: grid; place-items: center;
  font-weight: 700; font-size: 20px;
}
.step-block h3 { margin: 0 0 8px; font-size: 18px; }
.step-block p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Inline tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag-pill {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tag-pill.featured { background: var(--accent-soft); color: var(--accent); border-color: rgba(253, 226, 81, 0.3); }

/* ---------- Comparison / list rows ---------- */
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
  margin-bottom: 10px;
}
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr; gap: 8px; }
}
.compare-row.head { background: var(--surface-2); color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-row .label { font-weight: 600; }
.compare-row .value { color: var(--muted); font-size: 14px; }

/* ---------- Misc ---------- */
.responsive-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.skip-link {
  position: absolute; left: -9999px;
  background: var(--primary); color: var(--background); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0;
}

::selection { background: var(--primary); color: var(--background); }

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