/* ═══════════════════════════════════════════════════════════════════
   ERP Marketing Theme — White Modern (R175.3)
   Public-facing landing / login / pricing / signup surface.
   Clean, attractive, professional. Loaded only on unauth pages.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* ─── Color palette ─────────────────────────────────────────── */
    /* Primary action — R175.18 aligned to ERP brand color (#4169E1 Royal Blue)
       used throughout the internal Metronic UI for buttons + badges. */
    --c-primary:        #4169E1;   /* Royal Blue — matches metronic-bridge.css */
    --c-primary-hover:  #3357c8;   /* slightly darker royal blue */
    --c-primary-soft:   #eef2ff;
    --c-primary-border: #c7d2fe;

    /* Accent colors (feature icons - color-coded variety) */
    --c-purple:  #7c3aed;
    --c-purple-soft: #f3e8ff;
    --c-green:   #10b981;
    --c-green-soft: #d1fae5;
    --c-orange:  #f59e0b;
    --c-orange-soft: #fef3c7;
    --c-pink:    #ec4899;
    --c-pink-soft: #fce7f3;
    --c-cyan:    #06b6d4;
    --c-cyan-soft: #cffafe;
    --c-blue:    #3b82f6;
    --c-blue-soft: #dbeafe;

    /* Surfaces */
    --c-bg:           #ffffff;
    --c-bg-soft:      #fafbfc;
    --c-bg-section:   #f8fafc;
    --c-bg-card:      #ffffff;

    /* Borders */
    --c-border:       #e5e7eb;
    --c-border-soft:  #f1f5f9;
    --c-border-strong:#cbd5e1;

    /* Text */
    --c-text:         #0f172a;
    --c-text-soft:    #334155;
    --c-text-mute:    #64748b;
    --c-text-dim:     #94a3b8;
    --c-text-on-primary: #ffffff;

    /* State */
    --c-danger:       #dc2626;
    --c-danger-soft:  #fee2e2;
    --c-success:      #16a34a;
    --c-success-soft: #dcfce7;

    /* Typography */
    --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --f-cairo: 'Cairo', 'Inter', system-ui, sans-serif;

    /* Type scale */
    --t-caption: 13px;
    --t-body-sm: 14px;
    --t-body:    16px;
    --t-lead:    18px;
    --t-h6:      18px;
    --t-h5:      22px;
    --t-h4:      28px;
    --t-h3:      36px;
    --t-h2:      48px;
    --t-h1:      64px;

    /* Spacing */
    --s-4: 4px;
    --s-6: 6px;
    --s-8: 8px;
    --s-10: 10px;
    --s-12: 12px;
    --s-16: 16px;
    --s-20: 20px;
    --s-24: 24px;
    --s-32: 32px;
    --s-40: 40px;
    --s-48: 48px;
    --s-56: 56px;
    --s-64: 64px;
    --s-80: 80px;
    --s-96: 96px;
    --s-120: 120px;

    /* Layout */
    --page-max-width: 1200px;
    --content-max-width: 760px;

    /* Radii */
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 20px;
    --r-pill: 999px;

    /* Shadows */
    --sh-sm:  0 1px 2px rgba(15, 23, 42, 0.06);
    --sh:     0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-md:  0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --sh-lg:  0 10px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --sh-xl:  0 20px 50px rgba(15, 23, 42, 0.12);
    --sh-focus: 0 0 0 4px rgba(65, 105, 225, 0.18);

    /* Transition */
    --tr-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── reset + base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg);
    color: var(--c-text);
}

body.mercury {
    font-family: var(--f-sans);
    font-size: var(--t-body);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mercury[dir="rtl"] {
    font-family: var(--f-cairo);
}

/* ─── Decorative backdrop ────────────────────────────────────────
   Fixed-position layer with soft color mesh + faint dot grid. Sits
   behind the white content, gives the page a premium, alive feel
   without the heavy "dark mode" treatment.
   ──────────────────────────────────────────────────────────────── */
body.mercury::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        /* Top-left indigo bloom */
        radial-gradient(ellipse 55% 45% at 12% 8%,   rgba(65, 105, 225, 0.10) 0%, transparent 60%),
        /* Top-right purple bloom */
        radial-gradient(ellipse 50% 45% at 88% 4%,   rgba(124, 58, 237, 0.09) 0%, transparent 60%),
        /* Mid-right cyan touch */
        radial-gradient(ellipse 40% 35% at 95% 40%,  rgba(6, 182, 212, 0.06) 0%, transparent 65%),
        /* Lower-left pink touch */
        radial-gradient(ellipse 45% 35% at 6% 70%,   rgba(236, 72, 153, 0.06) 0%, transparent 65%),
        var(--c-bg);
}

body.mercury::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 40%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 40%, transparent 80%);
}

/* Floating decorative blobs — animated, very subtle motion */
.mercury .deco-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}
.mercury .deco-blob-1 {
    width: 420px; height: 420px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.30), transparent 70%);
    animation: float-1 22s ease-in-out infinite;
}
.mercury .deco-blob-2 {
    width: 360px; height: 360px;
    top: 220px; left: -120px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
    animation: float-2 26s ease-in-out infinite;
}
.mercury .deco-blob-3 {
    width: 300px; height: 300px;
    top: 480px; right: 8%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
    animation: float-3 30s ease-in-out infinite;
}
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.05); }
}
@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, -25px) scale(1.1); }
}

/* Hero gets relative positioning so blobs anchor to it */
.mercury .hero { position: relative; isolation: isolate; }
.mercury .hero .container-mx { position: relative; z-index: 1; }

/* Reduced-motion: disable blob animation */
@media (prefers-reduced-motion: reduce) {
    .mercury .deco-blob { animation: none !important; }
}

