/* ==========================================================================
   Atlantas.Ai for finance : "Ledger & Persimmon"
   Warm ledger paper, Atlantas graphite ink, one persimmon signal.
   Tokens and rationale: DESIGN.md. Contrast pairs verified (see DESIGN.md).
   ========================================================================== */

:root {
    /* Surfaces */
    --paper:        oklch(97.4% 0.012 82);
    --paper-deep:   oklch(93.6% 0.016 80);
    --card:         oklch(99.1% 0.006 82);
    --ink:          oklch(20% 0.014 255);
    --ink-elev:     oklch(25.5% 0.016 255);
    --graphite:     oklch(30% 0.016 255);

    /* Signal (persimmon) */
    --signal:        oklch(66% 0.175 42);
    --signal-bright: oklch(74% 0.15 48);
    --signal-ink:    oklch(49% 0.165 38);
    --on-signal:     oklch(19% 0.03 40);

    /* Ledger + state */
    --rule:     oklch(78% 0.055 235);
    --approve:  oklch(48% 0.11 165);
    --approve-bright: oklch(76% 0.13 165);

    /* Text */
    --text:              oklch(21% 0.014 255);
    --text-soft:         oklch(44% 0.014 255);
    --text-on-ink:       oklch(96.5% 0.008 82);
    --text-on-ink-soft:  oklch(77% 0.012 255);

    /* Lines */
    --line:          oklch(21% 0.014 255 / 0.14);
    --line-strong:   oklch(21% 0.014 255 / 0.28);
    --line-on-ink:   oklch(96.5% 0.008 82 / 0.14);
    --line-on-signal: oklch(19% 0.03 40 / 0.22);

    /* Type */
    --font-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
    --font-sans:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono:    "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

    /* Spacing (4pt) */
    --s-4: 0.25rem; --s-8: 0.5rem; --s-12: 0.75rem; --s-16: 1rem; --s-20: 1.25rem;
    --s-24: 1.5rem; --s-32: 2rem; --s-40: 2.5rem; --s-48: 3rem; --s-64: 4rem;
    --s-80: 5rem; --s-96: 6rem; --s-128: 8rem;
    --section-pad: clamp(4rem, 8.5vw, 7.5rem);
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

    --r-sm: 6px; --r: 10px; --r-lg: 16px;

    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --dur-feedback: 140ms; --dur-state: 220ms; --dur-reveal: 720ms;

    --frame-shadow: 0 18px 48px oklch(20% 0.014 255 / 0.14), 0 2px 6px oklch(20% 0.014 255 / 0.06);
    --nav-h: 72px;
    --rule-pitch: 2.25rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* Tabular figures only where numbers line up: Schibsted's tnum also widens commas and stops. */
.mono, .num, .invoice-meta, .invoice-lines, .audio-timecode, .price-lead-figure, .geo-stat-figure, .step-index, .trust-num, .kb-phase-index { font-variant-numeric: tabular-nums; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--signal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }

:focus-visible { outline: 3px solid var(--signal-ink); outline-offset: 3px; border-radius: 4px; }
.panel-ink :focus-visible, .site-nav :focus-visible, .site-footer :focus-visible, .uc-hero :focus-visible,
.panel-hero :focus-visible { outline-color: var(--signal-bright); }
.panel-signal :focus-visible { outline-color: var(--ink); }

.skip-link {
    position: absolute; left: var(--s-16); top: -100px; z-index: 1000;
    background: var(--ink); color: var(--text-on-ink); padding: var(--s-12) var(--s-20);
    border-radius: var(--r); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-16); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Type utilities ---------- */
.display  { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.headline { font-size: clamp(2rem, 3.7vw, 3.15rem); }
.title    { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
.lead     { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-soft); max-width: 60ch; }
.body     { max-width: 65ch; color: var(--text-soft); }
.eyebrow {
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink);
    display: inline-flex; align-items: center; gap: var(--s-8);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.panel { position: relative; padding-block: var(--section-pad); }
.panel-paper { background: var(--paper); }
.panel-paper-deep { background: var(--paper-deep); }
.panel-ink { background: var(--ink); color: var(--text-on-ink); }
.panel-ink .lead, .panel-ink .body { color: var(--text-on-ink-soft); }
.panel-ink .eyebrow { color: var(--signal-bright); }
.panel-ink a:not(.cta) { color: var(--signal-bright); }
.panel-signal { background: var(--signal); color: var(--on-signal); }
.panel-signal .lead, .panel-signal .body { color: var(--on-signal); }
.panel-signal .eyebrow { color: var(--on-signal); }

/* Ledger ruling + persimmon margin rule (decorative band treatment) */
.ruled { isolation: isolate; }
.ruled::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--rule-pitch) - 1px), oklch(78% 0.055 235 / 0.32) calc(var(--rule-pitch) - 1px), oklch(78% 0.055 235 / 0.32) var(--rule-pitch));
}
.ruled::after {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none;
    left: max(calc((100% - 1240px) / 2 + var(--gutter) - 28px), 10px);
    width: 2px; background: oklch(66% 0.175 42 / 0.55);
}

.section-head { display: grid; gap: var(--s-16); max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .headline { max-width: 22ch; }

/* ---------- CTAs ---------- */
.cta {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
    min-height: 48px; padding: 0.8rem 1.35rem; border-radius: var(--r);
    font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
    transition: background-color var(--dur-state) var(--ease-out-quart), color var(--dur-state), border-color var(--dur-state), transform var(--dur-feedback) var(--ease-out-quart);
}
.cta:active { transform: translateY(1px); }
.cta-primary { background: var(--signal); color: var(--on-signal); }
.cta-primary:hover { background: var(--signal-bright); color: var(--on-signal); text-decoration: none; }
.cta-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.cta-secondary:hover { border-color: var(--text); text-decoration: none; }
.panel-ink .cta-secondary, .panel-hero .cta-secondary, .uc-hero .cta-secondary { color: var(--text-on-ink); border-color: oklch(96.5% 0.008 82 / 0.45); }
.panel-ink .cta-secondary:hover, .panel-hero .cta-secondary:hover, .uc-hero .cta-secondary:hover { border-color: var(--text-on-ink); }
.panel-signal .cta-primary { background: var(--ink); color: var(--text-on-ink); }
.panel-signal .cta-primary:hover { background: var(--graphite); color: var(--text-on-ink); }
.cta-arrow { transition: transform var(--dur-state) var(--ease-out-quart); }
.cta:hover .cta-arrow { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-12); align-items: center; }
.cta-hook { font-size: 0.95rem; color: var(--text-soft); max-width: 52ch; }
.panel-hero .cta-hook, .panel-ink .cta-hook { color: var(--text-on-ink-soft); }
.panel-signal .cta-hook { color: var(--on-signal); }

