/* ==========================================================================
   BNYPay design system
   1. Tokens            8. Page header & breadcrumbs   15. Checklist
   2. Base              9. Sections & headings         16. Code window & developer
   3. Typography       10. Cards                       17. FAQ accordion
   4. Layout helpers   11. Hero & dashboard mockup     18. CTA panel
   5. Buttons          12. Trust strip                 19. Forms
   6. Badges/notices   13. Carousel                    20. Policies & misc pages
   7. Header & nav     14. Timeline                    21. Footer
                                                       22. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Brand (sampled from the existing BNYPay logo) */
    --c-brand: #2F5598;
    --c-brand-600: #284B88;
    --c-brand-700: #213F74;
    --c-brand-50: #EEF3FB;
    --c-brand-100: #DCE6F6;
    --c-teal: #00D3C7;
    --c-teal-600: #00A89F;
    --c-teal-700: #00756F;
    --c-teal-50: #E6FAF8;
    --c-violet: #6E5BD9;
    --c-violet-50: #F1EEFD;
    --c-sky: #7FB2FF;

    /* Ink & neutrals */
    --c-ink-950: #060D20;
    --c-ink-900: #0B1530;
    --c-ink-800: #122046;
    --c-ink-700: #1C2D5C;
    --c-text: #0E1A36;
    --c-text-muted: #4B5878;
    --c-text-subtle: #5F6B88;
    --c-on-dark: #FFFFFF;
    --c-on-dark-muted: #C3CDE3;
    --c-border: #E2E7F1;
    --c-border-strong: #C9D2E3;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F6F8FC;
    --c-bg-tint: #EFF4FC;

    /* Status */
    --c-success: #0B7346;
    --c-success-50: #E5F5EC;
    --c-warning: #7A4B00;
    --c-warning-50: #FFF4DB;
    --c-warning-border: #EBC06A;
    --c-danger: #B42318;
    --c-danger-50: #FDECEA;

    /* Type */
    --f-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
    --f-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
    --f-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    --fs-xs: 0.8125rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
    --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
    --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
    --fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
    --fs-hero: clamp(2.375rem, 1.55rem + 3.4vw, 4rem);

    /* Spacing */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
    --gutter: 1rem;

    /* Shape & depth */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;
    --sh-xs: 0 1px 2px rgba(11, 21, 48, .06);
    --sh-sm: 0 1px 2px rgba(11, 21, 48, .05), 0 3px 8px rgba(11, 21, 48, .05);
    --sh-md: 0 2px 6px rgba(11, 21, 48, .05), 0 14px 32px -14px rgba(11, 21, 48, .2);
    --sh-lg: 0 10px 24px -12px rgba(11, 21, 48, .18), 0 36px 72px -28px rgba(11, 21, 48, .35);
    --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--c-brand);

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --t-fast: 150ms;
    --t: 240ms;
    --t-slow: 650ms;

    --header-h: 68px;
    --container: 1200px;
}

@media (min-width: 576px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1080px) { :root { --gutter: 2rem; --header-h: 76px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
img { display: block; }

a {
    color: var(--c-brand);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--c-brand-700); }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

button { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }
code, kbd, pre { font-family: var(--f-mono); font-size: .9em; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--c-brand-100); color: var(--c-ink-900); }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--f-display);
    color: var(--c-ink-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-4);
    font-weight: 700;
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--c-text-muted); text-wrap: pretty; }
.muted { color: var(--c-text-muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.text-center { text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--fs-xs);
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-brand);
    margin-bottom: var(--s-3);
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c-brand), var(--c-teal));
}

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }

/* 4. Layout helpers -------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.grid { display: grid; gap: var(--s-5); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
    .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split {
    display: grid;
    gap: var(--s-7);
    align-items: center;
}
@media (min-width: 1000px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-8); }
    .split--reverse > :first-child { order: 2; }
    .split--top { align-items: start; }
}

.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--s-4);
    top: -100px;
    z-index: 1000;
    padding: var(--s-3) var(--s-4);
    background: var(--c-ink-900);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: #fff; }

main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; vertical-align: -0.15em; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
    --btn-bg: var(--c-brand);
    --btn-fg: #fff;
    --btn-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.btn .icon { transition: transform var(--t) var(--ease); }
.btn:hover { color: var(--btn-fg); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { --btn-bg: var(--c-brand); box-shadow: 0 6px 16px -6px rgba(47, 85, 152, .6); }
.btn-primary:hover { --btn-bg: var(--c-brand-700); box-shadow: 0 10px 22px -8px rgba(47, 85, 152, .7); }

.btn-accent { --btn-bg: var(--c-teal); --btn-fg: var(--c-ink-900); box-shadow: 0 8px 22px -8px rgba(0, 211, 199, .55); }
.btn-accent:hover { --btn-bg: #3FE3D9; --btn-fg: var(--c-ink-900); }

.btn-secondary { --btn-bg: #fff; --btn-fg: var(--c-ink-900); --btn-border: var(--c-border-strong); }
.btn-secondary:hover { --btn-border: var(--c-brand); --btn-fg: var(--c-brand); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--c-ink-900); --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--c-bg-tint); --btn-fg: var(--c-brand); }

.btn-outline-light { --btn-bg: rgba(255, 255, 255, .04); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, .12); --btn-border: rgba(255, 255, 255, .7); --btn-fg: #fff; }
.on-dark .btn:focus-visible { box-shadow: 0 0 0 3px var(--c-ink-900), 0 0 0 5px var(--c-teal); }

.btn-lg { min-height: 52px; padding: 0.85rem 1.6rem; font-size: var(--fs-base); }
.btn-sm { min-height: 38px; padding: 0.45rem 0.95rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-brand);
}
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* 6. Badges, pills & notices ---------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.4;
    background: var(--c-brand-50);
    color: var(--c-brand-700);
    border: 1px solid var(--c-brand-100);
    white-space: nowrap;
}
.badge--teal { background: var(--c-teal-50); color: var(--c-teal-700); border-color: #BDEFEA; }
.badge--success { background: var(--c-success-50); color: var(--c-success); border-color: #BFE5CF; }
.badge--warning { background: var(--c-warning-50); color: var(--c-warning); border-color: var(--c-warning-border); }
.badge--neutral { background: var(--c-bg-soft); color: var(--c-text-muted); border-color: var(--c-border); }
.badge--dark { background: rgba(255, 255, 255, .08); color: var(--c-on-dark); border-color: rgba(255, 255, 255, .18); }

/* The one consistent "content still needed" marker */
.pending {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--r-xs);
    background: var(--c-warning-50);
    border: 1px dashed var(--c-warning-border);
    color: var(--c-warning);
    font-size: 0.85em;
    line-height: 1.5;
    vertical-align: baseline;
}
.pending__tag { font-family: var(--f-mono); font-weight: 600; font-size: 0.92em; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pending__what { font-weight: 500; }
.on-dark .pending { background: rgba(255, 196, 92, .12); border-color: rgba(255, 196, 92, .55); color: #FFD68A; }

.draft-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: var(--r-xs);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--c-warning-50);
    color: var(--c-warning);
    border: 1px solid var(--c-warning-border);
    vertical-align: middle;
}