/* ─── Typography ───────────────────────────────────────────────── */
.mercury h1, .mercury h2, .mercury h3, .mercury h4, .mercury h5, .mercury h6 {
    font-family: var(--f-sans);
    color: var(--c-text);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mercury .h1, .mercury .display {
    font-size: clamp(40px, 6vw, var(--t-h1));
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.mercury .h2, .mercury .heading-lg {
    font-size: clamp(32px, 4.5vw, var(--t-h2));
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.mercury .h3, .mercury .heading {
    font-size: var(--t-h3);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.mercury .h4 { font-size: var(--t-h4); font-weight: 600; letter-spacing: -0.015em; }
.mercury .h5 { font-size: var(--t-h5); font-weight: 600; }

.mercury .lead, .mercury .subheading {
    font-size: var(--t-lead);
    line-height: 1.6;
    color: var(--c-text-soft);
    font-weight: 400;
}
.mercury .body-sm   { font-size: var(--t-body-sm); color: var(--c-text-mute); }
.mercury .caption   {
    font-size: var(--t-caption);
    color: var(--c-text-mute);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.mercury .muted     { color: var(--c-text-mute); }

.mercury a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color var(--tr-base);
}
.mercury a:hover { color: var(--c-primary-hover); }

.mercury strong { font-weight: 600; }

/* Eyebrow / category caption */
.mercury .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: 6px 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: var(--r-pill);
    font-size: var(--t-caption);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.mercury .eyebrow.eyebrow-green   { background: var(--c-green-soft);  color: var(--c-green); }
.mercury .eyebrow.eyebrow-purple  { background: var(--c-purple-soft); color: var(--c-purple); }
.mercury .eyebrow.eyebrow-orange  { background: var(--c-orange-soft); color: var(--c-orange); }
.mercury .eyebrow.eyebrow-soft    { background: var(--c-bg-section);  color: var(--c-text-soft); }

/* ─── Layout primitives ────────────────────────────────────────── */
.mercury .container-mx {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: var(--s-24);
    padding-right: var(--s-24);
    width: 100%;
}
.mercury .container-narrow {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-left: var(--s-24);
    padding-right: var(--s-24);
    width: 100%;
}

.mercury .section {
    padding-top: var(--s-80);
    padding-bottom: var(--s-80);
}
@media (min-width: 768px) {
    .mercury .section { padding-top: var(--s-120); padding-bottom: var(--s-120); }
}
.mercury .section-soft { background: var(--c-bg-section); }

.mercury .stack-sm  > * + * { margin-top: var(--s-8); }
.mercury .stack     > * + * { margin-top: var(--s-16); }
.mercury .stack-lg  > * + * { margin-top: var(--s-24); }
.mercury .stack-xl  > * + * { margin-top: var(--s-40); }

.mercury .text-center { text-align: center; }
.mercury .text-end    { text-align: end; }
.mercury .text-start  { text-align: start; }

/* ─── Top nav ──────────────────────────────────────────────────── */
.mercury .topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--c-border-soft);
    transition: background-color 240ms ease, border-color 240ms ease;
}

/* When the page has a photo-hero OR aurora-hero, the photo/gradient
   flows up under a fully transparent nav — no glass tint, no border. */
body.mercury:has(.hero-photo) .topnav,
body.mercury:has(.hero-aurora) .topnav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}
body.mercury:has(.hero-photo) .topnav.is-scrolled,
body.mercury:has(.hero-aurora) .topnav.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--c-border-soft);
}

/* Extend the photo/aurora hero up under the nav, eliminate any top gap.
   R175.17 — set html bg DARK on hero-photo pages so any rounding-error
   pixel gap is invisible (matches the photo's darker edges). The previous
   white-bg approach guaranteed a visible white strip if the negative
   margin didn't perfectly match nav height. */
body.mercury:has(.hero-photo),
body.mercury:has(.hero-aurora) {
    background: transparent;
    margin: 0;
}
html:has(body.mercury .hero-photo),
html:has(body.mercury .hero-aurora) {
    background: #0f172a;
    margin: 0;
    padding: 0;
}

body.mercury:has(.hero-photo) .hero-photo,
body.mercury:has(.hero-aurora) .hero-aurora {
    /* R175.17 — overshoot the nav height by ~40px so any browser-rendering
       gap is buried under the photo. Compensating padding keeps content
       in roughly the same visual position. */
    margin-top: -100px;
    padding-top: calc(var(--s-120) + 120px);
}
@media (max-width: 767px) {
    body.mercury:has(.hero-photo) .hero-photo,
    body.mercury:has(.hero-aurora) .hero-aurora {
        margin-top: -80px;
        padding-top: calc(var(--s-80) + 96px);
    }
}

/* Also disable the body-level mesh gradient + dot grid INSIDE the hero
   so it doesn't interfere with the photo. The photo IS the atmosphere. */
body.mercury:has(.hero-photo)::before,
body.mercury:has(.hero-photo)::after {
    z-index: -3;
}

/* Nav over photo-dark hero — WHITE text */
body.mercury:has(.hero-photo) .topnav:not(.is-scrolled) .brand {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.50);
    font-weight: 600;
}
body.mercury:has(.hero-photo) .topnav:not(.is-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.45);
    font-weight: 500;
}
body.mercury:has(.hero-photo) .topnav:not(.is-scrolled) .nav-link.is-active { color: #ffffff; }
body.mercury:has(.hero-photo) .topnav:not(.is-scrolled) .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
body.mercury:has(.hero-photo) .topnav:not(.is-scrolled) .btn-primary {
    box-shadow: 0 4px 14px rgba(65, 105, 225, 0.50), 0 2px 4px rgba(15, 23, 42, 0.30);
}

/* Nav over aurora hero — WHITE text (Mercury.com pattern).
   Soft dark text-shadow keeps it legible against sky/light areas. */
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .brand,
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .nav-link {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.45), 0 1px 2px rgba(15, 23, 42, 0.30);
    font-weight: 500;
}
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .nav-link.is-active {
    color: #ffffff;
}
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .btn-primary {
    box-shadow: 0 8px 20px rgba(65, 105, 225, 0.55), 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* ─── Hero-photo entrance animation ──────────────────────────── */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mercury .hero-photo .eyebrow,
.mercury .hero-photo .display,
.mercury .hero-photo .h2,
.mercury .hero-photo .lead,
.mercury .hero-photo .trust-row,
.mercury .hero-photo .hero-preview {
    animation: hero-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mercury .hero-photo .eyebrow      { animation-delay: 0ms; }
.mercury .hero-photo .display      { animation-delay: 80ms; }
.mercury .hero-photo .h2           { animation-delay: 80ms; }
.mercury .hero-photo .lead         { animation-delay: 160ms; }
.mercury .hero-photo .split > div:first-child > div[style*="display: flex"]:last-of-type {
    animation: hero-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 240ms;
}
.mercury .hero-photo .trust-row    { animation-delay: 320ms; }
.mercury .hero-photo .hero-preview { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
    .mercury .hero-photo * { animation: none !important; }
}
.mercury .topnav-inner {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 16px var(--s-24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-24);
}
.mercury .brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-12);
    color: var(--c-text);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.mercury .brand:hover { color: var(--c-text); }
.mercury .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-purple) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: var(--sh-sm);
}
.mercury .nav-links {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
}
@media (max-width: 720px) {
    .mercury .nav-links .nav-link.hide-mobile { display: none; }
}