/* The inline "Your AI agent" button inside the Get Started lead */
.gs-agent-cta {
    display: inline-block; vertical-align: baseline; min-height: 0;
    padding: 0.08em 0.4em; gap: 0; font-family: inherit; font-size: inherit;
    font-weight: 600; line-height: inherit; text-transform: none; letter-spacing: normal;
    white-space: normal; border-radius: var(--r-sm);
}

/* ==========================================================================
   Site nav : fixed on every page
   ========================================================================== */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    color: var(--text-on-ink);
    background: transparent;
    transition: background-color var(--dur-state) var(--ease-out-quart), box-shadow var(--dur-state);
}
.site-nav.scrolled, body.solid-nav .site-nav {
    background: oklch(20% 0.014 255 / 0.92);
    -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
    box-shadow: 0 1px 0 var(--line-on-ink);
}
.nav-row {
    max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
    height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-24);
}
.brand-mark { display: inline-flex; align-items: center; gap: var(--s-12); text-decoration: none; color: var(--text-on-ink); }
.brand-logo { width: 34px; height: 34px; color: var(--text-on-ink); flex: 0 0 auto; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.site-nav .brand-name, .site-nav .brand-sub { color: var(--text-on-ink); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand-dot { color: var(--signal); }
.brand-vertical { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.45em; padding: 2px 6px; border-radius: 4px; background: var(--signal); color: var(--on-signal); vertical-align: 0.25em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; margin-top: 4px; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; }
.nav-links { display: flex; align-items: center; gap: var(--s-8); }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 0.55rem 0.8rem; border-radius: var(--r-sm);
    font-size: 0.95rem; font-weight: 500; color: var(--text-on-ink); text-decoration: none;
    background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: oklch(96.5% 0.008 82 / 0.1); text-decoration: none; }
.nav-uc-caret { font-size: 0.7em; transition: transform var(--dur-state) var(--ease-out-quart); }
.cta-nav { min-height: 42px; padding: 0.55rem 1rem; margin-left: var(--s-8); font-size: 0.95rem; }

/* Use Cases mega-menu (desktop: hover / focus) */
.nav-uc { position: relative; }
.uc-megamenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
    width: min(860px, 92vw); padding-top: 12px; /* transparent bridge: no dead zone */
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-state) var(--ease-out-quart), transform var(--dur-state) var(--ease-out-quart), visibility var(--dur-state);
    z-index: 110;
}
.nav-uc:hover .uc-megamenu, .nav-uc:focus-within .uc-megamenu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-uc:hover .nav-uc-caret, .nav-uc:focus-within .nav-uc-caret { transform: rotate(180deg); }
.uc-megamenu-inner {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24) var(--s-32);
    background: var(--ink-elev); color: var(--text-on-ink); border: 1px solid var(--line-on-ink);
    border-radius: var(--r-lg); padding: var(--s-24); box-shadow: 0 24px 60px oklch(12% 0.01 255 / 0.45);
}
.uc-group-head { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-bright); margin-bottom: var(--s-8); }
.uc-rows { list-style: none; display: grid; gap: 2px; }
.uc-row {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-12);
    padding: 0.6rem 0.7rem; border-radius: var(--r-sm); color: var(--text-on-ink); text-decoration: none;
}
.uc-row:hover, .uc-row:focus-visible { background: oklch(96.5% 0.008 82 / 0.07); text-decoration: none; }
.uc-row-text { display: grid; gap: 2px; }
.uc-row-title { font-weight: 600; font-size: 0.97rem; }
.uc-row-sub { font-size: 0.85rem; color: var(--text-on-ink-soft); }
.uc-row-arrow { color: var(--signal-bright); transition: transform var(--dur-state) var(--ease-out-quart); }
.uc-row:hover .uc-row-arrow { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.panel-hero {
    position: relative; isolation: auto; overflow: hidden;
    min-height: min(100svh, 920px); display: flex; align-items: flex-end;
    color: var(--text-on-ink); background: var(--ink);
    padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink) url('/videos/hero-poster.jpg') center / cover no-repeat; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, oklch(20% 0.014 255 / 0.9) 0%, oklch(20% 0.014 255 / 0.72) 45%, oklch(20% 0.014 255 / 0.25) 100%),
        linear-gradient(0deg, oklch(20% 0.014 255 / 0.75) 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--s-24); max-width: 820px; }
.hero-eyebrow { color: var(--signal-bright); }
.hero-title { color: var(--text-on-ink); max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--signal-bright); }
.hero-lead { color: var(--text-on-ink-soft); font-size: clamp(1.12rem, 1.5vw, 1.3rem); max-width: 48ch; }
.hero-proof {
    list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); margin-top: var(--s-8);
    padding-top: var(--s-20); border-top: 1px solid var(--line-on-ink);
}
.hero-proof li { display: inline-flex; align-items: center; gap: var(--s-8); font-size: 0.95rem; color: var(--text-on-ink); }
.hero-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); flex: 0 0 auto; }

/* ==========================================================================
   The Solution : six cards on persimmon
   ========================================================================== */
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); list-style: none; }
.solution-card {
    background: var(--card); color: var(--text); border-radius: var(--r-lg);
    padding: clamp(1.4rem, 2.4vw, 2rem); display: grid; align-content: start; gap: var(--s-12);
    min-height: 236px; border: 1px solid var(--line-on-signal);
}
.solution-card--system { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
.solution-tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink); display: flex; align-items: center; gap: var(--s-8); }
.solution-card--system .solution-tag { color: var(--signal-bright); }
.solution-tag svg { width: 18px; height: 18px; }
.solution-promise { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.08; }
.solution-line { color: var(--text-soft); font-size: 0.98rem; }
.solution-card--system .solution-line { color: var(--text-on-ink-soft); }
.panel-signal .section-head .headline { max-width: 20ch; }

