/*
 * DudeSpin Casino Design System
 * Dark neon bowling identity, mobile-first and fixed-theme.
 */

:root {
    color-scheme: dark;

    --background: #10071c;
    --background-deep: #090312;
    --surface: #1a0d2c;
    --surface-raised: #24113a;
    --surface-soft: #2d1744;
    --surface-opaque: #160923;
    --foreground: #f8f5ff;
    --foreground-strong: #fffafd;
    --muted-foreground: #cec3da;
    --subtle-foreground: #b8a9c8;

    --primary: #7d21c7;
    --primary-hover: #8420bd;
    --primary-foreground: #fffafd;
    --secondary: #173d62;
    --secondary-hover: #20527f;
    --secondary-foreground: #ffffff;
    --accent: #ff4dc8;
    --accent-strong: #a71982;
    --accent-soft: #6d235d;
    --cyan: #55d9ff;
    --cyan-deep: #17678a;
    --success: #2fd47b;
    --success-deep: #135b36;
    --warning: #ffc45c;
    --warning-deep: #6c4810;
    --destructive: #b52e55;
    --destructive-foreground: #ffffff;

    --border: #4c3564;
    --border-strong: #795192;
    --border-accent: #d13abb;
    --focus: #75e4ff;
    --transparent: transparent;
    --overlay: rgba(8, 2, 16, 0.76);
    --surface-glass: rgba(31, 15, 50, 0.9);
    --surface-glass-soft: rgba(42, 18, 66, 0.72);
    --glow-pink: rgba(255, 54, 206, 0.3);
    --glow-purple: rgba(130, 37, 220, 0.34);
    --glow-cyan: rgba(56, 209, 255, 0.22);
    --line-glow: rgba(242, 68, 213, 0.48);
    --shadow-color: rgba(4, 0, 10, 0.56);
    --white-soft: rgba(255, 255, 255, 0.08);
    --white-medium: rgba(255, 255, 255, 0.16);
    --trust-green: #007a55;
    --trust-green-dark: #075f43;

    --gradient-page: radial-gradient(circle at 14% 10%, var(--glow-purple), var(--transparent) 30%), radial-gradient(circle at 84% 24%, var(--glow-pink), var(--transparent) 25%), linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
    --gradient-primary: linear-gradient(110deg, var(--primary) 0%, var(--accent-strong) 100%);
    --gradient-neon: linear-gradient(90deg, var(--cyan) 0%, var(--accent) 54%, var(--primary-hover) 100%);
    --gradient-card: linear-gradient(145deg, var(--surface-raised) 0%, var(--surface) 100%);
    --gradient-hero-fade: linear-gradient(90deg, var(--background-deep) 0%, var(--overlay) 38%, var(--transparent) 78%);

    --font-body: "Inter", sans-serif;
    --font-heading: "Barlow Condensed", sans-serif;

    --text-xs: 0.875rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: clamp(1.65rem, calc(3vw + 0.8rem), 2.45rem);
    --text-3xl: clamp(2.15rem, calc(5vw + 0.35rem), 4.15rem);
    --text-4xl: clamp(2.7rem, calc(7vw + 0.25rem), 5.3rem);

    --space-2xs: 0.375rem;
    --space-xs: 0.625rem;
    --space-sm: 0.875rem;
    --space-md: 1.25rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.75rem;
    --space-3xl: 5.5rem;

    --radius-sm: 0.65rem;
    --radius-md: 1rem;
    --radius-lg: 1.4rem;
    --radius-xl: 2rem;
    --radius-pill: 999px;

    --shadow-sm: 0 0.6rem 1.6rem var(--shadow-color);
    --shadow-lg: 0 1.4rem 4rem var(--shadow-color);
    --shadow-neon: 0 0 1.5rem var(--glow-pink), 0 0 3.5rem var(--glow-purple);

    --container: 76rem;
    --container-wide: 88rem;
    --header-height: 4.625rem;
    --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;
    background: var(--background);
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--gradient-page);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button,
a,
input,
textarea,
select,
summary {
    font: inherit;
}

button,
summary {
    -webkit-tap-highlight-color: var(--transparent);
}

input,
textarea,
select {
    max-width: 100%;
}

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

a {
    color: inherit;
}

