/*
 * BetScore Casino Design System
 * Dark stadium surfaces, electric yellow actions and neon sports accents.
 */

:root {
    --background: #07162f;
    --background-deep: #040d20;
    --background-elevated: #0b1d3b;
    --background-soft: #10284d;
    --foreground: #f6f8fc;
    --foreground-strong: #ffffff;
    --muted: #132b4e;
    --muted-foreground: #c5d0e1;
    --primary: #ffd400;
    --primary-hover: #ffe34d;
    --primary-foreground: #071126;
    --secondary: #18365f;
    --secondary-hover: #214779;
    --secondary-foreground: #f6f8fc;
    --accent: #4bd7ff;
    --accent-foreground: #061126;
    --purple: #b44cff;
    --success: #35d07f;
    --success-foreground: #06170d;
    --warning: #ffb800;
    --warning-foreground: #171000;
    --destructive: #e4243b;
    --destructive-foreground: #ffffff;
    --border: #355177;
    --border-strong: #ffd400;
    --focus: #6de1ff;
    --overlay: rgba(2, 8, 20, 0.88);
    --surface-glass: rgba(12, 31, 62, 0.92);
    --surface-glow: rgba(255, 212, 0, 0.18);
    --cyan-glow: rgba(75, 215, 255, 0.18);
    --purple-glow: rgba(180, 76, 255, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.38);
    --white-soft: rgba(255, 255, 255, 0.08);
    --white-line: rgba(255, 255, 255, 0.16);
    --yellow-line: rgba(255, 212, 0, 0.42);
    --disabled: #52647f;

    --font-display: "Archivo", sans-serif;
    --font-body: "Inter", sans-serif;

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 6rem;

    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-pill: 999px;

    --shadow-sm: 0 0.5rem 1.25rem var(--shadow-color);
    --shadow-lg: 0 1.5rem 4rem var(--shadow-color);
    --glow-primary: 0 0 1.5rem var(--surface-glow);
    --glow-accent: 0 0 2rem var(--cyan-glow);

    --header-height: 4.5rem;
    --container: 80rem;
    --content: 48rem;
    --transition: 180ms ease;
}

/* ============================================
   RESET & OVERFLOW SAFETY - Predictable layout
   ============================================ */

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

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-md));
    background: var(--background-deep);
}

body {
    min-width: 20rem;
    margin: 0;
    padding-bottom: 4.75rem;
    overflow-x: hidden;
    color: var(--foreground);
    background:
        radial-gradient(circle at 16% 18%, var(--cyan-glow), transparent 24rem),
        radial-gradient(circle at 86% 38%, var(--purple-glow), transparent 25rem),
        linear-gradient(180deg, var(--background-elevated), var(--background) 30%, var(--background-deep));
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--white-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--white-soft) 1px, transparent 1px);
    background-size: 5rem 5rem;
    mask-image: linear-gradient(to bottom, transparent, var(--foreground) 35%, transparent 85%);
    opacity: 0.12;
    content: "";
    pointer-events: none;
}

img,
video,
iframe,
embed,
object,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

section {
    overflow: clip;
}

p,
li,
td,
th,
dd {
    overflow-wrap: break-word;
}

a {
    color: inherit;
}

a[href^="http"],
a[href^="mailto"],
a[href^="tel"] {
    word-break: break-word;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article) a:not([class]) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article) a:not([class]):hover {
    color: var(--primary-hover);
}

button,
input,
textarea,
select {
    max-width: 100%;
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   ACCESSIBILITY - Focus, skip link and helpers
   ============================================ */

.skip-link {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2000;
    padding: var(--space-sm) var(--space-md);
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.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;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* ============================================
   TYPOGRAPHY - Athletic display, readable prose
   ============================================ */

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--foreground-strong);
    font-family: var(--font-display);
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.9rem, calc(3vw + 1rem), 4.5rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: var(--space-lg);
    font-size: clamp(1.65rem, calc(2vw + 0.9rem), 3.25rem);
    font-weight: 850;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: var(--space-sm);
    font-size: clamp(1.2rem, calc(0.7vw + 1rem), 1.65rem);
    font-weight: 800;
}

h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.05rem;
    font-weight: 800;
}

