/* =============================================================================
   RechNex.ch — Light Fintech Design System (2026)
   Aesthetic: Linear.app meets Swiss private banking.
   ============================================================================= */

/* ----- Design tokens (light-only) ----- */

:root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fb;
    --color-bg-elevated: #ffffff;

    --accent-primary: #6366f1;
    --accent-secondary: #06b6d4;
    --gradient-accent: linear-gradient(135deg, #6366f1, #06b6d4);
    --accent-glow: rgba(99, 102, 241, 0.10);
    --cyan-glow: rgba(6, 182, 212, 0.08);

    --surface-glass: rgba(0, 0, 0, 0.02);
    --surface-glass-hover: rgba(0, 0, 0, 0.04);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(99, 102, 241, 0.20);

    --text-primary: #0f0f14;
    --text-secondary: rgba(15, 15, 20, 0.60);
    --text-tertiary: rgba(15, 15, 20, 0.40);

    --gradient-hero: linear-gradient(160deg, #ffffff 0%, #f0f1ff 40%, #eef8ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(248,249,251,0.9) 100%);

    --radius: 0.625rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px var(--accent-glow), 0 0 80px var(--cyan-glow);

    --container-max: 80rem;
    --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

    --header-h: 4rem;

    --success-bg: rgba(34, 197, 94, 0.08);
    --success-border: rgba(34, 197, 94, 0.20);
    --success-text: #15803d;
    --error-bg: rgba(239, 68, 68, 0.08);
    --error-border: rgba(239, 68, 68, 0.20);
    --error-text: #dc2626;
}

/* ----- Dark mode tokens ----- */

html.dark {
    --color-bg-primary: #07070a;
    --color-bg-secondary: #0c0c12;
    --color-bg-elevated: #111118;

    --accent-glow: rgba(99, 102, 241, 0.15);
    --cyan-glow: rgba(6, 182, 212, 0.12);

    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(99, 102, 241, 0.25);

    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.35);

    --gradient-hero: linear-gradient(160deg, #07070a 0%, #0f0f1a 40%, #0a1628 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.06) 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);

    --success-bg: rgba(34, 197, 94, 0.12);
    --success-border: rgba(34, 197, 94, 0.25);
    --success-text: #4ade80;
    --error-bg: rgba(239, 68, 68, 0.12);
    --error-border: rgba(239, 68, 68, 0.25);
    --error-text: #f87171;

    color-scheme: dark;
}

/* ----- Dark mode component overrides (hardcoded values) ----- */

html.dark .site-header {
    background: rgba(7, 7, 10, 0.8);
}

html.dark .glass-card,
html.dark .card {
    background: rgba(17, 17, 24, 0.7);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

html.dark .glass-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

html.dark .glass-card--static:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

html.dark .hero::before,
html.dark .hero::after {
    opacity: 0.6;
}

html.dark .dot-grid::before {
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
}

html.dark ::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
html.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); }
html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

html.dark .lang-select {
    background-color: #111118;
    color: #f0f0f5;
    border-color: rgba(255, 255, 255, 0.10);
}

html.dark .lang-select option {
    background-color: #111118;
    color: #f0f0f5;
}

html.dark .form-input,
html.dark .form-textarea {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

html.dark .mock-line { background: rgba(255,255,255,0.06); }
html.dark .mock-qr { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
html.dark .mock-qr span { background: rgba(255,255,255,0.10); }
html.dark .mock-qr span:nth-child(odd) { background: rgba(255,255,255,0.20); }

html.dark .cookie-banner {
    box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

html.dark .cookie-type-badge.functional {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

html.dark .mobile-drawer-backdrop {
    background: rgba(0, 0, 0, 0.75);
}

/* Dark mode theme toggle icon */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-glass-hover);
    border-color: var(--border-accent);
}

.theme-toggle svg { width: 1rem; height: 1rem; }

.theme-toggle__sun,
.theme-toggle__moon { display: none; }

html:not(.dark) .theme-toggle__moon { display: block; }
html.dark .theme-toggle__sun { display: block; }

/* ----- Skip link (accessibility) ----- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0.5rem;
}

/* ----- Reset & base ----- */

*, *::before, *::after { box-sizing: border-box; border-color: var(--border-subtle); }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
}

::selection { background: var(--accent-primary); color: #fff; }

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

a { color: inherit; text-decoration: none; }

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

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* ----- Utility: gradient text ----- */

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----- Utility: dot grid overlay ----- */

.dot-grid {
    position: relative;
}

.dot-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* ----- Scroll reveal ----- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ----- Layout container ----- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
    .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ----- Page shell ----- */

.page-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--color-bg-primary);
}

