/*
 * BetScore Casino - shared design system
 * Fixed dark stadium theme with navy surfaces and gold action accents.
 */

:root {
    --background: #06162f;
    --background-deep: #030d20;
    --surface: #0b2348;
    --surface-strong: #123563;
    --surface-soft: #173b6d;
    --card: #102d57;
    --card-hover: #163b70;
    --foreground: #f7f8fb;
    --foreground-soft: #d9e2ef;
    --muted: #1a3459;
    --muted-foreground: #b8c5d8;
    --primary: #f4c44f;
    --primary-hover: #ffda72;
    --primary-foreground: #141009;
    --secondary: #163d72;
    --secondary-foreground: #f7f8fb;
    --accent: #f4c44f;
    --accent-foreground: #141009;
    --destructive: #b9414b;
    --destructive-foreground: #ffffff;
    --success: #3d9b74;
    --border: #496889;
    --border-gold: #d8ad4b;
    --focus: #ffe49a;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 12px 34px rgba(244, 196, 79, 0.18);
    --radius-sm: 0.625rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 999px;
    --container: 76rem;
    --content: 48rem;
    --header-height: 4.75rem;
    --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;
    --font-body: "Inter", sans-serif;
    --font-heading: "Poppins", sans-serif;
    --transition: 180ms ease;
}

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

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    color-scheme: dark;
    background: var(--background-deep);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 91, 153, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 24%, rgba(34, 91, 153, 0.16), transparent 24rem),
        linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

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

button {
    cursor: pointer;
}

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

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

[class*="grid"] > *,
[class*="flex"] > *,
.card,
.info-card,
.media-card,
.fact-tile {
    min-width: 0;
}

section {
    position: relative;
    overflow: clip;
}

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

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

details {
    height: fit-content;
}

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

/* ============================================
   TYPOGRAPHY - bold sports-editorial hierarchy
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.75em;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, calc(6vw + 0.5rem), 4.75rem);
}

h2 {
    font-size: clamp(1.75rem, calc(3vw + 0.75rem), 3rem);
}

h3 {
    font-size: clamp(1.2rem, calc(1.2vw + 0.95rem), 1.65rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    margin: 0 0 1.25rem;
}

ul,
ol {
    margin-block: 0 1.5rem;
    padding-inline-start: 1.35rem;
}

strong {
    color: var(--foreground);
}

small,
figcaption,
.caption {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article) a:not([class]) {
    color: var(--primary-hover);
    font-weight: 600;
    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(--foreground);
}

.prose,
.seo-text {
    max-width: var(--content);
}

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

.text-gold,
.hero__title-emphasis {
    color: var(--primary);
}

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

/* ============================================
   ACCESSIBILITY - focus, skip link and motion
   ============================================ */

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

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

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

/* ============================================
   LAYOUT - shared containers and section rhythm
   ============================================ */

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

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

.page-section {
    padding-block: var(--space-3xl);
}

.page-section--compact {
    padding-block: var(--space-2xl);
}

.page-section--surface {
    background: linear-gradient(135deg, rgba(18, 53, 99, 0.72), rgba(7, 24, 52, 0.88));
}

.page-section--stadium {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(26, 94, 79, 0.35), transparent 45%),
        radial-gradient(circle at 8% 10%, rgba(107, 180, 255, 0.16), transparent 20%),
        radial-gradient(circle at 92% 10%, rgba(107, 180, 255, 0.16), transparent 20%),
        linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.section-intro {
    max-width: 55rem;
    margin-bottom: var(--space-xl);
}

.section-intro--center {
    margin-inline: auto;
    text-align: center;
}

.section-intro--left {
    text-align: left;
}

.section-intro__eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-intro__heading {
    margin-bottom: 0.65rem;
}

.section-intro__text {
    max-width: 48rem;
    margin: 0 auto;
    color: var(--foreground-soft);
}

.section-intro--left .section-intro__text {
    margin-left: 0;
}

.section-intro__text--center {
    margin-inline: auto;
    text-align: center;
}

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