p {
    margin-bottom: var(--space-md);
}

.lead {
    max-width: 44rem;
    color: var(--muted-foreground);
    font-size: clamp(1.05rem, calc(0.4vw + 1rem), 1.25rem);
    line-height: 1.65;
}

.eyebrow {
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.prose {
    max-width: var(--content);
    color: var(--muted-foreground);
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: var(--space-xs);
}

/* ============================================
   LAYOUT - Containers and section rhythm
   ============================================ */

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - 2rem, var(--content));
    margin-inline: auto;
}

.content-section {
    position: relative;
    padding-block: var(--space-3xl);
}

.content-section--tight {
    padding-block: var(--space-2xl);
}

.content-section--surface {
    background: linear-gradient(135deg, var(--background-elevated), var(--background-soft));
    border-block: 1px solid var(--white-line);
}

.content-section--stadium::before,
.content-section--stadium::after {
    position: absolute;
    top: 10%;
    width: 12rem;
    height: 22rem;
    background: radial-gradient(ellipse, var(--surface-glow), transparent 68%);
    content: "";
    pointer-events: none;
}

.content-section--stadium::before {
    left: -7rem;
}

.content-section--stadium::after {
    right: -7rem;
}

.section-head {
    max-width: 68rem;
    margin: 0 auto var(--space-xl);
}

.section-head--center {
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.section-head__kicker {
    margin-bottom: var(--space-xs);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: 0;
}

.section-head--left .section-head__title {
    justify-content: flex-start;
}

.section-head__tick {
    width: 1.25rem;
    height: 0.22rem;
    flex: 0 0 auto;
    background: var(--primary);
    border-radius: var(--radius-pill);
    box-shadow: var(--glow-primary);
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.stack {
    display: grid;
    gap: var(--space-lg);
}

/* ============================================
   HEADER & NAVIGATION - Fixed mobile shell
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    color: var(--foreground);
    background: var(--background-deep);
    border-bottom: 1px solid var(--border-strong);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-sm);
    width: min(100% - 1rem, var(--container));
    min-height: var(--header-height);
    margin-inline: auto;
}

.site-brand {
    display: inline-grid;
    width: max-content;
    color: var(--foreground-strong);
    text-decoration: none;
    line-height: 0.92;
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: clamp(1.18rem, 5.8vw, 1.65rem);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.site-brand__name::first-letter,
.site-brand__name em {
    color: var(--primary);
    font-style: inherit;
}

.site-brand__sub {
    justify-self: end;
    margin-top: 0.25rem;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle {
    position: relative;
    z-index: 1001;
    display: grid;
    place-content: center;
    gap: 0.28rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--yellow-line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-pill);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0.39rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-0.39rem) rotate(-45deg);
}

.primary-nav {
    display: none;
}

.primary-nav.is-open {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 999;
    display: block;
    max-width: 100vw;
    padding: var(--space-lg);
    overflow-y: auto;
    color: var(--foreground);
    background: var(--background);
}

.primary-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    width: min(100%, 32rem);
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

.primary-nav a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: var(--space-sm) var(--space-md);
    color: var(--foreground);
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 750;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--primary);
    border-color: var(--border-strong);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
}

.header-login {
    display: none;
}

/* ============================================
   BUTTONS - High-contrast conversion actions
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.72rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn--primary {
    color: var(--primary-foreground);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.btn--primary:hover {
    color: var(--primary-foreground);
    background: var(--primary-hover);
    box-shadow: 0 0 2rem var(--surface-glow);
}

.btn--secondary {
    color: var(--secondary-foreground);
    background: var(--secondary);
    border-color: var(--border);
}

.btn--secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--accent);
}

.btn--ghost {
    color: var(--foreground);
    background: transparent;
    border-color: var(--primary);
}

.btn--ghost:hover {
    color: var(--primary-foreground);
    background: var(--primary);
}

.btn--sm {
    min-height: 2.75rem;
    padding-inline: 0.8rem;
    font-size: 0.875rem;
}

.btn--lg {
    min-height: 3.5rem;
    padding: 1rem clamp(1.5rem, 7vw, 3rem);
    font-size: 1.1rem;
}

.btn--block {
    width: 100%;
}

/* ============================================
   HEROES - Integrated stadium foreground layout
   ============================================ */

.hero {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    padding: var(--space-xl) 0 var(--space-3xl);
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 20%, var(--cyan-glow), transparent 24rem),
        linear-gradient(180deg, var(--background-elevated), var(--background));
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 12% 25%, var(--surface-glow), transparent 22%),
        radial-gradient(ellipse at 88% 25%, var(--surface-glow), transparent 22%),
        linear-gradient(165deg, transparent 48%, var(--white-soft) 49%, transparent 50%);
    content: "";
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 35%;
    background:
        linear-gradient(90deg, transparent 49.7%, var(--white-line) 50%, transparent 50.3%),
        repeating-linear-gradient(90deg, transparent 0 8%, var(--white-soft) 8.2% 8.35%),
        linear-gradient(180deg, transparent, var(--background-deep));
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
    content: "";
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.hero__art {
    position: relative;
    min-height: 18rem;
    order: 1;
}

.hero__art::before {
    position: absolute;
    inset: 8% 2% 4%;
    z-index: -1;
    background:
        linear-gradient(135deg, var(--accent), var(--purple)) border-box;
    border: 2px solid transparent;
    border-radius: 20% 8% 22% 10%;
    box-shadow: var(--glow-accent);
    opacity: 0.65;
    content: "";
    transform: skew(-5deg);
}

.hero__art img[data-visual-role="hero-foreground"] {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    max-height: 25rem;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 1.5rem 2rem var(--shadow-color));
}

