﻿/* =============================================================================
   HumanCapital — site.css
   Single authoritative stylesheet for all public-facing views.
   Source: consolidated from _Layout.cshtml and Index.cshtml style blocks.
   Inline styles resolved into semantic classes (see section: Resolved Inline Styles).
   ============================================================================= */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* THIS pushes footer down */
}
/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-alt: #F4F6FA;
    --bg-alt2: #E8EDF5;
    /* US flag blue palette — Pantone 282 C */
    --navy: #002868;
    --navy-mid: #1B4FB8;
    --navy-pale: #E8EDF8;
    --navy-dark: #001A45;
    /* Typography */
    --text: #0B1226;
    --text-mid: #3D4560;
    --text-subtle: #6B7494;
    --text-muted: #9098B2;
    --white: #FFFFFF;
    /* Borders */
    --border: rgba(0, 40, 104, 0.12);
    --border-mid: rgba(0, 40, 104, 0.25);
    /* Fonts — declared in Platform.Web/wwwroot/css/platform-typography.css
       (--platform-font-display, --platform-font-body) per #63 / 1F-002. */
    /* Layout */
    --nav-h: 68px;
    --section-pad: clamp(64px, 10vw, 120px);
    --container: min(1120px, 100% - 2rem);
    --header-height: 64px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px; /* slightly larger for mobile */
    }
}
@media (max-width: 768px) {
    .onboarding-title {
        margin-top: 8px; /* reduce this */
    }
}

/* ── BASE ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--platform-font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
/* =============================================================================
   NAVIGATION
   ============================================================================= */

/* --- NAV FIX: enforce horizontal layout --- */
.site-nav .navbar-nav {
    display: flex !important;
    flex-direction: row !important; /* 🔥 THIS is the missing piece */
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav .nav-link {
    display: inline-flex;
    align-items: center;
}

nav.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(0, 40, 104, 0);
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

    nav.site-nav.scrolled {
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 1px 24px rgba(0, 40, 104, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

.nav-logo {
    font-family: var(--platform-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: 7px;
    font-family: var(--platform-font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-bell {
    display: inline-flex;
    align-items: center;
}

/* ── BUTTONS ── */
.btn-ghost {
    font-family: var(--platform-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    background: none;
    border: 1px solid var(--border-mid);
    border-radius: 6px;
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    display: inline-block;
}

    .btn-ghost:hover {
        background: var(--navy-pale);
        border-color: var(--navy);
        color: var(--navy);
        text-decoration: none;
    }

.btn-navy {
    font-family: var(--platform-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    display: inline-block;
}

    .btn-navy:hover {
        background: var(--navy-mid);
        border-color: var(--navy-mid);
        color: var(--white);
        text-decoration: none;
    }

.btn-primary {
    font-family: var(--platform-font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background: var(--navy);
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

    .btn-primary:hover {
        background: var(--navy-mid);
        transform: translateY(-1px);
        color: var(--white);
        text-decoration: none;
    }

.btn-outline {
    font-family: var(--platform-font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--navy);
    background: none;
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    padding: 14px 32px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
}

    .btn-outline:hover {
        background: var(--navy-pale);
        border-color: var(--navy);
        text-decoration: none;
        color: var(--navy);
    }

/* =============================================================================
   SHARED SECTION UTILITIES
   ============================================================================= */
section {
    padding: var(--section-pad) clamp(1rem, 4vw, 2.5rem);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 1rem;
}

    h2 em {
        font-style: italic;
        color: var(--navy-mid);
    }

.section-body {
    font-size: 1.05rem;
    color: var(--text-subtle);
    max-width: 560px;
    line-height: 1.75;
    font-weight: 300;
}

.navy-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-mid) 30%, var(--border-mid) 70%, transparent 100%);
}

/* =============================================================================
   SCROLL REVEAL
   ============================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =============================================================================
   FOOTER
   ============================================================================= */
footer.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--platform-font-display);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-mark {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.footer-link {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s;
    white-space: nowrap;
}

    .footer-link:first-child {
        padding-left: 0;
    }

    .footer-link:last-child {
        border-right: none;
        padding-right: 0;
    }

    .footer-link:hover {
        color: var(--white);
        text-decoration: none;
    }

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 0px) clamp(1rem, 4vw, 2.5rem) clamp(64px, 8vw, 100px);
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 75% 35%, rgba(0, 40, 104, 0.05) 0%, transparent 65%), radial-gradient(ellipse 50% 50% at 15% 85%, rgba(0, 40, 104, 0.03) 0%, transparent 55%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 40, 104, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 40, 104, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-pale);
    border: 1px solid var(--border-mid);
    border-radius: 100px;
    padding: 4px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--navy);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

    h1 em {
        font-style: italic;
        color: var(--navy-mid);
    }

.hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-subtle);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.hero-trust-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-subtle);
}

.stat-chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--navy-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .stat-chip-icon svg {
        width: 10px;
        height: 10px;
        fill: var(--navy);
    }

/* =============================================================================
   PAIN
   ============================================================================= */
.pain {
    background: var(--bg-alt);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 3rem;
}

.pain-card {
    background: var(--bg-alt);
    padding: 2rem 1.75rem;
    transition: background 0.2s;
}

    .pain-card:hover {
        background: var(--bg-alt2);
    }

.pain-number {
    font-family: var(--platform-font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(0, 40, 104, 0.22);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.pain-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pain-body {
    font-size: 0.9rem;
    color: var(--text-subtle);
    line-height: 1.65;
    font-weight: 300;
}

/* =============================================================================
   PILLARS
   ============================================================================= */
.pillars {
    background: var(--bg);
}

.pillars-header {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .pillars-header {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }
}

/* Resolved inline style: style="margin-top:0;" on the pillars header body text */
.pillars-header .section-body {
    margin-top: 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    background: var(--bg);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

    .pillar-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--navy), transparent);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .pillar-card:hover {
        border-color: var(--border-mid);
        background: var(--navy-pale);
        box-shadow: 0 4px 24px rgba(0, 40, 104, 0.08);
    }

        .pillar-card:hover::before {
            opacity: 1;
        }

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--navy-pale);
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

    .pillar-icon svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--navy);
        stroke-width: 1.5px;
    }