.notice {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    background: var(--c-bg-soft);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}
.notice > .icon { margin-top: 0.15rem; color: var(--c-brand); width: 1.25rem; height: 1.25rem; }
.notice strong { color: var(--c-text); }
.notice--draft { background: var(--c-warning-50); border-color: var(--c-warning-border); color: #5C3A00; }
.notice--draft > .icon { color: var(--c-warning); }
.notice--draft strong { color: #4A2E00; }
.notice--info { background: var(--c-brand-50); border-color: var(--c-brand-100); }

.preview-banner {
    background: var(--c-ink-950);
    color: #E3E9F6;
    font-size: var(--fs-xs);
    line-height: 1.45;
}
.preview-banner .container { display: flex; gap: var(--s-2); align-items: center; justify-content: center; padding-block: 0.5rem; text-align: center; }
.preview-banner .icon { color: #FFC45C; }
.preview-banner a { color: #fff; font-weight: 600; }

/* 7. Header & navigation --------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
@media (min-width: 1080px) {
    .site-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 6px 20px -16px rgba(11, 21, 48, .4); }

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--r-xs); }
.brand img { height: 30px; width: auto; }
@media (min-width: 1080px) { .brand img { height: 32px; } }

.nav-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    min-width: 46px;
    height: 46px;
    padding: 0 0.75rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-border);
    background: #fff;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-ink-900);
}
.nav-toggle:hover { border-color: var(--c-border-strong); background: var(--c-bg-soft); }
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.85rem 0;
    border: 0;
    background: none;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--c-ink-900);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.nav-link:hover { color: var(--c-brand); }
.nav-link .chev { margin-left: auto; transition: transform var(--t) var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link[aria-current="page"], .nav-item.is-active > .nav-link { color: var(--c-brand); }

.menu-panel { padding: 0 0 var(--s-4); }

.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-link {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: var(--c-text);
    transition: background-color var(--t-fast) var(--ease);
}
.menu-link:hover { background: var(--c-bg-tint); color: var(--c-text); }
.menu-link[aria-current="page"] { background: var(--c-brand-50); }
.menu-link__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--c-brand-50);
    color: var(--c-brand);
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.menu-link:hover .menu-link__icon { background: var(--c-brand); color: #fff; }
.menu-link__title { display: block; font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; color: var(--c-ink-900); }
.menu-link__desc { display: block; font-size: var(--fs-xs); line-height: 1.45; color: var(--c-text-muted); margin-top: 2px; }

.menu-aside {
    margin-top: var(--s-3);
    padding: var(--s-4);
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--c-ink-900), var(--c-ink-700));
    color: var(--c-on-dark-muted);
    font-size: var(--fs-sm);
}
.menu-aside strong { display: block; color: #fff; font-size: var(--fs-base); margin-bottom: var(--s-1); }
.menu-aside a { color: #fff; }
.menu-aside .link-arrow { color: var(--c-teal); margin-top: var(--s-2); }

.nav-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: var(--s-4) 0 var(--s-5); }

/* Mobile navigation (< 1080px) */
@media (max-width: 1079.98px) {
    .js .site-nav {
        position: fixed;
        inset: var(--nav-top, var(--header-h)) 0 0 0;
        background: #fff;
        border-top: 1px solid var(--c-border);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: var(--s-2) var(--gutter) var(--s-7);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
    }
    .js .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
    }
    .nav-list > .nav-item { border-bottom: 1px solid var(--c-border); }
    .nav-link { min-height: 52px; }
    .menu-panel { padding-left: 0; }
    .js .menu-panel:not(.is-open) { display: none; }
    .nav-actions .btn { flex: 1 1 180px; }

    /* Without JavaScript the menu is shown as a simple stacked list */
    html:not(.js) .nav-toggle { display: none; }
    html:not(.js) .header-inner { flex-wrap: wrap; }
    html:not(.js) .site-nav { width: 100%; }
    html:not(.js) .site-header { position: static; }
}

/* Desktop navigation (>= 1080px) */
@media (min-width: 1080px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex;
        align-items: center;
        flex: 1;
        gap: var(--s-4);
        margin-left: var(--s-5);
    }
    .nav-list { display: flex; align-items: center; gap: 0.25rem; }
    .nav-item { position: relative; }
    .nav-link {
        width: auto;
        padding: 0.55rem 0.8rem;
        border-radius: var(--r-pill);
        font-size: var(--fs-sm);
    }
    .nav-link:hover, .nav-trigger[aria-expanded="true"] { background: var(--c-bg-tint); color: var(--c-brand); }
    .nav-link .chev { margin-left: 0; width: 1rem; height: 1rem; }
    .nav-actions { margin-left: auto; padding: 0; flex-wrap: nowrap; gap: var(--s-2); }

    .menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: -12px;
        width: max-content;
        max-width: min(720px, 90vw);
        padding: var(--s-3);
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: var(--r-lg);
        box-shadow: var(--sh-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
    }
    /* Invisible bridge so the pointer can travel from trigger to panel */
    .menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
    .menu-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s;
    }
    html:not(.js) .nav-item:hover > .menu-panel,
    html:not(.js) .nav-item:focus-within > .menu-panel { opacity: 1; visibility: visible; transform: none; }

    .menu-panel--mega { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: var(--s-3); width: 700px; }
    .menu-panel--mega .menu-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-panel--mega .menu-aside { margin-top: 0; display: flex; flex-direction: column; justify-content: space-between; }
    .menu-panel--list { width: 340px; }
}

/* 8. Page header & breadcrumbs -------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) 0 clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
    background:
        radial-gradient(45% 80% at 100% 0%, rgba(0, 211, 199, .12), transparent 70%),
        radial-gradient(40% 70% at 0% 100%, rgba(110, 91, 217, .09), transparent 70%),
        linear-gradient(180deg, var(--c-bg-tint), #fff);
    border-bottom: 1px solid var(--c-border);
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--c-brand-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-brand-100) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(60% 90% at 85% 10%, #000 0%, transparent 70%);
    mask-image: radial-gradient(60% 90% at 85% 10%, #000 0%, transparent 70%);
    opacity: .55;
    pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero__actions { margin-top: var(--s-5); }
.page-hero__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: var(--s-4);
    background: linear-gradient(140deg, var(--c-brand), var(--c-brand-700));
    color: #fff;
    box-shadow: 0 12px 28px -12px rgba(47, 85, 152, .7);
}
.page-hero__icon .icon { width: 28px; height: 28px; }

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 var(--s-5);
    padding: 0;
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumbs li + li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--c-border-strong);
    border-top: 1.5px solid var(--c-border-strong);
    transform: rotate(45deg);
    margin-right: 0.25rem;
}
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink-900); font-weight: 600; }

/* In-page section navigation */
.toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: var(--s-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: #fff;
}
.toc__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: var(--s-2); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 0.4rem 0.6rem; border-radius: var(--r-xs); font-size: var(--fs-sm); color: var(--c-text); text-decoration: none; }
.toc a:hover { background: var(--c-bg-tint); color: var(--c-brand); }