a[href^="http"],
a[href^="mailto:"],
a[href^="tel:"] {
    overflow-wrap: anywhere;
}

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

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

section {
    overflow: clip;
}

details {
    height: fit-content;
}

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

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

:focus-visible {
    outline: 0.2rem solid var(--focus);
    outline-offset: 0.2rem;
}

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

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

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

/* ============================================
   TYPOGRAPHY - Condensed cinematic headings
   ============================================ */

h1,
h2,
h3,
h4 {
    margin: 0 0 0.55em;
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

h1 {
    font-size: var(--text-4xl);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.018em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin: 0 0 1.15em;
}

small {
    font-size: var(--text-xs);
    line-height: 1.55;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    color: var(--cyan);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 2.4rem;
    height: 0.15rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-neon);
    content: "";
}

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

.prose > :last-child,
.summary-box__content > :last-child,
.callout__content > :last-child {
    margin-bottom: 0;
}

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

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

main {
    display: block;
}

.section {
    position: relative;
    padding: var(--space-2xl) var(--space-md);
}

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

.section--divider::after {
    position: absolute;
    right: var(--space-md);
    bottom: 0;
    left: var(--space-md);
    height: 1px;
    background: linear-gradient(90deg, var(--transparent), var(--line-glow), var(--transparent));
    content: "";
}

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

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

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

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

.content-grid,
.feature-grid,
.stats-grid,
.trust-grid,
.social-proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    align-items: start;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: var(--surface-opaque);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--container-wide));
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 8.6rem;
    color: var(--foreground-strong);
    line-height: 0.82;
    text-decoration: none;
}

.site-brand__name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.site-brand__dude {
    color: var(--cyan);
    text-shadow: 0 0 0.9rem var(--glow-cyan);
}

.site-brand__spin {
    color: var(--accent);
    text-shadow: 0 0 0.9rem var(--glow-pink);
}

.site-brand__casino {
    margin-top: 0.42rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.34em;
    line-height: 1;
    text-transform: uppercase;
}

.menu-toggle {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    color: var(--foreground-strong);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.45rem;
    height: 0.13rem;
    border-radius: var(--radius-pill);
    background: currentColor;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.menu-toggle span + span {
    margin-top: 0.3rem;
}

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

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

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

.primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: calc(100vw - 0px);
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
    overflow-y: auto;
    background: var(--background);
}

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

.primary-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.7rem var(--space-md);
    border: 1px solid var(--transparent);
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
    border-color: var(--border-accent);
    background: var(--surface-raised);
    color: var(--foreground-strong);
}

.primary-nav__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-sm);
    margin-top: auto;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border: 1px solid var(--transparent);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
    transform: translateY(-0.12rem);
}

.button--primary {
    border-color: var(--accent-strong);
    background: var(--gradient-primary);
    box-shadow: 0 0.7rem 2rem var(--glow-purple);
    color: var(--primary-foreground);
}

.button--primary:hover {
    background: linear-gradient(110deg, var(--primary-hover), var(--accent-strong));
    box-shadow: var(--shadow-neon);
}

.button--outline {
    border-color: var(--border-accent);
    background: var(--surface-raised);
    color: var(--foreground-strong);
}

.button--outline:hover {
    border-color: var(--cyan);
    background: var(--secondary);
}

.button--large {
    min-height: 3.5rem;
    padding-inline: clamp(1.35rem, calc(3vw + 0.5rem), 2.5rem);
    font-size: clamp(1.3rem, calc(2vw + 0.75rem), 1.65rem);
}

.button--compact {
    min-height: 2.85rem;
    padding-inline: 1rem;
    font-size: 1.12rem;
}

/* ============================================
   HERO - Full environmental scene with content overlay
   ============================================ */

.hero {
    position: relative;
    isolation: isolate;
    background: var(--background-deep);
}

.hero__ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 72% 30%, var(--glow-pink), var(--transparent) 34%), radial-gradient(circle at 42% 84%, var(--glow-cyan), var(--transparent) 27%);
}

.hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, var(--container-wide));
    margin-inline: auto;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    text-align: center;
}

.hero__description {
    max-width: 60ch;
    margin: 0 auto var(--space-lg);
    color: var(--muted-foreground);
    font-size: var(--text-lg);
}