/* ============================================
   HEADER & NAVIGATION - resilient mobile drawer
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(216, 173, 75, 0.58);
    background: var(--background);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 1rem, var(--container));
    min-height: var(--header-height);
    margin-inline: auto;
    gap: 0.5rem;
}

.site-brand {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    gap: 0.45rem;
    color: var(--foreground);
    text-decoration: none;
}

.site-brand__mark {
    flex: 0 0 2.125rem;
}

.site-brand__text {
    display: grid;
    grid-template-columns: auto auto;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 5vw, 1.4rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.site-brand__score {
    color: var(--primary);
}

.site-brand__sub {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: 0.22rem;
    color: var(--foreground-soft);
    font-size: 0.62em;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.header-actions__login {
    display: none;
}

.primary-nav {
    display: none;
}

.primary-nav.is-open {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem 1rem 2rem;
    background: var(--background);
}

.primary-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__list a {
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-weight: 700;
    text-decoration: none;
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
    background: var(--surface-strong);
    color: var(--primary-hover);
}

.primary-nav__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 2rem;
}

.nav-toggle {
    position: relative;
    z-index: 1001;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.62rem;
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    background: transparent;
    place-content: center;
    gap: 0.28rem;
}

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

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

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

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

/* ============================================
   BUTTONS - thumb-friendly gold conversion CTAs
   ============================================ */

.btn {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

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

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

.btn--gold:hover {
    background: var(--primary-hover);
    box-shadow: 0 14px 38px rgba(244, 196, 79, 0.28);
}

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

.btn--ghost:hover {
    background: var(--surface-strong);
    border-color: var(--primary-hover);
}

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

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

.inline-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: var(--space-xl);
}

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

.inline-cta--center {
    align-items: center;
    justify-content: center;
}

/* ============================================
   HERO - integrated stadium artwork composition
   ============================================ */

.hero {
    isolation: isolate;
    min-height: calc(100svh - var(--header-height));
    background:
        radial-gradient(circle at 10% 16%, rgba(143, 207, 255, 0.3), transparent 15rem),
        radial-gradient(circle at 90% 16%, rgba(143, 207, 255, 0.3), transparent 15rem),
        linear-gradient(180deg, rgba(6, 22, 47, 0.38), var(--background) 94%);
}

.hero::before,
.hero::after {
    position: absolute;
    top: 2rem;
    z-index: -1;
    width: 8rem;
    height: 15rem;
    content: "";
    background: radial-gradient(ellipse, rgba(234, 247, 255, 0.7) 0 7%, transparent 9%) 0 0 / 2.2rem 2.2rem;
    filter: drop-shadow(0 0 12px rgba(132, 205, 255, 0.75));
    opacity: 0.65;
}

.hero::before {
    left: -2rem;
    transform: rotate(-18deg);
}

.hero::after {
    right: -2rem;
    transform: rotate(18deg);
}

.hero__inner {
    display: grid;
    width: min(100% - 2rem, var(--container));
    min-height: calc(100svh - var(--header-height));
    margin-inline: auto;
    padding-block: 2.5rem 1rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(244, 196, 79, 0.7);
    border-radius: var(--radius-pill);
    background: rgba(6, 22, 47, 0.86);
    color: var(--primary-hover);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__title {
    max-width: 16ch;
    margin-inline: auto;
    color: var(--primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.38);
}

.hero__text {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    color: var(--foreground);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.65;
}

.hero__art {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    margin: 1.5rem auto -0.5rem;
    align-self: end;
}

.hero__art img[data-visual-role="hero-foreground"] {
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.38));
}

.hero__field {
    position: absolute;
    right: -15%;
    bottom: -8%;
    left: -15%;
    z-index: -1;
    height: 38%;
    background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.07) 12.2% 12.5%), linear-gradient(180deg, rgba(17, 88, 74, 0.05), rgba(24, 105, 77, 0.4));
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

/* ============================================
   CARDS - gold-outlined navy content containers
   ============================================ */