/* ----- Header ----- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-h);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.site-logo:hover { opacity: 0.8; }

.site-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

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

.site-nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__link:hover { color: var(--text-primary); background: var(--surface-glass); }
.site-nav__link.is-active { color: var(--text-primary); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header__desktop {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .header-desktop-only { display: none !important; }
}

/* Language selector — hardcoded colors for native <option> compatibility */

.lang-select {
    height: 2rem;
    min-width: 0;
    max-width: 8rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    color: #0f0f14;
    padding: 6px 28px 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
    transition: border-color 0.15s ease;
}

.lang-select:focus-visible {
    border-color: var(--accent-primary);
}

.lang-select option {
    background-color: #ffffff;
    color: #0f0f14;
}

/* Nav toggle (mobile) */

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-primary);
}

.nav-toggle:hover { background: var(--surface-glass); }

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

.nav-toggle svg { width: 1.25rem; height: 1.25rem; }

/* ----- Buttons ----- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn:disabled { pointer-events: none; opacity: 0.4; }

.btn-primary, .btn-cta {
    height: 2.5rem;
    padding: 0 1.25rem;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px var(--accent-glow);
    font-weight: 600;
}

.btn-primary:hover:not(:disabled), .btn-cta:hover:not(:disabled) {
    box-shadow: 0 0 32px var(--accent-glow), 0 0 60px var(--cyan-glow);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled), .btn-cta:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.btn-cta-lg {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
    .btn-cta-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
}

.btn-outline, .btn-outline-lg {
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid var(--border-subtle);
    background: var(--surface-glass);
    color: var(--text-primary);
}

.btn-outline:hover:not(:disabled), .btn-outline-lg:hover:not(:disabled) {
    background: var(--surface-glass-hover);
    border-color: var(--border-accent);
}

.btn-outline-lg {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
}
@media (min-width: 640px) {
    .btn-outline-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
}

.btn-ghost {
    height: 2.25rem;
    padding: 0 0.75rem;
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) { background: var(--surface-glass); color: var(--text-primary); }

.btn-sm {
    height: 2rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-pill {
    border-radius: var(--radius-pill);
}

.btn-block { width: 100%; }

.btn-loader { display: none; animation: spin 1s linear infinite; }
.is-loading .btn-text { display: none; }
.is-loading .btn-loader { display: inline-block; }

/* ----- Main content offset for fixed header ----- */