.pillar-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pillar-body {
    font-size: 0.875rem;
    color: var(--text-subtle);
    line-height: 1.65;
    font-weight: 300;
}

/* ── Resolved inline styles: the 99.9% accuracy pillar card ──────────────────
   Was: style="display:flex;flex-direction:column;justify-content:center;
               align-items:center;text-align:center;border-color:var(--border-mid);
               background:var(--navy-pale);"
   Now: class="pillar-card pillar-card--stat"
   ───────────────────────────────────────────────────────────────────────────── */
.pillar-card--stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-color: var(--border-mid);
    background: var(--navy-pale);
}

/* Was: style="font-family:var(--font-display);font-size:2.4rem;
               font-weight:600;color:var(--navy);margin-bottom:0.5rem;"
   Now: class="pillar-stat-value" */
.pillar-stat-value {
    font-family: var(--platform-font-display);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* Was: style="font-size:1.2rem;color:var(--navy-mid);" on the + span
   Now: class="pillar-stat-sup" */
.pillar-stat-sup {
    font-size: 1.2rem;
    color: var(--navy-mid);
}

/* Was: style="font-size:0.9rem;color:var(--text-subtle);font-weight:300;"
   Now: class="pillar-stat-body" */
.pillar-stat-body {
    font-size: 0.9rem;
    color: var(--text-subtle);
    font-weight: 300;
}

/* =============================================================================
   STATUTORY
   ============================================================================= */
.statutory {
    background: var(--bg-alt);
}

.statutory-layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .statutory-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.statutory-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-badge {
    border: 1px solid var(--border-mid);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .stat-badge:hover {
        border-color: var(--navy);
        box-shadow: 0 4px 16px rgba(0, 40, 104, 0.1);
    }

.stat-badge-abbr {
    font-family: var(--platform-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-badge-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
}

/* =============================================================================
   PROCESS (HOW IT WORKS)
   ============================================================================= */
.process {
    background: var(--bg);
}

.process-steps {
    display: grid;
    gap: 0;
    margin-top: 3.5rem;
    list-style: none;
    padding: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 1.5rem;
    padding-bottom: 2.5rem;
}

    .process-step:last-child {
        padding-bottom: 0;
    }

.process-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-pale);
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--platform-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-step-line {
    flex: 1;
    width: 1px;
    background: var(--border);
    margin: 8px 0;
}

.process-step:last-child .process-step-line {
    display: none;
}

.process-step-window {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.4rem;
    padding-top: 10px;
}

.process-step-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.process-step-body {
    font-size: 0.875rem;
    color: var(--text-subtle);
    line-height: 1.65;
    font-weight: 300;
}

/* =============================================================================
   METRICS
   ============================================================================= */
.metrics {
    background: var(--navy);
}

    /* Resolved inline styles — text-align added directly to existing rules:
   style="text-align:center" on section-label → .metrics .section-label
   style="text-align:center;margin-bottom:0;" on h2  → .metrics h2        */
    .metrics .section-label {
        color: rgba(255, 255, 255, 0.6);
        text-align: center;
    }

    .metrics h2 {
        color: var(--white);
        text-align: center;
        margin-bottom: 0;
    }

        .metrics h2 em {
            color: rgba(255, 255, 255, 0.7);
            font-style: italic;
        }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 3rem;
}

@media (min-width: 800px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-cell {
    background: var(--navy);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

    .metric-cell:hover {
        background: var(--navy-dark);
    }

.metric-value {
    font-family: var(--platform-font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

    .metric-value span {
        color: rgba(255, 255, 255, 0.6);
    }

.metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    line-height: 1.45;
}

/* =============================================================================
   CURRENCIES
   ============================================================================= */
.currencies {
    background: var(--bg-alt);
}

.currencies-layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .currencies-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.currency-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 899px) {
    .currency-pair {
        margin-top: 2rem;
    }
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-mid);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .currency-row:hover {
        border-color: var(--navy);
        box-shadow: 0 4px 16px rgba(0, 40, 104, 0.08);
    }

.currency-symbol {
    font-family: var(--platform-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    width: 44px;
}

.currency-info-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.currency-info-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Resolved inline style: style="font-size:1.2rem;" on the ZWG symbol
   Was: <div class="currency-symbol" style="font-size:1.2rem;">ZWG</div>
   Now: <div class="currency-symbol currency-symbol--zwg">ZWG</div>         */
.currency-symbol--zwg {
    font-size: 1.2rem;
}

.currency-lock {
    margin-left: auto;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--navy-pale);
    border: 1px solid var(--border-mid);
    border-radius: 100px;
    padding: 4px 12px;
}

/* =============================================================================
   DIFFERENTIATOR
   ============================================================================= */
.diff {
    background: var(--bg);
}

.diff-card {
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, var(--navy-pale) 0%, var(--bg) 60%);
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .diff-card {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Resolved inline style: style="margin-bottom:1.25rem;" on section-label inside diff-card
   Was: <div class="section-label" style="margin-bottom:1.25rem;">
   Now: <div class="section-label"> — rule added contextually below              */
.diff-card .section-label {
    margin-bottom: 1.25rem;
}

.diff-quote {
    font-family: var(--platform-font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
}

    .diff-quote em {
        color: var(--navy-mid);
        font-style: italic;
    }

.diff-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .diff-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.95rem;
        color: var(--text-subtle);
        font-weight: 300;
    }

.diff-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy-pale);
    border: 1px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

    .diff-check svg {
        width: 10px;
        height: 10px;
        fill: none;
        stroke: var(--navy);
        stroke-width: 2.5px;
    }

/* =============================================================================
   CTA
   ============================================================================= */
.cta-section {
    background: var(--bg-alt);
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-body {
    font-size: 1.05rem;
    color: var(--text-subtle);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cta-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================================================
   RESOLVED INLINE STYLES — UTILITIES
   ============================================================================= */

/* Large CTA button modifier
   Was: style="padding:16px 40px;font-size:1rem;" on both CTA buttons
   Now: class="btn-primary btn-lg" / class="btn-outline btn-lg"              */
.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* =============================================================================
   RESPONSIVE OVERRIDES
   ============================================================================= */
@media (max-width: 480px) {
    .nav-logo span {
        display: none;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
    }
}

/* Onboarding*/
.wiz {
    max-width: 660px;
    margin: 0 auto;
    padding: 40px 20px 64px;
    font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
}
    .wiz section {
        padding: 0;
        margin: 0;
    }
    .wiz form {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
.wiz-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    list-style: none;
    padding: 0;
}

.wiz-steps__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C8D1E6;
    flex-shrink: 0;
}

.wiz-steps__dot--active {
    background: #1B2B50;
}

.wiz-steps__label {
    font-size: 12px;
    font-weight: 500;
    color: #9AA3BB;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-left: 4px;
}

.wiz h1 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 600;
    color: #111D38;
    letter-spacing: -.4px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.wiz__sub {
    font-size: 15px;
    color: #9AA3BB;
    margin-bottom: 36px;
}

.wiz-sec__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9AA3BB;
    margin-bottom: 10px;
}

.wiz-sec {
    margin-bottom: 28px;
}

.wiz-divider {
    border: none;
    border-top: 1px solid #EDF0F7;
    margin: 24px 0;
}

.wiz-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wiz-grid--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.wiz-validation ul {
    list-style: none; /* remove bullets */
    padding-left: 0; /* remove indent */
    margin: 0;
}

.wiz-validation li {
    padding-left: 0;
}

@media (min-width: 540px) {
    .wiz-grid--flow-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .wiz-grid--flow-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 9px;
    }
}

.wiz-check {
    display: none !important;
}

.wiz-radio {
    display: none !important;
}
.wiz-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #C8D1E6;
    border-radius: 10px;
    padding: 14px 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
    min-height: 44px;
    user-select: none;
}

    .wiz-radio-card:hover {
        border-color: #8FA0CC;
        background: #EEF1F8;
    }

.wiz-radio:checked + .wiz-radio-card {
    border: 1.5px solid #1B2B50;
    background: #EEF1F8;
}

.wiz-radio-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #C8D1E6;
    background: #fff;
    flex-shrink: 0;
    transition: border .15s;
}