.card,
.info-card,
.fact-tile,
.media-card,
.stat-highlight,
.social-proof-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(20, 57, 105, 0.96), rgba(10, 35, 72, 0.98));
    box-shadow: var(--shadow-sm);
}

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

.card--gold,
.card-featured,
.fact-tile,
.media-card {
    border-color: var(--border-gold);
}

.card:hover,
.info-card:hover,
.fact-tile:hover,
.media-card:hover {
    border-color: var(--primary-hover);
}

.fact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.fact-tile {
    display: grid;
    padding: 1.35rem;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.fact-tile:hover {
    background: var(--card-hover);
    transform: translateY(-3px);
}

.fact-tile__icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(244, 196, 79, 0.5);
    border-radius: 50%;
    background: rgba(244, 196, 79, 0.08);
    color: var(--primary);
    font-size: 1.75rem;
    place-items: center;
}

.fact-tile__title {
    margin-bottom: 0.45rem;
}

.fact-tile__text {
    margin-bottom: 1rem;
    color: var(--foreground-soft);
}

.fact-tile__link,
.media-card__link {
    align-self: end;
    color: var(--primary-hover);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.media-card {
    overflow: hidden;
}

.media-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface);
}

.media-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card__body {
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    padding: 1.25rem;
}

.media-card__title {
    margin-bottom: 0.5rem;
}

.media-card__text {
    color: var(--foreground-soft);
}

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

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

.feature-split__text p,
.feature-split__text li {
    color: var(--foreground-soft);
}

.feature-split__media {
    display: grid;
    min-height: 15rem;
    align-items: center;
    justify-items: center;
}

.feature-split__media img {
    max-height: 31rem;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.28));
}

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

.tldr-box,
.callout {
    max-width: 54rem;
    margin-block: 1.5rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.tldr-box {
    border: 1px solid var(--border-gold);
    background: linear-gradient(135deg, rgba(244, 196, 79, 0.12), rgba(16, 45, 87, 0.9));
}

.tldr-box__title,
.callout__title {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--primary-hover);
    font-family: var(--font-heading);
    font-weight: 700;
}

.tldr-box__list {
    margin: 0;
}

.tldr-box__list li + li {
    margin-top: 0.5rem;
}

.callout {
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    background: var(--surface);
}

.callout--warning {
    border-left-color: #f4a640;
    background: #31220f;
}

.callout--danger {
    border-left-color: #ef7780;
    background: #35171d;
}

.callout--success {
    border-left-color: #61c497;
    background: #0e2f26;
}

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

/* ============================================
   STATS, QUOTES & SOCIAL PROOF - evidence blocks
   ============================================ */

.stat-highlight {
    padding: 1.4rem;
    text-align: center;
}

.stat-highlight__value {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
}

.stat-highlight__label {
    display: block;
    margin-top: 0.5rem;
    color: var(--foreground);
    font-weight: 700;
}

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

.pull-quote {
    max-width: 52rem;
    margin: var(--space-2xl) auto;
    padding: 1.5rem 0 1.5rem 1.25rem;
    border-left: 5px solid var(--primary);
}

.pull-quote p {
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.35;
}

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

.social-proof-card {
    padding: 1.4rem;
}

.social-proof-card blockquote {
    margin: 0 0 1rem;
    color: var(--foreground-soft);
}

.social-proof-card__name {
    color: var(--foreground);
    font-weight: 700;
}

