/*
 * CSS STYLES
 * Canonical design tokens live in this file.
 */

:root {
    --background: #120f0c;
    --foreground: #f4e7c2;
    --card: #211c18;
    --card-foreground: #f4e7c2;
    --popover: #1b1714;
    --popover-foreground: #f4e7c2;
    --primary: #d4af37;
    --primary-foreground: #1a1408;
    --secondary: #312b25;
    --secondary-foreground: #f4e7c2;
    --muted: #5f584f;
    --muted-foreground: #d8ccb0;
    --accent: #8f2431;
    --accent-foreground: #fff4ef;
    --destructive: #d14343;
    --destructive-foreground: #000000;
    --border: #5a5248;
    --input: #191511;
    --ring: #d4af37;

    --font-display: "Cinzel Decorative", serif;
    --font-body: "Marcellus", serif;

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

    --radius-sm: 0.5rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.4rem;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.35);

    --container: 1160px;
    --header-height: 5.25rem;
    --transition-fast: 220ms ease-out;
    --transition-base: 280ms ease-out;
}

.dark {
    --background: #120f0c;
    --foreground: #f4e7c2;
    --card: #211c18;
    --card-foreground: #f4e7c2;
    --popover: #1b1714;
    --popover-foreground: #f4e7c2;
    --primary: #d4af37;
    --primary-foreground: #1a1408;
    --secondary: #312b25;
    --secondary-foreground: #f4e7c2;
    --muted: #5f584f;
    --muted-foreground: #d8ccb0;
    --accent: #8f2431;
    --accent-foreground: #fff4ef;
    --destructive: #d14343;
    --destructive-foreground: #000000;
    --border: #5a5248;
    --input: #191511;
    --ring: #d4af37;
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   Predictable sizing and viewport-safe media
   ============================================ */

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

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.12), transparent 38%),
        linear-gradient(180deg, #17120f 0%, #120f0c 38%, #0f0c0a 100%);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    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;
}

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

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

a {
    color: var(--primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

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

section {
    overflow: clip;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(212, 175, 55, 0.25);
    color: var(--foreground);
}

/* ============================================
   ACCESSIBILITY HELPERS
   Skip links and visually hidden content
   ============================================ */

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 700;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

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

/* ============================================
   TYPOGRAPHY SYSTEM
   Monumental headings with readable body copy
   ============================================ */

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--space-md);
    color: var(--foreground);
    font-family: var(--font-display);
    line-height: 1.16;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(1.95rem, calc(1.7rem + 2vw), 2.65rem);
}

h2 {
    font-size: clamp(1.65rem, calc(1.45rem + 1.4vw), 2.2rem);
}

h3 {
    font-size: clamp(1.3rem, calc(1.15rem + 1vw), 1.65rem);
}

h4 {
    font-size: clamp(1.1rem, calc(1rem + 0.8vw), 1.35rem);
}

p,
li,
td,
th,
label {
    font-size: 1rem;
}

small,
.caption,
.meta {
    font-size: 0.9375rem;
}

.lead,
.section-intro {
    max-width: 68ch;
    color: var(--muted-foreground);
    font-size: 1.05rem;
}

.eyebrow {
    margin-bottom: var(--space-sm);
    color: var(--primary);
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ============================================
   LAYOUT PRIMITIVES
   Containers, spacing rhythm, page shells
   ============================================ */

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

main {
    display: block;
}

section,
article {
    position: relative;
}

.section-heading {
    margin-bottom: var(--space-xl);
}

.content-flow > * + * {
    margin-top: var(--space-lg);
}

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

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* ============================================
   HEADER & NAVIGATION
   Sticky shell, mobile drawer, desktop nav
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(18, 15, 12, 0.98);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: var(--header-height);
    padding-block: 0.9rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.logo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-brand__kicker {
    color: var(--primary);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-brand__name {
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.1;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 48px;
    height: 48px;
    padding: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-pill);
    background: var(--secondary);
    color: var(--foreground);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--foreground);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

.primary-nav {
    display: none;
}

.primary-nav.is-open {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: 1.25rem 1rem 1.5rem;
    overflow-y: auto;
    background: var(--background);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

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

.primary-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    color: var(--foreground);
    text-decoration: none;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-1px);
}

.site-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ============================================
   BUTTONS & LINKS
   Primary conversion styling and secondary actions
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

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

.btn:focus-visible,
.mobile-menu-toggle:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
}