.with-toc { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .with-toc { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
@media (max-width: 999.98px) { .toc { position: static; } }

/* 9. Sections & headings --------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: linear-gradient(180deg, #fff, var(--c-bg-tint)); }
.section--tight { padding-block: calc(var(--section-y) * .6); }

.section--dark {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 90% 10%, rgba(0, 211, 199, .14), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(110, 91, 217, .2), transparent 70%),
        linear-gradient(180deg, var(--c-ink-900), var(--c-ink-950));
    color: var(--c-on-dark-muted);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark .muted { color: var(--c-on-dark-muted); }
.section--dark .eyebrow { color: var(--c-teal); }
.section--dark a:not(.btn) { color: #9CEBE4; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: flex-end; justify-content: space-between; }
.section-head--row > div { max-width: 680px; }
.section-head h2 { margin-bottom: var(--s-3); }

/* 10. Cards ---------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--c-text-muted); font-size: var(--fs-sm); }
.card--hover:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-brand-100); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { color: inherit; }
.card--link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.card__footer { margin-top: auto; padding-top: var(--s-4); }
.card--flat { box-shadow: none; background: var(--c-bg-soft); }
.card--dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.card--dark p { color: var(--c-on-dark-muted); }

/* Stretched link: makes a whole card clickable while keeping one accessible link */
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(.stretched:focus-visible) { box-shadow: var(--focus-ring); }
.stretched:focus-visible { outline: none; }

.icon-tile {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: var(--s-4);
    background: linear-gradient(140deg, var(--c-brand-50), #fff);
    border: 1px solid var(--c-brand-100);
    color: var(--c-brand);
    transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--teal { background: linear-gradient(140deg, var(--c-teal-50), #fff); border-color: #BDEFEA; color: var(--c-teal-700); }
.icon-tile--violet { background: linear-gradient(140deg, var(--c-violet-50), #fff); border-color: #DDD6FA; color: var(--c-violet); }
.icon-tile--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--c-teal); }
.card--hover:hover .icon-tile, .card--link:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }

.product-card { min-height: 100%; }
.product-card__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.product-card__chips li { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: var(--r-pill); background: var(--c-bg-soft); border: 1px solid var(--c-border); color: var(--c-text-muted); }
.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: linear-gradient(90deg, var(--c-brand), var(--c-teal));
    opacity: 0;
    transition: opacity var(--t) var(--ease);
}
.product-card:hover::before { opacity: 1; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.feature-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.feature-list .icon { color: var(--c-teal-700); margin-top: 0.2rem; }
.section--dark .feature-list .icon { color: var(--c-teal); }

.info-row { display: flex; gap: var(--s-3); align-items: flex-start; }
.info-row + .info-row { margin-top: var(--s-4); }
.info-row__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--c-brand-50); color: var(--c-brand); }
.info-row__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-muted); }
.info-row__value { display: block; color: var(--c-ink-900); font-weight: 500; overflow-wrap: anywhere; }

.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.kv > div:first-child { padding-top: 0; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-muted); }
.kv dd { margin: 0; color: var(--c-ink-900); overflow-wrap: anywhere; }
@media (min-width: 720px) { .kv > div { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-5); } }