.mercury .nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: 8px 14px;
    color: var(--c-text-soft);
    background: transparent;
    border: 0;
    border-radius: var(--r-md);
    font-size: var(--t-body-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--tr-base), background-color var(--tr-base);
}
.mercury .nav-link:hover {
    color: var(--c-text);
    background: var(--c-bg-section);
}
.mercury .nav-link.is-active { color: var(--c-primary); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.mercury .btn-primary,
.mercury .btn-mercury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    padding: 13px 22px;
    background: var(--c-primary);
    color: var(--c-text-on-primary);
    border: 0;
    border-radius: var(--r-md);
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: var(--t-body);
    line-height: 1.2;
    letter-spacing: -0.005em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--tr-base), transform var(--tr-base), box-shadow var(--tr-base);
    box-shadow: var(--sh-sm), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    white-space: nowrap;
}
.mercury .btn-primary:hover,
.mercury .btn-mercury:hover {
    background: var(--c-primary-hover);
    color: var(--c-text-on-primary);
    transform: translateY(-1px);
    box-shadow: var(--sh-md), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.mercury .btn-primary:active,
.mercury .btn-mercury:active { transform: translateY(0); }
.mercury .btn-primary.btn-block,
.mercury .btn-mercury.btn-block { width: 100%; }
.mercury .btn-primary.btn-lg,
.mercury .btn-mercury.btn-lg { padding: 15px 26px; font-size: var(--t-lead); }

.mercury .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-8);
    padding: 13px 22px;
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: var(--t-body);
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--tr-base), background-color var(--tr-base), color var(--tr-base);
    white-space: nowrap;
}
.mercury .btn-outline:hover {
    border-color: var(--c-border-strong);
    background: var(--c-bg-section);
    color: var(--c-text);
}
.mercury .btn-outline.btn-block { width: 100%; }

.mercury .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--s-8);
    padding: 8px 14px;
    background: transparent;
    color: var(--c-text-soft);
    border: 0;
    border-radius: var(--r-md);
    font-family: var(--f-sans);
    font-weight: 500;
    font-size: var(--t-body-sm);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--tr-base), background-color var(--tr-base);
}
.mercury .btn-ghost:hover {
    color: var(--c-text);
    background: var(--c-bg-section);
}

/* ─── Forms / inputs ──────────────────────────────────────────── */
.mercury .form-field {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}
.mercury .form-label {
    font-size: var(--t-body-sm);
    color: var(--c-text);
    font-weight: 500;
    margin: 0;
}
.mercury .input-pill,
.mercury .form-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: var(--t-body);
    line-height: 1.4;
    outline: none;
    transition: border-color var(--tr-base), background-color var(--tr-base), box-shadow var(--tr-base);
}
.mercury .input-pill::placeholder,
.mercury .form-input::placeholder { color: var(--c-text-dim); }
.mercury .input-pill:hover,
.mercury .form-input:hover { border-color: var(--c-border-strong); }
.mercury .input-pill:focus,
.mercury .form-input:focus {
    border-color: var(--c-primary);
    box-shadow: var(--sh-focus);
}

/* Hero email input + button joined (kept for compat) */
.mercury .input-group-pill {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.mercury .input-group-pill:focus-within {
    border-color: var(--c-primary);
    box-shadow: var(--sh-focus);
}
.mercury .input-group-pill > input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: var(--t-body);
    padding: 12px 16px;
    outline: none;
}
.mercury .input-group-pill > button { border-radius: 0; margin: 0; padding: 12px 20px; }

/* TOTP input — centered, monospace */
.mercury .input-totp {
    text-align: center;
    letter-spacing: 0.35em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 22px;
    font-weight: 500;
}

/* ─── Alert / inline notice ───────────────────────────────────── */
.mercury .alert-line {
    display: flex;
    align-items: center;
    gap: var(--s-8);
    padding: 10px 14px;
    background: var(--c-danger-soft);
    border: 1px solid #fca5a5;
    border-radius: var(--r-md);
    color: #991b1b;
    font-size: var(--t-body-sm);
}
.mercury .alert-line.alert-ok {
    background: var(--c-success-soft);
    border-color: #86efac;
    color: #166534;
}

/* ─── Card surface ────────────────────────────────────────────── */
.mercury .card-surface {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--s-40);
    box-shadow: var(--sh-md);
}
@media (max-width: 640px) {
    .mercury .card-surface { padding: var(--s-24); }
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.mercury .hero {
    padding: var(--s-80) 0 var(--s-56);
    position: relative;
    overflow: hidden;
}
@media (min-width: 768px) {
    .mercury .hero { padding: var(--s-120) 0 var(--s-96); }
}

/* ─── Aurora hero (R175.16 — Mercury.com replica + animations) ────
   Hero photo lives in a fixed-position layer so it scrolls
   independently of the content (parallax). Ken Burns slow-zoom
   simulates the scroll-scrub video Mercury uses. Edge vignette +
   bottom dissolve into white page.
   ────────────────────────────────────────────────────────────── */
.mercury .hero-aurora {
    position: relative;
    padding: var(--s-120) 0 var(--s-128);
    overflow: hidden;
    min-height: 92vh;
    isolation: isolate;
    /* Just overlays — photo lives in the .hero-photo-layer below */
    background:
        /* (1) Soft top-fade for nav legibility */
        linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0) 20%),
        /* (2) Edge vignette — darker on the left/right corners */
        radial-gradient(ellipse 65% 75% at 50% 50%,
            rgba(15, 23, 42, 0) 0%,
            rgba(15, 23, 42, 0.12) 55%,
            rgba(15, 23, 42, 0.40) 90%),
        /* (3) Bottom-fade — dissolves into white page below */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 78%,
            rgba(255, 255, 255, 0.70) 92%,
            #ffffff 100%);
}