.btn--primary {
    color: var(--primary-foreground);
    background: linear-gradient(180deg, #e0be56 0%, var(--primary) 60%, #b88f1f 100%);
    border-color: rgba(255, 226, 145, 0.35);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    box-shadow: 0 12px 26px rgba(212, 175, 55, 0.28);
}

.btn--ghost {
    color: var(--foreground);
    background: transparent;
    border-color: rgba(212, 175, 55, 0.32);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(212, 175, 55, 0.08);
}

.btn--large {
    min-height: 54px;
    padding-inline: 1.6rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link::after {
    content: "→";
    transition: transform var(--transition-fast);
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: translateX(2px);
}

/* ============================================
   CARDS - Content containers
   Premium panels for reusable content modules
   ============================================ */

.card,
.info-card,
.summary-box,
.callout-box,
.pull-quote,
.stat-highlight,
.social-proof-card {
    min-width: 0;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.06), transparent 22%),
        var(--card);
    box-shadow: var(--shadow-soft);
}

.info-grid-section {
    padding-block: clamp(4rem, calc(6vw + 1rem), 6.5rem);
}

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

.info-card {
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.info-card:hover,
.info-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: var(--shadow-strong);
}

.info-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(255, 255, 255, 0.02));
}

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

.info-card__icon {
    display: grid;
    place-items: center;
    min-height: 5.5rem;
    padding-top: var(--space-lg);
    color: var(--primary);
    font-size: 2rem;
}

.info-card__body {
    padding: 0 var(--space-lg) var(--space-lg);
}

.info-card__meta {
    margin: 0 0 var(--space-xs);
    color: var(--primary);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

/* ============================================
   FAQ & DETAILS
   Native details/summary styled as elegant accordions
   ============================================ */

.faq-section {
    padding-block: clamp(4rem, calc(6vw + 1rem), 6.5rem);
}

.faq-accordion {
    display: grid;
    gap: var(--space-md);
    max-width: 860px;
}

.faq-item,
.details-card,
details {
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent 18%),
        rgba(33, 28, 24, 0.96);
    box-shadow: var(--shadow-soft);
}

summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 56px;
    padding: 1rem 1.1rem;
    color: var(--foreground);
    font-family: var(--font-display);
    font-size: 1rem;
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