.site-main {
    flex: 1;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* ----- Glass card ----- */

.glass-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
@media (min-width: 640px) {
    .glass-card { padding: 1.5rem; gap: 1.5rem; }
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: var(--border-accent);
}

.glass-card--static:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.glass-card--glow {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

/* Legacy .card alias for shared pages */
.card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-head h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.card-head p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.module-card > .card-head h2 { font-size: 1.875rem; font-weight: 700; }

/* ----- Hero section ----- */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2.5rem 0 2rem;
}
@media (min-width: 640px) {
    .hero { padding: 3rem 0 2.5rem; }
}
@media (min-width: 1024px) {
    .hero { padding: 4rem 0 3rem; }
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.hero::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -4s;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 5.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}
@media (min-width: 640px) {
    .hero-title { margin-bottom: 1.25rem; }
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
@media (min-width: 640px) {
    .hero-subtitle { font-size: 1.125rem; margin-bottom: 1.75rem; }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    .hero-badges { gap: 0.625rem; margin-bottom: 2rem; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
@media (min-width: 640px) {
    .hero-badge { padding: 0.5rem 1rem; font-size: 0.75rem; gap: 0.5rem; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
}

/* ----- Section shared styles ----- */

.section-eyebrow {
    display: inline-flex;
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}
@media (min-width: 640px) {
    .section-eyebrow { font-size: 0.75rem; margin-bottom: 0.75rem; }
}

.section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
}
@media (min-width: 640px) {
    .section-subtitle { font-size: 1.0625rem; margin-bottom: 2.5rem; }
}

/* ----- Early Access section ----- */

.early-access {
    padding: 2rem 0;
}
@media (min-width: 640px) {
    .early-access { padding: 2.5rem 0; }
}
@media (min-width: 1024px) {
    .early-access { padding: 3rem 0; }
}

.early-access__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg-elevated);
    border-color: var(--border-accent);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.early-access__card .card-head h2 { font-size: 1.25rem; font-weight: 700; }
@media (min-width: 640px) {
    .early-access__card .card-head h2 { font-size: 1.5rem; }
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row-2col { grid-template-columns: 1fr 1fr; }
}

/* ----- Lead Magnet section ----- */

.lead-magnet {
    padding: 2.5rem 0;
}
@media (min-width: 640px) {
    .lead-magnet { padding: 3rem 0; }
}
@media (min-width: 1024px) {
    .lead-magnet { padding: 4rem 0; }
}

.lead-magnet__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 640px) {
    .lead-magnet__inner { gap: 2.5rem; }
}

@media (min-width: 768px) {
    .lead-magnet__inner { grid-template-columns: 1fr 1fr; }
}

.lead-magnet__mock {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: var(--gradient-card);
    padding: 1.5rem;
    overflow: hidden;
}
@media (min-width: 640px) {
    .lead-magnet__mock { padding: 2rem; }
}

.lead-magnet__mock::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow), var(--cyan-glow));
    opacity: 0.3;
    pointer-events: none;
}

.mock-line {
    height: 0.625rem;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,0.06);
    margin-bottom: 0.75rem;
}

.mock-line--short { width: 40%; }
.mock-line--medium { width: 65%; }
.mock-line--long { width: 85%; }
.mock-line--accent { background: var(--accent-glow); width: 50%; }

.mock-qr {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.02);
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 6px;
}

.mock-qr span {
    border-radius: 1px;
    background: rgba(0,0,0,0.10);
}

.mock-qr span:nth-child(odd) { background: rgba(0,0,0,0.20); }

/* ----- Pillars section ----- */

.pillars {
    padding: 2.5rem 0;
}
@media (min-width: 640px) {
    .pillars { padding: 3rem 0; }
}
@media (min-width: 1024px) {
    .pillars { padding: 4rem 0; }
}

.pillars__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .pillars__grid { gap: 1rem; }
}
@media (min-width: 768px) {
    .pillars__grid { gap: 1.25rem; }
}

@media (min-width: 768px) {
    .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}

.pillar-card {
    padding: 1.25rem;
}
@media (min-width: 640px) {
    .pillar-card { padding: 1.5rem; }
}
@media (min-width: 1024px) {
    .pillar-card { padding: 2rem; }
}

.pillar-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    border: 1px solid var(--border-subtle);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .pillar-card__icon { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; margin-bottom: 1rem; }
}