/* 11. Hero & dashboard mockup ---------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--c-on-dark-muted);
    background:
        radial-gradient(55% 55% at 85% 15%, rgba(0, 211, 199, .2), transparent 65%),
        radial-gradient(45% 55% at 5% 95%, rgba(110, 91, 217, .28), transparent 65%),
        radial-gradient(40% 40% at 50% 40%, rgba(47, 85, 152, .35), transparent 70%),
        linear-gradient(180deg, var(--c-ink-900) 0%, var(--c-ink-950) 100%);
    padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
    mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
@media (min-width: 1080px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

.hero h1 { color: #fff; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.035em; max-width: 14ch; margin-bottom: var(--s-5); }
.hero .lead { color: var(--c-on-dark-muted); max-width: 54ch; }
.hero .eyebrow { color: var(--c-teal); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__note { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); padding: 0; list-style: none; font-size: var(--fs-sm); color: #AEBBD6; }
.hero__note li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__note .icon { color: var(--c-teal); }

.text-gradient {
    color: var(--c-teal);
    background: linear-gradient(95deg, var(--c-teal) 0%, var(--c-sky) 60%, #B7A9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) { .text-gradient { -webkit-text-fill-color: currentColor; background: none; } }

.hero__visual { position: relative; padding: var(--s-5) 0; }
@media (min-width: 640px) { .hero__visual { padding: var(--s-6) var(--s-5); } }

.mock-caption { margin-top: var(--s-4); text-align: center; font-size: var(--fs-xs); color: #93A1BF; }

.dash {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    color: var(--c-text);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08);
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
}
@media (min-width: 480px) { .dash { grid-template-columns: 52px minmax(0, 1fr); font-size: 13px; } }
@media (min-width: 1080px) { .dash { transform: perspective(1800px) rotateY(-7deg) rotateX(3deg); transform-origin: left center; } }

.dash__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.dash__bar span { width: 9px; height: 9px; border-radius: 50%; background: #D5DCE8; }
.dash__bar em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--c-text-subtle); font-weight: 600; letter-spacing: .02em; }

.dash__side { display: none; padding: 14px 0; border-right: 1px solid var(--c-border); background: #FBFCFE; }
@media (min-width: 480px) { .dash__side { display: grid; justify-items: center; align-content: start; gap: 10px; } }
.dash__side i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #8C97B2; }
.dash__side i.is-on { background: var(--c-brand-50); color: var(--c-brand); }
.dash__side .icon { width: 16px; height: 16px; }

.dash__main { padding: 16px; min-width: 0; }
@media (min-width: 640px) { .dash__main { padding: 20px; } }
.dash__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.dash__title { font-size: 15px; font-weight: 700; color: var(--c-ink-900); }
.dash__chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--c-bg-soft); border: 1px solid var(--c-border); font-size: 11px; font-weight: 600; color: var(--c-text-muted); }

.dash__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dash__stat { padding: 10px; border-radius: 12px; border: 1px solid var(--c-border); min-width: 0; }
.dash__stat small { display: block; color: var(--c-text-subtle); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__stat strong { display: block; margin-top: 2px; font-size: 15px; color: var(--c-ink-900); letter-spacing: -0.01em; }
@media (min-width: 640px) { .dash__stat strong { font-size: 18px; } }
.dash__stat--accent { background: linear-gradient(140deg, var(--c-brand), var(--c-brand-700)); border-color: transparent; }
.dash__stat--accent small { color: #C9D6F0; }
.dash__stat--accent strong { color: #fff; }

.dash__chart { position: relative; height: 96px; margin-bottom: 12px; border-radius: 12px; background: linear-gradient(180deg, #FBFCFE, #fff); border: 1px solid var(--c-border); overflow: hidden; }
@media (min-width: 640px) { .dash__chart { height: 120px; } }
.dash__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--c-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.chart-line--2 { stroke: var(--c-teal-600); stroke-width: 2; opacity: .9; }
.chart-area { fill: url(#chartFill); }

.dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dash__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--c-border); background: #fff; }
.dash__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c-brand-50); color: var(--c-brand); }
.dash__avatar .icon { width: 15px; height: 15px; }
.dash__row b { display: block; font-weight: 600; color: var(--c-ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__row small { color: var(--c-text-subtle); font-size: 11px; }
.dash__amt { text-align: right; font-weight: 700; color: var(--c-ink-900); font-variant-numeric: tabular-nums; }
.dash__amt .status { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; margin-top: 1px; }
.status--ok { color: var(--c-success); }
.status--wait { color: var(--c-warning); }
.status .icon { width: 12px; height: 12px; }

.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(11, 21, 48, .04);
    font-size: 12px;
    line-height: 1.35;
    color: var(--c-text-muted);
    max-width: 220px;
}
.float-card b { display: block; color: var(--c-ink-900); font-size: 12.5px; }
.float-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.float-card__icon .icon { width: 18px; height: 18px; }
.float-card--a { top: -6px; left: -4px; }
.float-card--a .float-card__icon { background: var(--c-teal-50); color: var(--c-teal-700); }
.float-card--b { bottom: -10px; right: -4px; }
.float-card--b .float-card__icon { background: var(--c-success-50); color: var(--c-success); }
@media (max-width: 479.98px) { .float-card { max-width: 190px; padding: 8px 10px 8px 8px; } .float-card--a { left: 0; } .float-card--b { right: 0; } }
@media (min-width: 640px) { .float-card--a { top: 4px; left: -8px; } .float-card--b { bottom: 0; right: -12px; } }

/* 12. Trust strip ---------------------------------------------------------- */
.trust-strip { position: relative; z-index: 2; margin-top: calc(var(--s-7) * -1); }
.trust-strip__inner {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    overflow: hidden;
}
@media (min-width: 600px) { .trust-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .trust-strip__inner { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.trust-item { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-5); border-bottom: 1px solid var(--c-border); }
@media (min-width: 600px) { .trust-item { border-right: 1px solid var(--c-border); } }
@media (min-width: 1080px) { .trust-item { border-bottom: 0; } .trust-item:last-child { border-right: 0; } }
.trust-item .icon { width: 22px; height: 22px; color: var(--c-brand); margin-top: 2px; }
.trust-item h3 { font-size: var(--fs-sm); margin: 0 0 2px; letter-spacing: 0; }
.trust-item p { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.5; }

/* 13. Carousel ------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__viewport {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: var(--s-4);
    margin: 0;
    padding: var(--s-2) var(--s-1) var(--s-5);
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--s-1);
    scrollbar-width: thin;
    scrollbar-color: var(--c-border-strong) transparent;
    -webkit-overflow-scrolling: touch;
}
.carousel__viewport:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 4px; border-radius: var(--r-md); }
@media (min-width: 640px) { .carousel__viewport { grid-auto-columns: calc((100% - var(--s-4)) / 2); } }
@media (min-width: 1000px) { .carousel__viewport { grid-auto-columns: calc((100% - var(--s-4) * 2) / 3); gap: var(--s-4); } }
.js .carousel__viewport { scrollbar-width: none; }
.js .carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide { scroll-snap-align: start; min-width: 0; }
.usecase {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--s-5);
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--c-border);
    box-shadow: var(--sh-xs);
    transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.usecase:hover { box-shadow: var(--sh-md); border-color: var(--c-brand-100); }
.usecase__visual {
    position: relative;
    display: grid;
    place-items: center;
    height: 132px;
    margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-5);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background:
        radial-gradient(60% 80% at 80% 0%, rgba(0, 211, 199, .25), transparent 70%),
        radial-gradient(60% 80% at 0% 100%, rgba(110, 91, 217, .25), transparent 70%),
        linear-gradient(140deg, var(--c-ink-800), var(--c-ink-900));
    overflow: hidden;
}
.usecase__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 24px 24px;
}
.usecase__glyph {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(0, 211, 199, .6);
}
.usecase__glyph .icon { width: 30px; height: 30px; }
.usecase__num { position: absolute; z-index: 1; top: 12px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.usecase h3 { font-size: var(--fs-md); }
.usecase p { color: var(--c-text-muted); font-size: var(--fs-sm); }
.usecase__products { margin-top: auto; padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.usecase__products a { font-size: var(--fs-xs); font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: var(--c-brand-50); color: var(--c-brand-700); text-decoration: none; border: 1px solid var(--c-brand-100); }
.usecase__products a:hover { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-2); }
.carousel__buttons { display: flex; gap: var(--s-2); }
.carousel__btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    background: #fff;
    color: var(--c-ink-900);
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast);
}
.carousel__btn:hover:not([disabled]) { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.carousel__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.carousel__btn[disabled] { opacity: .4; cursor: not-allowed; }
.carousel__dots { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.carousel__dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 50%;
}
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--c-border-strong); transition: width var(--t) var(--ease), background-color var(--t) var(--ease); }
.carousel__dot[aria-current="true"]::before { width: 22px; background: var(--c-brand); }
.carousel__dot:hover::before { background: var(--c-brand-600); }
.carousel__dot:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.carousel__status { font-size: var(--fs-xs); color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
html:not(.js) .carousel__controls { display: none; }

/* 14. Timeline / onboarding stepper --------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; position: relative; }
.timeline__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-content: start; gap: var(--s-4); padding-bottom: var(--s-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--c-brand-100), var(--c-border));
}
.timeline__item:last-child::before { display: none; }
.timeline__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--c-brand-100);
    color: var(--c-brand);
    font-weight: 700;
    font-size: var(--fs-sm);
    box-shadow: 0 0 0 6px var(--timeline-bg, #fff);
    transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.timeline__item:hover .timeline__marker, .timeline__item.is-visible .timeline__marker { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.timeline__body { padding-top: 0.6rem; }
.timeline__body h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.timeline__body p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
.timeline__step { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal-700); margin-bottom: 2px; }
.section--soft .timeline { --timeline-bg: var(--c-bg-soft); }

/* Horizontal stepper on wide screens */
@media (min-width: 1080px) {
    .timeline--horizontal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-3); }
    .timeline--horizontal .timeline__item { grid-template-columns: 1fr; gap: var(--s-3); padding-bottom: 0; }
    .timeline--horizontal .timeline__item::before { left: 52px; right: calc(var(--s-3) * -1); top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--c-brand-100), var(--c-border)); }
    .timeline--horizontal .timeline__body { padding-top: 0; }
    .timeline--horizontal .timeline__body h3 { font-size: var(--fs-base); }
}