/* The photo itself — separate fixed-position layer that lives behind
   the overlay gradients above. Ken Burns slow-zoom animation gives
   the scroll-scrub-video feel Mercury uses. */
.mercury .hero-photo-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.mercury .hero-photo-layer::before {
    content: '';
    position: absolute;
    inset: -5%; /* extra room for ken burns zoom */
    background:
        url('/assets/images/landing-hero.jpg') center 35% / cover no-repeat,
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=85&auto=format&fit=crop') center 35% / cover no-repeat,
        var(--c-bg);
    animation: hero-ken-burns 32s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes hero-ken-burns {
    0%   { transform: scale(1.00) translate(0, 0); }
    50%  { transform: scale(1.08) translate(-1.5%, -1%); }
    100% { transform: scale(1.04) translate(1.5%, 0.5%); }
}
@media (prefers-reduced-motion: reduce) {
    .mercury .hero-photo-layer::before { animation: none; }
}
.mercury .hero-aurora::before {
    /* Vivid aurora color blooms — visible at the edges where photo shows through */
    content: '';
    position: absolute;
    inset: -200px -200px auto -200px;
    height: 900px;
    background:
        radial-gradient(ellipse 40% 35% at 15% 25%, rgba(168, 85, 247, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 25%, rgba(65, 105, 225, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 50% 80%, rgba(236, 72, 153, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 10% 75%, rgba(6, 182, 212, 0.14) 0%, transparent 60%);
    filter: blur(70px);
    z-index: 0;
    animation: aurora-drift 28s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}
@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-30px, 20px) scale(1.05); }
    100% { transform: translate(20px, -10px) scale(1.02); }
}
.mercury .hero-aurora > .container-mx {
    position: relative;
    z-index: 1;
}
/* Subtle grid pattern overlay — Linear style */
.mercury .hero-aurora .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(0,0,0,.85), transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(0,0,0,.85), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Aurora hero typography — WHITE over photo */
.mercury .hero-aurora .display {
    font-size: clamp(48px, 7.5vw, 88px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(15, 23, 42, 0.30);
}
.mercury .hero-aurora .lead {
    font-size: 21px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.005em;
    text-shadow: 0 1px 20px rgba(15, 23, 42, 0.30);
}

/* Email + Button combo (Mercury "Open account" pattern) */
.mercury .hero-cta-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.20);
    max-width: 520px;
    width: 100%;
    gap: 4px;
}
.mercury .hero-cta-pill input[type="email"],
.mercury .hero-cta-pill input[type="text"] {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 12px 22px;
    color: #ffffff;
    font-family: var(--f-sans);
    font-size: 16px;
    outline: none;
    min-width: 0;
}
.mercury .hero-cta-pill input::placeholder { color: rgba(255, 255, 255, 0.70); }
.mercury .hero-cta-pill .btn-primary {
    border-radius: var(--r-pill);
    padding: 12px 26px;
    flex-shrink: 0;
    background: var(--c-primary);
    box-shadow: 0 4px 14px rgba(65, 105, 225, 0.50);
}
.mercury .hero-cta-pill .btn-primary:hover {
    background: var(--c-primary-hover);
    transform: none;
}

/* Disclaimer pill — dark glass at hero bottom */
.mercury .hero-disclaimer {
    display: inline-block;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.88);
    padding: 12px 24px;
    border-radius: var(--r-pill);
    font-size: 13px;
    line-height: 1.5;
    max-width: 720px;
}

