/* ============================================================
   FinFlo marketing site — design system
   Modern, responsive, mobile-first. Legacy class names preserved.
   ============================================================ */

:root {
    /* Brand palette */
    --primary-blue: #1A4B8C;
    --accent-blue: #2D7DD2;
    --sky-blue: #5FA8F5;
    --light-blue: #E8F2FF;
    --dark-blue: #0A2A53;
    --navy-900: #081226;
    --navy-800: #0B1B33;
    --navy-700: #10264A;

    /* Neutrals */
    --text-dark: #16233B;
    --text-body: #43506A;
    --text-light: #5B6880;
    --bg-light: #F6F8FB;
    --bg-soft: #EFF4FA;
    --border-color: #E2E8F0;
    --white: #ffffff;

    /* Semantic */
    --success-green: #059669;
    --warning-amber: #D97706;
    --danger-red: #DC2626;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    --grad-cta: linear-gradient(135deg, #2D7DD2 0%, #1A4B8C 100%);
    --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(45, 125, 210, 0.35), transparent 60%),
                 radial-gradient(900px 500px at -10% 110%, rgba(95, 168, 245, 0.18), transparent 55%),
                 linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, #0A1F3F 100%);

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(8, 18, 38, 0.06);
    --shadow-sm: 0 2px 8px rgba(8, 18, 38, 0.08);
    --shadow-md: 0 8px 24px rgba(8, 18, 38, 0.10);
    --shadow-lg: 0 16px 48px rgba(8, 18, 38, 0.16);
    --shadow-brand: 0 8px 24px rgba(26, 75, 140, 0.28);

    /* Shape & rhythm */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;
    --container: 1160px;
    --header-h: 68px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body {
    color: var(--text-dark);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--white);
}

img, svg {
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: rgba(45, 125, 210, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   Layout shell
   ============================================================ */
.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-shell .site-main {
    flex: 1;
    width: 100%;
}

/* ============================================================
   Header & navigation
   ============================================================ */
.site-header {
    background: rgba(8, 18, 38, 0.88);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.site-logo .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad-cta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 125, 210, 0.45);
    flex: none;
}

.site-logo .logo-mark svg {
    width: 19px;
    height: 19px;
}

.site-logo:hover {
    color: #fff;
    opacity: 0.94;
}

/* Burger */
.site-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: #fff;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s ease;
}

.site-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav row */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-item {
    position: relative;
}

.site-nav a,
.nav-trigger {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.3;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover,
.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.nav-caret {
    width: 14px;
    height: 14px;
    flex: none;
    transition: transform 0.22s var(--ease-out);
    opacity: 0.75;
}

.nav-item.is-open > .nav-trigger .nav-caret {
    transform: rotate(180deg);
}

/* Highlighted "Become an Agent" link */
.site-nav a.nav-highlight {
    color: #8EC5FF;
    font-weight: 600;
}

.site-nav a.nav-highlight:hover {
    color: #B4D8FF;
    background: rgba(45, 125, 210, 0.18);
}

/* Header CTA button */
.site-nav .site-nav-cta {
    margin-left: 0.5rem;
    background: var(--grad-cta);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(45, 125, 210, 0.4);
    transition: transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.site-nav .site-nav-cta:hover {
    background: var(--grad-cta);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(45, 125, 210, 0.5);
    color: #fff;
}

/* Dropdown panel */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
    z-index: 210;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px; /* hover bridge between trigger and panel */
}

.nav-item.is-open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

@media (hover: hover) and (min-width: 961px) {
    .nav-item--dropdown:hover > .nav-dropdown,
    .nav-item--dropdown:focus-within > .nav-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item--dropdown:hover > .nav-trigger,
    .nav-item--dropdown:focus-within > .nav-trigger {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
    }

    .nav-item--dropdown:hover > .nav-trigger .nav-caret,
    .nav-item--dropdown:focus-within > .nav-trigger .nav-caret {
        transform: rotate(180deg);
    }
}

.nav-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    white-space: normal;
    transition: background 0.15s ease;
}

.nav-dropdown a:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-dropdown .dd-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.nav-dropdown .dd-icon svg {
    width: 18px;
    height: 18px;
}

.nav-dropdown .dd-title {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.35;
}