/* Detailed onboarding cards */
.stage-card { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .stage-card { grid-template-columns: 72px minmax(0, 1fr); } }
.stage-card__num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--c-brand), var(--c-brand-700));
    color: #fff;
    font-size: var(--fs-lg);
    font-weight: 700;
    box-shadow: 0 10px 24px -12px rgba(47, 85, 152, .8);
}

/* 15. Checklist ------------------------------------------------------------ */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text); }
.checklist .tick {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 7px;
    background: var(--c-teal-50);
    color: var(--c-teal-700);
    border: 1px solid #BDEFEA;
}
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.section--dark .checklist li { color: #E3E9F6; }
.section--dark .checklist .tick { background: rgba(0, 211, 199, .12); border-color: rgba(0, 211, 199, .35); color: var(--c-teal); }

/* Interactive self-check */
.selfcheck { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.selfcheck label {
    display: flex;
    gap: var(--s-3);
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: #fff;
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.selfcheck label:hover { border-color: var(--c-brand-100); background: var(--c-bg-tint); }
.selfcheck input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--c-brand); cursor: pointer; }
.selfcheck input:checked + span { color: var(--c-text-muted); text-decoration: line-through; text-decoration-color: var(--c-border-strong); }
.selfcheck input:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.progress { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-900); }
.progress__bar { flex: 1; height: 8px; border-radius: var(--r-pill); background: var(--c-border); overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-brand), var(--c-teal)); transition: width var(--t) var(--ease); }

/* 16. Code window & developer --------------------------------------------- */
.code-window {
    position: relative;
    border-radius: var(--r-lg);
    background: #0A1128;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
    overflow: hidden;
    color: #D6DEF0;
}
.code-window__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.code-window__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-window__bar em { margin-left: auto; font-style: normal; font-size: 11px; color: #8E9BBA; font-family: var(--f-mono); }
.code-window pre {
    margin: 0;
    padding: var(--s-5);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.75;
    tab-size: 2;
}
.code-window pre:focus-visible { outline: 2px solid var(--c-teal); outline-offset: -4px; }
.tok-c { color: #7C89A8; font-style: italic; }
.tok-k { color: #B7A9FF; }
.tok-f { color: #6FE7DD; }
.tok-s { color: #FFD68A; }
.tok-n { color: #9CC3FF; }
.code-window__status {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
    color: #9AA8C6;
}
.code-window__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 0 4px rgba(0, 211, 199, .15); }

.flow {
    display: grid;
    gap: var(--s-3);
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: flow;
}
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.flow li {
    position: relative;
    padding: var(--s-5) var(--s-4) var(--s-4);
    border-radius: var(--r-md);
    background: #fff;
    border: 1px solid var(--c-border);
    counter-increment: flow;
}
.flow li::before {
    content: counter(flow, decimal-leading-zero);
    display: block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--c-teal-700);
    margin-bottom: var(--s-2);
}
.flow li h3 { font-size: var(--fs-base); margin-bottom: var(--s-1); }
.flow li p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
@media (min-width: 900px) {
    .flow li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50%;
        right: calc(var(--s-4) * -1 + 2px);
        width: calc(var(--s-4) - 4px);
        height: 2px;
        background: var(--c-brand-100);
    }
}

.status-pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 600; }

/* 17. FAQ accordion -------------------------------------------------------- */
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { margin: 0; font-size: var(--fs-base); letter-spacing: 0; }
.faq__btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-5) 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--c-ink-900);
    line-height: 1.4;
}
.faq__btn:hover { color: var(--c-brand); }
.faq__btn:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: var(--r-xs); }
.faq__sign {
    position: relative;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--c-border-strong);
    transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t) var(--ease); }