/* Gradient text — vivid sunrise spectrum */
.mercury .gradient-text {
    background: linear-gradient(120deg, #4169E1 0%, #a855f7 35%, #ec4899 70%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Hero CTAs — extra glow */
.mercury .hero-aurora .btn-primary {
    box-shadow: 0 10px 30px -8px rgba(65, 105, 225, 0.55), 0 4px 8px rgba(15, 23, 42, 0.08);
}
.mercury .hero-aurora .btn-primary:hover {
    box-shadow: 0 14px 36px -8px rgba(65, 105, 225, 0.65), 0 4px 12px rgba(15, 23, 42, 0.10);
}

/* Trust row pills — light pills with colored icons */
.mercury .hero-aurora .trust-row > span {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--c-border-soft);
    padding: 7px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    font-weight: 500;
    color: var(--c-text);
    font-size: var(--t-body-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Product preview — smaller, refined floating canvas */
.mercury .hero-aurora-preview {
    margin: var(--s-56) auto 0;
    max-width: 820px;
    position: relative;
    z-index: 1;
}
.mercury .hero-aurora-preview .hero-preview {
    border-radius: 12px;
    box-shadow:
        0 40px 80px -20px rgba(65, 105, 225, 0.25),
        0 20px 40px -20px rgba(15, 23, 42, 0.20),
        0 0 0 1px rgba(15, 23, 42, 0.06);
    transform: perspective(1600px) rotateX(2deg);
    transform-origin: center top;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    padding: 12px;
}
.mercury .hero-aurora-preview .hero-preview:hover {
    transform: perspective(1600px) rotateX(0deg) translateY(-4px);
}
.mercury .hero-aurora-preview .hero-preview-bar {
    height: 24px;
    margin: -12px -12px 12px;
}
.mercury .hero-aurora-preview .hero-preview-bar .dot { width: 9px; height: 9px; }
.mercury .hero-aurora-preview .hero-preview-stats {
    gap: 10px;
    margin-bottom: 12px;
}
.mercury .hero-aurora-preview .hero-preview-stat { padding: 12px; }
.mercury .hero-aurora-preview .hero-preview-stat .stat-num { font-size: 18px; margin-top: 2px; }
.mercury .hero-aurora-preview .hero-preview-stat .stat-key { font-size: 10px; }
.mercury .hero-aurora-preview .hero-preview-stat .stat-delta { font-size: 10px; }
.mercury .hero-aurora-preview .hero-preview-chart {
    height: 56px;
    margin-bottom: 10px;
}
.mercury .hero-aurora-preview .hero-preview-row {
    padding: 8px 10px;
    font-size: 12px;
}
.mercury .hero-aurora-preview::before {
    /* Glow underneath the product preview */
    content: '';
    position: absolute;
    inset: 25% 5% -10% 5%;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(65, 105, 225, 0.28), transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

@media (max-width: 767px) {
    .mercury .hero-aurora { padding: var(--s-72) 0 var(--s-56); }
    .mercury .hero-aurora .display { font-size: clamp(36px, 9vw, 48px); }
    .mercury .hero-aurora-preview { margin-top: var(--s-48); }
    .mercury .hero-aurora-preview .hero-preview { transform: none; }
}

/* ─── (Legacy photo-hero R175.6 — kept for compat with login page) ─── */
.mercury .hero-photo {
    padding: var(--s-96) 0 var(--s-96);
    min-height: 580px;
    position: relative;
    background:
        /* (1) Bottom white-fade — dissolves into page below */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0.65) 88%,
            #ffffff 100%),
        /* (2) Darken everything — top + left a bit darker for white text contrast */
        linear-gradient(115deg,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.40) 35%,
            rgba(15, 23, 42, 0.20) 65%,
            rgba(15, 23, 42, 0.12) 100%),
        /* (3) Indigo color cast for brand consistency */
        linear-gradient(135deg,
            rgba(65, 105, 225, 0.15) 0%,
            rgba(124, 58, 237, 0.08) 50%,
            rgba(15, 23, 42, 0.05) 100%),
        /* (4) The photo */
        url('/assets/images/landing-hero.jpg') center 35% / cover no-repeat,
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=85&auto=format&fit=crop') center 35% / cover no-repeat,
        var(--c-bg);
}
/* RTL mirror */
.mercury[dir="rtl"] .hero-photo {
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0.65) 88%,
            #ffffff 100%),
        linear-gradient(245deg,
            rgba(15, 23, 42, 0.55) 0%,
            rgba(15, 23, 42, 0.40) 35%,
            rgba(15, 23, 42, 0.20) 65%,
            rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(225deg,
            rgba(65, 105, 225, 0.15) 0%,
            rgba(124, 58, 237, 0.08) 50%,
            rgba(15, 23, 42, 0.05) 100%),
        url('/assets/images/landing-hero.jpg') center 35% / cover no-repeat,
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=85&auto=format&fit=crop') center 35% / cover no-repeat,
        var(--c-bg);
}
@media (max-width: 767px) {
    .mercury .hero-photo {
        padding: var(--s-72) 0 var(--s-80);
        min-height: 500px;
        background:
            linear-gradient(180deg,
                rgba(15, 23, 42, 0.55) 0%,
                rgba(15, 23, 42, 0.35) 50%,
                rgba(255, 255, 255, 0.65) 88%,
                #ffffff 100%),
            url('/assets/images/landing-hero.jpg') center 35% / cover no-repeat,
            url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=2400&q=85&auto=format&fit=crop') center 35% / cover no-repeat,
            var(--c-bg);
    }
}

/* Hero text in WHITE for high contrast over the darkened photo */
.mercury .hero-photo .display,
.mercury .hero-photo .h2,
.mercury .hero-photo .h3 {
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(15, 23, 42, 0.50), 0 1px 0 rgba(15, 23, 42, 0.30);
}
.mercury .hero-photo .lead {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.45);
}

/* Trust row pills — translucent dark on light text */
.mercury .hero-photo .trust-row > span {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.20);
}

/* Eyebrow pill stays bright white (it's the only "chip" callout) */
.mercury .hero-photo .eyebrow {
    background: rgba(255, 255, 255, 0.96);
    color: var(--c-primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
    font-weight: 600;
}

/* See-features outline button must be visible on dark — switch to white outline */
.mercury .hero-photo .btn-outline {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.mercury .hero-photo .btn-outline:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: #ffffff;
    color: #ffffff;
}

/* Primary button on the hero gets a glow */
.mercury .hero-photo .btn-primary {
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.45), 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* The eyebrow gains a glassy white treatment so it pops against any sky color */
.mercury .hero-photo .eyebrow {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--c-primary);
    box-shadow: var(--sh-sm);
}

/* Trust row checkmark pills — clean white background so the row reads */
.mercury .hero-photo .trust-row > span {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
}

/* Body text gets a soft shadow as belt-and-suspenders if a viewport edge bleeds */
.mercury .hero-photo .lead { color: var(--c-text); }

/* Disable floating deco-blobs inside hero-photo — the photo is the visual */
.mercury .hero-photo .deco-blob { display: none; }

/* Lift the product preview slightly with a more dramatic shadow over the photo */
.mercury .hero-photo .hero-preview {
    box-shadow:
        0 30px 60px -20px rgba(15, 23, 42, 0.30),
        0 12px 24px -8px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.04);
}

/* Section-soft background gets a delicate gradient instead of flat */
.mercury .section-soft {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, var(--c-bg-section) 12%, var(--c-bg-section) 88%, rgba(248, 250, 252, 0) 100%);
    position: relative;
    overflow: hidden;
}

/* (R175.5 photo hero is defined above. Old reset removed.) */

/* Split layout for hero (left content / right form) */
.mercury .split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-56);
    align-items: center;
}
@media (min-width: 960px) {
    .mercury .split {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--s-80);
    }
}

/* ─── Trust row ────────────────────────────────────────────────── */
.mercury .trust-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--s-24);
    color: var(--c-text-mute);
    font-size: var(--t-body-sm);
}
.mercury .trust-row > span { display: inline-flex; align-items: center; gap: var(--s-8); }
.mercury .trust-row .bi { color: var(--c-green); font-size: 16px; }

/* ─── Feature cards (grid) ────────────────────────────────────── */
.mercury .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--s-24);
}
.mercury .feature-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-xl);
    padding: var(--s-32);
    transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
}
.mercury .feature-card:hover {
    border-color: var(--c-border);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}
/* R175.23 — Base .feature-icon (works in any container).
   Previously scoped to .feature-card only, so .usecase-card icons
   rendered as stretched empty boxes with the glyph floating in the
   corner. Promoted to global so size + flex-center always apply. */
.mercury .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}
.mercury .feature-icon > .bi { line-height: 1; }
.mercury .feature-card .feature-title {
    font-size: var(--t-h5);
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}
.mercury .feature-card .feature-desc {
    font-size: var(--t-body-sm);
    color: var(--c-text-mute);
    line-height: 1.6;
    margin: 0;
}