/* ==========================================================================
   Proof : illustrative checked invoice + sample call
   ========================================================================== */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
.invoice-frame {
    background: var(--card); border-radius: var(--r-lg); box-shadow: var(--frame-shadow);
    border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
}
.invoice-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-16);
    padding: var(--s-24) var(--s-24) var(--s-16); border-bottom: 1px dashed var(--line-strong);
}
.invoice-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.invoice-supplier { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 4px; }
.invoice-meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-soft); text-align: right; line-height: 1.7; }
.invoice-example { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.invoice-lines { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.invoice-lines th { font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); text-align: left; padding: var(--s-12) var(--s-24) var(--s-8); }
.invoice-lines td { padding: 0.45rem var(--s-24); border-top: 1px solid var(--line); }
.invoice-lines .num { text-align: right; font-family: var(--font-mono); }
.invoice-lines tfoot td { font-weight: 700; border-top: 1.5px solid var(--text); }
.check-ledger { list-style: none; margin-top: auto; background: var(--paper); border-top: 1px solid var(--line); padding: var(--s-12) var(--s-24) var(--s-20); display: grid; }
.check-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-12); align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.check-row:last-child { border-bottom: 0; }
.check-row .why { display: block; font-size: 0.82rem; color: var(--text-soft); }
.chip { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.chip-ok { color: var(--approve); }
.chip-you { color: var(--on-signal); background: var(--signal); border-color: var(--signal); }
.chip-draft { color: var(--text); background: var(--paper-deep); border-color: var(--line-strong); }
html.has-reveal [data-reveal] .check-row { transition: opacity 420ms var(--ease-out-quint), transform 420ms var(--ease-out-quint); }
html.has-reveal [data-reveal]:not([data-reveal="shown"]) .check-row { opacity: 0; transform: translateY(4px); }
[data-reveal="shown"] .check-row:nth-child(2) { transition-delay: 160ms; }
[data-reveal="shown"] .check-row:nth-child(3) { transition-delay: 320ms; }
[data-reveal="shown"] .check-row:nth-child(4) { transition-delay: 480ms; }
[data-reveal="shown"] .check-row:nth-child(5) { transition-delay: 640ms; }
[data-reveal="shown"] .check-row:nth-child(6) { transition-delay: 800ms; }
.frame-caption { font-size: 0.85rem; color: var(--text-soft); margin-top: var(--s-12); }

/* Sample call block */
.callproof {
    display: grid; grid-template-rows: auto 1fr; background: var(--ink); color: var(--text-on-ink);
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--frame-shadow);
}
.callproof-media { position: relative; min-height: 220px; }
.callproof-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.callproof-body { display: grid; gap: var(--s-16); padding: var(--s-24); align-content: start; }
.callproof-body h3 { font-size: 1.55rem; color: var(--text-on-ink); }
.callproof-body p { color: var(--text-on-ink-soft); }
.callproof-links { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); font-weight: 600; }
.callproof-links a { color: var(--signal-bright); }

/* ==========================================================================
   Audio sample player (driven by js/audio-sample.js -> window.atlantasAudio)
   ========================================================================== */
.audio-sample {
    --audio-progress: 0%;
    background: var(--ink-elev); color: var(--text-on-ink); border: 1px solid var(--line-on-ink);
    border-radius: var(--r); padding: var(--s-16); display: grid; gap: var(--s-12);
}
.audio-sample-marker { display: flex; align-items: center; gap: var(--s-8); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-soft); }
.audio-marker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.audio-sample.is-playing .audio-marker-dot { animation: pulse 1.4s var(--ease-out-quart) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.audio-waveform { position: relative; height: 56px; }
.audio-waveform-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.audio-waveform-svg rect { fill: currentColor; }
.audio-waveform-svg--base { color: oklch(77% 0.012 255 / 0.45); }
.audio-waveform-svg--heard { color: var(--signal); clip-path: inset(0 calc(100% - var(--audio-progress)) 0 0); }
.audio-waveform-playhead { position: absolute; top: -4px; bottom: -4px; left: var(--audio-progress); width: 2px; background: var(--signal-bright); border-radius: 2px; }
.audio-transport { display: flex; align-items: center; gap: var(--s-12); flex-wrap: wrap; }
.audio-play-button {
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--signal); color: var(--on-signal); display: grid; place-items: center;
    transition: background-color var(--dur-state);
}
.audio-play-button:hover { background: var(--signal-bright); }
.audio-icon { width: 20px; height: 20px; fill: currentColor; }
.audio-icon--pause { display: none; }
.audio-sample.is-playing .audio-icon--play { display: none; }
.audio-sample.is-playing .audio-icon--pause { display: block; }
.audio-timecode { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-on-ink); display: flex; gap: 6px; }
.audio-time-sep { opacity: 0.5; }
.audio-meta-strip { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-soft); }

/* ==========================================================================
   Get Started
   ========================================================================== */
#get-started .section-head { margin-bottom: 2.5rem; }
@media (min-width: 901px) {
    #get-started .section-head {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        column-gap: clamp(2rem, 4vw, 4rem); row-gap: 0; align-items: start; max-width: none;
    }
    #get-started .section-head > .eyebrow { grid-column: 1 / -1; margin-bottom: 1rem; }
    #get-started .section-head > h2 { grid-column: 1; grid-row: 2 / span 24; max-width: 16ch; align-self: start; }
    #get-started .section-head > *:not(.eyebrow):not(h2) { grid-column: 2; max-width: 64ch; }
    #get-started .section-head > p + p { margin-top: 1rem; }
}
@media (max-width: 900px) {
    #get-started .section-head { row-gap: 0; }
    #get-started .section-head > * { margin-top: 0; margin-bottom: 0; }
    #get-started .section-head > * + * { margin-top: 1rem; }
}
.gs-bridge {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    letter-spacing: -0.015em; color: var(--text-on-ink); padding-top: var(--s-24);
    border-top: 1px solid var(--line-on-ink); margin-bottom: var(--s-32);
}
.gs-bridge span { color: var(--signal-bright); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-32); counter-reset: step; }
.step { position: relative; display: grid; align-content: start; gap: var(--s-12); }
.step-index { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--signal-bright); }
.step h3 { font-size: 1.35rem; color: var(--text-on-ink); }
.step p { color: var(--text-on-ink-soft); font-size: 0.98rem; }
.step:not(:last-child)::after {
    content: "\2192"; position: absolute; top: -2px; right: calc(-1 * var(--s-32) + 4px);
    color: var(--signal-bright); font-size: 1.1rem;
}
.gs-close { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-24); }

