/*
 * DudeSpin Casino Design System
 * Fixed dark neon-bowling theme with accessible contrast and mobile-first layouts.
 */

:root {
    color-scheme: dark;

    --background: #0b0712;
    --background-soft: #110a1b;
    --surface: #171020;
    --surface-raised: #21142f;
    --surface-bright: #2a173d;
    --card: #191024;
    --foreground: #f8f3fc;
    --foreground-strong: #ffffff;
    --muted: #2a2132;
    --muted-foreground: #c9bfd2;
    --subtle-foreground: #ada1b8;

    --primary: #b9146c;
    --primary-hover: #d21b7c;
    --primary-deep: #7511ad;
    --primary-foreground: #ffffff;
    --secondary: #6430bf;
    --secondary-hover: #7742d2;
    --secondary-foreground: #ffffff;
    --accent: #59e7ff;
    --accent-soft: #163d4a;
    --accent-foreground: #071015;
    --destructive: #b91c1c;
    --destructive-foreground: #ffffff;
    --warning: #986600;
    --warning-soft: #36280b;
    --warning-foreground: #fff5dc;
    --success: #0e8350;
    --success-soft: #10372a;
    --success-foreground: #eafff5;

    --border: #463650;
    --border-strong: #755083;
    --focus: #7defff;
    --link: #7defff;
    --link-hover: #c2f8ff;

    --pink-glow: rgba(255, 50, 170, 0.32);
    --purple-glow: rgba(139, 67, 255, 0.28);
    --cyan-glow: rgba(89, 231, 255, 0.22);
    --shadow-color: rgba(0, 0, 0, 0.42);
    --overlay: rgba(11, 7, 18, 0.82);
    --overlay-strong: rgba(11, 7, 18, 0.96);
    --surface-glass: rgba(30, 18, 43, 0.92);
    --white-soft: rgba(255, 255, 255, 0.08);
    --transparent: transparent;

    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 62%, var(--secondary) 100%);
    --gradient-surface: linear-gradient(145deg, var(--surface-raised) 0%, var(--surface) 100%);
    --gradient-hero: radial-gradient(circle at 78% 26%, var(--pink-glow), var(--transparent) 30%), radial-gradient(circle at 18% 70%, var(--purple-glow), var(--transparent) 34%), linear-gradient(180deg, var(--background-soft), var(--background));
    --gradient-strike: linear-gradient(90deg, var(--transparent), var(--pink-glow), var(--cyan-glow), var(--transparent));

    --font-body: "Inter", sans-serif;
    --font-display: "Space Grotesk", 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.55rem, calc(2vw + 1rem), 2.25rem);
    --text-3xl: clamp(2rem, calc(4vw + 0.8rem), 3.65rem);
    --text-hero: clamp(2.45rem, calc(6vw + 0.5rem), 5.25rem);

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

    --radius-sm: 0.625rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 999px;

    --shadow-sm: 0 10px 28px var(--shadow-color);
    --shadow-lg: 0 24px 70px var(--shadow-color), 0 0 42px var(--purple-glow);
    --header-height: 4.5rem;
    --content-width: 74rem;
    --reading-width: 46rem;
    --transition-fast: 160ms ease;
    --transition-base: 260ms ease;
}

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

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

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

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: clip;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

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-"] {
    max-width: 100%;
}

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

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

details {
    height: fit-content;
}

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

section {
    overflow: clip;
}

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

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

button {
    color: inherit;
}

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

/* ============================================
   TYPOGRAPHY - Editorial hierarchy and readable prose
   ============================================ */

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

h1 {
    max-width: 16ch;
    font-size: var(--text-hero);
}

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

h3 {
    font-size: var(--text-xl);
    letter-spacing: -0.02em;
}

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

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

p:last-child,
ul:last-child,
ol:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0 0 var(--space-lg);
    padding-left: 1.25rem;
}

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

small,
figcaption,
cite {
    font-size: var(--text-xs);
}

a {
    color: var(--link);
    text-decoration-color: currentColor;
    text-underline-offset: 0.18em;
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

a:hover {
    color: var(--link-hover);
}

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

.eyebrow,
.tag,
.feature-card__meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.8rem;
    height: 0.125rem;
    background: var(--gradient-brand);
    border-radius: var(--radius-pill);
    content: "";
}

.lead {
    max-width: 64ch;
    color: var(--muted-foreground);
    font-size: var(--text-lg);
    line-height: 1.75;
}