/* Color variants for feature icons */
.mercury .icon-indigo { background: var(--c-primary-soft); color: var(--c-primary); }
.mercury .icon-purple { background: var(--c-purple-soft); color: var(--c-purple); }
.mercury .icon-green  { background: var(--c-green-soft);  color: var(--c-green); }
.mercury .icon-orange { background: var(--c-orange-soft); color: var(--c-orange); }
.mercury .icon-pink   { background: var(--c-pink-soft);   color: var(--c-pink); }
.mercury .icon-cyan   { background: var(--c-cyan-soft);   color: var(--c-cyan); }
.mercury .icon-blue   { background: var(--c-blue-soft);   color: var(--c-blue); }

/* ─── Stat tiles ──────────────────────────────────────────────── */
.mercury .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s-32);
}
.mercury .stat {
    text-align: center;
}
.mercury .stat-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.mercury .stat-label {
    font-size: var(--t-body-sm);
    color: var(--c-text-mute);
    margin-top: var(--s-8);
}

/* ─── Plan card (pricing) ─────────────────────────────────────── */
.mercury .plan-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--s-32);
    display: flex;
    flex-direction: column;
    gap: var(--s-16);
    position: relative;
    transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
}
.mercury .plan-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}
.mercury .plan-card.featured {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 1px var(--c-primary), var(--sh-md);
    background: linear-gradient(180deg, var(--c-primary-soft) 0%, var(--c-bg-card) 40%);
}
.mercury .plan-price {
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.03em;
}
.mercury .plan-price-suffix {
    font-size: var(--t-body-sm);
    color: var(--c-text-mute);
    font-weight: 400;
}
.mercury .plan-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--c-primary);
    color: var(--c-text-on-primary);
    border-radius: var(--r-pill);
    font-size: var(--t-caption);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mercury .plan-features { list-style: none; padding: 0; margin: 0; }
.mercury .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-12);
    padding: var(--s-8) 0;
    font-size: var(--t-body-sm);
    color: var(--c-text-soft);
}
.mercury .plan-features li .bi {
    color: var(--c-green);
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 14px;
}

/* ─── Hero product preview (faux dashboard) ───────────────────── */
.mercury .hero-preview {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-xl);
    padding: var(--s-16);
    overflow: hidden;
    position: relative;
}
.mercury .hero-preview-bar {
    height: 28px;
    border-radius: var(--r-md) var(--r-md) 0 0;
    background: var(--c-bg-section);
    border-bottom: 1px solid var(--c-border-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--s-12);
    margin: -16px -16px var(--s-16);
}
.mercury .hero-preview-bar .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong);
}
.mercury .hero-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-12);
    margin-bottom: var(--s-16);
}
.mercury .hero-preview-stat {
    padding: var(--s-16);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
}
.mercury .hero-preview-stat .stat-key {
    font-size: 11px;
    color: var(--c-text-mute);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mercury .hero-preview-stat .stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    margin-top: 4px;
}
.mercury .hero-preview-stat .stat-delta {
    font-size: 11px;
    color: var(--c-green);
    font-weight: 500;
    margin-top: 2px;
}
.mercury .hero-preview-chart {
    height: 88px;
    background:
        linear-gradient(180deg, rgba(65, 105, 225, 0.12), transparent 80%),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(124, 58, 237, 0.08), transparent 60%);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--s-12);
}
.mercury .hero-preview-chart::after {
    /* fake chart line */
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 88' preserveAspectRatio='none'><path d='M0 60 L 30 50 L 60 55 L 90 35 L 120 40 L 150 25 L 180 30 L 210 18 L 240 24 L 270 12 L 300 16' stroke='%234169E1' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center/100% 100%;
}
.mercury .hero-preview-rows { display: flex; flex-direction: column; gap: 6px; }
.mercury .hero-preview-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--s-12);
    padding: var(--s-10) var(--s-12);
    border-radius: var(--r-sm);
    font-size: 13px;
    align-items: center;
    background: var(--c-bg-soft);
}
.mercury .hero-preview-row .row-name { color: var(--c-text); font-weight: 500; }
.mercury .hero-preview-row .row-amount { color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.mercury .hero-preview-row .row-pill {
    padding: 2px 10px;
    background: var(--c-green-soft);
    color: var(--c-green);
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 600;
}
.mercury .hero-preview-row.unpaid .row-pill { background: var(--c-orange-soft); color: var(--c-orange); }

/* ─── Footer ───────────────────────────────────────────────────── */
.mercury .footer {
    border-top: 1px solid var(--c-border-soft);
    padding: var(--s-56) 0 var(--s-40);
    background: var(--c-bg-section);
}
.mercury .footer-inner {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--s-24);
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--s-40);
}
@media (max-width: 720px) {
    .mercury .footer-inner { grid-template-columns: 1fr 1fr; }
}
.mercury .footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: 0.02em;
    margin-bottom: var(--s-12);
}
.mercury .footer-links { list-style: none; padding: 0; margin: 0; }
.mercury .footer-links li { padding: var(--s-4) 0; }
.mercury .footer-link {
    color: var(--c-text-mute);
    font-size: var(--t-body-sm);
    text-decoration: none;
}
.mercury .footer-link:hover { color: var(--c-primary); }
.mercury .footer-bottom {
    max-width: var(--page-max-width);
    margin: var(--s-40) auto 0;
    padding: var(--s-24) var(--s-24) 0;
    border-top: 1px solid var(--c-border-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-12);
    color: var(--c-text-mute);
    font-size: var(--t-body-sm);
}
.mercury .footer-tagline {
    color: var(--c-text-mute);
    font-size: var(--t-body-sm);
    margin: var(--s-12) 0 0;
    max-width: 320px;
    line-height: 1.5;
}

/* ─── FAQ accordion-ish (just visual stack) ───────────────────── */
.mercury .faq-item {
    padding: var(--s-24) 0;
    border-bottom: 1px solid var(--c-border-soft);
}
.mercury .faq-item:last-child { border-bottom: 0; }
.mercury .faq-q {
    font-size: var(--t-h5);
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-8);
}
.mercury .faq-a {
    font-size: var(--t-body);
    color: var(--c-text-soft);
    line-height: 1.6;
    margin: 0;
}

/* ─── Use-case cards ──────────────────────────────────────────── */
.mercury .usecase-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--s-32);
    height: 100%;
    transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.mercury .usecase-card:hover { border-color: var(--c-primary-border); box-shadow: var(--sh-md); }

/* ─── Locale flip ─────────────────────────────────────────────── */
.mercury .locale-flip {
    color: var(--c-text-soft);
    padding: 7px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: var(--t-caption);
    text-decoration: none;
    transition: border-color var(--tr-base), color var(--tr-base);
}
.mercury .locale-flip:hover { color: var(--c-text); border-color: var(--c-border-strong); }