/* ==========================================================================
   Knowledge Base
   ========================================================================== */
.kb-foundation {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-24); align-items: center;
    background: var(--ink); color: var(--text-on-ink); border-radius: var(--r-lg);
    padding: var(--s-24) clamp(1.25rem, 3vw, 2rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.kb-foundation-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.kb-foundation-sub { color: var(--text-on-ink-soft); font-size: 0.95rem; margin-top: 4px; max-width: 58ch; }
.kb-feeds { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8); }
.kb-feeds li { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-on-ink); color: var(--text-on-ink); }
.kb-feeds li::before { content: "\2192\00a0"; color: var(--signal-bright); }
.kb-phases { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.kb-phase { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.kb-phase-head { display: grid; gap: var(--s-8); position: sticky; top: calc(var(--nav-h) + 24px); }
.kb-phase-index { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink); }
.kb-phase-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.kb-phase-sub { color: var(--text-soft); font-size: 0.97rem; }
.kb-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); }
.kb-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--dur-state) var(--ease-out-quart), box-shadow var(--dur-state);
}
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--frame-shadow); }
.kb-card-media { height: clamp(132px, 13vw, 164px); background: var(--paper-deep) var(--kb-img) center / cover no-repeat; transition: background-size var(--dur-reveal); }
.kb-card-body { padding: var(--s-16) var(--s-20) var(--s-20); display: grid; gap: 6px; }
.kb-card-title { font-size: 1.12rem; letter-spacing: -0.015em; }
.kb-card-line { font-size: 0.93rem; color: var(--text-soft); }

/* ==========================================================================
   Four channels
   ========================================================================== */
.channels { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-32); }
.channel { border-top: 1px solid var(--line-strong); padding-top: var(--s-20); display: grid; gap: var(--s-12); align-content: start; }
.channel-index { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-ink); display: flex; align-items: center; gap: var(--s-8); }
.channel-index svg { width: 18px; height: 18px; color: var(--text); }
.channel h3 { font-size: 1.5rem; }
.channel p { color: var(--text-soft); font-size: 0.98rem; }
.channel-link { font-weight: 600; font-size: 0.93rem; margin-top: var(--s-4); }

/* ==========================================================================
   Why It Holds Up
   ========================================================================== */
.trust-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.trust-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); }
.trust-item { background: var(--ink-elev); border: 1px solid var(--line-on-ink); border-radius: var(--r-lg); padding: var(--s-24); display: grid; gap: var(--s-8); align-content: start; }
.trust-item h3 { font-size: 1.22rem; color: var(--text-on-ink); letter-spacing: -0.02em; }
.trust-item p { color: var(--text-on-ink-soft); font-size: 0.96rem; }
.trust-num { font-family: var(--font-mono); font-size: 0.74rem; color: var(--signal-bright); letter-spacing: 0.1em; }
.governance { border: 1px solid var(--line-on-ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: var(--s-20); }
.governance-title { font-size: 1.45rem; color: var(--text-on-ink); }
.governance dl { margin: 0; display: grid; gap: var(--s-16); }
.governance dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal-bright); }
.governance dd { margin: 4px 0 0; color: var(--text-on-ink); font-size: 1rem; }
.governance-flow { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding-top: var(--s-16); border-top: 1px solid var(--line-on-ink); }
.governance-flow span:nth-child(even) { color: var(--signal-bright); font-family: var(--font-mono); font-weight: 400; }

/* ==========================================================================
   Final CTA (persimmon)
   ========================================================================== */
.final-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.final-title { font-size: clamp(2.3rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; max-width: 14ch; }
.final-side { display: grid; gap: var(--s-20); }
.final-body { font-size: 1.12rem; max-width: 44ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--text-on-ink-soft); padding-top: clamp(3.5rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-32); padding-bottom: var(--s-48); }
.footer-brand p { margin-top: var(--s-16); max-width: 36ch; font-size: 0.95rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink); margin-bottom: var(--s-12); }
.footer-links { list-style: none; display: grid; gap: var(--s-8); }
.footer-links a { color: var(--text-on-ink-soft); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text-on-ink); text-decoration: underline; }
.footer-strip {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-16); align-items: center;
    border-top: 1px solid var(--line-on-ink); padding-block: var(--s-24); font-size: 0.9rem;
}
.footer-strip > :last-child { justify-self: end; }
.footer-quote { font-family: var(--font-display); font-weight: 600; color: var(--text-on-ink); text-align: center; }
.footer-strip a { color: var(--signal-bright); }

/* ==========================================================================
   Consent banner (markup inline per page; behaviour in js/analytics.js)
   ========================================================================== */
html .kb-consent {
    position: fixed; left: var(--s-16); right: var(--s-16); bottom: var(--s-16); z-index: 200;
    max-width: 640px; margin-inline: auto; display: none; gap: var(--s-16); align-items: center;
    background: var(--ink-elev); color: var(--text-on-ink); border: 1px solid var(--line-on-ink);
    border-radius: var(--r-lg); padding: var(--s-16) var(--s-20); box-shadow: 0 18px 48px oklch(12% 0.01 255 / 0.4);
}
html.kb-consent-ask .kb-consent { display: flex; }
html .kb-consent-text { font-size: 0.9rem; color: var(--text-on-ink-soft); }
html .kb-consent a { color: var(--signal-bright); }
.kb-consent-actions { display: flex; gap: var(--s-8); flex: 0 0 auto; }
html .kb-consent-btn { min-height: 40px; padding: 0.45rem 0.9rem; border-radius: var(--r-sm); font-weight: 600; cursor: pointer; border: 1.5px solid var(--line-on-ink); background: transparent; color: var(--text-on-ink); }
html .kb-consent-accept { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }

/* ==========================================================================
   Use-case pages
   ========================================================================== */
.uc-hero { background: var(--ink); color: var(--text-on-ink); padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.uc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.uc-hero-copy { display: grid; gap: var(--s-20); }
.uc-hero .eyebrow { color: var(--signal-bright); }
.uc-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); letter-spacing: -0.035em; color: var(--text-on-ink); max-width: 16ch; }
.uc-hero .lead { color: var(--text-on-ink-soft); }
.uc-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ink-elev); }
.uc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-soft); }
.crumbs a { color: var(--text-on-ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--text-on-ink); }
.uc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); }
.uc-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: var(--s-12); align-content: start; }
.uc-block--fix { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
.uc-block h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.uc-block p { color: var(--text-soft); }
.uc-block--fix p { color: var(--text-on-ink-soft); }
.uc-block--fix .eyebrow { color: var(--signal-bright); }
.uc-steps { list-style: none; display: grid; gap: var(--s-8); margin-top: var(--s-8); }
.uc-steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-12); font-size: 0.97rem; color: var(--text-on-ink); }
.uc-steps li::before { content: counter(list-item, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal-bright); padding-top: 3px; }
.uc-sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.uc-sample-copy { display: grid; gap: var(--s-16); }
.transcript { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-8) var(--s-24); }
.transcript summary { cursor: pointer; padding: var(--s-12) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; font-family: var(--font-mono); color: var(--signal-ink); font-size: 1.2rem; }
.transcript[open] summary::after { content: "\2212"; }
.transcript ol { list-style: none; display: grid; gap: var(--s-12); padding-bottom: var(--s-16); }
.transcript li { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-12); font-size: 0.96rem; }
.transcript .who { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); padding-top: 3px; }
.transcript .who-agent { color: var(--signal-ink); }
.transcript .hold { color: var(--text-soft); font-style: italic; }

/* Non-voice sample frames: email / chat / message thread */
.sample-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--frame-shadow); overflow: hidden; }
.sample-frame-head { display: flex; justify-content: space-between; gap: var(--s-12); padding: var(--s-12) var(--s-20); background: var(--paper-deep); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.sample-frame-body { padding: var(--s-20); display: grid; gap: var(--s-12); font-size: 0.95rem; }
.email-meta { display: grid; gap: 2px; font-size: 0.88rem; color: var(--text-soft); padding-bottom: var(--s-12); border-bottom: 1px solid var(--line); }
.email-meta strong { color: var(--text); font-weight: 600; }
.bubble { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.94rem; line-height: 1.45; }
.bubble-them { background: var(--paper-deep); justify-self: start; border-bottom-left-radius: 4px; }
.bubble-agent { background: var(--ink); color: var(--text-on-ink); justify-self: end; border-bottom-right-radius: 4px; }
.bubble-note { justify-self: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-16); font-size: 0.92rem; }
.kv dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); padding-top: 2px; }
.kv dd { margin: 0; }
.uc-close { display: grid; gap: var(--s-20); justify-items: start; }
.uc-close h2 { max-width: 20ch; }
.uc-more { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); font-weight: 600; }

/* ==========================================================================
   Pricing (lead form) : classes used by js/pricing-form.js + js/lucy-submit.js
   ========================================================================== */
html:not([data-intent="pricing"]) [data-for="pricing"] { display: none; }
html[data-intent="pricing"] [data-for="get-started"] { display: none; }
.lead-section { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.lead-pitch { display: grid; gap: var(--s-24); }
.lead-pitch-title { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; max-width: 15ch; }
.price-lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-20) var(--s-24); display: grid; gap: var(--s-8); }
.price-lead-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12); }
.price-lead-figure { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.price-lead-badge { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--signal); color: var(--on-signal); padding: 5px 10px; border-radius: 999px; }
.price-lead-sub { color: var(--text-soft); font-size: 0.97rem; }
.price-lead-link { font-weight: 600; }
.lead-pitch-steps { list-style: none; display: grid; gap: var(--s-16); }
.lead-pitch-steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-16); }
.lead-pitch-step-num { font-family: var(--font-mono); font-size: 0.8rem; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.lead-pitch-steps strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.015em; }
.lead-pitch-steps p { color: var(--text-soft); font-size: 0.95rem; }
.lead-pitch-pills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8); }
.lead-pitch-pills li { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--frame-shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.lead-card-head { display: grid; gap: 6px; margin-bottom: var(--s-20); }
.lead-card-title { font-size: 1.5rem; }
.lead-card-subtitle { color: var(--text-soft); font-size: 0.95rem; }
.lead-form { display: grid; gap: var(--s-16); }
.form-group { display: grid; gap: 6px; }
.form-label { font-weight: 600; font-size: 0.93rem; }
.form-control, .form-select {
    width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; font: inherit; font-size: 1rem;
    color: var(--text); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
.form-control:focus-visible, .form-select:focus-visible { border-color: var(--signal-ink); outline: 3px solid oklch(49% 0.165 38 / 0.35); outline-offset: 1px; }
.form-group.is-invalid .form-control, .form-group.is-invalid .form-select, [aria-invalid="true"] { border-color: oklch(48% 0.17 25); }
.validation-error { font-size: 0.88rem; color: oklch(45% 0.17 25); font-weight: 600; }
.validation-error::before { content: "! "; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 0; }
.lead-submit-btn { width: 100%; min-height: 52px; }
.lead-submit-btn[disabled] { opacity: 0.6; cursor: progress; }
.lead-card-fine { font-size: 0.86rem; color: var(--text-soft); }
.lead-card-fine.is-error { color: oklch(45% 0.17 25); font-weight: 600; }
.lead-card-success { display: grid; gap: var(--s-16); box-shadow: none; border: 0; padding: 0; }
.lead-card-success[hidden] { display: none; }
.lead-success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); color: var(--approve); }
.lead-success-title { font-size: 1.6rem; }
.turnstile-mount:empty { display: none; }