.social-proof-card__meta {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   PROCESS STEPS - numbered actionable sequences
   ============================================ */

.steps-list {
    display: grid;
    max-width: 54rem;
    margin: 1.5rem 0;
    padding: 0;
    counter-reset: steps;
    gap: 1rem;
    list-style: none;
}

.steps-list__item {
    position: relative;
    min-height: 4rem;
    padding: 1rem 1rem 1rem 4.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    counter-increment: steps;
}

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

.steps-list__title,
.steps-list__text {
    display: block;
}

.steps-list__title {
    margin-bottom: 0.3rem;
    color: var(--foreground);
    font-weight: 700;
}

.steps-list__text {
    color: var(--foreground-soft);
}

/* ============================================
   TABLES - dense comparisons with sticky context
   ============================================ */

.table-wrapper {
    margin-block: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.data-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
    color: var(--foreground-soft);
    font-size: 0.95rem;
}

.data-table caption {
    padding: 1rem;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
}

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

.data-table thead th {
    background: var(--surface-strong);
    color: var(--foreground);
    font-weight: 700;
}

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

.data-table .is-highlight {
    background: rgba(244, 196, 79, 0.13);
    color: var(--foreground);
    box-shadow: inset 2px 0 var(--primary), inset -2px 0 var(--primary);
}

/* ============================================
   FAQ ACCORDIONS - native accessible disclosures
   ============================================ */

.faq-group {
    display: grid;
    max-width: 58rem;
    margin-inline: auto;
    align-items: start;
    gap: 0.75rem;
}

.faq-item {
    align-self: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: clip;
}

.faq-item[open] {
    border-color: var(--border-gold);
    background: var(--surface-strong);
}

.faq-item__question {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-item__heading {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
}

.faq-item__icon {
    position: relative;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary);
}

.faq-item__icon::before,
.faq-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.75rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-foreground);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform var(--transition);
}

.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__answer {
    padding: 0 1.1rem 1.2rem;
    color: var(--foreground-soft);
}

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

/* ============================================
   TRUST BADGES - quiet reassurance indicators
   ============================================ */

.trust-row {
    display: flex;
    max-width: 100%;
    margin: 1.5rem 0 0;
    padding: 0 0 0.5rem;
    overflow-x: auto;
    gap: 0.75rem;
    list-style: none;
    scroll-snap-type: x proximity;
}

.trust-row__item {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 3rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--foreground-soft);
    font-size: 0.9rem;
    font-weight: 600;
    scroll-snap-align: start;
}

.trust-row__icon {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ============================================
   CTA BAND - high-contrast conversion section
   ============================================ */

.cta-band {
    padding: 1rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(83, 155, 224, 0.2), transparent 18rem),
        linear-gradient(135deg, var(--surface-strong), var(--surface));
}