.wiz-radio:checked + .wiz-radio-card .wiz-radio-ring {
    border: 5px solid #1B2B50;
}

.wiz-radio-text {
    font-size: 14px;
    color: #4A5568;
}

.wiz-radio:checked + .wiz-radio-card .wiz-radio-text {
    font-weight: 500;
    color: #111D38;
}

.wiz-check-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #C8D1E6;
    border-radius: 10px;
    padding: 14px 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
    min-height: 44px;
    user-select: none;
}

    .wiz-check-card:hover:not(.wiz-check-card--locked) {
        border-color: #8FA0CC;
        background: #EEF1F8;
    }

.wiz-check:checked + .wiz-check-card {
    border: 1.5px solid #1B2B50;
    background: #EEF1F8;
}

.wiz-check-card--locked {
    cursor: default;
    background: #F4F6FB;
}

.wiz-check-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #C8D1E6;
    background: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background .15s, border .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiz-check:checked + .wiz-check-card .wiz-check-box,
.wiz-check-card--locked .wiz-check-box {
    background: #1B2B50;
    border: none;
}

.wiz-check-box__mark {
    display: none;
    width: 9px;
    height: 9px;
}

.wiz-check:checked + .wiz-check-card .wiz-check-box__mark,
.wiz-check-card--locked .wiz-check-box__mark {
    display: block;
}

.wiz-check-content {
    flex: 1;
}

.wiz-check-label {
    display: block;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.3;
}

.wiz-check:checked + .wiz-check-card .wiz-check-label {
    font-weight: 500;
    color: #111D38;
}

.wiz-check-card--locked .wiz-check-label {
    color: #6B7A99;
    font-weight: 500;
}

.wiz-check-note {
    display: block;
    font-size: 12px;
    color: #9AA3BB;
    margin-top: 2px;
}

.wiz-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9AA3BB;
    background: #E2E7F0;
    border-radius: 4px;
    padding: 2px 6px;
}

.wiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.wiz-back {
    background: none;
    border: none;
    font-size: 14px;
    color: #9AA3BB;
    cursor: pointer;
    padding: 12px 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

    .wiz-back:hover {
        color: #1B2B50;
    }

.wiz-validation {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #991B1B;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}


/* Centered page layout (auth, forms, etc.) */
.main-centered {
    padding: 60px 1rem 40px;
}

@media (min-width: 640px) {
    .main-centered {
        padding: 80px 1rem 60px;
    }
}

@media (min-width: 1024px) {
    .main-centered {
        padding: 100px 1rem 80px;
    }
}
main {
    padding-top: var(--header-height);
}

/* ── FORM SYSTEM ───────────────────────────── */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-subtle);
    font-weight: 500;
}