/* ─── Product mockup panels (R175.24) ─────────────────────────
   Realistic-looking UI previews so prospects see what the app
   actually looks like. CSS-only — no real screenshots — but
   detailed enough to feel like a real product. */
.mercury .mockup {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
}
.mercury .mockup-chrome {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--c-bg-section);
    border-bottom: 1px solid var(--c-border-soft);
}
.mercury .mockup-chrome .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--c-border-strong);
}
.mercury .mockup-chrome .url {
    margin-left: 10px;
    font-size: 11px;
    color: var(--c-text-mute);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.mercury .mockup-body {
    padding: 16px;
}
.mercury .mockup-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border-soft);
}
.mercury .mockup-toolbar .title {
    font-weight: 600;
    color: var(--c-text);
    font-size: 14px;
}
.mercury .mockup-btn {
    background: var(--c-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--r-md);
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mercury .mockup-btn.btn-light {
    background: var(--c-bg-section);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

/* Mockup KPI tiles */
.mercury .mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.mercury .mockup-kpi {
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    padding: 10px 12px;
    background: var(--c-bg-soft);
}
.mercury .mockup-kpi .lbl {
    font-size: 10px;
    color: var(--c-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.mercury .mockup-kpi .val {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.mercury .mockup-kpi .delta { font-size: 10px; color: var(--c-success); font-weight: 500; margin-top: 1px; }
.mercury .mockup-kpi .delta.neg { color: var(--c-orange); }

/* Mockup chart placeholder (SVG line) */
.mercury .mockup-chart {
    height: 76px;
    background: linear-gradient(180deg, rgba(65,105,225,0.10), transparent 80%);
    border-radius: var(--r-sm);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.mercury .mockup-chart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 76' preserveAspectRatio='none'><path d='M0 56 L 30 50 L 60 55 L 90 38 L 120 42 L 150 28 L 180 32 L 210 22 L 240 26 L 270 14 L 300 18' stroke='%234169E1' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
}

/* Mockup table */
.mercury .mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.mercury .mockup-table thead {
    background: var(--c-bg-section);
}
.mercury .mockup-table th {
    text-align: left;
    padding: 6px 10px;
    font-weight: 600;
    color: var(--c-text-mute);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--c-border-soft);
}
.mercury .mockup-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--c-border-soft);
    color: var(--c-text-soft);
    font-variant-numeric: tabular-nums;
}
.mercury .mockup-table tr:last-child td { border-bottom: 0; }
.mercury .mockup-table td.right { text-align: right; }
.mercury .mockup-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 600;
}
.mercury .mockup-pill.paid    { background: var(--c-green-soft); color: var(--c-green); }
.mercury .mockup-pill.partial { background: var(--c-orange-soft); color: var(--c-orange); }
.mercury .mockup-pill.draft   { background: var(--c-bg-section); color: var(--c-text-mute); }

/* Mockup form fields */
.mercury .mockup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.mercury .mockup-field { display: flex; flex-direction: column; }
.mercury .mockup-field .lbl { font-size: 10px; color: var(--c-text-mute); margin-bottom: 3px; font-weight: 500; }
.mercury .mockup-field .input {
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    background: var(--c-bg);
    font-size: 12px;
    color: var(--c-text);
}
.mercury .mockup-field.focus .input {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.12);
}

/* Mockup totals row */
.mercury .mockup-totals {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--c-bg-soft);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    font-size: 11px;
}
.mercury .mockup-totals .lbl { color: var(--c-text-mute); }
.mercury .mockup-totals .val { font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: 500; }
.mercury .mockup-totals .grand { font-weight: 700; font-size: 13px; color: var(--c-text); padding-top: 4px; border-top: 1px solid var(--c-border); }
.mercury .mockup-totals .grand.val { color: var(--c-primary); }

/* Mockup filter chips */
.mercury .mockup-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border-soft);
}
.mercury .mockup-chip {
    padding: 4px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
    font-size: 11px;
    color: var(--c-text-soft);
    background: var(--c-bg);
}
.mercury .mockup-chip.active {
    background: var(--c-primary-soft);
    border-color: var(--c-primary-border);
    color: var(--c-primary);
}

/* ─── Workflow chain diagram (R175.22) ─────────────────────────
   Horizontal flow: 6 step cards connected by arrow SVGs. Each
   step has an icon + label + 1-line subtitle. Responsive — wraps
   to a vertical stack on narrow viewports. */
.mercury .workflow-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
}
.mercury .wf-step {
    flex: 0 0 auto;
    min-width: 120px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--sh-sm);
    transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.mercury .wf-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}
.mercury .wf-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    margin: 0 auto 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.mercury .wf-label {
    font-weight: 600;
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.2;
}
.mercury .wf-sub {
    font-size: 11px;
    color: var(--c-text-mute);
    margin-top: 2px;
}
.mercury .wf-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 24px;
    color: var(--c-text-dim);
    opacity: 0.6;
}
.mercury .wf-arrow svg { width: 100%; height: 100%; }

/* Mini sub-flow (AR/AP horizontal pill chain) */
.mercury .wf-mini {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}
.mercury .wf-mini span {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-weight: 500;
    color: var(--c-text);
}
.mercury .wf-mini .bi { color: var(--c-text-dim); font-size: 12px; }

@media (max-width: 767px) {
    .mercury .workflow-chain {
        flex-direction: column;
        gap: 4px;
    }
    .mercury .workflow-chain .wf-step { width: 100%; max-width: 280px; }
    .mercury .workflow-chain .wf-arrow {
        width: 24px;
        height: 36px;
        transform: rotate(90deg);
    }
}

/* ─── Login page enhancements (R175.25) ─────────────────────────
   Premium auth feel: gradient-bordered glass form card, input
   icon prefixes, password visibility toggle, mesh-gradient hero,
   floating decorative gradient orbs. */