.hero__media {
    position: relative;
    order: -1;
    width: 100%;
    min-height: 19rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--glow-purple), var(--background-deep) 76%);
}

.hero__media img {
    width: 100%;
    height: 100%;
}

.hero__media--scene img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
}

.hero__media--foreground {
    display: grid;
    place-items: end center;
}

.hero__media--foreground img,
.hero__media [data-visual-role="hero-foreground"] {
    max-height: 27rem;
    object-fit: contain;
    object-position: center bottom;
}

/* ============================================
   CARDS - Neon content containers and grids
   ============================================ */

.feature-card,
.stat-highlight,
.milestone-card,
.review-display,
.testimonial-card,
.summary-box,
.callout {
    min-width: 0;
}

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

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    position: absolute;
    top: 0;
    right: 16%;
    left: 16%;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 1.1rem var(--glow-pink);
    content: "";
}

.feature-card--cyan::before {
    background: var(--cyan);
    box-shadow: 0 0 1.1rem var(--glow-cyan);
}

.feature-card--purple::before {
    background: var(--primary-hover);
    box-shadow: 0 0 1.1rem var(--glow-purple);
}

.feature-card__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--accent);
    box-shadow: 0 0 1.4rem var(--glow-pink);
}

.feature-card__icon svg {
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
}

.feature-card h3 {
    font-size: clamp(1.45rem, calc(2vw + 0.6rem), 2rem);
}

.feature-card p {
    color: var(--muted-foreground);
}

.feature-card__link {
    margin-top: auto;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

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

.stat-highlight {
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    text-align: center;
}

.stat-highlight__number {
    display: block;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, calc(5vw + 0.5rem), 4.5rem);
    line-height: 0.95;
    text-shadow: 0 0 1.3rem var(--glow-pink);
}

.stat-highlight--cyan .stat-highlight__number {
    color: var(--cyan);
    text-shadow: 0 0 1.3rem var(--glow-cyan);
}

.stat-highlight__label,
.stat-highlight__source {
    display: block;
    margin-top: var(--space-xs);
}

.stat-highlight__label {
    color: var(--foreground-strong);
    font-weight: 700;
}

.stat-highlight__source {
    color: var(--subtle-foreground);
}

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

.summary-box {
    position: relative;
    display: grid;
    grid-template-columns: 0.35rem minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-glass), var(--surface-glass-soft));
    box-shadow: var(--shadow-sm);
}

.summary-box__marker {
    border-radius: var(--radius-pill);
    background: var(--gradient-neon);
    box-shadow: 0 0 1.2rem var(--glow-pink);
}

.summary-box h2 {
    font-size: var(--text-2xl);
}

.summary-box__content {
    color: var(--muted-foreground);
}

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

.check-list li {
    position: relative;
    padding-left: 1.8rem;
}

.check-list li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 0.9rem;
    height: 0.9rem;
    border: 0.15rem solid var(--success);
    border-radius: 50%;
    content: "";
}

.callout {
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-accent);
    border-left: 0.3rem solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    color: var(--muted-foreground);
}

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

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

.callout__title {
    margin-bottom: var(--space-xs);
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
}

/* ============================================
   EDITORIAL MEDIA - Framed non-hero imagery
   ============================================ */

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

.media-content__copy .button {
    margin-top: var(--space-md);
}

.media-frame {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg), 0 0 2rem var(--glow-purple);
}

.media-frame::after {
    position: absolute;
    inset: 0;
    border: 1px solid var(--white-medium);
    border-radius: inherit;
    pointer-events: none;
    content: "";
}

.media-frame img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ============================================
   MILESTONES & BADGES - Offers, steps and methods
   ============================================ */

.milestone-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: milestone;
}

.milestone-card {
    position: relative;
    padding: var(--space-lg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--gradient-card);
}

.milestone-card__step {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: var(--space-md);
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
}

.milestone-card__value {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
}

.milestone-card p {
    margin: 0;
    color: var(--muted-foreground);
}

.badge-row,
.payment-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
    list-style: none;
}

.brand-badge,
.payment-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--foreground-strong);
    color: var(--background-deep);
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

/* ============================================
   TABLES - Scroll-safe factual comparisons
   ============================================ */

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

.comparison-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.comparison-table table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.comparison-table caption {
    padding: var(--space-md);
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    text-align: left;
}

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

