/* =====================================================================
   LigiLearn — layout/site.css : public marketing site

   Everything shared by the indexable pages (/, /modules, /pricing, /faq,
   /about, /contact, /privacy-policy, /terms-of-service). Tokens come from
   site.css; nothing here hard-codes a colour. Page-only styles live in
   css/pages/home-<action>.css.

   Sections:
     1. Layout tokens + base
     2. Header / navigation
     3. Typography helpers (eyebrow, titles, leads)
     4. Sections, page hero, breadcrumb
     5. Shared marketing components (feature cards, icon tiles, steps,
        check lists, comparison table, CTA band, stat row)
     6. Legal document layout (privacy / terms)
     7. Footer
     8. Motion + responsive
   ===================================================================== */

/* =====================================================================
   1. LAYOUT TOKENS + BASE
   ===================================================================== */
:root {
    --site-max:      1180px;
    --site-gutter:   20px;
    --site-header-h: 72px;

    --site-hero-glow-1: rgba(79, 70, 229, .16);
    --site-hero-glow-2: rgba(6, 182, 212, .14);
    --site-hero-glow-3: rgba(245, 158, 11, .10);
}

:root[data-theme="dark"] {
    --site-hero-glow-1: rgba(99, 102, 241, .22);
    --site-hero-glow-2: rgba(6, 182, 212, .16);
    --site-hero-glow-3: rgba(245, 158, 11, .08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --site-hero-glow-1: rgba(99, 102, 241, .22);
        --site-hero-glow-2: rgba(6, 182, 212, .16);
        --site-hero-glow-3: rgba(245, 158, 11, .08);
    }
}

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

html:has(body.site-body) { overflow-x: clip; }

body.site-body {
    font-size: 16px;
    line-height: 1.65;
    background: var(--ll-bg);
    color: var(--ll-ink);
    overflow-x: clip;
}

.site-container {
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

.site-container-narrow { max-width: 860px; }

.site-main { min-height: 60vh; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 3000;
    padding: 10px 14px;
    background: var(--ll-primary);
    color: #fff;
    border-radius: var(--ll-radius-sm);
    font-weight: 600;
    transition: top .15s var(--ll-ease);
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }

/* =====================================================================
   2. HEADER / NAVIGATION
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--site-header-h);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ll-ease), box-shadow .2s var(--ll-ease);
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would
   turn it into the containing block for the fixed mobile drawer inside it. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--ll-surface) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled {
    border-bottom-color: var(--ll-border);
    box-shadow: var(--ll-shadow-sm);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

/* ---- brand ---- */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ll-ink);
    text-decoration: none;
    flex: 0 0 auto;
}
.site-brand:hover { color: var(--ll-ink); text-decoration: none; }

.site-brand .brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--ll-gradient);
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6);
}
.site-brand .brand-mark svg { width: 21px; height: 21px; }

.site-brand .brand-word {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.site-brand .brand-word em { font-style: normal; color: var(--ll-primary); }

/* ---- nav ---- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav > a {
    position: relative;
    padding: 8px 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ll-ink-2);
    border-radius: var(--ll-radius-sm);
    transition: color .15s var(--ll-ease), background .15s var(--ll-ease);
}
.site-nav > a:hover { color: var(--ll-primary); background: var(--ll-primary-soft); text-decoration: none; }
.site-nav > a.is-active { color: var(--ll-primary); }
.site-nav > a.is-active::after {
    content: '';
    position: absolute;
    left: 13px; right: 13px; bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--ll-gradient);
}

.site-nav-mobile-actions { display: none; }

/* ---- right actions ---- */
.site-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--ll-ink-muted);
    background: transparent;
    border: 0;
    border-radius: var(--ll-radius-sm);
    cursor: pointer;
    transition: background .15s var(--ll-ease), color .15s var(--ll-ease);
}
.icon-btn:hover { background: var(--ll-neutral-soft); color: var(--ll-ink); }

.site-nav-toggle { display: none; }
.site-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
    background: rgba(11, 16, 32, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ll-ease);
}

/* =====================================================================
   3. TYPOGRAPHY HELPERS
   ===================================================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ll-primary);
    background: var(--ll-primary-soft);
    border-radius: var(--ll-pill);
}
.eyebrow .ico { width: 14px; height: 14px; }
.eyebrow.is-success { color: var(--ll-success); background: var(--ll-success-soft); }
.eyebrow.is-warning { color: var(--ll-warning); background: var(--ll-warning-soft); }

.display {
    font-size: clamp(2.3rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--ll-ink);
}

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.section-lead {
    margin-top: 14px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: var(--ll-ink-muted);
    max-width: 640px;
}

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

.text-accent { color: var(--ll-amber); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .section-lead { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { margin-bottom: 16px; }

/* =====================================================================
   4. SECTIONS, PAGE HERO, BREADCRUMB
   ===================================================================== */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--ll-surface); border-top: 1px solid var(--ll-border-soft); border-bottom: 1px solid var(--ll-border-soft); }