.nav-dropdown .dd-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-top: 1px;
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 960px) {
    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        background: var(--navy-900);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.75rem clamp(1rem, 3vw, 1.5rem) 1.1rem;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    }

    .site-nav.is-open {
        display: flex;
        animation: navDrop 0.25s var(--ease-out);
    }

    @keyframes navDrop {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .site-nav a,
    .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 0.85rem;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .nav-dropdown {
        position: static;
        transform: none;
        min-width: 0;
        background: rgba(255, 255, 255, 0.05);
        border: 0;
        border-radius: var(--radius-md);
        box-shadow: none;
        padding: 0.25rem;
        margin: 0.15rem 0 0.35rem;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-item.is-open > .nav-dropdown {
        display: block;
        transform: none;
    }

    .nav-dropdown a {
        color: rgba(255, 255, 255, 0.9);
        justify-content: flex-start;
    }

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

    .nav-dropdown .dd-icon {
        background: rgba(45, 125, 210, 0.22);
        color: #9CC8F7;
    }

    .nav-dropdown .dd-title {
        color: #fff;
    }

    .nav-dropdown .dd-desc {
        color: rgba(255, 255, 255, 0.6);
    }

    .site-nav .site-nav-cta {
        margin: 0.6rem 0 0;
        justify-content: center;
        text-align: center;
        border-radius: var(--radius-md);
    }
}

/* ============================================================
   Hero — shared page header + home variant
   ============================================================ */
.site-hero {
    background: var(--grad-hero);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 1.5rem);
    color: #fff;
}

.site-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}

.site-hero > * {
    position: relative;
    z-index: 1;
}

.site-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 auto 1rem;
    line-height: 1.12;
    max-width: 820px;
}

.site-hero h1 .accent {
    background: linear-gradient(100deg, #6FB2FF 0%, #9CD2FF 55%, #6FB2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.site-hero p {
    font-size: clamp(1.02rem, 2.4vw, 1.22rem);
    color: rgba(230, 240, 255, 0.85);
    margin: 0 auto;
    max-width: 660px;
    line-height: 1.65;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(45, 125, 210, 0.16);
    border: 1px solid rgba(111, 178, 255, 0.35);
    color: #A8CFFA;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
    flex: none;
}

.site-hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.hero-stats {
    margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2rem);
    max-width: 820px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: clamp(1.5rem, 4vw, 2rem);
}

.hero-stat {
    min-width: 130px;
    text-align: center;
}

.hero-stat .num {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
}

.hero-stat .lbl {
    display: block;
    font-size: 0.85rem;
    color: rgba(230, 240, 255, 0.65);
    margin-top: 0.2rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.55rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.16s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-btn:active {
    transform: scale(0.97);
}

.site-btn-primary {
    background: var(--grad-cta);
    color: #fff;
    box-shadow: 0 6px 18px rgba(45, 125, 210, 0.38);
}

.site-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 125, 210, 0.48);
}

.site-btn-outline {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.site-btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
    transform: translateY(-2px);
}

.site-btn-secondary {
    background: var(--light-blue);
    color: var(--primary-blue);
    border-color: transparent;
}

.site-btn-secondary:hover {
    background: #DCEBFF;
    color: var(--dark-blue);
    transform: translateY(-1px);
}

.site-btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

/* ============================================================
   Main content & typography
   ============================================================ */
.site-main {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 1.5rem);
}

.site-main--narrow {
    max-width: 820px;
}

.site-main--full {
    max-width: none;
    padding: 0;
}

.site-page h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy-800);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.site-page h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy-800);
    margin: 2.25rem 0 0.75rem;
}

.site-page h3 {
    font-size: 1.12rem;
    font-weight: 650;
    margin: 1.4rem 0 0.5rem;
    color: var(--text-dark);
}

.site-page p,
.site-page li {
    color: var(--text-body);
    margin-bottom: 0.8rem;
}

.site-page ul {
    padding-left: 1.25rem;
}

.site-page a {
    color: var(--accent-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.site-page a:hover {
    color: var(--primary-blue);
}

.site-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0.9rem 0 1.4rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.site-page table th {
    background: var(--navy-800);
    color: #fff;
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-weight: 600;
}

.site-page table td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
    background: #fff;
}

.site-page table tr:last-child td {
    border-bottom: 0;
}

.site-page table tr:nth-child(even) td {
    background: var(--bg-light);
}

.site-page table td:last-child,
.site-page table th:last-child {
    text-align: right;
}

/* Section scaffolding (home + marketing pages) */
.section {
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section--tint {
    background: var(--bg-light);
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 1.5rem);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: var(--light-blue);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--navy-800);
    margin: 0 0 0.65rem;
    line-height: 1.18;
}