.comparison-table thead th {
    background: var(--surface-raised);
    color: var(--foreground-strong);
}

.comparison-table tbody th {
    color: var(--foreground-strong);
}

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

.comparison-table .is-recommended {
    background: var(--accent-soft);
    color: var(--foreground-strong);
}

/* ============================================
   FAQ DISCLOSURES - Native accessible accordion
   ============================================ */

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

.faq-item {
    align-self: start;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    padding: var(--space-md) 3.5rem var(--space-md) var(--space-md);
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, calc(2vw + 0.65rem), 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    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);
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    color: var(--accent);
    content: "+";
    transform: translateY(-50%);
    transition: transform var(--transition-base), color var(--transition-base);
}

.faq-item[open] summary::after {
    color: var(--cyan);
    transform: translateY(-50%) rotate(45deg);
}

.faq-item__answer {
    padding: 0 var(--space-md) var(--space-md);
    animation: disclosure-in var(--transition-base);
}

@keyframes disclosure-in {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SOCIAL PROOF & QUOTES - Evidence-led displays
   ============================================ */

.review-display,
.testimonial-card {
    padding: var(--space-lg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);
}

.review-display__source {
    margin-bottom: var(--space-sm);
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 750;
}

.review-display__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-star {
    position: relative;
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    background: var(--surface-soft);
    color: var(--subtle-foreground);
}

.rating-star svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.rating-star.is-full {
    background: var(--trust-green);
    color: var(--foreground-strong);
}

.rating-star.is-partial {
    background: linear-gradient(90deg, var(--trust-green) 0%, var(--trust-green) var(--partial-rating), var(--surface-soft) var(--partial-rating), var(--surface-soft) 100%);
    color: var(--foreground-strong);
}

.review-display__rating strong {
    font-size: var(--text-xl);
}

.review-display__note,
.testimonial-card p {
    color: var(--muted-foreground);
}

.testimonial-card cite {
    color: var(--foreground-strong);
    font-style: normal;
    font-weight: 700;
}

.pull-quote {
    position: relative;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 0.7rem);
    border-left: 0.3rem solid var(--accent);
    background: linear-gradient(90deg, var(--surface-raised), var(--transparent));
}

.pull-quote blockquote {
    margin: 0;
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.2;
}

.pull-quote figcaption {
    margin-top: var(--space-md);
    color: var(--muted-foreground);
}

/* ============================================
   TRUST ROW - Licencing, security and age signals
   ============================================ */

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

.trust-badge {
    min-width: 0;
    padding: var(--space-md);
    text-align: center;
}

.trust-badge__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-sm);
    border: 0.15rem solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    box-shadow: 0 0 1.6rem var(--glow-pink);
}

.trust-badge__icon svg {
    width: 2rem;
    height: 2rem;
    stroke: currentColor;
}

.trust-badge strong {
    display: block;
    color: var(--foreground-strong);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
}

.trust-badge span {
    display: block;
    margin-top: var(--space-xs);
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

/* ============================================
   CTA BAND - Closing cinematic conversion panel
   ============================================ */

.cta-band {
    position: relative;
    display: grid;
    min-height: 30rem;
    background: radial-gradient(circle at 70% 44%, var(--glow-pink), var(--transparent) 36%), var(--background-deep);
}

.cta-band__media {
    position: absolute;
    inset: 0;
}

.cta-band__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay), var(--transparent) 36%, var(--overlay)), linear-gradient(90deg, var(--background-deep), var(--transparent) 72%);
    content: "";
}