/* ==========================================================================
   Simple pages: legal, 404
   ========================================================================== */
.page-head { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: var(--s-32); }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -0.035em; margin-top: var(--s-12); max-width: 18ch; }
.prose { max-width: 68ch; display: grid; gap: var(--s-16); padding-bottom: var(--section-pad); }
.prose h2 { font-size: 1.45rem; margin-top: var(--s-16); }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.prose .updated { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.notfound { min-height: 70vh; display: grid; align-content: center; gap: var(--s-20); padding-top: calc(var(--nav-h) + 3rem); padding-bottom: var(--s-80); }
.notfound .display { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }

/* ==========================================================================
   Blogs (answer-first articles)
   ========================================================================== */
.blog-index-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-16); }
.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur-state) var(--ease-out-quart), box-shadow var(--dur-state); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--frame-shadow); }
.blog-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.blog-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-card-body { padding: var(--s-20); display: grid; gap: var(--s-8); align-content: start; }
.blog-card-date { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.blog-card h2 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.blog-card p { color: var(--text-soft); font-size: 0.94rem; }
.geo-article { padding-bottom: var(--section-pad); }
.geo-head { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: var(--s-32); display: grid; gap: var(--s-16); max-width: 860px; }
.geo-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; }
.geo-byline { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.geo-hero-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: var(--s-40); }
.geo-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.geo-answer { background: var(--ink); color: var(--text-on-ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 860px; margin-bottom: var(--s-40); }
.geo-answer .eyebrow { color: var(--signal-bright); margin-bottom: var(--s-12); display: flex; }
.geo-body { max-width: 72ch; display: grid; gap: var(--s-16); }
.geo-body h2 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); margin-top: var(--s-24); }
.geo-body p, .geo-body li { color: var(--text-soft); }
.geo-body ul, .geo-body ol { padding-left: 1.2rem; display: grid; gap: 6px; }
.geo-body strong { color: var(--text); }
.geo-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-20) var(--s-24); display: grid; gap: 6px; }
.geo-stat-figure { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--text); }
.geo-body .geo-stat-source { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--text-soft); }
.geo-faq { margin-top: var(--s-32); display: grid; gap: var(--s-8); }
.geo-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-12) var(--s-20); }
.geo-faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.geo-faq details p { margin-top: var(--s-8); }
.geo-cta { margin-top: var(--s-40); background: var(--signal); color: var(--on-signal); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: var(--s-16); }
.geo-cta h2 { color: var(--on-signal); margin-top: 0; }
.geo-cta p { color: var(--on-signal); }
.geo-cta .cta-primary { background: var(--ink); color: var(--text-on-ink); }
.geo-related { margin-top: var(--s-32); display: grid; gap: var(--s-8); }

/* ==========================================================================
   Scroll reveal (js/reveal.js sets html.has-reveal and data-reveal="shown")
   ========================================================================== */