.pillar-card h3 {
    margin: 0 0 0.375rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.pillar-card__subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pillar-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pillar-card__list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.pillar-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ----- Trust builder section ----- */

.trust-builder {
    padding: 2.5rem 0;
}
@media (min-width: 640px) {
    .trust-builder { padding: 3rem 0; }
}
@media (min-width: 1024px) {
    .trust-builder { padding: 4rem 0; }
}

.trust-builder__card {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    border-color: var(--border-accent);
}
@media (min-width: 640px) {
    .trust-builder__card { padding: 2rem; }
}
@media (min-width: 1024px) {
    .trust-builder__card { padding: 2.5rem; }
}

.trust-builder__card h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 700;
}
@media (min-width: 640px) {
    .trust-builder__card h2 { margin-bottom: 1.25rem; }
}

.trust-builder__card p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.trust-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent-primary);
}

/* ----- Pricing section ----- */

.pricing-section { padding: 2.5rem 0; }
@media (min-width: 640px) {
    .pricing-section { padding: 3rem 0; }
}
@media (min-width: 1024px) {
    .pricing-section { padding: 4rem 0; }
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.plan-card { padding: 1.25rem; position: relative; display: flex; flex-direction: column; }
@media (min-width: 640px) {
    .plan-card { padding: 1.5rem; }
}
@media (min-width: 1024px) {
    .plan-card { padding: 2rem; }
}

.plan-card-highlight {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.plan-price {
    margin: 0.5rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
@media (min-width: 640px) {
    .plan-price { font-size: 2rem; }
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.plan-head p {
    margin: 0.375rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.plan-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.plan-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-glow);
}

.plan-list { flex: 1; }
.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 2.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 640px) {
    .plan-cta { min-height: 3rem; font-size: 1rem; }
}
.plan-card-highlight .plan-cta {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--cyan-glow);
}
.plan-card-highlight .plan-cta:hover {
    box-shadow: 0 0 32px var(--accent-glow), 0 0 60px var(--cyan-glow);
}

.pricing-trust {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Pricing comparison table (pricing.php) */
.pricing-compare, .pricing-coming {
    margin-top: 1.5rem;
}

.pricing-table-wrap { overflow: auto; padding-bottom: 0.5rem; }

.pricing-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.pricing-table th, .pricing-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-table th { font-weight: 600; color: var(--text-primary); }
.pricing-table td:first-child, .pricing-table__feature { font-weight: 600; }

/* ----- FAQ compact ----- */

.faq-compact { padding: 2.5rem 0; }
@media (min-width: 640px) {
    .faq-compact { padding: 3rem 0; }
}
@media (min-width: 1024px) {
    .faq-compact { padding: 4rem 0; }
}

.faq-list {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-glass);
}

.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.15s ease;
}

.faq-item summary:hover { background: var(--surface-glass-hover); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.75;
}

/* FAQ page specific */
.faq-tools { padding: 1.5rem; }

.faq-result-count {
    margin-top: 0.25rem;
    padding-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.faq-result-count strong { color: var(--text-primary); }

/* FAQ category filter pills */
.faq-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.faq-filter-pill {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--surface-glass);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.faq-filter-pill:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
    background: var(--surface-glass-hover);
}

.faq-filter-pill.is-active {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
}

.card.faq-page-card, .glass-card.faq-page-card { padding: 0; overflow: hidden; }

.faq-page-list { margin-top: 0; border: 0; border-radius: 0; }

.faq-summary-title { display: inline-block; max-width: calc(100% - 130px); }

.faq-category-tag {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    background: var(--surface-glass);
    color: var(--text-tertiary);
    font-size: 0.6875rem;
    font-weight: 600;
}

.faq-empty-state { padding: 1.75rem 1.5rem; }
.faq-empty-state h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.faq-empty-state p { margin: 0.5rem 0 0; color: var(--text-secondary); font-size: 0.875rem; }

/* ----- Forms ----- */

.waitlist-form { margin-top: 1rem; }

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus-visible, .form-textarea:focus-visible {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { min-height: 5rem; resize: vertical; }

.form-feedback {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.form-feedback.success {
    display: block;
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}

.form-feedback.error {
    display: block;
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}

/* ----- Success panel (post-submit) ----- */

.form-success-panel[hidden] {
    display: none;
}

.form-success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-success-panel__icon {
    margin-bottom: 1.25rem;
}

.form-success-panel__icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.25));
}

