/*
 * Zoccer Casino Design System
 * Dark stadium surfaces, restrained VIP gold and clean editorial typography.
 */

:root {
    color-scheme: dark;

    --background: #0b0e13;
    --background-deep: #07090d;
    --surface: #111620;
    --surface-raised: #171d29;
    --surface-soft: #1c2330;
    --surface-light: #f4f5f7;
    --card: #151b26;
    --card-hover: #1b2330;
    --foreground: #8995ad;
    --foreground-inverse: #7c8baa;
    --muted: #252d3b;
    --muted-foreground: #b7bec9;
    --subtle-foreground: #6f7b90;
    --border: #394252;
    --border-strong: #606b7d;

    --primary: #e9ba58;
    --primary-hover: #f4ca72;
    --primary-active: #d7a647;
    --primary-foreground: #171208;
    --secondary: #263143;
    --secondary-foreground: #FFFFFF;
    --accent: #74dc9a;
    --accent-foreground: #07130b;
    --info: #74b9ff;
    --info-foreground: #07121d;
    --destructive: #d95e68;
    --destructive-foreground: #160406;
    --warning: #f0c76a;
    --warning-foreground: #171006;
    --success: #72d398;
    --success-foreground: #07130b;

    --gold-100: #fff0c2;
    --gold-300: #f1cc7a;
    --gold-500: #d8a94d;
    --gold-700: #9e752d;
    --stadium-green: #173d2a;
    --stadium-blue: #14283b;

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

    --text-xs: 0.875rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.2rem, calc(1vw + 1rem), 1.5rem);
    --text-2xl: clamp(1.55rem, calc(2vw + 1rem), 2.2rem);
    --text-3xl: clamp(2rem, calc(3.2vw + 1rem), 3.55rem);
    --text-hero: clamp(2.2rem, calc(5vw + 0.5rem), 4.65rem);

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: clamp(2.75rem, calc(5vw + 1rem), 5.5rem);
    --space-3xl: clamp(4rem, calc(7vw + 1rem), 8rem);

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

    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 16px 45px rgba(216, 169, 77, 0.2);
    --focus-ring: 0 0 0 3px rgba(233, 186, 88, 0.35);

    --container: 76rem;
    --container-narrow: 50rem;
    --header-height: 4.75rem;
    --transition-fast: 160ms ease;
    --transition-base: 260ms ease;
}

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

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

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

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(circle at 75% 8%, rgba(216, 169, 77, 0.08), transparent 24rem),
        linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.68;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

a {
    color: var(--gold-300);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--gold-100);
}

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

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

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

h1,
h2,
h3,
h4 {
    color: var(--foreground);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.14;
    text-wrap: balance;
}

h1 {
    margin-bottom: var(--space-lg);
    font-size: var(--text-hero);
}

h2 {
    margin-bottom: var(--space-lg);
    font-size: var(--text-2xl);
}

h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

h4 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-md);
    max-width: 72ch;
}

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

hr {
    border: 0;
    border-top: 1px solid var(--border);
}

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

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

[hidden] {
    display: none !important;
}

[class*="grid"] > *,
[class*="flex"] > *,
.card,
.info-card,
.table-wrapper,
pre,
code,
.code-block {
    min-width: 0;
}

pre,
code,
.code-block,
pre code,
.code-block code {
    max-width: 100%;
    overflow-x: auto;
}

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

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

section {
    overflow: clip;
}

details {
    height: fit-content;
}

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

/* ============================================
   ACCESSIBILITY - Skip navigation and utilities
   ============================================ */

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

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

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================
   LAYOUT - Shared widths and section rhythm
   ============================================ */

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

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

.page-section {
    position: relative;
    padding-block: var(--space-2xl);
    background: transparent;
}

.page-section + .page-section {
    border-top: 1px solid rgba(96, 107, 125, 0.22);
}

.page-section--deep {
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 169, 77, 0.08), transparent 30rem),
        var(--background-deep);
}

.page-section--stadium {
    background:
        linear-gradient(rgba(7, 9, 13, 0.78), rgba(7, 9, 13, 0.96)),
        radial-gradient(ellipse at 50% 100%, rgba(23, 61, 42, 0.72), transparent 58%);
}