.hero__content {
    order: 2;
    min-width: 0;
}

.hero__brandline {
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero__title {
    margin-bottom: var(--space-md);
}

.hero__title strong {
    color: var(--primary);
}

.hero__text {
    max-width: 42rem;
    margin-bottom: var(--space-lg);
    color: var(--muted-foreground);
    font-size: 1.05rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__microcopy {
    width: 100%;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.page-hero {
    position: relative;
    padding-block: var(--space-2xl);
    background:
        radial-gradient(circle at 85% 20%, var(--purple-glow), transparent 20rem),
        linear-gradient(135deg, var(--background-elevated), var(--background));
    border-bottom: 1px solid var(--yellow-line);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
}

.page-hero__media {
    min-height: 16rem;
}

.page-hero__media img {
    width: 100%;
    max-height: 24rem;
    object-fit: contain;
    filter: drop-shadow(0 1rem 2rem var(--shadow-color));
}

/* ============================================
   CARDS - Bordered sports dashboard modules
   ============================================ */

.card,
.info-card,
.feature-card,
.testimonial-card {
    min-width: 0;
    color: var(--foreground);
    background: linear-gradient(145deg, var(--background-elevated), var(--background-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card,
.info-card {
    padding: var(--space-lg);
}

.card--accent,
.card-featured {
    border: 2px solid var(--border-strong);
    box-shadow: var(--glow-primary);
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-lg);
    overflow: hidden;
    border-color: var(--yellow-line);
}

.feature-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 0.25rem;
    background: repeating-linear-gradient(90deg, var(--primary) 0 1rem, transparent 1rem 1.35rem);
    content: "";
}

.feature-card__icon {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
    background: var(--white-soft);
    border: 1px solid var(--yellow-line);
    border-radius: var(--radius-md);
}

.feature-card__title {
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    flex-grow: 1;
    margin-bottom: var(--space-md);
    color: var(--muted-foreground);
}

.feature-card__link {
    align-self: flex-start;
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
    text-underline-offset: 0.2em;
}

.icon {
    flex: 0 0 auto;
}

/* ============================================
   MEDIA PANELS - Framed editorial image/content
   ============================================ */

.media-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    color: var(--foreground);
    background: linear-gradient(145deg, var(--background-elevated), var(--background-soft));
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.media-panel__media {
    min-height: 14rem;
    background: var(--background-deep);
}

.media-panel__media img {
    width: 100%;
    height: 100%;
    min-height: 14rem;
    object-fit: cover;
}

.media-panel__body {
    align-self: center;
    padding: var(--space-xl);
}

.media-panel__title {
    color: var(--primary);
}

.media-panel .btn {
    margin-top: var(--space-lg);
}

/* ============================================
   SUMMARY & CALLOUTS - Citation-friendly breaks
   ============================================ */

.tldr-box,
.callout,
.checklist {
    min-width: 0;
    padding: var(--space-lg);
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.tldr-box {
    border-left: 0.35rem solid var(--primary);
    box-shadow: inset 0 0 2rem var(--surface-glow);
}

.tldr-box__title,
.callout__title,
.checklist__title {
    margin-bottom: var(--space-sm);
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-weight: 850;
}

.tldr-box__list,
.checklist__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.tldr-box__list {
    display: grid;
    gap: var(--space-xs);
}

.tldr-box__list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted-foreground);
}

.tldr-box__list li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 0.65rem;
    height: 0.2rem;
    background: var(--primary);
    border-radius: var(--radius-pill);
    content: "";
}

.callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-md);
    border-left: 0.35rem solid var(--accent);
}