/* Inner-page hero — every page except home opens with this */
.page-hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
    border-bottom: 1px solid var(--ll-border-soft);
}
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.page-hero::before {
    width: 520px; height: 520px;
    top: -260px; left: -120px;
    background: radial-gradient(circle, var(--site-hero-glow-1), transparent 70%);
}
.page-hero::after {
    width: 460px; height: 460px;
    top: -200px; right: -120px;
    background: radial-gradient(circle, var(--site-hero-glow-2), transparent 70%);
}
.page-hero .site-container { position: relative; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 780px; }
.page-hero .section-lead { max-width: 700px; }
.page-hero.is-center { text-align: center; }
.page-hero.is-center h1,
.page-hero.is-center .section-lead { margin-left: auto; margin-right: auto; }

.crumbs { margin-bottom: 18px; font-size: 13px; }

/* =====================================================================
   5. SHARED MARKETING COMPONENTS
   ===================================================================== */

/* ---- icon tile: shared component, defined in site.css §13 ---- */

/* ---- feature card ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    padding: 28px 26px;
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-xl);
    box-shadow: var(--ll-shadow-xs);
    transition: transform .2s var(--ll-ease), box-shadow .2s var(--ll-ease), border-color .2s var(--ll-ease);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ll-shadow-lg);
    border-color: color-mix(in srgb, var(--ll-primary) 35%, var(--ll-border));
}
.feature-card .icon-tile { margin-bottom: 18px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 15px; color: var(--ll-ink-muted); }
.feature-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
}
.feature-card .card-link .ico { width: 15px; height: 15px; transition: transform .15s var(--ll-ease); }
.feature-card .card-link:hover { text-decoration: none; }
.feature-card .card-link:hover .ico { transform: translateX(3px); }

/* ---- compact module chip (used on home + pricing) ---- */
.module-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.module-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--ll-ink-2);
    transition: border-color .15s var(--ll-ease), transform .15s var(--ll-ease), box-shadow .15s var(--ll-ease);
}
.module-chip:hover { border-color: var(--ll-primary); transform: translateY(-1px); box-shadow: var(--ll-shadow-sm); text-decoration: none; color: var(--ll-ink); }
.module-chip .ico { width: 18px; height: 18px; color: var(--ll-primary); }

/* ---- numbered steps ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 26px 24px 26px 24px;
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-xl);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--ll-primary);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ll-ink-muted); font-size: 15px; }

/* ---- check list ---- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--ll-ink-2);
}
.check-list .ico {
    width: 20px; height: 20px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--ll-success);
}
.check-list strong { color: var(--ll-ink); }

/* ---- comparison / data table on marketing pages ---- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--ll-border); border-radius: var(--ll-radius-lg); background: var(--ll-surface); box-shadow: var(--ll-shadow-xs); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare-table th,
.compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ll-border-soft); }
.compare-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ll-ink-muted);
    background: var(--ll-surface-2);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .is-us { color: var(--ll-success); font-weight: 600; }
.compare-table .is-them { color: var(--ll-ink-muted); }
.compare-table .col-highlight { background: color-mix(in srgb, var(--ll-primary-soft) 55%, transparent); }

/* ---- stat row ---- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}
.stat-row .stat-big {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    background: var(--ll-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-row .stat-label { margin-top: 6px; font-size: 13.5px; color: var(--ll-ink-muted); font-weight: 500; }

/* ---- trust strip ---- */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ll-ink-2);
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-pill);
}
.trust-strip .ico { width: 16px; height: 16px; color: var(--ll-success); }

/* ---- CTA band ---- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--ll-indigo-600) 0%, var(--ll-indigo) 45%, var(--ll-cyan) 130%);
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(500px 260px at 90% 100%, rgba(255, 255, 255, .12), transparent 60%);
    pointer-events: none;
}
.cta-band .site-container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { margin: 12px auto 28px; max-width: 560px; font-size: 17px; color: rgba(255, 255, 255, .85); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .cta-note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---- inline contact chips (phone / whatsapp) ---- */
.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
    color: var(--ll-ink);
    font-weight: 600;
    transition: border-color .15s var(--ll-ease), box-shadow .15s var(--ll-ease);
}
.contact-chip:hover { border-color: var(--ll-primary); box-shadow: var(--ll-shadow-sm); text-decoration: none; color: var(--ll-ink); }
.contact-chip .icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.contact-chip .icon-tile .ico { width: 18px; height: 18px; }
.contact-chip small { display: block; font-size: 12px; font-weight: 500; color: var(--ll-ink-muted); }