.faq__sign::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__sign { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.faq__btn[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding: 0 var(--s-7) var(--s-5) 0; color: var(--c-text-muted); max-width: 75ch; }
.faq__a p { margin-bottom: var(--s-3); }
html:not(.js) .faq__sign { display: none; }

/* 18. CTA panel ------------------------------------------------------------ */
.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: var(--s-6);
    align-items: center;
    padding: clamp(2rem, 1.25rem + 3.5vw, 4rem);
    border-radius: var(--r-xl);
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(0, 211, 199, .28), transparent 65%),
        radial-gradient(60% 90% at 0% 100%, rgba(110, 91, 217, .35), transparent 65%),
        linear-gradient(135deg, var(--c-brand-700), var(--c-ink-900));
    color: var(--c-on-dark-muted);
    box-shadow: var(--sh-lg);
}
.cta-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}
@media (min-width: 900px) { .cta-panel { grid-template-columns: minmax(0, 1.4fr) auto; } }
.cta-panel h2 { color: #fff; margin-bottom: var(--s-3); max-width: 22ch; }
.cta-panel p { color: var(--c-on-dark-muted); max-width: 56ch; }
.cta-panel__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 19. Forms ---------------------------------------------------------------- */
.form-card { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-md); }
.form-grid { display: grid; gap: var(--s-5) var(--s-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
/* align-content: start keeps label, input and hint together when a taller neighbour stretches the row. */
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink-900); }
.field .req { color: var(--c-danger); margin-left: 2px; }
.field .hint { font-size: var(--fs-xs); color: var(--c-text-muted); }
.input, .select, .textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--c-text);
    font: inherit;
    font-size: var(--fs-base);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(47, 85, 152, .15); }
.input-validation-error { border-color: var(--c-danger) !important; }
.input-validation-error:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .15) !important; }
.field-validation-error { display: flex; gap: 0.3rem; align-items: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--c-danger); }
.field-validation-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--c-danger); color: #fff; font-size: 11px; line-height: 1; margin-top: 1px; }
.field-validation-valid { display: none; }
.validation-summary-errors {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    background: var(--c-danger-50);
    border: 1px solid #F3B8B2;
    color: #7A1A12;
    font-size: var(--fs-sm);
    margin-bottom: var(--s-5);
}
.validation-summary-errors ul { margin: var(--s-2) 0 0; }
.validation-summary-valid { display: none; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-text-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-brand); }
.check input:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* 20. Policies & misc pages ----------------------------------------------- */
.policy-card .card__status { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.outline-list { list-style: none; margin: 0; padding: 0; counter-reset: outline; display: grid; gap: var(--s-2); }
.outline-list li { counter-increment: outline; display: flex; gap: var(--s-3); align-items: baseline; padding: 0.75rem 1rem; border-radius: var(--r-sm); background: var(--c-bg-soft); border: 1px solid var(--c-border); }
.outline-list li::before { content: counter(outline) "."; font-weight: 700; color: var(--c-brand); font-variant-numeric: tabular-nums; min-width: 1.5em; }
.outline-list .pending { margin-left: auto; }

.escalation { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: esc; }
.escalation > li { position: relative; padding: var(--s-5); padding-left: calc(var(--s-5) + 52px); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; counter-increment: esc; }
.escalation > li::before {
    content: counter(esc);
    position: absolute;
    left: var(--s-5);
    top: var(--s-5);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--c-brand-50);
    color: var(--c-brand);
    font-weight: 700;
}
.escalation h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }

/* Full policy documents (Views/Compliance/Policy.cshtml, rendered by PolicyDocumentStore) */
.toc--scroll { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 999.98px) { .toc--scroll { max-height: 320px; } }
.policy-doc { min-width: 0; max-width: 860px; }
.policy-doc h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.policy-doc h3 { font-size: var(--fs-h3); margin-top: var(--s-6); }
.policy-doc h4 { font-size: var(--fs-md); margin-top: var(--s-5); }
.policy-doc p, .policy-doc li { overflow-wrap: anywhere; }
.policy-doc__section { padding-top: var(--s-7); }
.policy-doc__section > :first-child { margin-top: 0; }
.policy-doc__control { display: block; font-size: var(--fs-sm); }
.policy-doc__control > :first-child { margin-top: 0; }
.policy-doc__control > p:first-child { font-weight: 700; color: var(--c-ink-900); }
.policy-doc__back { margin-top: var(--s-8); }
.policy-meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0 0 var(--s-5); font-size: var(--fs-sm); }
.policy-meta dt { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.policy-meta dd { margin: var(--s-1) 0 0; font-weight: 600; color: var(--c-ink-900); }
.policy-list { padding-left: 1.25rem; }
.policy-list ul { padding-left: 1.25rem; margin-top: var(--s-2); }
.policy-list li { margin-bottom: var(--s-2); }
.policy-list__plain { list-style: none; }
.policy-table { margin-block: var(--s-4); overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.policy-table:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.policy-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.policy-table th, .policy-table td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); min-width: 7rem; }
.policy-table th { background: var(--c-bg-soft); font-weight: 650; color: var(--c-ink-900); }
.policy-table tr:last-child > td { border-bottom: 0; }
.policy-table td + td, .policy-table th + th { border-left: 1px solid var(--c-border); }
.policy-figure { margin: var(--s-5) 0; padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; text-align: center; }
.policy-figure img { max-width: 100%; height: auto; }