.callout--warning {
    border-left-color: var(--warning);
}

.callout--success {
    border-left-color: var(--success);
}

.callout__icon {
    color: var(--primary);
}

.callout__text {
    margin: 0;
    color: var(--muted-foreground);
}

.checklist__list {
    display: grid;
    gap: var(--space-sm);
}

.checklist__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-sm);
    align-items: start;
}

.checklist__mark {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 50%;
}

/* ============================================
   STEPS & STATS - Process and evidence modules
   ============================================ */

.steps-list {
    display: grid;
    gap: var(--space-md);
    padding: 0;
    margin: 0;
    counter-reset: steps;
    list-style: none;
}

.steps-list__item {
    position: relative;
    min-width: 0;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 4.5rem;
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    counter-increment: steps;
}

.steps-list__item::before {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 900;
    content: counter(steps);
}

.steps-list__title {
    margin-bottom: var(--space-xs);
}

.steps-list__text {
    margin: 0;
    color: var(--muted-foreground);
}

.stat-highlight {
    display: grid;
    min-width: 0;
    padding: var(--space-lg);
    text-align: center;
    background: linear-gradient(145deg, var(--background-soft), var(--background-elevated));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
}

.stat-highlight__value {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, calc(3vw + 1rem), 4.5rem);
    font-weight: 900;
    line-height: 1;
}

.stat-highlight__label {
    margin-top: var(--space-xs);
    color: var(--foreground-strong);
    font-weight: 750;
}

.stat-highlight__note {
    margin-top: var(--space-xs);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   TABLES - Scrollable comparison data
   ============================================ */

.table-wrapper,
[class*="table-"] {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--foreground);
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.data-table caption {
    padding: var(--space-md);
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    vertical-align: top;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: 0;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table thead th {
    color: var(--primary-foreground);
    background: var(--primary);
    font-family: var(--font-display);
    font-weight: 850;
}

.data-table tbody th {
    color: var(--foreground-strong);
    font-weight: 750;
}

.data-table td {
    color: var(--muted-foreground);
}

.data-table .is-highlight > * {
    background: var(--background-soft);
    box-shadow: inset 0 2px var(--primary), inset 0 -2px var(--primary);
}

pre,
code,
.code-block,
[class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
    white-space: pre;
}

/* ============================================
   DETAILS / FAQ - Native accessible disclosures
   ============================================ */

.faq-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
    align-items: start;
}

.faq-item,
details {
    height: fit-content;
    align-self: start;
}

.faq-item {
    overflow: hidden;
    color: var(--foreground);
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.faq-item[open] {
    border-color: var(--border-strong);
    box-shadow: var(--glow-primary);
}

.faq-item summary {
    position: relative;
    min-height: 3.5rem;
    padding: var(--space-md) 3.5rem var(--space-md) var(--space-md);
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 50%;
    right: var(--space-md);
    width: 0.75rem;
    height: 0.75rem;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq-item__answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--muted-foreground);
}

.faq-item__answer > :last-child {
    margin-bottom: 0;
}

/* ============================================
   TRUST & PAYMENTS - Compact confidence signals
   ============================================ */

.trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust-row__item {
    display: grid;
    justify-items: center;
    align-content: start;
    min-width: 0;
    padding: var(--space-md);
    text-align: center;
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.trust-row__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

.trust-row__label {
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-weight: 800;
}

.trust-row__text {
    margin-top: var(--space-xs);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.payment-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xs);
    padding: 0;
    margin: 0;
    list-style: none;
}

.payment-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    min-width: 0;
    padding: var(--space-xs) var(--space-sm);
    color: var(--foreground);
    background: var(--background-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 750;
    text-align: center;
}

.payment-row--compact {
    display: flex;
    flex-wrap: wrap;
}

.payment-row--compact .payment-chip {
    min-height: 2.25rem;
    flex: 1 1 5.5rem;
}

.age-badge {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 900;
}

/* ============================================
   QUOTES & SOCIAL PROOF - Editorial credibility
   Use only with supplied, attributable evidence
   ============================================ */

.pull-quote {
    position: relative;
    max-width: 58rem;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    margin-inline: auto;
    color: var(--foreground-strong);
    background: var(--background-elevated);
    border-left: 0.35rem solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.pull-quote::before {
    position: absolute;
    top: -0.25rem;
    left: var(--space-md);
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    content: "“";
}

.pull-quote p {
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, calc(1vw + 1rem), 2rem);
    font-weight: 750;
    line-height: 1.4;
}

.pull-quote cite {
    color: var(--muted-foreground);
    font-style: normal;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-lg);
}