.microcopy {
    max-width: 58ch;
    margin: var(--space-sm) 0 0;
    color: var(--muted-foreground);
    font-size: var(--text-xs);
    line-height: 1.55;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
}

/* ============================================
   ACCESSIBILITY - Focus, skip link and reduced motion
   ============================================ */

.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;
    z-index: 2000;
    top: var(--space-sm);
    left: var(--space-sm);
    min-height: 2.75rem;
    padding: var(--space-sm) var(--space-md);
    transform: translateY(-180%);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-foreground);
    font-weight: 700;
    text-decoration: none;
}

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

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

/* ============================================
   LAYOUT PRIMITIVES - Shared shells and section rhythm
   ============================================ */

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

.reading-width {
    width: min(100%, var(--reading-width));
}

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

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

.content-section--tinted {
    background: var(--background-soft);
}

.content-section--bordered {
    border-block: 1px solid var(--border);
}

.section-header {
    width: min(100%, 48rem);
    margin-bottom: var(--space-xl);
}

.section-header p {
    color: var(--muted-foreground);
    font-size: var(--text-lg);
}

.prose {
    width: min(100%, var(--reading-width));
}

.prose > p,
.prose > ul,
.prose > ol {
    max-width: 72ch;
}

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

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

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

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

/* ============================================
   HEADER & NAVIGATION - Fixed shell and opaque mobile drawer
   ============================================ */

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

.site-header__inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

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

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

.site-brand__mark {
    position: relative;
    display: inline-grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 1.25rem var(--pink-glow);
}

.site-brand__ball {
    position: absolute;
    right: 0.25rem;
    bottom: 0.28rem;
    width: 1.2rem;
    height: 1.2rem;
    border: 0.125rem solid var(--accent);
    border-radius: 50%;
    background: var(--surface-bright);
}

.site-brand__ball::before,
.site-brand__ball::after {
    position: absolute;
    width: 0.16rem;
    height: 0.16rem;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.site-brand__ball::before {
    top: 0.22rem;
    left: 0.34rem;
}

.site-brand__ball::after {
    top: 0.42rem;
    left: 0.18rem;
}

.site-brand__pin {
    position: absolute;
    top: 0.32rem;
    left: 0.52rem;
    width: 0.72rem;
    height: 1.72rem;
    transform: rotate(-12deg);
    border-radius: 55% 55% 42% 42%;
    background: var(--foreground-strong);
}

.site-brand__pin::after {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    height: 0.18rem;
    background: var(--primary);
    content: "";
}

.site-brand__text {
    display: grid;
    line-height: 1;
}

.site-brand__text strong {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.site-brand__text small {
    margin-top: 0.2rem;
    color: var(--muted-foreground);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.primary-nav {
    display: none;
}

.primary-nav.is-open {
    position: fixed;
    z-index: 999;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    max-width: 100vw;
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
    overflow-y: auto;
    background: var(--background);
}

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

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

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

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-xs);
}

.header-action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding-inline: var(--space-sm);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
}

.header-action--login {
    color: var(--foreground-strong);
}

.header-action--login:hover {
    background: var(--surface-raised);
    color: var(--foreground-strong);
}

.header-action--primary {
    display: none;
    background: var(--gradient-brand);
    color: var(--primary-foreground);
    box-shadow: 0 0 1.25rem var(--pink-glow);
}

.header-action--primary:hover {
    color: var(--primary-foreground);
    transform: translateY(-0.125rem);
}

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

.menu-toggle span {
    width: 1.2rem;
    height: 0.125rem;
    border-radius: var(--radius-pill);
    background: var(--foreground-strong);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(0.405rem) 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.405rem) rotate(-45deg);
}

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

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--transparent);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: var(--gradient-brand);
    color: var(--primary-foreground);
    box-shadow: 0 0.75rem 2.5rem var(--pink-glow);
}

.button--primary:hover {
    color: var(--primary-foreground);
    transform: translateY(-0.125rem);
    box-shadow: 0 1rem 3rem var(--purple-glow);
}

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

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

/* ============================================
   HERO - Integrated mascot art over ambient bowling glow
   ============================================ */

.hero-section {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--header-height));
    background: var(--gradient-hero);
}

.hero-section::before {
    position: absolute;
    z-index: -1;
    right: -10%;
    bottom: 8%;
    left: -10%;
    height: 0.125rem;
    transform: rotate(-7deg);
    background: var(--gradient-strike);
    box-shadow: 0 0 2rem var(--pink-glow);
    content: "";
}