.placeholder-panel {
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 2px dashed var(--c-warning-border);
    border-radius: var(--r-lg);
    background: repeating-linear-gradient(-45deg, #FFFBF2, #FFFBF2 12px, #FFF7E6 12px, #FFF7E6 24px);
    text-align: center;
}
.placeholder-panel .icon { width: 32px; height: 32px; color: var(--c-warning); margin-bottom: var(--s-3); }
.placeholder-panel h3 { color: #4A2E00; }
.placeholder-panel p { color: #5C3A00; max-width: 60ch; margin-inline: auto; }

.error-page { padding-block: clamp(4rem, 3rem + 6vw, 8rem); text-align: center; }
.error-page__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(95deg, var(--c-brand), var(--c-teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--c-brand); }

.success-panel { text-align: center; }
.success-panel__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-success-50); color: var(--c-success); margin-bottom: var(--s-5); box-shadow: 0 0 0 10px rgba(11, 115, 70, .06); }
.success-panel__icon .icon { width: 34px; height: 34px; stroke-width: 2.25; }
.ref-code { display: inline-block; padding: 0.4rem 0.9rem; border-radius: var(--r-sm); background: var(--c-bg-soft); border: 1px solid var(--c-border); font-family: var(--f-mono); font-weight: 700; font-size: var(--fs-md); color: var(--c-ink-900); letter-spacing: .04em; }

/* 21. Footer --------------------------------------------------------------- */
.site-footer { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); padding-top: clamp(3rem, 2rem + 3vw, 5rem); font-size: var(--fs-sm); }
.footer-top { display: grid; gap: var(--s-7); }
@media (min-width: 1080px) { .footer-top { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); } }
.footer-brand img { height: 32px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { color: var(--c-text-muted); max-width: 34ch; }
.footer-cols { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .footer-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-900); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-col a { display: inline-block; padding: 0.3rem 0; color: var(--c-text-muted); text-decoration: none; line-height: 1.4; }
.footer-col a:hover { color: var(--c-brand); text-decoration: underline; }
.footer-col a .icon { width: 0.85em; height: 0.85em; margin-left: 2px; vertical-align: -0.05em; }
.footer-col--compliance { grid-column: 1 / -1; }
@media (min-width: 1280px) { .footer-col--compliance { grid-column: auto; } }
.footer-col--compliance ul { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: var(--s-5); }
@media (min-width: 1280px) { .footer-col--compliance ul { grid-template-columns: 1fr; } }

.footer-bottom {
    display: grid;
    gap: var(--s-3);
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
    padding: var(--s-5) 0 var(--s-6);
    border-top: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
}
@media (min-width: 900px) { .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--c-text-muted); }

/* 22. Motion --------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float-y { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 211, 199, .15); } 50% { box-shadow: 0 0 0 7px rgba(0, 211, 199, .05); } }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Hero entrance (CSS-only so it runs even if JS fails) */
.hero__copy > * { animation: rise var(--t-slow) var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__copy > :nth-child(4) { animation-delay: 240ms; }
.hero__copy > :nth-child(5) { animation-delay: 320ms; }
.hero__visual .dash-wrap { animation: rise 900ms var(--ease) 200ms both; }
.chart-line { animation: draw 1800ms var(--ease) 600ms both; }
.chart-line--2 { animation-delay: 900ms; }
.dash__row { animation: row-in 600ms var(--ease) both; }
.dash__row:nth-child(1) { animation-delay: 900ms; }
.dash__row:nth-child(2) { animation-delay: 1050ms; }
.dash__row:nth-child(3) { animation-delay: 1200ms; }
.float-card--a { animation: pop-in 600ms var(--ease) 1100ms both, float-y 5s ease-in-out 1.8s infinite alternate; }
.float-card--b { animation: pop-in 600ms var(--ease) 1400ms both, float-y 6s ease-in-out 2.1s infinite alternate-reverse; }
.code-window__status .dot { animation: pulse-dot 2.4s ease-in-out infinite; }

/* Scroll reveal: only hidden once JS has confirmed it can reveal them */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-visible, .reveal-fallback [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
        transition-delay: 0ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .dash { transform: none !important; }
    .card--hover:hover, .card--link:hover { transform: none; }
}

@media print {
    .site-header, .site-footer, .preview-banner, .cta-panel, .carousel__controls, .nav-toggle { display: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    body { color: #000; }
    .with-toc > aside { display: none; }
    .policy-table { overflow: visible; }
}

.dash-wrap { position: relative; }

.stack--lg > * + * { margin-top: var(--s-6); }
.with-toc > aside { align-self: stretch; }
.card--link .small { display: block; }
.card__status .badge, .badge--wrap { white-space: normal; }

@media (max-width: 639.98px) { .float-card--b { bottom: -30px; } .hero__visual { padding-bottom: var(--s-6); } }

