/* ============================================================
   Inuvate — Artisan's Blueprint Design System
   Deep teal primary, warm neutrals, Manrope + Plus Jakarta Sans
   "Quiet confidence" — grounded, structured, meticulously crafted
   ============================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Design Tokens --- */
:root {
    /* Tonal palette */
    --primary: #004655;
    --primary-container: #00313d;
    --on-primary: #ffffff;
    --secondary: #00696c;
    --tertiary-container: #226150;
    --surface: #faf8f5;
    --surface-container-low: #f2efeb;
    --surface-container-lowest: #ffffff;
    --on-surface: #1a1c1e;
    --on-surface-variant: #42474e;
    --on-surface-muted: #6b7280;
    --outline: #c4c7c5;
    --success: #2e7d5b;
    --error: #ba1a1a;

    /* Typography */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);

    /* Transitions */
    --ease: 250ms ease;
    --ease-fast: 150ms ease;
    --ease-slow: 400ms ease;

    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    --section-gap: 128px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--on-surface);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--ease-fast);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--on-surface);
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.015em;
}

h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--on-surface-variant);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Overline (section labels) --- */
.overline {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-container);
    border-color: var(--primary-container);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--surface);
    border-color: var(--surface);
    color: var(--primary-container);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

/* ============================================================
   HEADER — Glassmorphic, fixed
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--ease), box-shadow var(--ease);
    background: rgba(0, 70, 85, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.scrolled {
    background: rgba(0, 70, 85, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.375rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--secondary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.375rem;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav > a {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--ease-fast);
}

.site-nav > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.nav-link-login {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--ease-fast);
}

.nav-link-login:hover {
    color: #fff;
}

.nav-actions .btn-primary {
    border-color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        flex-direction: column;
        align-items: stretch;
        background: var(--primary-container);
        padding: 100px 24px 32px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--ease);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav > a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        margin-top: 16px;
        gap: 12px;
    }

    .nav-link-login {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-actions .btn {
        text-align: center;
        width: 100%;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    overflow: hidden;
    padding: 140px 0 120px;
}

.hero-layout {
    max-width: 720px;
    /* Asymmetric: text sits left, not centred */
}

.hero-content .overline {
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-sub {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    box-shadow: 0 4px 24px rgba(0, 70, 85, 0.35);
}

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.proof-strip {
    background: var(--surface-container-low);
    padding: 48px 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.proof-item .proof-number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.proof-item .proof-label {
    color: var(--on-surface-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ============================================================
   SECTIONS — base spacing & backgrounds
   ============================================================ */
.section {
    padding: var(--section-gap) 0;
}

.bg-surface {
    background: var(--surface);
}

.bg-surface-container-low {
    background: var(--surface-container-low);
}

/* Legacy class support for other pages */
.section-alt {
    background: var(--surface-container-low);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-header .overline {
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Legacy label support */
.section-header .section-label {
    display: inline-block;
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* ============================================================
   HOW IT WORKS — Process steps with chips
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--ease), box-shadow var(--ease);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Process chip — rounded, tertiary-container */
.process-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--tertiary-container);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Legacy step-number support */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--tertiary-container);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(0, 70, 85, 0.08);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

/* Thick-stroke icon helper */
.fa-icon-thick {
    -webkit-text-stroke: 0.5px currentColor;
}

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.65;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface-container-lowest);
    border: 2px solid var(--outline);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    text-align: center;
    transition: transform var(--ease), box-shadow var(--ease);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 70, 85, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tertiary-container);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
}

.pricing-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--on-surface);
    line-height: 1;
}

.pricing-period {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

.pricing-detail {
    font-size: 0.8125rem;
    color: var(--on-surface-muted);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--success);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    margin-top: 28px;
    color: var(--on-surface-muted);
    font-size: 0.8125rem;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

/* Spacing-only separators, no borders */
.faq-item + .faq-item {
    margin-top: 8px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
    text-align: left;
    cursor: pointer;
    transition: color var(--ease-fast);
    gap: 16px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform var(--ease);
    font-size: 0.75rem;
    color: var(--on-surface-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Legacy .faq-icon support */
.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform var(--ease);
    font-size: 0.75rem;
    color: var(--on-surface-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease-slow);
}

.faq-answer-inner {
    padding: 0 0 24px;
    color: var(--on-surface-variant);
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    padding: var(--section-gap) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-section .btn-white {
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.12);
}

/* ============================================================
   FOOTER — dark primary background
   ============================================================ */
.site-footer {
    background: var(--primary);
    padding: 72px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .logo-accent {
    color: var(--secondary);
}

/* Legacy brand-text in footer */
.footer-brand .brand-text {
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 280px;
}

.footer-links h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    padding: 5px 0;
    transition: color var(--ease-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SCROLL REVEAL — 300ms fade-in, no bounce
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   AUTH / LOGIN PAGE
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    padding: 120px 24px 48px;
}

.auth-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-card .logo {
    justify-content: center;
    margin-bottom: 32px;
}

.auth-card .logo-text,
.auth-card .brand-text {
    color: var(--on-surface);
}

.auth-card h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--on-surface-variant);
    font-size: 0.9375rem;
    margin-bottom: 32px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--on-surface);
    background: var(--surface-container-lowest);
    border: 1.5px solid var(--outline);
    border-radius: var(--radius-md);
    transition: all var(--ease-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 70, 85, 0.12);
}

.form-control::placeholder {
    color: var(--on-surface-muted);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--on-surface-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 4px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

.form-footer a {
    font-weight: 600;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    padding: 120px 24px 48px;
}

.error-content {
    max-width: 480px;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    margin-bottom: -20px;
}

.error-content h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.error-content p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    margin-bottom: 32px;
}

/* ============================================================
   LEGAL PAGES (Terms, Privacy)
   ============================================================ */
.legal-page {
    padding: calc(var(--header-height) + 48px) 0 96px;
    min-height: 100vh;
}

.legal-page .container {
    max-width: 780px;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-page .legal-updated {
    color: var(--on-surface-muted);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--outline);
}

.legal-page h3 {
    font-size: 1.0625rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-page p {
    margin-bottom: 12px;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.legal-page li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
    margin-bottom: 4px;
}

.legal-page a {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.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;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .auth-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-gap: 64px;
    }
}