.form-input {
    display: block; /* ensure full width */
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 0 0.75rem;
    font-family: var(--platform-font-body);
    font-size: 0.95rem;
    background: var(--bg-alt);
    transition: all 0.15s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--navy-mid);
        background: var(--bg);
        box-shadow: 0 0 0 2px rgba(27, 79, 184, 0.08);
    }


.form-group label,
.form-label {
    display: block; /* override Bootstrap inline-block */
    font-size: 0.85rem;
    color: var(--text-subtle);
    font-weight: 500;
}

/* Primary buttons*/
/* Primary button (institution-grade) */
/* Outline → Solid on hover */
.btnDefault {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background-color: #fff;
    color: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    line-height: 1.2;
}

    .btnDefault:hover {
        background-color: var(--navy);
        color: #fff;
        border-color: var(--navy);
    }

    .btnDefault:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.25);
    }
    .btnDefault i {
        font-size: 0.9rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
    }
    .form-input:focus {
        outline: none;
        border-color: var(--navy);
        box-shadow: 0 0 0 2px rgba(0, 40, 104, 0.08);
    }

/* ── AUTH CARD ───────────────────────────── */

/*.auth-page {
    max-width: 480px;
    margin: 100px auto 60px;*/ /* centers horizontally */
    /*padding: 0 1rem;
}*/
.auth-page {
    flex: 1;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 24px rgba(0, 40, 104, 0.06);
    width: 100%; /* add this */
}

@media (min-width: 640px) {
    .auth-card {
        max-width: 460px;
    }
}

.auth-title {
    font-family: var(--platform-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
}

/* Sub-section heading inside an auth-card — visually parallel to
   .auth-title but kept as a distinct class so the semantic
   distinction (primary card title vs sub-section heading) survives
   in markup (h3 .auth-title vs h4 .auth-subtitle). Used on
   EnrollTotp's "Step 2: Verify with your first code." heading;
   reusable for any parallel-step UX inside an auth-card.
   margin-bottom (0.5rem) is a floor — actual gap below collapses
   with .form-group margin-top (1.25rem) to max=1.25rem. The floor
   protects against future .form-group margin shrinkage. */
.auth-subtitle {
    font-family: var(--platform-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin: 2rem 0 0.5rem;
}

.auth-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0 1.5rem;
}

/* ── AUTH FORM STACKING FIX ─────────────────────────────────────── */
.auth-card .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.35rem;
    margin-top: 1.25rem;
}

    .auth-card .form-group label,
    .auth-card .form-label {
        display: block !important;
        width: 100%;
    }

.auth-card .form-input {
    display: block !important;
    width: 100% !important;
}

/* Stacked-layout label spacing inside auth-card forms — the form-input
   Tag Helper's RenderStacked output is `<label> <input> ...` inside a
   class="mb-3" wrapper, with no intrinsic gap between label and input.
   This rule adds breathing room. Selector scope (.auth-card form)
   limits blast radius to auth surfaces; the `> label` direct-child
   combinator restricts to the form-input's own label (not nested
   labels deeper in the DOM). Used by Mfa/EnrollTotp.cshtml's verify
   form per 1H-001-#17 polish; the broader concern (whether all
   auth-card form-inputs should use layout="Stacked" by default) is
   filed as closure-backlog 1H-001-#19. */