.mercury .login-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: var(--s-56) 0 var(--s-80);
    background:
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(65, 105, 225, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 88% 80%, rgba(124, 58, 237, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 100%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        var(--c-bg);
}
/* R239 - Login above-the-fold fix for laptop viewports (R236 audit). */
@media (max-height: 880px) {
    .mercury .login-hero {
        min-height: auto;
        align-items: flex-start;
        padding: var(--s-24) 0 var(--s-40);
    }
    .mercury .login-hero .split { align-items: start; }
    .mercury .login-hub { max-width: 340px; margin-top: var(--s-24); }
    .mercury .login-card { padding: var(--s-24) var(--s-32); }
    .mercury .login-hero h1.display { font-size: 2rem; margin-top: 12px; margin-bottom: 12px; }
    .mercury .login-hero .eyebrow { margin-bottom: 8px !important; }
    .mercury .login-hero .lead { margin-bottom: 16px !important; }
}

.mercury .login-hero::before {
    /* Faint dot grid scaled toward the center */
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.5), transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.5), transparent 80%);
    pointer-events: none;
}

/* Glass form card — translucent + gradient border */
.mercury .login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--r-xl);
    padding: var(--s-40);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 30px 60px -20px rgba(15, 23, 42, 0.15),
        0 12px 30px -8px rgba(65, 105, 225, 0.12);
}
.mercury .login-card::before {
    /* Gradient border */
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.35), rgba(124, 58, 237, 0.25) 40%, rgba(236, 72, 153, 0.15) 80%, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}
@media (max-width: 640px) { .mercury .login-card { padding: var(--s-24); } }

/* Input with leading icon */
.mercury .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.mercury .input-wrap .input-icon {
    position: absolute;
    left: 16px;
    color: var(--c-text-dim);
    font-size: 16px;
    pointer-events: none;
    transition: color var(--tr-base);
}
.mercury .input-wrap:focus-within .input-icon { color: var(--c-primary); }
.mercury .input-wrap input.input-pill { padding-left: 44px; }
.mercury[dir="rtl"] .input-wrap .input-icon { left: auto; right: 16px; }
.mercury[dir="rtl"] .input-wrap input.input-pill { padding-left: 14px; padding-right: 44px; }

/* Password visibility toggle button */
.mercury .input-wrap .input-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--c-text-dim);
    font-size: 16px;
    padding: 6px 8px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: color var(--tr-base), background-color var(--tr-base);
}
.mercury .input-wrap .input-toggle:hover {
    color: var(--c-primary);
    background: var(--c-primary-soft);
}
.mercury[dir="rtl"] .input-wrap .input-toggle { right: auto; left: 12px; }
.mercury .input-wrap input.input-pill.has-toggle { padding-right: 48px; }

/* Remember me row */
.mercury .login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.mercury .login-remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text-soft);
    cursor: pointer;
    user-select: none;
}
.mercury .login-remember-row input[type="checkbox"] {
    accent-color: var(--c-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Divider with text */
.mercury .login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 8px 0;
}
.mercury .login-divider::before,
.mercury .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

/* Sign-up footer prompt — soft card under the form */
.mercury .login-newuser {
    margin-top: var(--s-24);
    padding: var(--s-16);
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-soft);
    text-align: center;
    font-size: 14px;
    color: var(--c-text-soft);
}
.mercury .login-newuser a {
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}
.mercury .login-newuser a:hover { color: var(--c-primary-hover); }

/* Trust badges row — minimal pill chain on the left side */
.mercury .login-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}
.mercury .login-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-pill);
    font-size: 12px;
    color: var(--c-text-soft);
    box-shadow: var(--sh-sm);
}
.mercury .login-trust-pill .bi { color: var(--c-success); font-size: 13px; }
.mercury .login-trust-pill.indigo .bi { color: var(--c-primary); }
.mercury .login-trust-pill.purple .bi { color: var(--c-purple); }

/* ─── Login hub diagram (R175.22) ───────────────────────────────
   Inline SVG illustration for the left side of the login page —
   central hub with module-icon satellites connected by lines.
   Gives visitors a visual of "everything connected". */
.mercury .login-hub {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.mercury .login-hub svg { width: 100%; height: 100%; }
.mercury .login-hub .hub-node {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}
.mercury .login-hub:hover .hub-node { transform: scale(1.05); }
.mercury .login-hub .hub-pulse {
    animation: hub-pulse 3s ease-in-out infinite;
    transform-origin: 240px 240px;
}
@keyframes hub-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
    .mercury .login-hub .hub-pulse { animation: none; }
}

/* ─── Single-page scroll-snap (R175.19) ─────────────────────────
   Each .snap-section fills the viewport (min-height: 100vh) with
   scroll-snap-align: start so the browser gently snaps to it as
   you scroll. scroll-padding-top accounts for the sticky nav so
   anchor jumps don't disappear behind it. Proximity snap (not
   mandatory) so users can pause mid-scroll if they want. */
html:has(body.mercury .snap-section) {
    scroll-snap-type: y proximity;
    scroll-padding-top: 72px;
    scroll-behavior: smooth;
}
.mercury .snap-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
/* Hero already declares its own snap behavior */
.mercury .hero-aurora.snap-section {
    justify-content: flex-start;
}
@media (max-width: 767px) {
    /* On mobile, don't force 100vh — content reads better in natural flow */
    .mercury .snap-section { min-height: auto; }
    html:has(body.mercury .snap-section) { scroll-snap-type: none; }
}

/* Nav active state — current section in view */
.mercury .topnav .nav-link.is-active {
    color: var(--c-primary) !important;
    font-weight: 600;
}
body.mercury:has(.hero-aurora) .topnav:not(.is-scrolled) .nav-link.is-active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
}

/* ─── Scroll-triggered reveal animations (R175.16) ──────────────
   Elements with .reveal start hidden (opacity + translateY) and
   fade-up into place when JS adds .is-visible (IntersectionObserver
   in mercury_nav.php). Staggered delays via reveal-delay-{n}. */
.mercury .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mercury .reveal.is-visible { opacity: 1; transform: translateY(0); }
.mercury .reveal-delay-1 { transition-delay: 80ms; }
.mercury .reveal-delay-2 { transition-delay: 160ms; }
.mercury .reveal-delay-3 { transition-delay: 240ms; }
.mercury .reveal-delay-4 { transition-delay: 320ms; }

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .mercury * { transition: none !important; animation: none !important; }
    .mercury .reveal { opacity: 1; transform: none; }
}

/* RTL */
.mercury[dir="rtl"] .feature-card,
.mercury[dir="rtl"] .plan-card,
.mercury[dir="rtl"] .usecase-card { text-align: right; }