.hero-section::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    background: repeating-linear-gradient(90deg, var(--transparent) 0, var(--transparent) 9%, var(--white-soft) 9.15%, var(--transparent) 9.4%);
    mask-image: linear-gradient(to bottom, var(--transparent), var(--foreground-strong));
    content: "";
}

.hero-section__grid {
    display: grid;
    min-height: calc(100svh - var(--header-height));
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-block: var(--space-xl) var(--space-2xl);
}

.hero-section__content {
    position: relative;
    z-index: 2;
    max-width: 43rem;
}

.hero-section__intro {
    max-width: 66ch;
    color: var(--muted-foreground);
    font-size: var(--text-lg);
}

.hero-section__actions {
    display: flex;
    max-width: 34rem;
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--space-lg);
}

.hero-section__visual {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 35rem);
    min-height: 21rem;
    place-items: end center;
    justify-self: center;
    margin-top: calc(var(--space-lg) * -1);
}

.hero-section__visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 34rem;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 1.5rem 2rem var(--shadow-color)) drop-shadow(0 0 1.75rem var(--pink-glow));
}

.hero-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    box-shadow: 0 0 1.5rem var(--purple-glow), inset 0 0 1.5rem var(--cyan-glow);
}

.hero-orbit--one {
    width: min(78vw, 24rem);
    aspect-ratio: 1;
    transform: rotate(18deg) scaleY(0.45);
}

.hero-orbit--two {
    width: min(62vw, 18rem);
    aspect-ratio: 1;
    transform: rotate(-22deg) scaleY(0.38);
    border-color: var(--accent);
}

/* ============================================
   CARDS - Reusable content containers
   ============================================ */

.feature-card,
.media-card,
.proof-card,
.card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--gradient-surface);
    box-shadow: var(--shadow-sm);
}

.feature-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: var(--space-lg);
}

.feature-card::before {
    width: 2.5rem;
    height: 0.1875rem;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    content: "";
}

.feature-card__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: var(--space-md);
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-bright);
    color: var(--accent);
}

.feature-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card__description,
.media-card__body > div,
.proof-card blockquote {
    color: var(--muted-foreground);
}

.media-card {
    overflow: hidden;
}

.media-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface-bright);
}

.media-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.media-card:hover .media-card__image img {
    transform: scale(1.025);
}

.media-card__body {
    display: flex;
    min-height: 15rem;
    flex-direction: column;
    padding: var(--space-lg);
}

/* ============================================
   SUMMARY & CALLOUTS - Key takeaways, notes and warnings
   ============================================ */

.summary-box {
    position: relative;
    width: min(100%, 58rem);
    padding: var(--space-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--surface-bright), var(--surface));
    box-shadow: 0 0 2.5rem var(--purple-glow);
}

.summary-box::after {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 8rem;
    height: 8rem;
    border: 1.5rem solid var(--pink-glow);
    border-radius: 50%;
    content: "";
}

.summary-box__header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-box__header h2 {
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
}

.summary-box__signal {
    width: 0.75rem;
    height: 0.75rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 1rem var(--cyan-glow);
}

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

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

.check-list li::before {
    position: absolute;
    top: 0.55rem;
    left: 0.15rem;
    width: 0.75rem;
    height: 0.42rem;
    transform: rotate(-45deg);
    border-bottom: 0.125rem solid var(--accent);
    border-left: 0.125rem solid var(--accent);
    content: "";
}

.callout {
    width: min(100%, var(--reading-width));
    padding: var(--space-lg);
    border: 1px solid var(--border-strong);
    border-left: 0.25rem solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
}

.callout h3 {
    margin-bottom: var(--space-xs);
}

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

.callout--warning {
    border-color: var(--warning);
    background: var(--warning-soft);
    color: var(--warning-foreground);
}

.callout--warning .callout__text,
.callout--warning h3 {
    color: var(--warning-foreground);
}

.callout--success {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success-foreground);
}

.callout--success .callout__text,
.callout--success h3 {
    color: var(--success-foreground);
}

.callout--danger {
    border-color: var(--destructive);
}

/* ============================================
   STATS & QUOTES - Evidence-aware visual breaks
   ============================================ */

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

.stat-highlight {
    min-width: 0;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.stat-highlight__number {
    display: block;
    margin-bottom: var(--space-xs);
    background: var(--gradient-brand);
    background-clip: text;
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-size: clamp(2rem, calc(4vw + 1rem), 4rem);
    line-height: 1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--transparent);
}