/* ---- FAQ accordion (shared by home + faq page) ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item {
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-lg);
    overflow: hidden;
    transition: border-color .15s var(--ll-ease), box-shadow .15s var(--ll-ease);
}
.faq-item.is-open { border-color: color-mix(in srgb, var(--ll-primary) 40%, var(--ll-border)); box-shadow: var(--ll-shadow-sm); }
.faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    color: var(--ll-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.faq-q .ico {
    width: 20px; height: 20px;
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--ll-ink-muted);
    transition: transform .2s var(--ll-ease), color .2s var(--ll-ease);
}
.faq-item.is-open .faq-q .ico { transform: rotate(45deg); color: var(--ll-primary); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .22s var(--ll-ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: var(--ll-ink-2); }
.faq-a p + p { padding-top: 0; margin-top: -8px; }

/* =====================================================================
   6. LEGAL DOCUMENT LAYOUT (privacy / terms)
   ===================================================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding: 56px 0 88px;
}

.legal-toc {
    position: sticky;
    top: calc(var(--site-header-h) + 24px);
    padding: 18px 0;
    border-left: 1px solid var(--ll-border);
}
.legal-toc h4 {
    padding: 0 18px;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ll-ink-muted);
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc a {
    display: block;
    padding: 7px 18px;
    margin-left: -1px;
    font-size: 13.5px;
    color: var(--ll-ink-muted);
    border-left: 2px solid transparent;
    transition: color .15s var(--ll-ease), border-color .15s var(--ll-ease);
}
.legal-toc a:hover { color: var(--ll-ink); text-decoration: none; }
.legal-toc a.is-active { color: var(--ll-primary); border-left-color: var(--ll-primary); font-weight: 600; }

.legal-doc { max-width: 760px; }
.legal-doc .legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 32px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--ll-ink-muted);
    background: var(--ll-surface);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius);
}
.legal-doc .legal-meta strong { color: var(--ll-ink-2); }
.legal-doc section { scroll-margin-top: calc(var(--site-header-h) + 20px); }
.legal-doc section + section { margin-top: 40px; }
.legal-doc h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 12px;
    padding-top: 8px;
}
.legal-doc h3 { font-size: 16.5px; font-weight: 700; margin: 20px 0 8px; }
.legal-doc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; color: var(--ll-ink-2); }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; color: var(--ll-ink-2); font-size: 15.5px; line-height: 1.7; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc strong { color: var(--ll-ink); }
.legal-doc .callout {
    margin: 18px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--ll-primary);
    background: var(--ll-primary-soft);
    border-radius: 0 var(--ll-radius) var(--ll-radius) 0;
    font-size: 15px;
    color: var(--ll-ink-2);
}
.legal-doc .callout p:last-child { margin-bottom: 0; }

/* =====================================================================
   7. FOOTER
   ===================================================================== */
.site-footer {
    margin-top: 0;
    padding: 64px 0 28px;
    background: var(--ll-nav-bg);
    color: var(--ll-nav-text);
    border-top: 1px solid var(--ll-nav-border);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.site-footer .site-brand { color: #fff; }
.site-footer .site-brand .brand-word em { color: var(--ll-indigo-300); }
.site-footer-brand p { margin: 16px 0 18px; max-width: 360px; font-size: 14.5px; line-height: 1.7; }

.site-footer-contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ll-nav-text-on);
    font-weight: 500;
}
.site-footer-contact a:hover { color: var(--ll-indigo-300); text-decoration: none; }
.site-footer-contact .ico { color: var(--ll-indigo-300); }

.site-footer h4 {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--ll-nav-text); font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--ll-nav-border);
    font-size: 13px;
}
.site-footer-legal { display: flex; gap: 18px; }
.site-footer-legal a { color: var(--ll-nav-text); }
.site-footer-legal a:hover { color: #fff; text-decoration: none; }

/* =====================================================================
   8. MOTION + RESPONSIVE
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ll-ease), transform .55s var(--ll-ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1023px) {
    .site-header-inner { gap: 14px; }
    .site-signin { display: none; }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        width: min(340px, 88vw);
        margin: 0;
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--ll-surface);
        border-left: 1px solid var(--ll-border);
        box-shadow: var(--ll-shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .25s var(--ll-ease), visibility 0s linear .25s;
        overflow-y: auto;
    }
    .site-nav > a { padding: 13px 14px; font-size: 16px; }
    .site-nav > a.is-active::after { display: none; }
    .site-nav > a.is-active { background: var(--ll-primary-soft); }

    .site-nav-mobile-actions {
        display: grid;
        gap: 10px;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--ll-border-soft);
    }

    .site-nav-toggle { display: grid; }

    body.is-nav-open { overflow: hidden; }
    body.is-nav-open .site-nav { transform: none; visibility: visible; transition-delay: 0s; }
    body.is-nav-open .site-nav-backdrop { opacity: 1; pointer-events: auto; }

    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer-brand { grid-column: 1 / -1; }

    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; border-left: 0; padding: 0; }
    .legal-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
    .legal-toc a { padding: 7px 12px; border: 1px solid var(--ll-border); border-radius: var(--ll-pill); background: var(--ll-surface); }
    .legal-toc a.is-active { border-color: var(--ll-primary); }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .page-hero { padding: 52px 0 40px; }
    .site-cta { display: none; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 56px 0; }
    .cta-band .cta-actions .btn { width: 100%; }
}