html.has-reveal [data-reveal] { transition: opacity var(--dur-reveal) var(--ease-out-quint), transform var(--dur-reveal) var(--ease-out-quint); }
html.has-reveal [data-reveal]:not([data-reveal="shown"]) { opacity: 0; transform: translateY(14px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

/* Collapsed nav from 900px down */
@media (max-width: 900px) {
    .nav-burger {
        display: inline-grid; gap: 5px; width: 44px; height: 44px; place-content: center; cursor: pointer;
        border-radius: var(--r-sm); border: 1px solid var(--line-on-ink);
    }
    .nav-burger span { width: 20px; height: 2px; background: var(--text-on-ink); border-radius: 2px; transition: transform var(--dur-state), opacity var(--dur-state); }
    .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--signal-bright); outline-offset: 3px; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: auto; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 2px; padding: var(--s-12) var(--gutter) var(--s-24);
        background: var(--ink); border-top: 1px solid var(--line-on-ink); box-shadow: 0 24px 48px oklch(12% 0.01 255 / 0.45);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity var(--dur-state) var(--ease-out-quart), transform var(--dur-state) var(--ease-out-quart), visibility var(--dur-state);
    }
    .nav-toggle:checked ~ .nav-links { opacity: 1; visibility: visible; transform: none; }
    .site-nav:has(.nav-toggle:checked) { background: var(--ink); }
    /* The open menu is an INK panel, so its items stay light; a higher-specificity rule pins it. */
    .site-nav .nav-links .nav-link, .site-nav .nav-links .nav-uc-trigger { color: var(--text-on-ink); width: 100%; justify-content: space-between; padding: 0.85rem 0.6rem; font-size: 1.05rem; }
    .cta-nav { margin: var(--s-12) 0 0; width: 100%; }
    /* Use Cases: accordion, driven only by .open (js/nav-menu-collapse.js) */
    .nav-uc:hover .uc-megamenu, .nav-uc:focus-within .uc-megamenu {
        opacity: 0; visibility: hidden; pointer-events: none; max-height: 0;
    }
    .nav-uc:hover .nav-uc-caret, .nav-uc:focus-within .nav-uc-caret { transform: none; }
    .uc-megamenu {
        position: static; transform: none; width: auto; padding-top: 0;
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
        transition: max-height var(--dur-state) var(--ease-out-quart), opacity var(--dur-state);
    }
    .nav-uc.open .uc-megamenu {
        opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
        max-height: 70vh !important; overflow-y: auto; position: static !important; transform: none !important;
    }
    .nav-uc.open .nav-uc-caret { transform: rotate(180deg) !important; }
    .uc-megamenu-inner { grid-template-columns: 1fr; box-shadow: none; padding: var(--s-8) var(--s-8) var(--s-12); background: var(--ink-elev); gap: var(--s-12); }

    .proof-grid, .trust-layout, .final-inner, .uc-hero-grid, .uc-sample-grid, .lead-layout { grid-template-columns: minmax(0, 1fr); }
    .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:not(:last-child)::after { display: none; }
    .kb-phase { grid-template-columns: minmax(0, 1fr); }
    .kb-phase-head { position: static; }
    .kb-foundation { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    :root { --section-pad: 3.5rem; --gutter: 1.1rem; --nav-h: 64px; }
    body { font-size: 1rem; }
    .eyebrow { font-size: 0.7rem; letter-spacing: 0.07em; }
    .display { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
    .headline { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
    .lead { font-size: 1.02rem; }
    .section-head { margin-bottom: 2rem; gap: var(--s-12); }
    .brand-sub { font-size: 0.6rem; }
    .brand-name { font-size: 1.15rem; }
    .brand-logo { width: 30px; height: 30px; }

    .panel-hero { min-height: auto; padding-top: calc(var(--nav-h) + 2.75rem); }
    .hero-proof { display: none; }
    .hero-media::after { background: linear-gradient(0deg, oklch(20% 0.014 255 / 0.92) 0%, oklch(20% 0.014 255 / 0.72) 60%, oklch(20% 0.014 255 / 0.55) 100%); }
    .cta-row .cta { width: 100%; }

    .solution-grid, .kb-grid, .channels, .trust-grid, .stepper, .uc-split { grid-template-columns: minmax(0, 1fr); }
    .solution-card { min-height: 0; }
    .solution-promise { font-size: 1.45rem; }
    .channels { gap: var(--s-24); }

    /* Signature sample-call block: header + media + player + links only */
    .callproof-body > p { display: none; }
    .callproof-media { min-height: 180px; }
    .invoice-lines th, .invoice-lines td { padding-inline: var(--s-16); }
    .invoice-top, .check-ledger { padding-inline: var(--s-16); }
    .invoice-meta { font-size: 0.78rem; }

    /* KB cards become image-beside-text rows */
    .kb-card { flex-direction: row; align-items: stretch; }
    .kb-card-media { height: auto; flex: 0 0 104px; }
    .kb-card-body { display: flex; flex-direction: column; justify-content: center; padding: var(--s-16); }
    .kb-card:hover { transform: none; }
    .kb-feeds li { font-size: 0.68rem; padding: 5px 9px; }

    .gs-bridge { font-size: 1.1rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-strip > :last-child { justify-self: center; }
    html .kb-consent { flex-direction: column; align-items: stretch; }
    .transcript li { grid-template-columns: 1fr; gap: 2px; }
    .audio-meta-strip { display: none; }
    .uc-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    [data-reveal], [data-reveal] .check-row { opacity: 1 !important; transform: none !important; }
    .hero-media video { display: none; }
}

/* FAQ on the ink trust panel: lifted ink, two columns on wide screens */
.panel-ink .geo-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--s-12); }
.panel-ink .geo-faq > h3 { grid-column: 1 / -1; }
.panel-ink .geo-faq details { background: var(--ink-elev); border-color: var(--line-on-ink); }
.panel-ink .geo-faq summary { color: var(--text-on-ink); }
.panel-ink .geo-faq details p { color: var(--text-on-ink-soft); }
.governance-flow { font-size: 1.05rem; }
@media (max-width: 900px) { .panel-ink .geo-faq { grid-template-columns: minmax(0, 1fr); } }

/* Use-case polish: explicit step counter, weighted split, roomier sample frame */
.uc-steps { counter-reset: ucstep; }
.uc-steps li { counter-increment: ucstep; }
.uc-steps li::before { content: counter(ucstep, decimal-leading-zero); }
.uc-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.uc-block--problem p:not(.eyebrow):not(.uc-block-foot) { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--text); }
.uc-block--problem .uc-block-foot { margin-top: auto; padding-top: var(--s-16); border-top: 1px dashed var(--line-strong); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); }
.uc-sample-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.sample-frame .invoice-lines th, .sample-frame .invoice-lines td { padding-inline: 0.55rem; }
.sample-frame .invoice-lines td:first-child { min-width: 9rem; }
.lead-pitch > div { display: grid; gap: var(--s-24); }
@media (max-width: 900px) { .uc-split, .uc-sample-grid { grid-template-columns: minmax(0, 1fr); } }

.geo-hero-img img, .uc-hero-media img, .callproof-media img { height: 100%; }
img { height: auto; }
.hero-media video, .hero-media img, .geo-hero-img img, .uc-hero-media img, .callproof-media img { height: 100%; }

.uc-block--problem { display: flex; flex-direction: column; gap: var(--s-12); }

/* ==========================================================================
   How an invoice moves: animated pipeline (js/flow-diagram.js)
   Desktop: nodes sit on a 1000x440 stage at --x/--y, wires + packets in SVG.
   Phones: the stage reflows into a vertical flow with 2x2 check and ledger grids.
   ========================================================================== */
.wf { position: relative; aspect-ratio: 1000 / 440; container-type: inline-size; margin-top: var(--s-16); }
.wf-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wf-base path { fill: none; stroke: oklch(96.5% 0.008 82 / 0.16); stroke-width: 1.4; stroke-dasharray: 4 5; animation: wf-crawl 18s linear infinite; }
@keyframes wf-crawl { to { stroke-dashoffset: -180; } }
.wf-pkt rect { fill: var(--card); stroke: oklch(20% 0.014 255 / 0.5); stroke-width: 0.8; }
.wf-pkt path { stroke: var(--signal-ink); stroke-width: 1.3; stroke-linecap: round; fill: none; }
.wf-pkt.is-small { transform-box: fill-box; }
.wf-pkt.is-small rect { fill: oklch(96.5% 0.008 82 / 0.85); }
.wf-pkt.is-main rect { fill: var(--signal); stroke: none; }
.wf-pkt.is-main path { stroke: var(--on-signal); }