.section-head p {
    color: var(--text-light);
    font-size: 1.04rem;
    margin: 0;
}

/* ============================================================
   Cards & grids
   ============================================================ */
.site-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.site-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #CBDCF2;
}

.site-card h3 {
    margin-top: 0;
    color: var(--navy-800);
    font-weight: 700;
}

/* Icon tiles used across feature cards */
.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    flex: none;
}

.icon-tile svg {
    width: 24px;
    height: 24px;
}

.icon-tile--brand {
    background: var(--grad-cta);
    color: #fff;
    box-shadow: 0 6px 16px rgba(45, 125, 210, 0.35);
}

.icon-tile--green {
    background: #E7F7F0;
    color: var(--success-green);
}

/* Ecosystem / app overview cards (home) */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
}

.eco-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem 1.6rem 1.5rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease;
}

.eco-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad-cta);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #C4D9F2;
}

.eco-card:hover::before {
    opacity: 1;
}

.eco-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
}

.eco-card p {
    margin: 0 0 1.1rem;
    color: var(--text-light);
    font-size: 0.94rem;
    flex: 1;
}

.eco-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.92rem;
}

.eco-card .card-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease-out);
}

.eco-card:hover .card-link svg {
    transform: translateX(4px);
}

/* Feature grid (home “everything in one place”) */
.feature-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
}

.feature-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-800);
}

.feature-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.93rem;
}

/* Steps (how it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
}

.step-card .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-cta);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(45, 125, 210, 0.35);
}

.step-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy-800);
}

.step-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.94rem;
}

/* CTA band (agent recruitment on home, generic reuse) */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--grad-hero);
    color: #fff;
    padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 90% 10%, rgba(95, 168, 245, 0.25), transparent 60%);
    pointer-events: none;
}

.cta-band > * {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-band p {
    margin: 0;
    max-width: 560px;
    color: rgba(230, 240, 255, 0.85);
}

.cta-band .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================================
   App download cards
   ============================================================ */
.app-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: 1.5rem;
}

.app-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 1.75rem);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #C4D9F2;
}

.app-card h2 {
    margin: 0 0 0.3rem;
    color: var(--navy-800);
    font-size: 1.3rem;
    font-weight: 700;
}

.app-card .version {
    color: var(--text-light);
    margin: 0 0 1.15rem;
    font-size: 0.88rem;
}

.app-card > p:last-child {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--text-light);
}

.app-card > p:last-child a {
    color: var(--accent-blue);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.93rem;
    border: 2px solid transparent;
    transition: transform 0.16s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    filter: brightness(1.05);
}

.download-btn.apk {
    background: var(--grad-cta);
    color: #fff;
}

.download-btn.play {
    background: #1a73e8;
    color: #fff;
}

.download-btn.appstore {
    background: #0f1115;
    color: #fff;
}

.download-btn.huawei {
    background: #e2231a;
    color: #fff;
}

.download-btn.oppo {
    background: #0099ff;
    color: #fff;
}

/* ============================================================
   Become an OTC Agent page
   ============================================================ */
.agent-hero-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: rgba(230, 240, 255, 0.7);
}

.agent-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.25rem;
}

.benefit-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.9rem 1.6rem;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #C4D9F2;
}

.benefit-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy-800);
}

.benefit-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.agent-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
}

.agent-prose {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.agent-prose p {
    color: var(--text-body);
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

/* ============================================================
   Agent commission structure page
   ============================================================ */
.comm-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.comm-summary-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.comm-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad-cta);
}

.comm-summary-card--alt::before {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.comm-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: var(--light-blue);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.7rem;
}

.comm-summary-card--alt .comm-tag {
    color: var(--success-green);
    background: rgba(5, 150, 105, 0.1);
}

.comm-summary-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comm-big {
    margin: 0 0 1rem;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary-blue);
}

.comm-summary-card--alt .comm-big {
    color: var(--success-green);
}

.comm-big span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.comm-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.comm-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-body);
    font-size: 0.96rem;
}

.comm-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.comm-summary-card--alt .comm-list li::before {
    background: var(--success-green);
}

.comm-meta {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.86rem;
    color: var(--text-light);
}

/* Flow cards */
.comm-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.comm-flow-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.comm-flow-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--grad-cta);
    border-radius: var(--radius-pill);
    padding: 0.28rem 0.75rem;
}

.comm-flow-badge--green {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.comm-flow-card h3 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comm-flow-sub {
    margin: 0 0 1rem;
    color: var(--text-light);
    font-size: 0.94rem;
}

.comm-steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--text-body);
}