.cta-band__inner {
    width: min(100%, 68rem);
    margin-inline: auto;
    padding: clamp(2rem, 8vw, 4rem) 1rem;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-band__heading {
    margin-bottom: 0.75rem;
}

.cta-band__text {
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    color: var(--foreground-soft);
}

.cta-band__note {
    max-width: 38rem;
    margin: 0.9rem auto 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ============================================
   BREADCRUMBS - compact page context
   ============================================ */

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

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 0.45rem;
    list-style: none;
}

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

.breadcrumbs li + li::before {
    margin-right: 0.45rem;
    color: var(--border-gold);
    content: "/";
}

.breadcrumbs a {
    color: var(--foreground-soft);
}

/* ============================================
   FOOTER - navigation, payments and 18+ notice
   ============================================ */

.site-footer {
    border-top: 1px solid var(--border-gold);
    background: var(--background-deep);
}

.site-footer__inner {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
    padding-block: 2.5rem 1.5rem;
}

.site-footer__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.footer-col__title {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-weight: 700;
}

.footer-col__text {
    max-width: 27rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.footer-links,
.pay-badges {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a {
    color: var(--foreground-soft);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-links a:hover {
    color: var(--primary-hover);
}

.age-badge {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--foreground);
    border-radius: 50%;
    color: var(--foreground);
    font-family: var(--font-heading);
    font-weight: 800;
    place-items: center;
}

.age-badge sup {
    font-size: 0.6em;
}

.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pay-badge {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--surface);
    color: var(--foreground-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

.site-footer__legal {
    display: grid;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 0.65rem;
}

.site-footer__legal p {
    max-width: 75rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.site-footer__copy {
    color: var(--foreground-soft) !important;
    font-weight: 600;
}

/* ============================================
   FAQ PAGE - section spacing and answer prose
   ============================================ */

.faq-page-hero__media {
    width: min(100%, 36rem);
    margin: 1.5rem auto 0;
}

.faq-page-hero__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
}

@media (min-width: 768px) {
    .faq-page-hero__media {
        width: min(100%, 48rem);
        margin-top: 2rem;
    }
}

/* ============================================
   SCROLL REVEAL - progressive enhancement only
   ============================================ */

.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TABLET - wider grids and comfortable header
   ============================================ */

@media (min-width: 768px) {
    :root {
        --header-height: 5.25rem;
    }

    .container,
    .section-shell,
    .content-shell,
    .breadcrumbs,
    .site-footer__inner {
        width: min(100% - 3rem, var(--container));
    }

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

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

    .btn--sm {
        padding-inline: 1.1rem;
        font-size: 0.9rem;
    }

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

    .fact-grid > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

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

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

    .feature-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2xl);
    }

    .feature-split--reverse .feature-split__text {
        order: 2;
    }

    .feature-split--reverse .feature-split__media {
        order: 1;
    }

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

    .cta-band {
        padding: 1.5rem;
    }
}

/* ============================================
   DESKTOP - reference-matched navigation & hero
   ============================================ */

@media (min-width: 1024px) {
    :root {
        --header-height: 5.75rem;
    }

    .site-header {
        background: rgba(6, 22, 47, 0.97);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

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

    .site-brand__mark {
        flex-basis: 2.5rem;
        width: 2.5rem;
    }

    .site-brand__text {
        font-size: 1.45rem;
    }

    .primary-nav {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        gap: 1.25rem;
    }

    .primary-nav__list {
        flex-direction: row;
        align-items: center;
        gap: 0.2rem;
    }

    .primary-nav__list a {
        min-height: 2.75rem;
        padding-inline: clamp(0.45rem, 0.8vw, 0.8rem);
        font-size: 0.92rem;
    }

    .primary-nav__actions {
        display: flex;
        margin: 0;
        padding: 0;
        gap: 0.6rem;
    }

    .header-actions,
    .nav-toggle {
        display: none;
    }

    .hero {
        min-height: min(50rem, calc(100svh - var(--header-height)));
    }

    .hero__inner {
        min-height: min(50rem, calc(100svh - var(--header-height)));
        padding-block: 3rem 0;
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
        gap: 1rem;
    }

    .hero__content {
        align-self: center;
        text-align: left;
    }

    .hero__title {
        margin-inline: 0;
    }

    .hero__text {
        margin-inline: 0;
    }

    .hero__art {
        width: 115%;
        max-width: none;
        margin: 0 0 -0.5rem -10%;
    }

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

    .fact-grid > :last-child:nth-child(odd) {
        grid-column: auto;
    }

    .fact-tile {
        padding: 1.25rem;
    }

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

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

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

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

    .site-footer__cols {
        grid-template-columns: 1.5fr 0.8fr 0.9fr 1.3fr;
    }
}

/* ============================================
   LARGE DESKTOP - maximum reference proportions
   ============================================ */

@media (min-width: 1280px) {
    .page-section {
        padding-block: var(--space-4xl);
    }

    .primary-nav__list {
        gap: 0.4rem;
    }

    .primary-nav__list a {
        font-size: 1rem;
    }

    .hero__inner {
        gap: 2rem;
    }

    .hero__art {
        width: 120%;
        margin-left: -12%;
    }
}

/* ============================================
   SMALL MOBILE - preserve 320px header integrity
   ============================================ */

@media (max-width: 374px) {
    .site-header__inner {
        width: calc(100% - 0.75rem);
    }

    .site-brand__mark {
        display: none;
    }

    .site-brand__text {
        font-size: 1rem;
    }

    .header-actions .btn {
        min-height: 2.6rem;
        padding-inline: 0.65rem;
        font-size: 0.76rem;
    }

    .nav-toggle {
        width: 2.6rem;
        height: 2.6rem;
    }
}

/* ============================================
   REDUCED MOTION - keep all content visible
   ============================================ */

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

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

    .js-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