.cta-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-band__content {
    position: relative;
    z-index: 1;
    align-self: end;
    width: min(100%, var(--container));
    margin-inline: auto;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

.cta-band__content p {
    max-width: 58ch;
    margin: 0 auto var(--space-lg);
    color: var(--muted-foreground);
}

.cta-band__content small {
    display: block;
    max-width: 58ch;
    margin: var(--space-md) auto 0;
    color: var(--muted-foreground);
}

/* ============================================
   FOOTER - Neutral internal links and notices
   ============================================ */

.site-footer {
    position: relative;
    overflow: clip;
    border-top: 1px solid var(--border-strong);
    background: var(--surface-opaque);
}

.site-footer__glow {
    position: absolute;
    top: -8rem;
    left: 50%;
    width: 28rem;
    height: 14rem;
    border-radius: 50%;
    background: var(--glow-purple);
    filter: blur(4rem);
    transform: translateX(-50%);
    pointer-events: none;
}

.site-footer__inner {
    position: relative;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
    text-align: center;
}

.site-footer__title {
    font-size: var(--text-2xl);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs) var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

.footer-nav a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.footer-nav a:hover {
    color: var(--cyan);
}

.site-footer .payment-strip {
    margin-bottom: var(--space-lg);
}

.site-footer__notices {
    display: grid;
    gap: var(--space-sm);
    max-width: 62rem;
    margin-inline: auto;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.site-footer__notices p {
    margin: 0;
}

.age-badge {
    display: inline-grid;
    place-items: center;
    min-width: 2.7rem;
    min-height: 2.7rem;
    margin-right: var(--space-xs);
    border: 0.16rem solid var(--destructive);
    border-radius: 50%;
    color: var(--foreground-strong);
    font-weight: 800;
}

.site-footer__copyright {
    margin: var(--space-lg) 0 0;
    color: var(--subtle-foreground);
    font-size: var(--text-xs);
}

/* ============================================
   SCROLL REVEAL - Optional one-way enhancement
   ============================================ */

html.reveal-enhanced [data-reveal].is-pending {
    transform: translateY(0.75rem);
}

html.reveal-enhanced [data-reveal].is-visible {
    transform: translateY(0);
    transition: transform 560ms ease;
}

/* ============================================
   TABLET - More breathing room and split layouts
   ============================================ */

@media (min-width: 48rem) {
    .section {
        padding: var(--space-3xl) var(--space-lg);
    }

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

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

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

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

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

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

    .media-content--left .media-frame {
        order: -1;
    }

    .cta-band__content {
        padding-inline: var(--space-lg);
    }
}

/* ============================================
   DESKTOP - Reference-matched hero and page density
   ============================================ */

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

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

    .site-header__inner {
        gap: var(--space-lg);
        padding-inline: var(--space-xl);
    }

    .site-brand {
        min-width: 10rem;
    }

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

    .menu-toggle {
        display: none;
    }

    .primary-nav,
    .primary-nav.is-open {
        position: static;
        display: flex;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: var(--space-md);
        max-width: none;
        padding: 0;
        overflow: visible;
        background: var(--transparent);
    }

    .primary-nav__list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-2xs);
    }

    .primary-nav__link {
        min-height: 2.8rem;
        padding-inline: 0.85rem;
        font-size: 1.2rem;
    }

    .primary-nav__actions {
        display: flex;
        grid-template-columns: none;
        gap: var(--space-xs);
        margin-top: 0;
    }

    .hero {
        min-height: 43rem;
    }

    .hero__inner {
        min-height: 43rem;
        padding-inline: var(--space-xl);
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: 55%;
        min-height: 43rem;
        padding: var(--space-2xl) 0;
        text-align: left;
    }

    .hero__content h1 {
        max-width: 12.5ch;
    }

    .hero__description {
        max-width: 54ch;
        margin-inline: 0;
    }

    .hero__media {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        order: 0;
        width: 72%;
        min-height: 0;
        background: var(--transparent);
    }

    .hero__media::after {
        position: absolute;
        inset: 0;
        background: var(--gradient-hero-fade);
        content: "";
    }

    .hero__media--scene img {
        object-position: center;
    }

    .hero__media--foreground {
        justify-items: end;
        padding-right: 3%;
    }

    .hero__media--foreground img,
    .hero__media [data-visual-role="hero-foreground"] {
        width: auto;
        max-width: 72%;
        max-height: 100%;
    }

    .feature-card,
    .stat-highlight,
    .review-display,
    .testimonial-card {
        padding: var(--space-lg);
    }

    .cta-band {
        min-height: 34rem;
    }

    .cta-band__content {
        align-self: center;
        padding-inline: var(--space-xl);
        text-align: left;
    }

    .cta-band__content h2,
    .cta-band__content p,
    .cta-band__content small {
        max-width: 36rem;
        margin-inline: 0;
    }
}

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

@media (min-width: 80rem) {
    .section {
        padding-inline: var(--space-xl);
    }

    .hero__content h1 {
        font-size: 5rem;
    }
}

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

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

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

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