.auth-card form .mb-3 > label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Submit button inside auth-card forms — vertical rhythm between
   form-input and action button. The save-button tag helper renders
   as a direct form child (not wrapped in .form-group), so it does
   NOT inherit the .form-group margin-top above; this rule applies
   a 2rem rhythm to establish clear visual separation between form
   content and call-to-action. 2rem (vs the .form-group's 1.25rem)
   reflects the rhythm scale: tight (0.5rem label→input) → medium
   (1.25rem within form-group) → large (2rem form→action). */
.auth-card form button[type="submit"] {
    margin-top: 2rem;
}

/* On mobile, don't vertically centre — start from top so card
   doesn't get squeezed against the nav on short screens */
@media (max-width: 639px) {
    .auth-page {
        align-items: flex-start;
        padding-top: calc(var(--nav-h) + 2rem);
    }
}
/*Error page*/
.error-soft {
    background: #F8FAFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-subtle);
    text-align: center;
    margin-bottom: 1.5rem;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.error-link {
    font-size: 0.85rem;
    color: var(--navy-mid);
    text-decoration: none;
}

    .error-link:hover {
        text-decoration: underline;
    }
.error-meta {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/*page-shell*/
.page-shell {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky; /* preferred over fixed */
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

/*Secure access*/

.secure-access-nav {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    color: #002868 !important;
    text-decoration: none;
}

    .secure-access-nav:hover {
        opacity: .75;
    }

    /*Login page*/
/* Container for the responsive group */
.responsive-group-container {
    display: flex;
    flex-direction: column; /* Stacked by default (Mobile) */
    width: 100%;
}

@media (min-width: 768px) {
    /* When on Desktop (md), the RenderResponsive method adds d-md-flex to the PARENT div.
       We want this container to behave as a single unit in that row. */
    .responsive-group-container {
        flex-direction: row;
        align-items: center;
    }

        /* If you want the 'Group' mode to look like a standard inline row on desktop: */
        .responsive-group-container .input-group {
            flex-grow: 1;
        }
}

/* Custom alignment for the Auth Card to keep it tight */
.auth-page .auth-card {
    max-width: 450px;
    margin: auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


@media (max-width: 767px) {
    /* 1. Force the group container to be a block so children can take full width */
    .responsive-group-container .input-group {
        display: block !important;
        width: 100%;
    }

        /* 2. Force the input to take up 100% width and restore rounded corners */
        .responsive-group-container .input-group > .form-control {
            width: 100% !important;
            display: block !important;
            border-radius: 8px !important; /* Forces rounding on all 4 corners */
            margin-bottom: 0;
        }

    /* 3. Ensure the mobile label stays above and aligned */
    .responsive-group-container label.d-md-none {
        display: flex !important;
        margin-bottom: 8px;
    }
}
/*Nav*/
/* Smooth transition for all nav & dropdown links */
.navbar .nav-link,
.dropdown-menu .dropdown-item {
    transition: transform 0.15s ease, font-weight 0.15s ease;
}

    /* Top-level nav items */
    .navbar .nav-link:hover {
        font-weight: 600;
        transform: scale(1.05);
    }

    /* Dropdown items */
    .dropdown-menu .dropdown-item:hover {
        font-weight: 600;
        transform: scale(1.03);
    }
/* --- Main nav centering --- */

.site-nav {
    display: flex;
    align-items: center;
}

.nav-logo {
    flex: 1;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    margin-left: 0; /* override old auto push */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* =========================================
   MOBILE NAV — HAMBURGER + RESPONSIVE BREAKPOINT
   =========================================
   Drawer container, scrim, slot positioning, animation, and
   body-scroll-lock all moved to platform-drawer.css (brief 1F-004,
   commit Platform@a4f9210). HC retains only the consumer-tier
   styling: hamburger appearance, mobile/desktop responsive
   visibility, inside-drawer menu treatment, and footer content
   composition. */

/* Toggle (hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--navy);
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
}

/* =========================================
   RESPONSIVE VISIBILITY UTILITIES
   ========================================= */

@media (max-width: 768px) {

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    /* Prevent flex squeeze */
    .nav-logo {
        flex: none;
    }
}

@media (min-width: 769px) {

    /* Hide mobile-only elements on desktop */
    .mobile-only {
        display: none !important;
    }
}

/* =========================================
   MAIN-NAV INSIDE THE DRAWER BODY
   =========================================
   MainNav (Bootstrap dropdown markup) renders inside
   <platform-drawer> body slot. Re-targeted selectors below
   stack the nav vertically and flatten dropdowns.

   Mobile accordion behaviour is owned by platform-drawer.js
   (Platform@<pinned in commit>): clicking any .dropdown-toggle
   inside .platform-drawer-surface toggles .drawer-expanded on
   its closest .dropdown / .dropdown-submenu ancestor, with
   single-expand-within-siblings semantics and aria-expanded
   management. Bootstrap's dropdown JS is structurally suppressed
   for these clicks (capture-phase stopImmediatePropagation), so
   Popper never positions the menu — display:none/block is the
   only visibility mechanism inside the drawer.

   The .dropdown-menu rule below keeps position/inset/transform/
   margin overrides as defence-in-depth: even if a library
   somehow applies inline positioning styles inside the drawer
   (browser extension, race), they are neutralised. */

.platform-drawer-surface .navbar-nav {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0.25rem;
}

.platform-drawer-surface .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    font-size: 1rem;
}

.platform-drawer-surface .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    border: none;
    box-shadow: none;
    padding-left: 0.5rem;
    display: none;
}

.platform-drawer-surface .dropdown.drawer-expanded > .dropdown-menu,
.platform-drawer-surface .dropdown-submenu.drawer-expanded > .dropdown-menu {
    display: block;
}

.platform-drawer-surface .dropdown-item {
    padding: 10px 8px 10px 16px;
    font-size: 0.95rem;
}

.platform-drawer-surface .dropdown-toggle::after {
    display: none;
}

.platform-drawer-surface .nav-item {
    border-bottom: 1px solid var(--border);
}

/* =========================================
   MAIN-NAV ACTIVE-STATE (route-aware)
   =========================================
   Applied by MainNav/Default.cshtml's IsActiveItem and
   AnyDescendantActive helpers. Calm tint (faint navy) plus a
   left-border accent — readable as "you are here" without the
   vivid-blue tab-bar look. */

.nav-item-active {
    background: rgba(8, 28, 64, 0.04);
    border-left: 3px solid var(--navy);
}

.nav-item-active > .nav-link,
.nav-item-active > .dropdown-item,
.nav-item-active > a {
    color: var(--navy);
    font-weight: 500;
}

/* =========================================
   DRAWER HEADER — CLOSE BUTTON (HC styling)
   ========================================= */

.platform-drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 6px;
    cursor: pointer;
    color: var(--navy);
}

/* =========================================
   DRAWER FOOTER — AUTH ACTIONS
   =========================================
   Holds _AuthActions only now (Bell relocated to top nav per
   drawer-rework critique). For authenticated users the partial
   invokes Platform's CurrentSessionAuthActions, which renders a
   Sign-Out <form>+<button>. Treat it as a nav-style row — the
   drawer-footer's top border (owned by platform-drawer.css)
   serves as the divider above; no outlined-button styling. */

.platform-drawer-footer form {
    display: block;
    width: 100%;
    margin: 0;
}

.platform-drawer-footer form button {
    display: block;
    width: 100%;
    padding: 12px 8px;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.platform-drawer-footer form button:hover,
.platform-drawer-footer form button:focus {
    background: rgba(8, 28, 64, 0.04);
    outline: none;
}

/* Anonymous tier (Login + Request Onboarding) retains the
   prominent button styling — anonymous CTAs benefit from
   visual weight. Stretched full-width inside the drawer. */

.platform-drawer-footer .btn-ghost,
.platform-drawer-footer .btn-navy {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.platform-drawer-footer .btn-ghost:first-child,
.platform-drawer-footer .btn-navy:first-child {
    margin-top: 0;
}

/* =========================================
   LEGAL DOCUMENTS (Privacy / Terms / DPN / Cookies)
   ========================================= */

/* Mobile-first defaults */
.legal-document {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    font-family: var(--platform-font-body);
    line-height: 1.7;
    color: var(--text);
}

.legal-document h1 {
    font-family: var(--platform-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.legal-document h2 {
    font-family: var(--platform-font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    margin: 2rem 0 0.75rem;
}

.legal-document h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
}

.legal-document p {
    margin: 0 0 1rem;
}

.legal-document ul,
.legal-document ol {
    margin: 0 0 1rem 1.25rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-document strong {
    font-weight: 600;
    color: var(--text);
}

/* Neutralise inherited global `section { padding: ... }` rule (line 253);
   h2 top-margin is the sole between-section contributor inside legal docs. */
.legal-document section {
    margin: 0;
    padding: 0;
}

.legal-subtitle {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Mobile: metadata tables stack to single column */
.legal-metadata {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.legal-metadata th,
.legal-metadata td {
    display: block;
    width: 100%;
    padding: 0.5rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.legal-metadata th {
    font-weight: 500;
    color: var(--text-mid);
    background: var(--bg-alt);
    border-bottom: none;
}

.legal-metadata td {
    border-bottom: 1px solid var(--border);
    padding-top: 0;
    padding-bottom: 0.85rem;
}

.legal-status-draft {
    margin: 1.5rem 0 2.5rem;
    padding: 1rem 1.25rem;
    background: #FEF3C7;
    border: 2px solid #D97706;
    border-radius: 6px;
    color: #78350F;
    font-weight: 500;
    line-height: 1.55;
}

.legal-status-draft strong {
    color: #78350F;
}

/* Wide content tables: horizontal scroll wrapper */
.legal-table-scroll {
    overflow-x: auto;
    margin: 1.25rem 0;
    -webkit-overflow-scrolling: touch;
}

.legal-document table:not(.legal-metadata) {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.legal-table-scroll > table:not(.legal-metadata) {
    min-width: 600px;
    margin: 0;
}

.legal-document table:not(.legal-metadata) th,
.legal-document table:not(.legal-metadata) td {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-document table:not(.legal-metadata) th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--navy);
}

.legal-document-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.95rem;
}

.legal-document-footer p {
    margin-bottom: 0.75rem;
}

/* Desktop refinements (768px+) */
@media (min-width: 768px) {
    .legal-document {
        margin: 2.5rem auto;
        padding: 0 1.5rem;
    }

    .legal-document h2 {
        font-size: 1.6rem;
        margin: 3rem 0 1rem;
    }

    .legal-document h3 {
        font-size: 1.15rem;
        margin: 2rem 0 0.75rem;
    }

    .legal-document ul,
    .legal-document ol {
        margin: 0 0 1rem 1.5rem;
    }

    /* Metadata tables become two-column */
    .legal-metadata th,
    .legal-metadata td {
        display: table-cell;
        padding: 0.65rem 0.85rem;
        border-bottom: 1px solid var(--border);
    }

    .legal-metadata th {
        width: 35%;
    }

    .legal-metadata td {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .legal-document-footer {
        margin-top: 4rem;
        padding-top: 2rem;
    }
}

/* ── MFA ENROLLMENT (PR-C1.A; brief platform-mfa-1H-001 rev 1.5
      Decisions 2, 3, 6, 11) ────────────────────────────────── */

/* Factor-selection landing — stacked link-buttons with sub-copy.
   Inherits btnDefault from existing button styling; just adjusts
   layout to allow the descriptive small text per Decision 11. */
.mfa-factor-choice {
    margin-top: 1rem;
}

.mfa-factor-choice .btn {
    text-align: left;
    padding: 1rem;
    white-space: normal;
}

.mfa-factor-choice .btn small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
    opacity: 0.85;
}

/* TOTP QR code container — centered, sized for mobile camera scan
   (240px is a common scan-friendly square). The SVG comes from
   QRCoder server-side; max-width is the responsive constraint. */
.mfa-qr {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.mfa-qr svg {
    max-width: 240px;
    height: auto;
    background: #fff;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Manual entry key — monospace with subtle background. user-select:all
   lets the user click-to-select the whole key for copy-paste into the
   authenticator app. display:block + nowrap + overflow-x:auto keeps
   the key as a single copy unit on its own centered line; on
   viewports too narrow to fit the full key, the browser provides
   horizontal scroll on the key element rather than mid-key wrapping
   (which would break the "single thing to copy" affordance). */
.mfa-manual-entry-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
        "Courier New", monospace;
    background: #F8FAFF;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    word-spacing: 0.1rem;
    user-select: all;
    display: block;
    margin: 0.5rem auto;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
}

/* Email-OTP resend form — inline so the "Send again" button reads as
   a link in flow with the surrounding "Check your inbox at ..." prose. */
.mfa-resend-form {
    display: inline;
    margin: 0;
}

/* Recovery codes grid — 5×2 layout per Decision 11 line 542-548.
   Collapses to single column below 480px so codes stay readable on
   narrow mobile. The container box visually groups the codes as a
   single block the user is being asked to save. */
.mfa-recovery-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #F8FAFF;
    border: 1px solid var(--border);
    border-radius: 8px;
}

@media (max-width: 479px) {
    .mfa-recovery-codes-grid {
        grid-template-columns: 1fr;
    }
}

/* Each recovery code — monospace, centered, click-to-select for
   easy copy. White background separates each code from the grid's
   group background. */
.mfa-recovery-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
        "Courier New", monospace;
    font-size: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    text-align: center;
    user-select: all;
}

/* Screenshot warning — small muted italic note per the S5.4
   augmentation. Reads as a footnote, not an alert. */
.mfa-recovery-codes-screenshot-warning {
    color: #6B7280;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Recovery-codes action row — Copy + Download (paired digital save
   options) on row 1; Print (full-width physical save option) on
   row 2; ARIA-live feedback span below both. Per brief Amendment V
   (rev 1.8) and HOTFIX 1H-001-#17 R210/R213. CSS grid (not flex):
   `grid-template-columns: 1fr 1fr` makes Copy and Download fill
   equal columns. Print and the feedback span use
   `grid-column: 1 / -1` to span both columns — Print becomes
   full-width like the Continue button below, reflecting that paper
   is the most durable recovery-code medium (survives device loss,
   ransomware, cloud-account compromise). */
.mfa-recovery-codes-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    /* No margin-bottom — Gap 1 (action row → checkbox container)
       is owned exclusively by .mfa-acknowledge-check's margin-top
       per Amendment W R221 explicit-margin-control pattern. */
    margin: 1.5rem 0 0;
}

.mfa-recovery-codes-actions > #mfaPrintCodesButton,
.mfa-action-feedback {
    grid-column: 1 / -1;
}

.mfa-action-feedback {
    font-size: 0.85rem;
    color: var(--text-mid);
    /* No min-height — empty feedback occupies zero vertical space.
       The 2rem gap from the action row's bottom edge to the
       checkbox container below is owned by .mfa-acknowledge-check's
       margin-top per Amendment W R221 explicit-margin-control
       pattern (collapse-independent; empirically derived from
       I9.0/I9.1 measurements after the button's computed
       display: inline-flex was found to suppress cross-level
       margin collapse). Toast appearance causes minor layout
       shift (~1.2em); accepted trade-off for an intentional-user-
       action feedback element on a security-attestation surface. */
}

/* Acknowledgment checkbox — aligned with auth-card spacing rhythm
   per Amendment W R221 explicit-margin-control pattern.
   margin-top: 2rem exclusively controls Gap 1 (action row →
   checkbox container). margin-bottom: 0 so the Continue button's
   margin-top exclusively controls Gap 2 (checkbox container →
   Continue button) — necessary because the button has computed
   display: inline-flex (from Bootstrap .btn + icon convention),
   which suppresses margin collapse with preceding block-level
   siblings. Empirically verified via HOTFIX 1H-001-#17 I9.0/I9.1
   console measurements. */
.mfa-acknowledge-check {
    margin: 2rem 0 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.mfa-acknowledge-check input[type="checkbox"] {
    margin-top: 0.2rem;
}

/* Print rules for the recovery-codes display per brief Amendment V
   (rev 1.8) and HOTFIX 1H-001-#17 R207. Strips the page chrome
   (nav, footer, action buttons, acknowledgment form) and adds a
   security-warning footer via .auth-card::after so the printed
   page is self-documenting. The Print button in
   Views/Mfa/RecoveryCodes.cshtml's action row calls window.print();
   these rules govern what appears in the print preview. */
@media print {
    /* Hide page chrome — print should show only the recovery-codes
       content, not UI controls or site navigation. */
    nav.site-nav,
    .platform-drawer-shell,
    footer,
    .mfa-recovery-codes-actions,
    .mfa-recovery-codes-screenshot-warning,
    .auth-card form {
        display: none !important;
    }

    /* Strip card chrome — printing should produce a document, not a
       screenshot of the rendered card with its shadow and border. */
    body,
    .auth-page {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        display: block !important;
    }

    .auth-card {
        margin: 0 !important;
        padding: 1rem !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        max-width: none !important;
    }

    /* Recovery-codes — most browsers suppress background colours in
       print by default; force borders + black text to render. */
    .mfa-recovery-code {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        padding: 0.3rem 0.5rem !important;
    }

    /* Self-documenting security footer appended at end of card via
       a CSS pseudo-element. Reminds the user (or anyone who finds
       the paper later) what these codes are and what the risk is.
       English-only per Decision 10; if v2 introduces locale support
       this content moves to a server-rendered element. */
    .auth-card::after {
        display: block;
        content: "Keep these codes secret. Anyone with one of these codes can sign in to your account. Generated by HumanCapital — store in a safe place.";
        margin-top: 1.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid #000;
        font-size: 0.85rem;
        font-style: italic;
    }
}

/* Dashboard-navigation card styles moved to Platform.Web
   (platform-dashboard-navigation.css) per
   docs/briefs/settings-navigation-extraction-1H-001.md. */

/* =========================================================
   FOOTER
   Institution-grade responsive footer rail
   ========================================================= */

.hc-footer {
    background: #071c4d;
    color: #d8e1f0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

    /* Prevent global section padding pollution */
    .hc-footer section,
    .po-shell {
        padding: 0;
    }

.hc-footer__inner {
    width: min(100% - 2rem, 1180px);
    margin-inline: auto;
    padding: 0.85rem 0;
}

/* =========================================================
   DESKTOP / TABLET LAYOUT
   ========================================================= */
.hc-footer__rail {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(220px, 1fr) minmax(240px, 1.1fr) minmax(180px, 0.85fr);
    gap: 3.5rem;
    align-items: start;
}

.hc-footer__group {
    min-width: 0;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.hc-footer .hc-footer__heading {
    margin: 0 0 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    opacity: 1;
}

.hc-footer__text {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #d8e1f0;
}

    .hc-footer__text a {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        color: #ffffff;
        text-decoration: none;
        transition: color 0.18s ease, opacity 0.18s ease;
    }

        .hc-footer__text a:hover {
            color: #dbe7ff;
            text-decoration: underline;
        }

    .hc-footer__text i {
        width: 1rem;
        text-align: center;
        flex-shrink: 0;
    }

/* =========================================================
   COPYRIGHT
   ========================================================= */

.hc-footer__copyright {
    margin-top: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #aebed6;
}

/* =========================================================
   MOBILE-FIRST RESPONSIVENESS
   ========================================================= */

@media (max-width: 768px) {

    .hc-footer__inner {
        padding: 1rem 0;
    }

    .hc-footer__rail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hc-footer__group {
        width: 100%;
    }

    .hc-footer__heading {
        margin-bottom: 0.45rem;
    }

    .hc-footer__copyright {
        margin-top: 0.45rem;
    }
}

/* =============================================================================
   BOOK DEMO — premium public lead-capture page
   -----------------------------------------------------------------------------
   Consumed by:
     - Areas/Leads/Views/BookDemo/RequestDemo.cshtml (the form)
     - Areas/Leads/Views/BookDemo/Thanks.cshtml (the post-submit acknowledgement)

   Design intent: top-tier SaaS conversion-page composition with restrained
   institutional tone. Narrative (left) and form card (right) share one
   horizontal axis on desktop; collapse to a vertical conversion column on
   mobile. Token-aligned with the marketing landing page (navy palette,
   Cormorant + DM Sans, --container width).
   ============================================================================= */

.capture {
    padding: clamp(56px, 8vw, 104px) clamp(1rem, 4vw, 2.5rem) clamp(72px, 10vw, 128px);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

    .capture > .container {
        max-width: var(--container);
    }

.capture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: start;
}

@media (min-width: 992px) {
    .capture-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: clamp(3rem, 6vw, 5rem);
    }
}

.capture-narrative h1 {
    font-family: var(--platform-font-display);
    font-size: clamp(2.1rem, 4.5vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 1.25rem;
    font-weight: 500;
}

    .capture-narrative h1 em {
        font-style: italic;
        color: var(--navy);
    }

.capture-subhead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-mid);
    margin: 0 0 2.25rem;
    max-width: 480px;
    font-weight: 300;
}

.capture-benefits {
    list-style: none;
    margin: 0 0 2.25rem;
    padding: 0;
    display: grid;
    gap: 1.05rem;
}

.capture-benefit {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.capture-benefit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--navy-pale);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.capture-benefit-body {
    line-height: 1.5;
}

.capture-benefit-title {
    margin: 0;
    font-weight: 500;
    color: var(--text);
    font-size: 0.96rem;
    letter-spacing: -0.005em;
}

.capture-benefit-detail {
    margin: 0.1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-subtle);
    font-weight: 300;
}

.capture-trust {
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.capture-trust-item {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-mid);
    font-weight: 400;
}

.capture-trust-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
}

.capture-form-column {
    width: 100%;
}

.capture-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow:
        0 1px 2px rgba(0, 26, 69, 0.04),
        0 12px 32px rgba(0, 26, 69, 0.07);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .capture-card {
        padding: 2.5rem;
    }
}

@media (min-width: 992px) {
    .capture-card {
        padding: 2.75rem 2.5rem 2.5rem;
    }
}

    .capture-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
    }

.capture-card-header {
    margin-bottom: 1.5rem;
}

/* Final-finishing pass: subtle vertical-bulk reduction on the form
   rows. Override the Tag Helpers' default `mb-3` (1rem) to 0.9rem
   for tighter field rhythm without harming readability. */
.capture-card form .mb-3 {
    margin-bottom: 0.9rem !important;
}

.capture-card-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.capture-card-title {
    font-family: var(--platform-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.capture-card .wiz-validation {
    margin-bottom: 1.25rem;
}

.capture-card label.fw-semibold {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-mid);
    margin-bottom: 0.4rem;
}

    .capture-card label.fw-semibold .text-danger {
        color: var(--navy-mid);
    }

.capture-card .form-control {
    border-radius: 10px;
    border-color: var(--border-mid);
    padding: 0.65rem 0.85rem;
    font-size: 0.96rem;
    transition: border-color 0.18s, box-shadow 0.18s;
}

    .capture-card .form-control:focus {
        border-color: var(--navy);
        box-shadow: 0 0 0 4px rgba(0, 40, 104, 0.10);
    }

.capture-card textarea.form-control {
    line-height: 1.55;
}

.capture-card .form-text {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.capture-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 17px 32px;
    font-family: var(--platform-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    background: var(--navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 0 rgba(0, 26, 69, 0.08);
}

    .capture-submit:hover {
        background: var(--navy-mid);
        transform: translateY(-1px);
        color: var(--white);
        box-shadow: 0 8px 22px rgba(0, 40, 104, 0.18);
    }

    .capture-submit:focus-visible {
        outline: 2px solid var(--navy);
        outline-offset: 3px;
    }

    .capture-submit i {
        font-size: 0.82rem;
    }

/* =============================================================================
   THANK YOU PAGE
   ============================================================================= */

.capture-thanks {
    padding: clamp(72px, 10vw, 128px) clamp(1rem, 4vw, 2.5rem) clamp(96px, 12vw, 160px);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.capture-thanks-card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 1.75rem;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(0, 26, 69, 0.04),
        0 12px 32px rgba(0, 26, 69, 0.07);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .capture-thanks-card {
        padding: 3.5rem 3rem;
    }
}

    .capture-thanks-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 100%);
    }

.capture-thanks-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-pale);
    color: var(--navy);
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
}

.capture-thanks-card h1 {
    font-family: var(--platform-font-display);
    font-size: clamp(1.9rem, 4vw, 2.55rem);
    color: var(--text);
    margin: 0.75rem 0 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

    .capture-thanks-card h1 em {
        font-style: italic;
        color: var(--navy);
    }

.capture-thanks-body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-mid);
    margin: 0 0 2rem;
    font-weight: 300;
}

.capture-thanks-cta-row {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

    .capture-thanks-cta-row .btn-primary,
    .capture-thanks-cta-row .btn-outline {
        padding: 12px 26px;
        font-size: 0.95rem;
    }