.stat-highlight__label {
    display: block;
    color: var(--foreground);
    font-weight: 600;
}

.stat-highlight cite {
    display: block;
    margin-top: var(--space-sm);
    color: var(--muted-foreground);
    font-style: normal;
}

.pull-quote {
    position: relative;
    width: min(100%, 52rem);
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) var(--space-lg) var(--space-xl) calc(var(--space-lg) + 0.5rem);
    border-left: 0.25rem solid var(--primary);
    background: var(--background-soft);
}

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

.pull-quote p {
    margin: 0;
    padding-left: var(--space-lg);
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, calc(2vw + 0.75rem), 2.25rem);
    font-weight: 600;
    line-height: 1.4;
}

.pull-quote footer {
    margin-top: var(--space-md);
    padding-left: var(--space-lg);
    color: var(--muted-foreground);
}

/* ============================================
   FIGURES - Framed editorial and explanatory media
   ============================================ */

.content-figure {
    width: min(100%, 60rem);
    margin: var(--space-xl) 0;
}

.content-figure img {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.content-figure figcaption {
    margin-top: var(--space-sm);
    color: var(--muted-foreground);
    line-height: 1.55;
}

.content-figure--diagram img {
    padding: var(--space-md);
    background: var(--surface-raised);
}

/* ============================================
   PROCESS STEPS - Numbered onboarding and transaction flow
   ============================================ */

.process-steps {
    display: grid;
    width: min(100%, 56rem);
    gap: var(--space-md);
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.process-step {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.process-step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    bottom: calc(var(--space-md) * -1 - 1px);
    left: 2.95rem;
    width: 1px;
    height: var(--space-md);
    background: var(--border-strong);
    content: "";
}

.process-step__number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: var(--space-xs);
}

.process-step div div {
    color: var(--muted-foreground);
}

/* ============================================
   TABLES - Scrollable comparisons with highlighted columns
   ============================================ */

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

.comparison-table {
    width: 100%;
    min-width: 46rem;
    border-collapse: collapse;
    color: var(--foreground);
    font-size: var(--text-sm);
}

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

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

.comparison-table tr > *:last-child {
    border-right: 0;
}

.comparison-table thead th {
    background: var(--surface-bright);
    color: var(--foreground-strong);
    font-family: var(--font-display);
}

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

.comparison-table tbody tr:hover > * {
    background: var(--background-soft);
}

.comparison-table .is-highlighted {
    background: var(--accent-soft);
    color: var(--foreground-strong);
    box-shadow: inset 0.1875rem 0 var(--accent);
}

/* ============================================
   FAQ ACCORDION - Native details with clear state indicator
   ============================================ */

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

.faq-item {
    align-self: start;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

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

.faq-item summary {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--foreground-strong);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

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

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item__icon {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
}

.faq-item__icon::before,
.faq-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.625rem;
    height: 0.125rem;
    transform: translate(-50%, -50%);
    border-radius: var(--radius-pill);
    background: var(--accent);
    content: "";
    transition: transform var(--transition-base);
}

.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 var(--space-lg) var(--space-lg);
    color: var(--muted-foreground);
    animation: disclosure-in var(--transition-base) both;
}

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

/* ============================================
   TRUST BADGES - Compact evidence and process signals
   ============================================ */

.trust-badges {
    padding: var(--space-lg);
    border-block: 1px solid var(--border);
}

.trust-badges__title {
    margin-bottom: var(--space-md);
    color: var(--muted-foreground);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.trust-badges__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
}

.trust-badge {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    filter: saturate(0.8);
}

.trust-badge__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--muted);
    color: var(--accent);
}

.trust-badge__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.trust-badge strong,
.trust-badge small {
    display: block;
}

.trust-badge small {
    margin-top: 0.1rem;
    color: var(--muted-foreground);
}

/* ============================================
   SOCIAL PROOF - Neutral, source-ready experience cards
   ============================================ */

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

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

.proof-card blockquote {
    margin: 0;
}

.proof-card blockquote p {
    color: var(--foreground);
    font-size: var(--text-lg);
}