.page-section--light {
    background: linear-gradient(180deg, var(--surface), var(--background));
    color: var(--foreground);
}

.page-section--light h1,
.page-section--light h2,
.page-section--light h3,
.page-section--light h4 {
    color: var(--foreground);
}

.page-section--light a:not(.btn) {
    color: var(--gold-300);
}

.page-section--light .section-head__lede,
.page-section--light .prose,
.page-section--light p {
    color: var(--muted-foreground);
}

.prose {
    color: var(--muted-foreground);
    font-size: var(--text-base);
}

.prose > * + * {
    margin-top: var(--space-md);
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: var(--space-xl);
}

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

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
}

.stack > * + * {
    margin-top: var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION - Dark stadium masthead
   ============================================ */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(96, 107, 125, 0.35);
    background: var(--background);
}

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

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

a.site-brand:hover {
    color: var(--foreground);
}

.site-brand__mark {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    text-shadow: 0.12em 0.12em 0 rgba(216, 169, 77, 0.22);
}

.site-brand__text {
    display: grid;
    gap: 0.08rem;
    white-space: nowrap;
}

.site-brand__text strong {
    font-size: clamp(0.9rem, 4vw, 1.3rem);
    letter-spacing: 0.045em;
}

.site-brand__text em {
    color: var(--gold-300);
    font-size: clamp(0.68rem, 3vw, 0.86rem);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.menu-toggle {
    position: relative;
    z-index: 1001;
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.68rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    place-content: center;
    gap: 0.28rem;
}

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

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

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

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

.primary-nav {
    position: fixed;
    z-index: 999;
    inset: var(--header-height) 0 0;
    display: none;
    max-width: 100vw;
    overflow-y: auto;
    padding: 1rem;
    background: var(--background);
}

.primary-nav.is-open {
    display: block;
}

.primary-nav__list {
    display: flex;
    max-width: 34rem;
    margin: 0 auto;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    list-style: none;
}

.primary-nav__link {
    display: flex;
    min-height: 3.25rem;
    padding: 0.7rem 0.9rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
}

.primary-nav__link:hover,
.primary-nav__link[aria-current="page"] {
    color: var(--gold-300);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-login {
    display: none;
}

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

.btn {
    display: inline-flex;
    min-height: 3rem;
    max-width: 100%;
    padding: 0.7rem 1.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

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

.btn--ghost:hover {
    border-color: var(--primary);
    background: rgba(233, 186, 88, 0.08);
    color: var(--gold-100);
}

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

.btn--sm {
    min-height: 2.75rem;
    padding-inline: 0.9rem;
    font-size: var(--text-sm);
}

.btn--lg {
    min-height: 3.35rem;
    padding-inline: clamp(1.25rem, calc(3vw + 0.5rem), 2rem);
}

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

/* ============================================
   HERO - Integrated VIP foreground over stadium
   ============================================ */

.hero {
    position: relative;
    min-height: 43rem;
    overflow: clip;
    background:
        linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.83) 48%, rgba(7, 9, 13, 0.2) 100%),
        radial-gradient(circle at 84% 18%, rgba(233, 186, 88, 0.32), transparent 22rem),
        linear-gradient(180deg, #101722 0%, #0a0d12 72%, #11291d 100%);
}

.hero::before {
    position: absolute;
    right: -8%;
    bottom: -17%;
    left: -8%;
    height: 42%;
    border-top: 1px solid rgba(116, 220, 154, 0.22);
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(240, 240, 240, 0.16) 50%, transparent 50.2%),
        linear-gradient(rgba(240, 240, 240, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 240, 240, 0.13) 1px, transparent 1px),
        rgba(18, 54, 36, 0.55);
    background-size: 100% 100%, 5rem 5rem, 5rem 5rem, auto;
    content: "";
    opacity: 0.7;
    perspective: 30rem;
    transform: perspective(28rem) rotateX(55deg);
    transform-origin: center top;
}

.hero::after {
    position: absolute;
    top: -10rem;
    right: 4%;
    width: 28rem;
    height: 55rem;
    background: linear-gradient(150deg, rgba(255, 225, 153, 0.22), transparent 58%);
    clip-path: polygon(57% 0, 100% 0, 56% 100%, 0 100%);
    content: "";
    filter: blur(1rem);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 43rem;
    padding-block: clamp(3rem, calc(6vw + 1rem), 6rem);
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

.hero__copy {
    position: relative;
    z-index: 3;
    padding-top: 1rem;
}

.hero__eyebrow {
    margin-bottom: 0.75rem;
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__title {
    max-width: 13ch;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

.hero__lede {
    max-width: 42rem;
    margin-bottom: var(--space-lg);
    color: #d4d9e1;
    font-size: var(--text-lg);
    line-height: 1.65;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

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

.hero__note {
    max-width: 44rem;
    margin: 0.9rem 0 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero__art {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: min(25rem, 70vw);
    max-height: 93%;
    pointer-events: none;
}

.hero__art img[data-visual-role="hero-foreground"] {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 25px 42px rgba(0, 0, 0, 0.4));
}

.hero__chip {
    position: absolute;
    z-index: 2;
    width: 3rem;
    aspect-ratio: 1;
    border: 0.38rem dashed #d4b16f;
    border-radius: 50%;
    background: #212532;
    box-shadow: var(--shadow-md);
}

.hero__chip--one { top: 16%; right: 8%; transform: rotate(18deg); }
.hero__chip--two { top: 36%; right: 35%; width: 2.15rem; transform: rotate(-24deg); }
.hero__chip--three { right: 5%; bottom: 15%; width: 4rem; transform: rotate(34deg); }

/* ============================================
   SECTION HEADERS - Extractable answer rhythm
   ============================================ */

.section-head {
    margin-bottom: clamp(1.5rem, calc(3vw + 0.5rem), 3rem);
}

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

.section-head--center .section-head__lede {
    margin-inline: auto;
}

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

.section-head h2,
.section-head h3 {
    max-width: 26ch;
}

.section-head--center h2,
.section-head--center h3 {
    margin-inline: auto;
}

.section-head__lede {
    max-width: 68ch;
    margin-bottom: 0;
    color: var(--muted-foreground);
    font-size: var(--text-lg);
}

.eyebrow {
    margin-bottom: var(--space-sm);
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================================
   CARDS - Structured editorial content
   ============================================ */

.card {
    position: relative;
    min-width: 0;
    padding: clamp(1.1rem, calc(2vw + 0.5rem), 1.75rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(28, 35, 48, 0.94), rgba(16, 21, 30, 0.98));
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-base), transform var(--transition-base), background-color var(--transition-base);
}

.card:hover {
    border-color: rgba(233, 186, 88, 0.65);
    transform: translateY(-2px);
}

.page-section--light .card {
    border-color: var(--border);
    background: linear-gradient(150deg, rgba(28, 35, 48, 0.94), rgba(16, 21, 30, 0.98));
    color: var(--foreground);
}

.page-section--light .card:hover {
    border-color: rgba(233, 186, 88, 0.65);
}

.card__icon {
    display: inline-grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(233, 186, 88, 0.6);
    border-radius: 50%;
    color: var(--gold-300);
    place-items: center;
}

.card__icon--lg {
    width: 4rem;
    height: 4rem;
}

.card__title {
    margin-bottom: 0.65rem;
    font-size: var(--text-xl);
}

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

.page-section--light .card__text,
.page-section--light .card__list {
    color: var(--muted-foreground);
}

.card__list {
    display: grid;
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    color: var(--muted-foreground);
    gap: 0.45rem;
}

.card__list li::marker {
    color: var(--primary);
}

.card__link {
    display: inline-flex;
    min-height: 2.75rem;
    margin-top: 1rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold-300);
    font-family: var(--font-display);
    font-weight: 800;
}

.card--topic {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.card--topic .card__link {
    margin-top: auto;
    padding-top: 1rem;
}

.verdict--pro .card__icon,
.verdict--check .card__icon {
    color: var(--success);
}

.verdict--con .card__icon {
    color: var(--warning);
}

.badge {
    display: inline-flex;
    min-height: 1.75rem;
    margin-left: 0.35rem;
    padding: 0.18rem 0.62rem;
    align-items: center;
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0;
    vertical-align: middle;
}

.badge--accent {
    align-self: flex-start;
    margin: 0 0 0.85rem;
    background: var(--primary);
    color: var(--primary-foreground);
}

/* ============================================
   MEDIA - Framed editorial and plain diagrams
   ============================================ */

.media {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface-raised);
    box-shadow: var(--shadow-md);
}

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

.media figcaption {
    padding: 0.75rem 1rem;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.media--plain {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* ============================================
   TABS - Lobby filters and category switching
   ============================================ */

.tabs,
.filter-tabs {
    min-width: 0;
}

[role="tablist"],
.filter-tabs__list {
    display: flex;
    max-width: 100%;
    margin: 0 0 var(--space-lg);
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    gap: 0.35rem;
    scrollbar-width: thin;
}

[role="tab"],
.filter-tabs__button {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 800;
}

[role="tab"]:hover,
.filter-tabs__button:hover {
    color: var(--foreground);
}

[role="tab"][aria-selected="true"],
.filter-tabs__button.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
}

[role="tabpanel"] {
    min-width: 0;
}

/* ============================================
   FLOW DIAGRAMS - Wallet, bonus and payout steps
   ============================================ */

.flow-wrap {
    padding: clamp(1rem, calc(3vw + 0.5rem), 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 50% 100%, rgba(23, 61, 42, 0.45), transparent 55%),
        var(--surface);
}

.flow {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.3rem;
    list-style: none;
}

.flow__step {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    text-align: center;
}

.flow__step:not(:last-child)::after {
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    color: var(--gold-300);
    content: "↓";
    font-size: 1.55rem;
    transform: translateX(-50%);
}

.flow__icon {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--gold-300);
    background: var(--surface-raised);
    place-items: center;
}

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

.flow__text {
    margin-top: 0.35rem;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.flow__caption {
    max-width: 62ch;
    margin: 1.5rem auto 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    text-align: center;
}

/* ============================================
   SUMMARY & CALLOUTS - Scannable trust content
   ============================================ */

.tldr,
.callout {
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
}

.tldr {
    padding: clamp(1rem, calc(2vw + 0.5rem), 1.5rem);
    border: 1px solid rgba(233, 186, 88, 0.6);
    box-shadow: inset 4px 0 0 var(--primary);
}

.tldr__title {
    margin-bottom: 0.65rem;
    color: var(--gold-100);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
}

.tldr ul {
    display: grid;
    margin: 0;
    gap: 0.45rem;
    color: var(--muted-foreground);
}

.callout {
    display: grid;
    padding: 1rem;
    border: 1px solid var(--border);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
}

.callout--warn { border-color: rgba(240, 199, 106, 0.68); }
.callout--tip { border-color: rgba(116, 220, 154, 0.62); }
.callout--note { border-color: rgba(116, 185, 255, 0.58); }

.callout__icon {
    color: var(--gold-300);
}

.callout__title {
    margin-bottom: 0.25rem;
    color: var(--foreground);
    font-family: var(--font-display);
    font-weight: 800;
}

.callout__body p:last-child {
    margin-bottom: 0;
}

.checklist {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    list-style: none;
}

.checklist li {
    display: grid;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
}

.checklist__marker {
    color: var(--success);
}

.checklist--warn .checklist__marker {
    color: var(--warning);
}

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

.faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
}

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

details:not(.faq-item) > summary {
    min-height: 3.5rem;
    padding: 0.9rem 1rem;
    color: var(--foreground);
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 800;
}

details:not(.faq-item) > :not(summary) {
    margin-inline: 1rem;
}

details:not(.faq-item) > :last-child {
    margin-bottom: 1rem;
}

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

.faq-item summary {
    position: relative;
    display: flex;
    min-height: 3.75rem;
    padding: 1rem 3.25rem 1rem 1rem;
    align-items: center;
    color: var(--foreground);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
}

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

.faq-item summary:hover {
    background: rgba(233, 186, 88, 0.05);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -3px;
}

.faq-item__chevron {
    position: absolute;
    top: 50%;
    right: 1.15rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-65%) rotate(45deg);
    transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__chevron {
    transform: translateY(-35%) rotate(225deg);
}

.faq-item__body {
    padding: 0 1rem 1.15rem;
    color: var(--muted-foreground);
}

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

@supports selector(details::details-content) {
    .faq-item::details-content {
        block-size: 0;
        opacity: 0;
        overflow: hidden;
        transition: block-size var(--transition-base), content-visibility var(--transition-base) allow-discrete, opacity var(--transition-base);
    }

    .faq-item[open]::details-content {
        block-size: auto;
        opacity: 1;
    }
}

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

.stat {
    display: grid;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    gap: 0.2rem;
}

.stat__value {
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: clamp(2rem, calc(3vw + 1rem), 3.5rem);
    font-weight: 800;
    line-height: 1;
}

.stat__label {
    color: var(--foreground);
    font-weight: 700;
}

.stat__source {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.pullquote {
    position: relative;
    max-width: 54rem;
    margin: var(--space-xl) auto;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.45;
}

.pullquote p {
    margin-bottom: 0.75rem;
}

.pullquote cite {
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: normal;
    font-weight: 500;
}

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

.testimonial-card {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.testimonial-card blockquote {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.testimonial-card cite {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    font-style: normal;
}

/* ============================================
   TABLES - Comparison and condition scanning
   ============================================ */

.table-wrapper {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

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

.data-table caption {
    padding: 1rem;
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    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 {
    border-top: 0;
    background: var(--muted);
    font-family: var(--font-display);
    font-weight: 800;
}

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

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

.data-table .is-recommended > *,
.data-table .is-recommended-col,
.data-table [data-recommended="true"] {
    background: rgba(233, 186, 88, 0.09);
}

.data-table .is-recommended > :first-child,
.data-table .is-recommended-col,
.data-table [data-recommended="true"] {
    box-shadow: inset 3px 0 0 var(--primary);
}

/* ============================================
   TRUST BADGES - Quiet reassurance without hype
   ============================================ */

.trust-row,
.payments-row {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
}

.trust-row__item,
.payment-chip {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--muted-foreground);
    gap: 0.45rem;
    font-size: var(--text-sm);
    font-weight: 700;
}

.trust-row__icon,
.payment-chip svg {
    color: var(--gold-300);
}

/* ============================================
   CTA BAND - Full-width conversion close
   ============================================ */

.cta-band {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(circle at 50% 70%, rgba(233, 186, 88, 0.22), transparent 28rem),
        linear-gradient(180deg, var(--background-deep), #101217);
}

.cta-band::before {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: radial-gradient(ellipse at 50% 100%, rgba(23, 61, 42, 0.48), transparent 65%);
    content: "";
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    padding-block: var(--space-3xl);
    text-align: center;
}

.cta-band h2 {
    max-width: 24ch;
    margin-inline: auto;
}

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

.cta-band__note {
    max-width: 62ch;
    margin: 1rem auto 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

/* ============================================
   FOOTER - Responsible play and verified scope
   ============================================ */

.site-footer {
    border-top: 1px solid var(--border);
    background: #090c11;
}

.footer-top {
    display: grid;
    padding-block: var(--space-2xl);
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
}

.site-brand--footer {
    margin-bottom: 1rem;
}

.footer-note,
.footer-microcopy {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.footer-nav__title {
    margin-bottom: 0.8rem;
    font-size: var(--text-lg);
}

.footer-nav ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 0.6rem;
    list-style: none;
}

.footer-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--foreground);
    font-weight: 700;
}

.footer-legal {
    display: grid;
    padding-block: 1.25rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.footer-legal p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

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

.age-badge span {
    font-size: 0.75em;
}

.footer-bottom {
    display: flex;
    min-height: 4.5rem;
    padding-block: 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    color: var(--subtle-foreground);
    font-size: var(--text-sm);
}

/* ============================================
   SCROLL ENHANCEMENT - Visible without JavaScript
   ============================================ */

.reveal {
    opacity: 1;
    transform: none;
}

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

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

/* ============================================
   TABLET - More space and balanced two-column grids
   ============================================ */

@media (min-width: 48rem) {
    .container,
    .container--narrow {
        width: min(100% - 3rem, var(--container));
    }

    .container--narrow {
        max-width: var(--container-narrow);
    }

    .header-inner {
        width: min(100% - 2rem, var(--container));
        grid-template-columns: 3rem minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

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

    .site-brand__text strong {
        font-size: 1.2rem;
    }

    .site-brand__text em {
        font-size: 0.78rem;
    }

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

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

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

    .flow__step:not(:last-child)::after {
        display: none;
    }

    .hero__art {
        right: 0;
        width: min(36rem, 62vw);
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================
   DESKTOP - Reference-scale navigation and hero split
   ============================================ */

@media (min-width: 64rem) {
    :root {
        --header-height: 5.5rem;
    }

    .page-section--light {
        background: var(--surface-light);
        color: #232731;
    }

    .page-section--light h1,
    .page-section--light h2,
    .page-section--light h3,
    .page-section--light h4 {
        color: #7c8baa;
    }

    .page-section--light a:not(.btn) {
        color: #73500f;
    }

    .page-section--light .section-head__lede,
    .page-section--light .prose,
    .page-section--light p {
        color: #3e4653;
    }

    .page-section--light .card {
        border-color: #d3d7de;
        background: #ffffff;
        color: #2b3039;
        box-shadow: 0 10px 30px rgba(30, 37, 49, 0.08);
    }

    .page-section--light .card:hover {
        border-color: #ac7b24;
    }

    .page-section--light .card__text,
    .page-section--light .card__list {
        color: #424a56;
    }

    .site-header {
        background: rgba(11, 14, 19, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .header-inner {
        display: flex;
        width: min(100% - 3rem, var(--container));
        gap: 2rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-brand {
        flex: 0 0 auto;
    }

    .site-brand__mark {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 2.25rem;
    }

    .site-brand__text strong {
        font-size: 1.35rem;
    }

    .site-brand__text em {
        font-size: 0.9rem;
    }

    .primary-nav {
        position: static;
        display: block;
        max-width: none;
        margin-right: auto;
        overflow: visible;
        padding: 0;
        background: transparent;
    }

    .primary-nav__list {
        display: flex;
        max-width: none;
        margin: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .primary-nav__link {
        min-height: 3rem;
        padding: 0.65rem 0.75rem;
        border: 0;
        white-space: nowrap;
    }

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

    .header-actions {
        gap: 0.65rem;
    }

    .header-actions .btn--sm {
        padding-inline: 1.25rem;
    }

    .hero {
        min-height: 47rem;
    }

    .hero__inner {
        min-height: 47rem;
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
        align-items: center;
    }

    .hero__copy {
        grid-column: 1;
        padding-block: 2rem;
    }

    .hero__art {
        right: -2%;
        width: min(49rem, 58vw);
        max-height: 96%;
    }

    .hero__chip--one { right: 16%; }
    .hero__chip--two { right: 43%; }
    .hero__chip--three { right: 3%; }

    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(2rem, 5vw, 5rem);
    }

    .split--reverse > :first-child {
        order: 2;
    }

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

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

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

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

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

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

    .flow__step:not(:last-child)::after {
        display: block;
        top: 2rem;
        right: -1.25rem;
        bottom: auto;
        left: auto;
        content: "→";
        transform: none;
    }

    .footer-top {
        grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 0.6fr) minmax(0, 1.15fr);
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ============================================
   WIDE DESKTOP - Preserve generous reference margins
   ============================================ */

@media (min-width: 80rem) {
    .header-inner,
    .container {
        width: min(100% - 4rem, var(--container));
    }

    .hero__art {
        right: 0;
    }
}

/* ============================================
   NARROW MOBILE - Keep header controls on canvas
   ============================================ */

@media (max-width: 23.4375rem) {
    .header-inner {
        grid-template-columns: 2.5rem minmax(0, 1fr) auto;
        width: calc(100% - 0.5rem);
        gap: 0.25rem;
    }

    .menu-toggle {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.58rem;
    }

    .site-brand {
        gap: 0.35rem;
    }

    .site-brand__mark {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 1.3rem;
    }

    .site-brand__text strong {
        font-size: 0.78rem;
    }

    .site-brand__text em {
        font-size: 0.58rem;
    }

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

    .hero__art {
        right: 0;
        width: min(21rem, 67vw);
    }
}

/* ============================================
   REDUCED MOTION - No hidden or moving content
   ============================================ */

@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-enhanced .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