.comm-steps li {
    margin-bottom: 0.5rem;
    font-size: 0.96rem;
}

.comm-callout {
    margin: 0;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

/* Tables */
.comm-table-block {
    margin-bottom: 2.5rem;
}

.comm-table-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comm-table-note {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-light);
}

.comm-table-block .comm-table-note:last-child {
    margin: 0.85rem 0 0;
}

.comm-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    -webkit-overflow-scrolling: touch;
}

.comm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-variant-numeric: tabular-nums;
}

.comm-table thead th {
    background: var(--bg-soft);
    text-align: right;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.comm-table thead th:first-child,
.comm-table tbody th {
    text-align: left;
}

.comm-table tbody th {
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.comm-table tbody td {
    padding: 0.8rem 1rem;
    text-align: right;
    font-size: 0.94rem;
    color: var(--text-body);
}

.comm-table tbody tr + tr th,
.comm-table tbody tr + tr td {
    border-top: 1px solid var(--border-color);
}

.comm-table tbody tr:hover th,
.comm-table tbody tr:hover td {
    background: rgba(45, 125, 210, 0.045);
}

.comm-table .comm-earn {
    font-weight: 700;
    color: var(--success-green);
}

.comm-table tr.is-free th,
.comm-table tr.is-free td {
    color: var(--text-light);
}

.comm-table tr.is-total-row th,
.comm-table tr.is-total-row td {
    background: var(--bg-soft);
    font-weight: 700;
    color: var(--text-dark);
}

/* Prose column (e.g. "Notes") reads left-aligned, unlike the numeric columns. */
.comm-table .comm-notes {
    text-align: left;
    white-space: normal;
    min-width: 220px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Worked examples */
.comm-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.comm-example {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
}

.comm-example--wide {
    margin-bottom: 2.5rem;
}

.comm-example-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.comm-example h4 {
    margin: 0.5rem 0 1.1rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comm-ledger {
    margin: 0 0 1rem;
}

.comm-ledger > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comm-ledger > div:last-child {
    border-bottom: 0;
}

.comm-ledger dt {
    color: var(--text-light);
    font-size: 0.93rem;
}

.comm-ledger dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.98rem;
    font-variant-numeric: tabular-nums;
}

.comm-ledger dd span {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-light);
}

.comm-ledger > div.is-total {
    background: rgba(5, 150, 105, 0.07);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    margin-top: 0.35rem;
    border-bottom: 0;
}

.comm-ledger > div.is-total dt {
    color: var(--text-dark);
    font-weight: 600;
}

.comm-ledger > div.is-total dd {
    color: var(--success-green);
    font-size: 1.15rem;
    font-weight: 800;
}

.comm-ledger--wide > div {
    padding: 0.75rem 0;
}

.comm-example-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Fee split bar */
.comm-split {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.comm-split-title {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comm-split-sub {
    margin: 0 0 1.4rem;
    color: var(--text-body);
    font-size: 0.98rem;
}

.comm-bar {
    display: flex;
    gap: 4px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comm-bar-seg {
    padding: 1.1rem 1rem;
    color: var(--white);
    min-width: 0;
}

.comm-bar-seg--agent {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.comm-bar-seg--platform {
    background: var(--grad-brand);
}

.comm-bar-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.comm-bar-lbl {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.comm-split-foot {
    margin: 1.2rem 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Notices */
.comm-notice {
    background: var(--light-blue);
    border: 1px solid rgba(45, 125, 210, 0.22);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    margin-top: 2rem;
}

.comm-notice h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.comm-notice p {
    margin: 0;
    color: var(--text-body);
    font-size: 0.96rem;
}

.comm-notice--warn {
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.28);
    margin-bottom: 2.5rem;
}

.comm-notice--warn h3 {
    color: var(--warning-amber);
}

.comm-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.comm-usd-cards {
    margin-bottom: 2.5rem;
}

.comm-legal {
    max-width: 820px;
    margin: 1.75rem auto 0;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-light);
}

@media (max-width: 640px) {
    .comm-big {
        font-size: 2.1rem;
    }

    .comm-summary-card,
    .comm-split {
        padding: 1.35rem;
    }

    .comm-bar {
        flex-direction: column;
    }
}

/* ============================================================
   Legal / regulatory notice callouts (site-page documents)
   ============================================================ */
.site-page .notice-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    margin: 1.75rem 0;
}

.site-page .notice-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.site-page .notice-box p {
    margin: 0;
}

.site-page .notice-box p + p {
    margin-top: 0.7rem;
}

.site-page .notice-box--critical {
    background: rgba(217, 119, 6, 0.07);
    border-color: rgba(217, 119, 6, 0.28);
    border-left-color: var(--warning-amber);
}

.site-page .notice-box--critical h3 {
    color: var(--warning-amber);
}

/* Regulatory progress status page */
.site-page .status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.status-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.status-pill--done {
    color: var(--success-green);
    background: rgba(5, 150, 105, 0.12);
}

.status-pill--active {
    color: var(--accent-blue);
    background: var(--light-blue);
}

.status-pill--pending {
    color: var(--text-light);
    background: var(--bg-soft);
}

.site-page .status-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.site-page .status-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
}

.site-page .status-item--done {
    border-left-color: var(--success-green);
}

.site-page .status-item--active {
    border-left-color: var(--accent-blue);
}

.status-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.site-page .status-item h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.site-page .status-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Wide document tables scroll inside their own box so the page never does. */
.site-page .notice-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.site-page .notice-table-wrap table {
    margin: 0;
    min-width: 460px;
}

/* Benefit-level table: keep the two currency columns on a common right edge. */
.site-page .notice-table td:nth-child(3),
.site-page .notice-table td:nth-child(4),
.site-page .notice-table th:nth-child(3),
.site-page .notice-table th:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.site-page .notice-foot {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--navy-900);
    color: rgba(230, 240, 255, 0.8);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 1.5rem) 1.5rem;
    font-size: 0.92rem;
}

.site-footer a {
    color: rgba(230, 240, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.25rem;
}

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

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

.footer-brand .site-logo {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    margin: 0;
    max-width: 300px;
    color: rgba(230, 240, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer h4 {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(230, 240, 255, 0.5);
}

.site-footer .site-footer-grid p {
    margin: 0 0 0.55rem;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(230, 240, 255, 0.5);
    font-size: 0.85rem;
}

.site-footer-bottom p {
    margin: 0;
}

/* ============================================================
   Policy list
   ============================================================ */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    border-bottom: 1px solid var(--border-color);
}

.policy-list a {
    display: block;
    padding: 1.05rem 0.25rem;
    text-decoration: none;
    color: var(--navy-800);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.2s var(--ease-out);
}

.policy-list a:hover {
    color: var(--accent-blue);
    background: var(--bg-light);
    padding-left: 0.75rem;
}

.policy-type {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.policy-body {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-dark);
    line-height: 1.7;
}

/* ============================================================
   Guides hub
   ============================================================ */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.guide-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: #C4D9F2;
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    margin: 0 0 0.5rem;
    color: var(--navy-800);
    font-weight: 700;
}

.guide-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.94rem;
}

/* ============================================================
   Guide article (migrated static HTML)
   ============================================================ */
.site-guide {
    max-width: 820px;
    margin: 0 auto;
}

.site-guide .guide-header {
    text-align: center;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.site-guide .guide-header h1 {
    color: var(--navy-800);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.site-guide .guide-header .subtitle {
    color: var(--text-light);
    font-size: 1.08rem;
    margin: 0;
}

.site-guide .guide-section {
    margin-bottom: 2rem;
}

.site-guide .guide-section-title {
    color: var(--navy-800);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.site-guide .guide-step {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.site-guide .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-cta);
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 0.75rem;
    vertical-align: top;
    flex: none;
}

.site-guide .step-content {
    display: inline-block;
    width: calc(100% - 3.25rem);
    vertical-align: top;
}

.site-guide .step-content h3 {
    color: var(--navy-800);
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.site-guide .step-content p {
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.site-guide .info-box {
    background: #EAF3FE;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.site-guide .info-box.warning {
    background: #FFF6E8;
    border-left-color: var(--warning-amber);
}

.site-guide .info-box.success {
    background: #E9F8F0;
    border-left-color: var(--success-green);
}

.site-guide .info-box.danger {
    background: #FDECEC;
    border-left-color: var(--danger-red);
}

.site-guide .info-box.emphasis {
    background: #ECEEFB;
    border-left-color: #3949ab;
}

.site-guide .info-box strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--navy-800);
}

.site-guide ul {
    margin: 0.5rem 0 0 1.25rem;
    color: var(--text-body);
    padding-left: 0;
}

.site-guide ul li {
    margin-bottom: 0.35rem;
}

.site-guide .highlight {
    background: #FFF3BF;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}

.site-guide .guide-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.site-guide-actions {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.site-guide-actions .site-btn-secondary {
    background: #fff;
    border: 1px solid var(--border-color);
}

/* Guide extras */
.site-guide .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.site-guide .feature-card {
    background: var(--bg-light);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.site-guide .feature-card h4 {
    color: var(--navy-800);
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.site-guide .balance-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.site-guide .balance-card {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.site-guide .balance-card.selected {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.site-guide .balance-card h4 {
    color: var(--navy-800);
    margin: 0 0 0.5rem;
}

.site-guide .method-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.site-guide .method-tab {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem;
    background: var(--bg-light);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    color: var(--primary-blue);
}

.site-guide .commission-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

.site-guide .commission-table th {
    background: var(--navy-800);
    color: #fff;
    padding: 0.65rem 0.75rem;
    text-align: left;
}

.site-guide .commission-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.site-guide .commission-table tr:nth-child(even) {
    background: var(--bg-light);
}

.site-guide .commission-table .amount {
    font-weight: 600;
    color: var(--primary-blue);
}

.site-guide .commission-table .commission {
    color: var(--success-green);
    font-weight: 600;
}

.site-guide .commission-table .fee {
    color: var(--text-light);
}

/* ============================================================
   Roadmap page
   ============================================================ */
.roadmap-page h2 {
    margin-top: 1.5rem;
}

.roadmap-intro p {
    max-width: 900px;
}

.roadmap-timeline,
.roadmap-quarter,
.roadmap-note {
    margin-top: 2rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.roadmap-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 0.6rem;
    box-shadow: var(--shadow-xs);
}

.roadmap-card h3 {
    margin: 0 0 0.55rem;
    color: var(--navy-800);
    font-size: 1.05rem;
}

.roadmap-card ul {
    margin: 0.25rem 0 0;
}

.roadmap-theme {
    margin-top: 0.5rem;
}

.roadmap-engage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.roadmap-engage-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-xs);
}

.roadmap-engage-card h3 {
    margin-top: 0;
    color: var(--navy-800);
}

.roadmap-platform {
    margin-top: 1rem;
    border-left: 4px solid var(--accent-blue);
    padding: 0.6rem 0 0.2rem 1rem;
    background: #f8fbff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.roadmap-platform h3 {
    margin-top: 0;
}

.roadmap-growth {
    margin-top: 0.9rem;
    border-left: 4px solid var(--success-green);
    padding: 0.6rem 0 0.2rem 1rem;
    background: #f7fdf9;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.roadmap-growth h3 {
    margin-top: 0;
    color: #0a6b43;
}

.roadmap-quarter--beyond {
    background: #f8fbff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1rem 0.25rem;
}

.roadmap-note {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.roadmap-cta {
    margin-top: 0.35rem;
}

/* ============================================================
   Print
   ============================================================ */
@media print {
    .site-header,
    .site-footer,
    .site-guide-actions,
    .no-print {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.4;
    }

    .site-main {
        max-width: 100%;
        padding: 0;
    }

    .site-guide,
    .site-guide .guide-step,
    .site-guide .info-box {
        page-break-inside: avoid;
    }

    .roadmap-page {
        color: #000;
    }

    .roadmap-quarter,
    .roadmap-card,
    .roadmap-platform,
    .roadmap-growth,
    .roadmap-engage-card,
    .roadmap-quarter--beyond {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
    }

    .roadmap-quarter {
        page-break-before: always;
    }

    .roadmap-quarter:first-of-type {
        page-break-before: auto;
    }

    .roadmap-card,
    .roadmap-platform,
    .roadmap-growth,
    .roadmap-engage-card,
    .roadmap-quarter--beyond {
        border-color: #c8ced6;
        background: #fff !important;
    }
}

/* Charter membership — corridor funding transparency */
.corridor-bar {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    overflow: hidden;
    margin: 0.9rem 0 0.5rem;
}

.corridor-bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--accent-blue);
    /* Width is set inline from the funded percentage. A zero-width fill must still
       read as "nothing raised yet" rather than disappearing into the track. */
    min-width: 2px;
}

.site-page .corridor-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.35rem 0 0;
}

.corridor-cur {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-light);
}

.site-page .site-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.94rem;
}

.site-page .site-table th,
.site-page .site-table td {
    text-align: left;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.site-page .site-table th {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Narrow screens: let the tier table scroll rather than squeezing the page. */
@media (max-width: 640px) {
    .site-page .site-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