.testimonial-card__quote {
    color: var(--foreground);
    font-size: 1.05rem;
}

.testimonial-card__source {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   CTA BANDS - Full-width conversion moments
   ============================================ */

.cta-band {
    position: relative;
    padding: var(--space-2xl) var(--space-md);
    background:
        radial-gradient(circle at 50% 0%, var(--surface-glow), transparent 18rem),
        linear-gradient(135deg, var(--background-soft), var(--background-elevated));
    border-block: 1px solid var(--border-strong);
}

.cta-band__inner {
    width: min(100%, 52rem);
    margin-inline: auto;
    text-align: center;
}

.cta-band__title {
    margin-bottom: var(--space-sm);
}

.cta-band__text {
    max-width: 42rem;
    margin: 0 auto var(--space-lg);
    color: var(--muted-foreground);
}

.cta-band__note {
    margin: var(--space-sm) 0 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 950;
    padding: var(--space-xs) var(--space-md);
    background: var(--background-deep);
    border-top: 1px solid var(--primary);
}

/* ============================================
   FOOTER - Legal, navigation and payment scope
   ============================================ */

.site-footer {
    padding: var(--space-3xl) 0 var(--space-2xl);
    color: var(--muted-foreground);
    background: var(--background-deep);
    border-top: 1px solid var(--border);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
}

.site-footer__brand .site-brand__name,
.site-footer__brand .site-brand__sub {
    display: block;
    width: max-content;
}

.site-footer__claim {
    max-width: 34rem;
    margin-top: var(--space-md);
}

.site-footer__title {
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.site-footer__nav ul {
    display: grid;
    gap: var(--space-xs);
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer__nav a {
    color: var(--foreground);
    text-decoration-color: var(--border-strong);
    text-underline-offset: 0.2em;
}

.site-footer__note,
.site-footer__copyright {
    font-size: 0.875rem;
}

.site-footer__legal {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.site-footer__legal p {
    margin: 0;
    font-size: 0.875rem;
}

.site-footer__copyright {
    padding-top: var(--space-lg);
    margin: var(--space-lg) 0 0;
    text-align: center;
    border-top: 1px solid var(--white-line);
}

/* ============================================
   SCROLL ENHANCEMENT - Safe one-way reveal
   ============================================ */

html.reveal-ready [data-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translateY(1.25rem);
}

html.reveal-ready [data-reveal] {
    transition: opacity 500ms ease, transform 500ms ease;
}

html.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* ============================================
   TABLET - Denser grids and two-column panels
   ============================================ */

@media (min-width: 48rem) {
    :root {
        --header-height: 5rem;
    }

    .container,
    .hero__inner,
    .site-header__inner {
        width: min(100% - 3rem, var(--container));
    }

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

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

    .grid-3 > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: min(100%, calc(50% - var(--space-sm)));
        justify-self: center;
    }

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

    .hero__inner,
    .page-hero__grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .hero__art {
        min-height: 31rem;
        order: 1;
    }

    .hero__content {
        order: 2;
    }

    .hero__art img[data-visual-role="hero-foreground"] {
        max-height: 34rem;
    }

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

    .media-panel--reverse .media-panel__media {
        order: 2;
    }

    .media-panel--reverse .media-panel__body {
        order: 1;
    }

    .media-panel__media,
    .media-panel__media img {
        min-height: 22rem;
    }

    .trust-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .payment-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .site-footer__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }

    .site-footer__payments {
        grid-column: 1 / -1;
    }
}

/* ============================================
   DESKTOP - Reference-scale navigation and cards
   ============================================ */

@media (min-width: 64rem) {
    body {
        padding-bottom: 5.25rem;
    }

    .site-header {
        background: var(--surface-glass);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }

    .site-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: var(--space-xl);
    }

    .site-brand__name {
        font-size: 2rem;
    }

    .site-brand__sub {
        font-size: 0.78rem;
    }

    .nav-toggle {
        display: none;
    }

    .primary-nav,
    .primary-nav.is-open {
        position: static;
        inset: auto;
        z-index: auto;
        display: block;
        max-width: none;
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .primary-nav__list {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-xs);
        width: auto;
    }

    .primary-nav a {
        min-height: 2.75rem;
        padding-inline: var(--space-md);
        background: transparent;
        border-color: transparent;
    }

    .primary-nav__drawer-item {
        display: none;
    }

    .header-login {
        display: inline-flex;
    }

    .content-section {
        padding-block: var(--space-4xl);
    }

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

    .grid-3 > :last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

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

    .hero {
        display: grid;
        min-height: min(52rem, calc(100svh - var(--header-height)));
        padding-block: var(--space-2xl);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: var(--space-2xl);
        padding: var(--space-lg);
        background: linear-gradient(120deg, var(--surface-glass), var(--background-elevated));
        border: 2px solid var(--border-strong);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg), var(--glow-primary);
    }

    .hero__art {
        min-height: 38rem;
    }

    .hero__art img[data-visual-role="hero-foreground"] {
        max-height: 42rem;
    }

    .hero__content {
        padding: var(--space-xl);
    }

    .hero__text {
        font-size: 1.125rem;
    }

    .feature-card {
        padding: var(--space-xl);
    }

    .payment-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    /* Homepage: trust grid sits inside a half-width card, stay 2x2 */
    .card .trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card .trust-row__item {
        padding: var(--space-sm);
    }

    .card .trust-row__icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .site-footer__grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.65fr) minmax(0, 1.25fr);
    }

    .site-footer__payments {
        grid-column: auto;
    }

    .sticky-cta {
        padding: var(--space-sm) max(var(--space-md), calc((100vw - var(--container)) / 2));
    }
}