.faq-item__icon,
.details-card summary::after {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__icon,
.details-card[open] summary::after,
details[open] > summary::after {
    transform: rotate(225deg);
}

.faq-item__answer,
details > :not(summary) {
    padding: 0 1.1rem 1.1rem;
    color: var(--muted-foreground);
}

/* ============================================
   CTA BANNER
   Ceremonial conversion band for closing sections
   ============================================ */

.cta-banner {
    padding-block: clamp(4rem, calc(6vw + 1rem), 6.5rem);
}

.cta-banner__frame {
    position: relative;
    padding: clamp(2rem, calc(4vw + 1rem), 3.5rem);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: min(2rem, 6vw);
    background:
        radial-gradient(circle at top, rgba(212, 175, 55, 0.14), transparent 42%),
        linear-gradient(180deg, #211b17 0%, #17120f 100%);
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.cta-banner__frame::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.cta-banner__text,
.cta-banner__micro {
    max-width: 62ch;
    margin-inline: auto;
}

.cta-banner__text {
    margin-bottom: var(--space-lg);
    color: var(--muted-foreground);
}

.cta-banner__micro {
    margin-top: var(--space-md);
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ============================================
   HOMEPAGE - HERO & EDITORIAL LAYOUT
   Cinematic homepage sections for Legiano
   ============================================ */

.home-hero {
    padding: clamp(2rem, calc(4vw + 1rem), 4rem) 0 clamp(4rem, calc(6vw + 1rem), 6.5rem);
}

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

.home-hero__copy,
.home-hero__visual,
.home-split__content {
    min-width: 0;
}

.home-hero__actions {
    margin-top: var(--space-lg);
}

.home-hero__note {
    margin-top: var(--space-lg);
    max-width: 68ch;
    color: var(--muted-foreground);
}

.home-hero__badges {
    margin-top: var(--space-lg);
}

.home-hero__visual {
    position: relative;
}

.home-hero__visual img,
.home-split__media img {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: min(1.8rem, 5vw);
    box-shadow: var(--shadow-strong);
    object-fit: cover;
}

.home-hero__summary {
    margin-top: calc(var(--space-lg) * -1);
    position: relative;
    z-index: 2;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    padding-block: clamp(3.5rem, calc(5vw + 1rem), 5.5rem);
}

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

.home-checklist li {
    position: relative;
    padding-left: 1.8rem;
}

.home-checklist li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
}

@media (min-width: 768px) {
    .home-hero__actions {
        flex-direction: row;
    }

    .home-hero__summary {
        max-width: 82%;
        margin-left: auto;
        margin-right: 1rem;
    }
}

@media (min-width: 1024px) {
    .home-hero__grid,
    .home-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: var(--space-2xl);
    }

    .home-hero {
        padding-top: 2.5rem;
    }

    .home-hero__summary {
        position: absolute;
        right: 1rem;
        bottom: 1rem;
        max-width: min(86%, 28rem);
        margin: 0;
    }
}

/* ============================================
   ENGAGEMENT PATTERNS
   TL;DR, callouts, stats, quotes, and social proof
   ============================================ */

.summary-box {
    padding: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.summary-box h2,
.summary-box h3,
.summary-box p:last-child {
    margin-bottom: 0;
}

.callout-box {
    padding: var(--space-lg);
    border-left: 4px solid var(--accent);
    background:
        linear-gradient(180deg, rgba(143, 36, 49, 0.12), transparent 22%),
        var(--card);
}

.stat-highlight {
    padding: var(--space-lg);
    text-align: center;
}

.stat-highlight__number {
    display: block;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: clamp(2rem, calc(1.5rem + 4vw), 3.8rem);
    line-height: 1;
}

.stat-highlight__label {
    display: block;
    margin-top: var(--space-sm);
    color: var(--foreground);
}

.stat-highlight__source {
    display: block;
    margin-top: var(--space-xs);
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.pull-quote {
    padding: clamp(1.5rem, calc(3vw + 1rem), 2.25rem);
    border-left: 4px solid var(--primary);
}

.pull-quote blockquote {
    margin: 0;
    font-size: clamp(1.15rem, calc(1rem + 1vw), 1.55rem);
    line-height: 1.45;
}

.pull-quote cite {
    display: block;
    margin-top: var(--space-md);
    color: var(--muted-foreground);
    font-style: normal;
}

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

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

.social-proof-card__rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

.social-proof-card__meta {
    margin-top: var(--space-md);
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

/* ============================================
   TRUST BADGES & LOGO ROWS
   Horizontal proof strips for providers and payments
   ============================================ */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    color: var(--foreground);
    font-size: 0.95rem;
    filter: grayscale(0.1);
}

.trust-badges--footer .trust-badge {
    background: rgba(212, 175, 55, 0.05);
}

/* ============================================
   TABLES
   Comparison-ready tables with highlighted recommendation
   ============================================ */

.table-wrapper {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.table-wrapper:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

th,
td {
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: top;
}

thead th {
    color: var(--foreground);
    font-family: var(--font-display);
    background: rgba(212, 175, 55, 0.08);
}

tbody tr + tr td {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

td.is-recommended,
th.is-recommended,
.recommended {
    background: rgba(212, 175, 55, 0.12);
}

/* ============================================
   FOOTER
   Dense but structured closing area
   ============================================ */

.site-footer {
    margin-top: clamp(4rem, calc(5vw + 1rem), 6rem);
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 18%),
        #100d0b;
}

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

.footer-title {
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.footer-links {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--foreground);
    text-decoration: none;
}

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

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

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: var(--space-md);
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: var(--radius-pill);
    color: var(--foreground);
    font-size: 0.92rem;
}

.site-footer__bottom {
    padding: 1rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ============================================
   MOTION & REVEAL EFFECTS
   Scroll-triggered entrance animations
   ============================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 560ms ease-out, transform 560ms ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS - Tablet
   Two-column sections and inline desktop nav
   ============================================ */

@media (min-width: 768px) {
    body {
        font-size: 1.0625rem;
    }

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

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

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

    .btn {
        width: auto;
    }

    .site-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS - Desktop
   Inline navigation, multi-column grids
   ============================================ */

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }

    .primary-nav {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        min-width: 0;
    }

    .primary-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .primary-nav__link {
        min-height: 44px;
        padding: 0.75rem 1rem;
        background: transparent;
    }

    .site-actions {
        margin-left: auto;
    }

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

    .site-footer__grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

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

/* ============================================
   RESPONSIVE ENHANCEMENTS - Wide Screens
   Controlled max scale and larger section rhythm
   ============================================ */

@media (min-width: 1280px) {
    .site-header__inner {
        padding-block: 1rem;
    }

    .info-grid-section,
    .faq-section,
    .cta-banner {
        padding-block: var(--space-4xl);
    }
}

/* ============================================
   REDUCED MOTION
   Respect users who prefer less animation
   ============================================ */

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

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

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}