.proof-card footer {
    display: grid;
    gap: var(--space-2xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.proof-card footer span {
    color: var(--muted-foreground);
    font-size: var(--text-xs);
}

/* ============================================
   TAGS - Compact category and status labels
   ============================================ */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li,
.tag {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-raised);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   CTA BAND - Full-width conversion moment with caveat space
   ============================================ */

.cta-section {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-3xl);
    border-block: 1px solid var(--border-strong);
    background: radial-gradient(circle at 50% 0%, var(--pink-glow), var(--transparent) 48%), var(--surface-raised);
}

.cta-section::before,
.cta-section::after {
    position: absolute;
    z-index: -1;
    width: 14rem;
    height: 14rem;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    content: "";
}

.cta-section::before {
    top: -8rem;
    left: -6rem;
}

.cta-section::after {
    right: -7rem;
    bottom: -9rem;
    box-shadow: 0 0 3rem var(--cyan-glow);
}

.cta-section__inner {
    display: flex;
    width: min(100% - 2rem, 48rem);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-section__inner h2 {
    max-width: 20ch;
}

.cta-section__text {
    max-width: 62ch;
    margin-bottom: var(--space-lg);
    color: var(--muted-foreground);
}

.cta-section__pin {
    position: relative;
    width: 1.75rem;
    height: 3.6rem;
    margin-bottom: var(--space-md);
    transform: rotate(8deg);
    border-radius: 55% 55% 42% 42%;
    background: var(--foreground-strong);
    box-shadow: 0 0 1.5rem var(--pink-glow);
}

.cta-section__pin::after {
    position: absolute;
    top: 1.1rem;
    left: 0;
    width: 100%;
    height: 0.35rem;
    background: var(--primary);
    content: "";
}

/* ============================================
   FOOTER - Internal navigation and visible trust caveats
   ============================================ */

.site-footer {
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
    background: var(--background-soft);
}

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

.site-brand--footer {
    margin-bottom: var(--space-md);
}

.site-footer__brand p,
.site-footer__trust p {
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

.footer-nav h2,
.site-footer__trust h2 {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    letter-spacing: 0;
}

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

.footer-nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--muted-foreground);
    text-decoration: underline;
}

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

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.footer-badges span,
.payment-strip > span {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--foreground);
    font-size: var(--text-xs);
    font-weight: 700;
}

.payment-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
    padding-block: var(--space-lg);
    border-block: 1px solid var(--border);
}

.payment-strip small {
    width: 100%;
    color: var(--muted-foreground);
}

.site-footer__bottom {
    display: grid;
    gap: var(--space-xs);
    padding-block: var(--space-lg);
    color: var(--muted-foreground);
    font-size: var(--text-xs);
}

.site-footer__bottom p {
    margin: 0;
}

/* ============================================
   PROGRESSIVE REVEAL - Added only by JavaScript below fold
   ============================================ */

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

.reveal-enhanced [data-reveal].reveal-pending.reveal-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   TABLET - Wider grids and visible registration action
   ============================================ */

@media (min-width: 48rem) {
    .shell,
    .article-shell {
        width: min(100% - 3rem, var(--content-width));
    }

    .content-section,
    .article-shell {
        padding-block: var(--space-3xl);
    }

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

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

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

    .primary-nav.is-open {
        position: static;
        display: block;
        padding: 0;
        overflow: visible;
        background: var(--transparent);
    }

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

    .primary-nav a {
        min-height: 2.75rem;
        padding-inline: var(--space-sm);
        font-size: var(--text-sm);
    }

    .header-action--primary {
        display: inline-flex;
    }

    .menu-toggle {
        display: none;
    }

    .hero-section__grid {
        padding-block: var(--space-2xl);
    }

    .hero-section__visual {
        min-height: 28rem;
    }

    .hero-section__visual img {
        max-height: 40rem;
    }

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

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

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

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

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

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

    .site-footer__bottom p:last-child {
        text-align: right;
    }
}

/* ============================================
   DESKTOP - Split heroes and balanced three-column grids
   ============================================ */

@media (min-width: 64rem) {
    .site-header__inner {
        gap: var(--space-lg);
    }

    .primary-nav a {
        padding-inline: var(--space-md);
    }

    .hero-section__grid {
        grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.96fr);
        gap: var(--space-lg);
    }

    .hero-section__visual {
        width: 100%;
        min-height: 38rem;
        margin: 0;
        justify-self: end;
    }

    .hero-section__visual img {
        max-height: 46rem;
        object-position: center bottom;
    }

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

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

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

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

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

    .site-footer__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(12rem, 0.65fr) minmax(0, 1fr);
    }

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

/* ============================================
   LARGE DESKTOP - Controlled maximum spacing
   ============================================ */

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

    .hero-section__grid {
        gap: var(--space-2xl);
    }
}

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

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

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

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