/* ============================================
   WIDE DESKTOP - Maximum reference container
   ============================================ */

@media (min-width: 80rem) {
    .hero__inner {
        gap: var(--space-3xl);
        padding: var(--space-xl);
    }

    .media-panel__body {
        padding: var(--space-2xl);
    }
}

/* ============================================
   NARROW MOBILE - Keep header within 320px
   ============================================ */

@media (max-width: 26.25rem) {
    .site-header__inner {
        gap: 0.35rem;
    }

    .site-brand__name {
        font-size: 1.08rem;
    }

    .site-brand__sub {
        font-size: 0.6rem;
    }

    .site-header__actions .btn {
        min-height: 2.75rem;
        padding-inline: 0.62rem;
        font-size: 0.78rem;
    }

    .section-head__tick {
        display: none;
    }

    .site-footer__legal {
        display: grid;
    }
}

/* ============================================
   HOMEPAGE - Yard-line game tiles
   ============================================ */

.game-tiles .feature-card {
    border: 2px solid var(--yellow-line);
}

.game-tiles .feature-card__icon {
    color: var(--primary);
    background: transparent;
    border: 0;
    filter: drop-shadow(0 0 0.5rem var(--surface-glow));
}

/* ============================================
   REDUCED MOTION - Preserve visibility and focus
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html.reveal-ready [data-reveal]:not(.is-revealed),
    html.reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