.wf-steps, .wf-group { list-style: none; margin: 0; padding: 0; }
.wf-stage, .wf-group { display: contents; }
.wf-node {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 0.9cqw;
    background: var(--ink-elev); color: var(--text-on-ink);
    border: 1px solid var(--line-on-ink); border-radius: 999px;
    padding: 0.7cqw 1.4cqw; white-space: nowrap;
    transition: border-color 260ms var(--ease-out-quart), box-shadow 260ms var(--ease-out-quart), transform 260ms var(--ease-out-quart);
}
.wf-label { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; font-size: clamp(0.8rem, 1.55cqw, 1.05rem); display: block; }
.wf-sub { display: block; font-family: var(--font-mono); font-size: clamp(0.62rem, 1.05cqw, 0.76rem); letter-spacing: 0.04em; color: var(--text-on-ink-soft); }
.wf-logos { display: inline-flex; gap: 0.6cqw; }
.wf-logo { width: clamp(22px, 3cqw, 34px); height: clamp(22px, 3cqw, 34px); border-radius: 8px; background: var(--paper); display: grid; place-items: center; flex: 0 0 auto; }
.wf-logo img { width: 70%; height: 70%; object-fit: contain; }
.wf-logo.is-wide img { width: 86%; }

/* Inbox: a stacked card */
.wf-inbox { flex-direction: column; align-items: flex-start; gap: 0.5cqw; border-radius: var(--r-lg); padding: 1.3cqw 1.6cqw; width: 17cqw; white-space: normal; }

/* Atlantas hub */
.wf-hub { flex-direction: column; gap: 0.5cqw; background: transparent; border: 0; padding: 0; }
.wf-hub-tile { width: 11cqw; height: 11cqw; border-radius: 22%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line-on-ink), 0 18px 48px oklch(10% 0.01 255 / 0.5); transition: box-shadow 300ms var(--ease-out-quart); }
.wf-hub-tile .brand-logo { width: 58%; height: 58%; color: var(--ink); }
.wf-hub .wf-label { margin-top: 0.4cqw; }
.wf-ticker { min-width: 17cqw; text-align: center; color: var(--signal-bright); }
.wf-hub.is-active .wf-hub-tile { box-shadow: 0 0 0 2px var(--signal), 0 0 42px oklch(66% 0.175 42 / 0.45); }

/* Checks */
.wf-check { width: 22cqw; border-radius: var(--r); gap: 1cqw; }
.wf-text { min-width: 0; }
.wf-tick { width: clamp(18px, 2.4cqw, 26px); height: clamp(18px, 2.4cqw, 26px); border-radius: 50%; border: 1.5px solid oklch(96.5% 0.008 82 / 0.3); flex: 0 0 auto; display: grid; place-items: center; transition: background-color 220ms var(--ease-out-quart), border-color 220ms; }
.wf-tick::after { content: ""; width: 38%; height: 20%; border: solid var(--on-signal); border-width: 0 0 2px 2px; transform: translateY(-15%) rotate(-45deg) scale(0); transition: transform 260ms var(--ease-out-quint); }
.wf-check.is-done { border-color: oklch(66% 0.175 42 / 0.6); }
.wf-check.is-done .wf-tick { background: var(--signal); border-color: var(--signal); }
.wf-check.is-done .wf-tick::after { transform: translateY(-15%) rotate(-45deg) scale(1); }

/* Approval gate */
.wf-gate { flex-direction: column; gap: 0.5cqw; background: transparent; border: 0; padding: 0; }
.wf-gate-icon { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; display: grid; place-items: center; background: var(--ink-elev); border: 1.5px dashed oklch(96.5% 0.008 82 / 0.35); color: var(--text-on-ink); transition: border-color 220ms, background-color 220ms, color 220ms; }
.wf-gate-icon svg { width: 46%; height: 46%; }
.wf-gate.is-active .wf-gate-icon { border-style: solid; border-color: var(--signal); background: var(--signal); color: var(--on-signal); }

/* Ledgers */
.wf-ledger { width: 13.4cqw; gap: 0.8cqw; padding-left: 0.7cqw; }
.wf-ledger .wf-label { font-size: clamp(0.72rem, 1.3cqw, 0.95rem); white-space: normal; line-height: 1.1; }
.wf-ledger.is-active { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 0 28px oklch(66% 0.175 42 / 0.35); }
.wf-inbox.is-active { border-color: oklch(66% 0.175 42 / 0.7); }

.wf-note { margin-top: var(--s-24); font-size: 0.86rem; color: var(--text-on-ink-soft); }

/* Reduced motion / static: every check shown done, nothing moves. */
.wf.is-static .wf-tick { background: var(--signal); border-color: var(--signal); }
.wf.is-static .wf-tick::after { transform: translateY(-15%) rotate(-45deg) scale(1); }
.wf.is-static .wf-base path { animation: none; }
@media (prefers-reduced-motion: reduce) { .wf-base path { animation: none; } }

/* Tablet / phone: vertical flow */
@media (max-width: 860px) {
    .wf { aspect-ratio: auto; container-type: normal; }
    .wf-wires { display: none; }
    .wf-steps { display: grid; gap: 0; }
    .wf-stage { display: block; position: relative; padding-bottom: 2.1rem; }
    .wf-stage:last-child { padding-bottom: 0; }
    .wf-stage:not(:last-child)::after { content: "\2193"; position: absolute; left: 50%; bottom: 0.45rem; transform: translateX(-50%); color: var(--signal-bright); font-size: 1.1rem; }
    .wf-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .wf-node { position: static; transform: none; width: auto; white-space: normal; padding: 0.7rem 0.9rem; gap: 0.6rem; }
    .wf-inbox { width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .wf-hub, .wf-gate { flex-direction: row; justify-content: center; background: var(--ink-elev); border: 1px solid var(--line-on-ink); border-radius: var(--r-lg); padding: 0.7rem 0.9rem; }
    .wf-hub-tile { width: 52px; height: 52px; }
    .wf-ticker { min-width: 0; text-align: left; }
    .wf-gate-icon { width: 44px; height: 44px; }
    .wf-check, .wf-ledger { width: auto; border-radius: var(--r); }
    .wf-label { font-size: 0.95rem; }
    .wf-sub { font-size: 0.72rem; }
    .wf-logo { width: 30px; height: 30px; }
    .wf-tick { width: 22px; height: 22px; }
    .wf-hub .wf-label { margin-top: 0; }
}
@media (max-width: 380px) { .wf-group { grid-template-columns: minmax(0, 1fr); } }

.wf-check { width: 23cqw; white-space: normal; }
.wf-check .wf-sub { line-height: 1.35; }