.form-success-panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.form-success-panel__desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 0 1.5rem;
}

.form-success-panel__cta {
    max-width: 320px;
    width: 100%;
}

/* ----- Stats grid (used on pricing page hero) ----- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card { padding: 1.5rem; }
.stat-label { color: var(--text-tertiary); font-size: 0.8125rem; font-weight: 500; }
.stat-value { margin-top: 0.5rem; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary); }
.stat-hint { margin-top: 0.5rem; color: var(--text-tertiary); font-size: 0.8125rem; }

/* ----- Enterprise panel (reusable) ----- */

.enterprise-panel { margin-bottom: 1.5rem; padding: 1.5rem; }
.enterprise-head h2 { margin: 0; font-size: 1.875rem; font-weight: 700; }
.enterprise-head p { margin: 0.625rem 0 0; max-width: 58rem; font-size: 0.9375rem; color: var(--text-secondary); }

.enterprise-grid { margin-top: 1.125rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }

.enterprise-item {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: var(--surface-glass);
    overflow: visible;
    z-index: 1;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.enterprise-item:hover { border-color: var(--border-accent); box-shadow: 0 0 24px var(--accent-glow); z-index: 5; }

.enterprise-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 1rem;
    color: inherit;
}

.enterprise-item-title { display: block; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.enterprise-item-text { display: block; margin: 0.375rem 0 0; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

.enterprise-popover {
    position: absolute;
    left: 0.875rem; right: 0.875rem;
    bottom: calc(100% + 0.5rem);
    z-index: 12;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--color-bg-elevated);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.enterprise-item:hover .enterprise-popover,
.enterprise-item:focus-within .enterprise-popover,
.enterprise-item.is-open .enterprise-popover { opacity: 1; visibility: visible; transform: translateY(0); z-index: 40; }
.enterprise-item:focus-within, .enterprise-item.is-open { z-index: 40; }

/* ----- Content grid (shared pages) ----- */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 1.375rem;
    align-items: start;
}

.main-stack, .sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-stack { position: sticky; top: 5rem; }

.module-card { padding: 1.5rem; }

/* ----- Feature rows (used on some pages) ----- */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1.125rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.125rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    background: var(--surface-glass);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.feature-row:hover { background: var(--surface-glass-hover); border-color: var(--border-accent); }

.feature-dot {
    width: 0.625rem; height: 0.625rem;
    margin-top: 0.375rem;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
}

.feature-row h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.feature-row p { margin: 0.375rem 0 0; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ----- Trust list ----- */

.trust-list { margin: 0.875rem 0 0; padding: 0; list-style: none; }

.trust-list li {
    position: relative;
    padding: 0 0 0 1.125rem;
    margin-bottom: 0.625rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.trust-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.5rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ----- Hero shell (used on pricing/faq/cookies pages) ----- */

.hero-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-card { padding: 1.5rem; }
.hero-topline { margin-bottom: 0.875rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.625rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-accent);
    background: var(--surface-glass);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-shell .hero-title {
    margin: 0;
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    font-weight: 700;
}

.hero-shell .hero-subtitle {
    margin: 1rem 0 0;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

@media (min-width: 1024px) {
    .hero-shell--split { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr); }
}

.hero-note {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.125rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ----- Footer ----- */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: var(--color-bg-secondary);
}

/* Mobile-first: single column, stacked */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

/* Tablet: 2 columns — brand spans full, cols side by side */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2rem 3rem;
    }
    .footer-brand {
        grid-column: auto;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-brand__logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand__tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 340px;
}

.footer-brand__country {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

.footer-cta {
    align-self: flex-start;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links__title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.125rem;
}

.footer-links a {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.15s ease;
    padding: 0.25rem 0;
}
@media (max-width: 639px) {
    .footer-links a {
        padding: 0.375rem 0;
        font-size: 0.9375rem;
    }
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-col .lang-select {
    margin-top: 0.25rem;
    align-self: flex-start;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
@media (min-width: 640px) {
    .footer-bottom {
        font-size: 0.8125rem;
    }
}

.footer-bottom span { opacity: 0.5; }

/* ----- Mobile drawer ----- */

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 70;
    width: min(88vw, 24rem);
    max-width: 100%;
    height: 100%;
    background: var(--color-bg-elevated);
    border-left: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
}

.mobile-drawer__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem; height: 2.25rem;
    padding: 0; border: none;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobile-drawer__close:hover { background: var(--surface-glass); }

.mobile-drawer__sep {
    height: 1px;
    margin: 0 1.5rem;
    background: var(--border-subtle);
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem;
}

.mobile-drawer__nav a {
    border-radius: var(--radius-lg);
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-drawer__nav a:hover { background: var(--surface-glass); color: var(--text-primary); }
.mobile-drawer__nav a.is-active { background: var(--surface-glass); color: var(--text-primary); }

.mobile-drawer__actions {
    margin-top: auto;
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.mobile-drawer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

/* ----- Cookie consent banner ----- */

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 100;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.cookie-banner__icon { flex-shrink: 0; margin-top: 0.125rem; color: var(--accent-primary); }

.cookie-banner__text { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }

.cookie-banner__link {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 2px;
}

.cookie-banner__link:hover { text-decoration-color: var(--accent-primary); }

.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

@media (max-width: 639px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
    .cookie-banner__actions { justify-content: flex-end; }
}

/* ----- Cookie policy page ----- */

.cookie-policy-content {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
}

.cookie-section {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cookie-section:last-child { padding-bottom: 0; border-bottom: none; }
.cookie-section h2 { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 600; }
.cookie-section p { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); }
.cookie-section p:last-child { margin-bottom: 0; }

.cookie-section a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 2px;
}

.cookie-section a:hover { text-decoration-color: var(--accent-primary); }
.cookie-section address { font-style: normal; font-size: 0.9375rem; line-height: 1.8; color: var(--text-primary); }

.cookie-table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.cookie-table th, .cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.cookie-table thead th {
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-tertiary);
    background: var(--surface-glass);
}

.cookie-table tbody tr:last-child td { border-bottom: 0; }

.cookie-table code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    background: var(--surface-glass);
    color: var(--text-primary);
}

.cookie-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-type-badge.essential {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--border-accent);
}

.cookie-type-badge.functional {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.cookie-browser-list { margin: 0.5rem 0 0; padding: 0 0 0 1.25rem; list-style: disc; }
.cookie-browser-list li { margin-bottom: 0.375rem; font-size: 0.9375rem; color: var(--text-secondary); }
.cookie-browser-list li a { color: var(--accent-primary); }

/* ----- Pricing page ----- */

.pricing-page .hero-shell .hero-title { font-size: clamp(1.625rem, 4vw, 2.5rem); }

/* Side card (pricing page) */
.side-card .card-head h2 { font-size: 1.25rem; }

.status-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }

.status-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8125rem 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background: var(--surface-glass);
}

.status-row span { color: var(--text-tertiary); font-size: 0.75rem; }
.status-row strong { color: var(--text-primary); font-size: 0.875rem; font-weight: 600; }

/* ----- Keyframes ----- */

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .mobile-drawer { transition: none; }
    .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ----- */

@media (max-width: 1023px) {
    .hero-shell, .content-grid { grid-template-columns: 1fr; }
    .sidebar-stack { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .enterprise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .feature-list { grid-template-columns: 1fr; }
    .faq-category-tag { display: none; }
    .faq-summary-title { max-width: 100%; }
}

@media (max-width: 639px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-cta-lg, .hero-actions .btn-outline-lg { width: 100%; }
    .lang-select { max-width: 7rem; }
}
