@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* ============================================================
   Co-Legal — design system
   ============================================================
   Editorial brand mirror of the pitch deck + production app.
   Serif headlines (Newsreader variable), sans body (Instrument
   Sans), mono labels (JetBrains Mono), parchment ground (#F9F7F2),
   ink text (#1A1B1F), single oxblood accent (#7A2B24).
   ALWAYS light — no OS-dependent dark mode (the app + deck don't
   switch on OS preference; we don't either). Opt-in inverse via
   `.section--ink`.
   ============================================================ */

:root {
  /* ---- Type scale (modular: 1.250 minor third) ---- */
  --fs-300: 0.875rem;   /* 14 — fine print, eyebrow, table */
  --fs-400: 1rem;       /* 16 — body */
  --fs-500: 1.125rem;   /* 18 — lead */
  --fs-600: 1.5rem;     /* 24 — H3 */
  --fs-700: 2rem;       /* 32 — H4 */
  --fs-800: 2.75rem;    /* 44 — H3-display */
  --fs-900: 4.25rem;    /* 68 — H2-display */

  /* Display scale — SaaS-grade, not deck-cover-grade. A pitch slide
     is 1920×1080 with one big title; a marketing page has a hero +
     product visual + 10 sections beneath. The previous 7rem H1 made
     the hero look like a slide. Dial back to typical premium-SaaS
     scales (Linear, Stripe, Spellbook all max around 4-4.5rem). */
  --fs-display: clamp(2.5rem, 5.5vw, 4.5rem);    /*  72 px hero H1 max */
  --fs-h1-deck: clamp(2rem,   4.2vw, 3.5rem);    /*  56 px section H2 */
  --fs-h2-deck: clamp(1.5rem, 3vw,   2.5rem);    /*  40 px section H3 */
  --fs-kpi:     clamp(2.5rem, 5vw,   4rem);      /*  64 px KPI number */
  --fs-quote:   clamp(1.5rem, 3vw,   2.75rem);   /*  44 px pullquote */
  --fs-tile:    clamp(1.2rem, 1.8vw, 1.6rem);    /*  25 px tile title */
  /* Tombstone: --fs-cover, --fs-tag were used by the deleted .cover
     slide pattern. Kept here as commented references in case we ever
     want a sub-page header that needs slide-scale type. */
  --fs-cover:   var(--fs-display);
  --fs-tag:     var(--fs-h2-deck);

  /* ---- Type families ---- */
  /* Match the Co-Legal pitch-deck brand: Newsreader serif for editorial
     headlines, Instrument Sans for body, JetBrains Mono for labels.
     System fallbacks pick stylistically close families if the webfont
     fails to load — Georgia for the serif, system sans for body. */
  --font-serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* ---- Color — Co-Legal brand (light) ----
     Mirrors the production app at frontend/src/index.css — same
     palette the lawyers actually see when logged in, so the marketing
     site doesn't feel like a different product. Tokens cross-reference
     the pitch deck (Co-Legal Pitch.html lines 635-655). */
  --ink: #1A1B1F;             /* near-black primary text */
  --ink-soft: #3A3B41;        /* lead / secondary text */
  --ink-muted: #6B6A62;       /* meta / labels */
  --ink-faint: #99958A;       /* placeholder / disabled text */

  /* Parchment ground — light end pulled forward to match the app's
     #F9F7F2 (slightly lighter than the deck's #F3EFE6, which the app
     team softened for long-session readability). Marketing follows. */
  --paper: #F9F7F2;
  --paper-soft: #F5F2EA;
  --paper-stark: #FBF9F4;       /* "white" panels stay warm */
  --paper-elevated: #FCFBF7;
  --workspace: #FBFAF5;

  --rule: #CFC8B6;              /* hairline (matches app) */
  --rule-soft: rgba(26, 27, 31, 0.05);
  --rule-strong: #B5AC95;

  --accent: #7A2B24;            /* oxblood — brand accent */
  --accent-soft: #A84A3E;
  --accent-faint: rgba(122, 43, 36, 0.08);
  --accent-tint: rgba(122, 43, 36, 0.04);
  --accent-blue: #1E5AAE;       /* second ring on the brand glyph */

  --signal-ok: #2E7D57;
  --signal-warn: #AD6018;
  --signal-err: #7A2B24;
  --signal-ok-bg: #E6F3EC;
  --signal-err-bg: rgba(122, 43, 36, 0.10);

  /* Warm-ink layered shadows — exact recipe from the app's
     `--shadow-sm/md/lg`. Panels float on parchment without a visible
     border. NEVER use flat `rgba(0,0,0,…)` greys; they read cold. */
  --shadow-sm:
    0 1px 1px rgba(26, 27, 31, 0.03),
    0 1px 2px rgba(26, 27, 31, 0.04);
  --shadow-md:
    0 1px 2px rgba(26, 27, 31, 0.04),
    0 6px 16px rgba(26, 27, 31, 0.04);
  --shadow-lg:
    0 1px 2px rgba(26, 27, 31, 0.04),
    0 4px 12px rgba(26, 27, 31, 0.04),
    0 16px 40px rgba(26, 27, 31, 0.05);

  /* ---- Layout ----
     SaaS-grade container widths. The previous 1120px main container
     felt cramped on 1440px+ monitors; bumped to 1280 so hero + product
     mockups fit side-by-side without squeezing. */
  --container: 1280px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --container-bleed: min(96vw, 1600px);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --nav-h: 72px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 400ms;

  color-scheme: only light;
}

/* ---- Hard-forced light mode ----
   The Co-Legal brand IS the parchment ground — both the pitch deck
   (`:root` default-light, dark only on opt-in `[data-theme="ink"]`
   slides) and the production app (frontend/src/index.css line 6:
   `color-scheme: light;`) stay on parchment regardless of OS preference.

   `color-scheme: only light` (the `only` keyword) AND the explicit
   html/body declarations below override the UA's preference. Some
   chromium-headless builds report `prefers-color-scheme: dark` even
   when nothing flips a token; without these guards the body ends up
   computed `color-scheme: dark` and the scrollbar/native controls go
   dark, which makes the parchment look like ash. Inverse ink slabs
   are opt-in via `.section--ink`, never via the OS.

   The previous `@media (prefers-color-scheme: dark)` block that
   re-defined --paper / --ink / --accent for dark mode was deleted
   intentionally — brand is single-key. */
html, body { color-scheme: only light; }

/* Hard-pin every brand variable to its light value with maximum specificity
   so Chromium auto-dark and any UA mapping cannot override.
   This is the belt-and-braces guard — the @media (prefers-color-scheme)
   block is gone, but Chromium can still re-map CSS variables in auto-
   dark mode when it heuristically decides the page is "darkenable".
   Re-stating the tokens inside `html:root` lifts specificity above the
   browser's automatic-dark transform. */
html:root {
  --ink: #1A1B1F;
  --ink-soft: #3A3B41;
  --ink-muted: #6B6A62;
  --ink-faint: #99958A;
  --paper: #F9F7F2;
  --paper-soft: #F5F2EA;
  --paper-stark: #FBF9F4;
  --paper-elevated: #FCFBF7;
  --rule: #CFC8B6;
  --rule-strong: #B5AC95;
  --accent: #7A2B24;
  --accent-soft: #A84A3E;
  --accent-blue: #1E5AAE;
}
html { background: #F9F7F2; }
body { background: #F9F7F2; color: #1A1B1F; }

* { box-sizing: border-box; }

/* Skip-to-content link — hidden until keyboard focus, then visible
   at the top-left so screen-reader / keyboard users can bypass the
   nav. WCAG 2.1 §2.4.1 (bypass blocks). */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  z-index: 100;
  border-bottom: none;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: var(--space-3);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

html {
  scroll-behavior: smooth;
  /* Sticky-nav anchor offset so #section links don't hide under the bar */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `cv11` + `ss01` are the Instrument-Sans OpenType features the
     production app enables — they round-out the lower-case `a` + `g`
     and tighten certain pairs. Plus a -0.005em letter-spacing nudge
     so body type reads as "premium document" instead of "SaaS". */
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.005em;
  overflow-x: clip;
}

/* Selection tint — oxblood at 18% so highlighted text stays readable
   on parchment. Pulled from the production app. */
::selection { background: rgba(122, 43, 36, 0.18); }

/* Long words / code that can break out of narrow containers */
.card, code, pre, td, th, p, h1, h2, h3, h4, blockquote {
  overflow-wrap: anywhere;
}

/* Container shells — horizontal air picks up the deck's 5% gutters
   (Pitch.html line 681: `padding: 100px` on a 1920-px canvas). On a
   1440-px monitor this resolves to ~72-px gutters, matching the deck's
   spaciousness instead of the previous 24-px squeeze. */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

/* ---- Typography ----
   Display headings mirror the pitch-deck `.title` / `.title-lg` /
   `.title-md` (Co-Legal Pitch.html lines 735-761). 108 / 72 / 56 px
   at the deck's 1920-px canvas, clamped down for narrower screens.
   `font-optical-sizing: auto` activates Newsreader's `opsz` axis so
   the big wordmark resolves thin/elegant (deck `opsz~72`), the body
   serifs stay sturdy. */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  color: var(--ink);
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 {
  font-size: var(--fs-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
h2 {
  font-size: var(--fs-h1-deck);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h3 {
  font-size: var(--fs-h2-deck);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h4 {
  font-size: var(--fs-500);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}

/* The brand signature touch: <em> inside a serif headline goes italic
   AND oxblood-accent. Lifts a single key word out of the line — exactly
   how the pitch deck renders its titles (`.title em`, line 762-765).
   Italic weight bumped to 500 to match the deck — Newsreader italic 400
   reads too feathery at display sizes. */
h1 em, h2 em, h3 em, .title em, .title-lg em, .title-md em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

p { margin: 0 0 var(--space-4); color: var(--ink-soft); text-wrap: pretty; }
p.lead { font-size: var(--fs-500); color: var(--ink-soft); line-height: 1.5; max-width: 56ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
a:hover { border-bottom-color: var(--accent); }
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-sm);
}

ul, ol { padding-left: 1.25em; color: var(--ink-soft); margin: 0 0 var(--space-5); }
li { margin: var(--space-2) 0; }

strong { color: var(--ink); font-weight: 600; }
em { color: var(--ink-soft); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-soft);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
}
pre {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  background: var(--paper-soft);
  padding: var(--space-5);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.55;
  border: 1px solid var(--rule);
  margin: 0 0 var(--space-5);
  white-space: pre;
}
pre code { background: none; padding: 0; border: 0; }

.number { font-variant-numeric: tabular-nums; }

/* ---- Navbar ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  gap: var(--space-5);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: none;
  white-space: nowrap;
  font-optical-sizing: auto;
}
.nav__brand:hover { border-bottom: none; }
/* The middle-dot in `Co·Legal` is wrapped in <em> — italic oxblood,
   weight 400. Matches the pitch-deck wordmark exactly (Pitch.html
   line 1428: `Co<em>·</em>Legal`). */
.nav__brand__text em,
.footer__brand__text em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
/* Brand glyph — mirrors the production app's <Logo /> component
   (frontend/src/components/Logo.jsx). 34×22 viewBox, two circles
   radius 10, stroke 2, centres 10px apart. `overflow:visible` so
   the stroke doesn't get clipped at the viewBox edges.
   .nav__brand__glyph width:height ratio = 34:22 = 1.55:1. */
.nav__brand__glyph,
.footer__brand__glyph {
  flex-shrink: 0;
  overflow: visible;
  display: block;
}
.nav__brand__glyph  { width: 44px; height: 28px; }
.footer__brand__glyph { width: 36px; height: 23px; }
.brand-glyph__ring-blue   { stroke: var(--accent-blue); fill: none; }
.brand-glyph__ring-accent { stroke: var(--accent);      fill: none; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav__links a {
  color: var(--ink-soft);
  font-size: var(--fs-400);
  border-bottom: none;
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); font-weight: 500; }

/* Mobile burger — hidden on desktop, shown <760px */
.nav__burger {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__burger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
.nav__burger__line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform var(--t-base) var(--ease);
}
.nav__burger__line::before,
.nav__burger__line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.nav__burger__line::before { top: -5px; }
.nav__burger__line::after { top: 5px; }
.nav__burger[aria-expanded="true"] .nav__burger__line { background: transparent; }
.nav__burger[aria-expanded="true"] .nav__burger__line::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger__line::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer for nav links */
@media (max-width: 760px) {
  /* Burger-button is hidden on desktop; shown below 760px.
     The full sheet positioning lives in the later "Mobile nav sheet"
     block (uses `.is-open` + `body.nav-locked`). Keeping only the
     burger-visibility here so the later block has the single source
     of truth on layout. */
  .nav__burger { display: inline-flex; }
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.button:hover { border-bottom-color: transparent; }
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Primary ink-button — inset-highlight + warm drop shadow so it reads
   as a physical chip on parchment, not a hole punched through it.
   Recipe mirrors the production app (frontend/src/index.css lines
   158-178: `button.bg-ink-900`). */
.button--primary {
  background: var(--ink);
  color: #FDFBF6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(26, 27, 31, 0.10);
}
.button--primary:hover { background: #26272B; }
.button--primary:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.button--ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: rgba(253, 251, 246, 0.72);
}
.button--ghost:hover { background: var(--paper-stark); border-color: var(--ink); }
.button--accent { background: var(--accent); color: white; }
.button--accent:hover { background: var(--accent-soft); }
.button[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.button .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.button:hover .arrow { transform: translateX(3px); }

/* ---- Sections ----
   Vertical rhythm picks up the deck's generous slide-padding.
   `section + section` hairline is intentionally omitted — the
   .chrome row at the top of each section provides its own divider. */
section { padding: clamp(5rem, 10vw, 9rem) 0; }
@media (max-width: 640px) {
  section { padding: clamp(3.5rem, 12vw, 5rem) 0; }
}

/* ---- Hero ---- */
.hero {
  padding: clamp(4rem, 7vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.hero > .container, .hero > .container-narrow, .hero > .container-wide { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; margin-bottom: var(--space-6); }
.hero .lead { margin-bottom: var(--space-7); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.hero__verbspine {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__verbspine span:not(:last-child)::after {
  content: " ·";
  margin-left: var(--space-3);
  color: var(--ink-faint);
}

/* ---- Cover ----
   Slide-1 of the pitch deck rendered as the home-page hero.
   Three rows: top mono chrome (mark + meta), centre wordmark + tag,
   bottom mono cover-meta. Markup pattern is intentionally identical
   to Pitch.html lines 1420-1436 so the website opens "as" slide 1.

   Sizing: wordmark uses --fs-cover (260 px on a 1920 canvas, clamped
   down) with Newsreader weight 300 + opsz auto so big-size letters
   resolve thin/elegant. Italic middle-dot lifted to weight 400 oxblood.
   Sits on the parchment ground; below the cover the page returns to
   the editorial section pattern. */
.cover {
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  isolation: isolate;
}
.cover::before {
  /* Soft warm vignette in the upper-left, matching the production app's
     radial gradient (frontend/src/index.css line 52-54). Invisible on
     small screens; supplies depth on desktop. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% -8%, rgba(254, 253, 250, 0.92), transparent 34rem),
    radial-gradient(circle at 85% 110%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 36rem);
  pointer-events: none;
  z-index: -1;
}
.cover__top,
.cover__bot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.85vw, 0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-wrap: wrap;
}
.cover__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2.25rem);
  max-width: 32ch;
}
.cover__eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}
.cover__wordmark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--fs-cover);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0;
  font-optical-sizing: auto;
  display: flex;
  align-items: baseline;
  /* Tight kerning — visually hand-set, like the deck. */
  text-wrap: nowrap;
}
.cover__wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  /* The middle-dot is a typographic accent — pull it slightly tighter
     so `Co·Legal` reads as one word. */
  margin: 0 -0.04em;
}
.cover__tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-tag);
  line-height: 1.15;
  color: var(--ink-soft);
  max-width: 22ch;
  margin: 0;
  font-optical-sizing: auto;
}
.cover__tag em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.cover__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 640px) {
  .cover { min-height: auto; }
  .cover__center { max-width: none; }
}

/* ---- Brand mark in chrome rows ----
   The little `[glyph] Co-Legal` lockup that recurs at the top of
   every deck slide. Smaller, monoline, sits in the mono chrome row
   so it reads as a publication watermark, not a logo. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.mark em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.mark__glyph {
  width: 26px;
  height: 17px;
  overflow: visible;
  flex-shrink: 0;
}
.section--ink .mark { color: var(--paper); }

/* ---- Section chrome ----
   Mono top-row that runs along the head of every major section —
   left side `<mark>`, right side `02 · Section title`. Pulls the
   document feel of the deck onto the marketing page so each section
   reads as a labelled slide instead of an anonymous landing block.

   `Pitch.html lines 688-702` is the source. */
.chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: clamp(1.25rem, 2vw, 2rem);
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.section--ink .chrome {
  border-bottom-color: rgba(243, 239, 230, 0.15);
  color: rgba(243, 239, 230, 0.5);
}

/* ---- Inverse ink section — full-bleed near-black slide ----
   The deck uses these as rhythmic breaks (Pitch.html line 887-899:
   `.section-divider { background: var(--ink); color: var(--bg); }`).
   Without them the website reads as one long parchment bleed; with
   them it reads as a printed document with section breaks. */
.section--ink {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  isolation: isolate;
}
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink p,
.section--ink .lead,
.section--ink strong { color: var(--paper); }
.section--ink p { color: rgba(241, 238, 228, 0.8); }
.section--ink .eyebrow { color: var(--accent-soft); }
.section--ink em { color: var(--accent-soft); }
.section--ink a { color: var(--accent-soft); }
.section--ink a:hover { border-bottom-color: var(--accent-soft); }
.section--ink hr,
.section--ink code,
.section--ink pre {
  border-color: rgba(243, 239, 230, 0.15);
  background: rgba(243, 239, 230, 0.06);
  color: rgba(241, 238, 228, 0.85);
}

/* ---- Pullquote (deck `.quote`) ----
   Italic Newsreader at quote-scale with an oversized opening curly
   mark in oxblood. The deck's signature editorial moment. */
.quote-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
  margin: var(--space-7) 0;
  font-optical-sizing: auto;
}
.quote-deck::before {
  content: "\201C";
  font-size: 1.85em;
  line-height: 0;
  vertical-align: -0.32em;
  color: var(--accent);
  margin-right: 0.08em;
  font-style: italic;
}
.quote-deck em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.section--ink .quote-deck { color: var(--paper); max-width: 26ch; }
.section--ink .quote-deck::before { color: var(--accent-soft); }
.section--ink .quote-deck em { color: var(--accent-soft); }

/* ---- Deck tile — top-rule + tnum + serif title ----
   Replaces the SaaS-y `.pillar h3` sans bold with the deck's
   `.tile` pattern (Pitch.html lines 794-819). Top-border-only,
   mono tnum in oxblood above a serif 40-px tile-title. The
   workhorse of the deck. */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
@media (max-width: 880px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.tile__tnum {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.tile__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-tile);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  font-optical-sizing: auto;
}
.tile__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.tile__body {
  font-size: var(--fs-400);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.section--ink .tile { border-top-color: rgba(243, 239, 230, 0.18); }
.section--ink .tile__tnum { color: var(--accent-soft); }
.section--ink .tile__title { color: var(--paper); }
.section--ink .tile__body { color: rgba(241, 238, 228, 0.78); }

/* ---- KPI block — deck `.kpi` ----
   Newsreader 140-px number on a 1920-px canvas, tnum, with italic
   `em` accents in oxblood. Replaces the previous `.statband` SaaS
   look. The single visual peak of the deck (Pitch.html 821-840). */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: clamp(3rem, 5vw, 5rem) 0;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 2px solid var(--ink);
}
@media (max-width: 880px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }
.kpi {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.kpi__n {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-kpi);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
  text-wrap: nowrap;
}
.kpi__n em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.kpi__l {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  max-width: 22ch;
}
.section--ink .kpis { border-top-color: var(--paper); }
.section--ink .kpi__n { color: var(--paper); }
.section--ink .kpi__l { color: rgba(241, 238, 228, 0.62); }
.section--ink .kpi__n em { color: var(--accent-soft); }

/* ---- Cover-meta strip at the bottom of `.cover` ----
   Mirrors the deck's `.cover-meta` (lines 875-884): mono left/right
   split that anchors the slide. */
.cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.85vw, 0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}

/* ---- Trust strip / featured strip ---- */
.strip {
  background: var(--accent-faint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-5) 0;
  font-size: var(--fs-400);
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.strip__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white;
  margin-right: var(--space-3);
}
.strip__text { color: var(--ink); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.trust-row span {
  padding: 4px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
}

/* ---- Pillars / 3-col feature grid ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .pillars, .pillars--4 { grid-template-columns: 1fr; gap: var(--space-6); }
}
.pillar {
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
  transition: border-color var(--t-base) var(--ease);
}
.pillar h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-500);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}
.pillar p { font-size: var(--fs-400); }
.pillar:hover { border-color: var(--accent); }

/* ---- Stat row (numbers band) ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7);
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, var(--fs-800));
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}
.stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ---- Cards ---- */
.card {
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.card--soft { background: var(--paper-soft); }
.card--quiet { padding: var(--space-5); }
.card--elevated { background: var(--paper-elevated); box-shadow: var(--shadow-md); }

/* ---- Comparison table ---- */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--fs-400);
}
.compare th, .compare td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-300);
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-transform: uppercase;
  background: var(--paper-soft);
}
.compare th:first-child, .compare td:first-child {
  font-weight: 500;
  color: var(--ink);
}
.compare .yes { color: var(--signal-ok); font-weight: 500; }
.compare .no  { color: var(--ink-faint); }
.compare .partial { color: var(--signal-warn); font-weight: 500; }
.compare th.is-ours { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--ink); }
.compare td.is-ours { background: color-mix(in srgb, var(--accent) 4%, transparent); }

/* ---- Two-column code/explanation layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.split--narrow { grid-template-columns: 2fr 3fr; }
@media (max-width: 900px) {
  .split, .split--narrow { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ---- Steps row ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: var(--space-5);
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--accent);
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}
.step h4 { margin-bottom: var(--space-2); }

/* ---- Tag chips (used for examples on /agent) ---- */
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.example {
  padding: var(--space-2) var(--space-4);
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: var(--fs-300);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  font-family: inherit;
}
.example:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Status indicator (live dot) ---- */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--space-2);
  vertical-align: middle;
  background: var(--ink-faint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-faint) 25%, transparent);
}
.status-dot.is-ok {
  background: var(--signal-ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-ok) 30%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
.status-dot.is-down {
  background: var(--signal-err);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-err) 30%, transparent);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-ok) 30%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal-ok) 12%, transparent); }
}

/* ---- Chat widget ---- */
.widget {
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-6) 0;
}
.widget__head {
  padding: var(--space-4) var(--space-5);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-300);
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.widget__head__meta { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.widget__head__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  color: var(--ink-muted);
}
.widget__body {
  padding: var(--space-5);
  min-height: 240px;
  max-height: 520px;
  overflow-y: auto;
}
.widget__placeholder {
  color: var(--ink-faint);
  font-size: var(--fs-400);
  text-align: center;
  padding: var(--space-6) 0;
}
.widget__form {
  border-top: 1px solid var(--rule);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  background: var(--paper-stark);
}
.widget__input {
  flex: 1;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  background: var(--paper);
  color: var(--ink);
  resize: none;
  min-height: 48px;
  max-height: 160px;
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.widget__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.widget__send { align-self: flex-end; padding: var(--space-3) var(--space-5); }
.widget__toolbar {
  border-top: 1px solid var(--rule);
  padding: var(--space-3) var(--space-4);
  background: var(--paper-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-300);
  color: var(--ink-muted);
}
.widget__toolbar button {
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-family: inherit;
  font-size: var(--fs-300);
  color: var(--ink-soft);
  cursor: pointer;
}
.widget__toolbar button:hover { color: var(--ink); border-color: var(--ink); }
.widget__toolbar button[disabled] { opacity: 0.4; cursor: not-allowed; }

.bubble {
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  max-width: 92%;
  font-size: var(--fs-400);
  line-height: 1.55;
  word-wrap: break-word;
}
/* Agent bubble runs through the safe markdown renderer — give the
   rendered HTML proper rhythm. User bubbles keep pre-wrap (raw text)
   so newlines they typed are preserved verbatim. */
.bubble--user { white-space: pre-wrap; }
.bubble--error { white-space: pre-wrap; }

/* Agent-bubble HTML rhythm */
.bubble--agent p { margin: 0 0 var(--space-3); color: inherit; }
.bubble--agent p:last-child { margin-bottom: 0; }
.bubble--agent ul,
.bubble--agent ol { margin: 0 0 var(--space-3); padding-left: 1.4em; }
.bubble--agent li { margin: var(--space-1) 0; line-height: 1.5; }
.bubble--agent strong { font-weight: 600; color: var(--ink); }
.bubble--agent em { font-style: italic; }
.bubble--agent code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-stark);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
/* Tool-call status — inserted into the agent bubble while a tool
   is being invoked. Reads as a small italic muted notice ("Agent
   raadpleegt KBO…"). Cleared automatically as soon as the model
   resumes streaming the actual reply (so the status doesn't linger
   below a finished answer). */
.bubble__tool-status {
  margin: var(--space-2) 0 0;
  padding: 6px 10px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  font-style: normal;
  border-radius: 2px;
}
.bubble__tool-status::before {
  content: "● ";
  color: var(--accent);
  animation: co-pulse-dot 1.4s ease-in-out infinite;
  display: inline-block;
}
.bubble__tool-status--done::before {
  content: "✓ ";
  color: var(--signal-ok);
  animation: none;
}
.bubble__tool-status--error::before {
  content: "! ";
  color: var(--signal-err);
  animation: none;
}

/* Disclaimer — lifted from the body, rendered as a small muted
   footer below the answer. Separated by a hairline so it reads as
   meta-info, not a sentence in the answer. */
.bubble__disclaimer {
  margin: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-3));
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--rule);
  background: var(--paper-stark);
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius);
  color: var(--ink-muted);
  font-size: var(--fs-300);
  line-height: 1.5;
  font-style: italic;
}
.bubble--user {
  background: var(--accent);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: var(--radius-sm);
}
.bubble--user a {
  color: inherit;
  text-decoration: underline;
}
.bubble--user a:hover {
  color: var(--paper-soft);
}
.bubble--agent {
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-left-radius: var(--radius-sm);
}
.bubble--agent a {
  color: var(--accent);
  text-decoration: underline;
}
.bubble--agent a:hover {
  color: var(--ink);
}
.bubble--error {
  background: var(--signal-err-bg);
  color: var(--signal-err);
  border: 1px solid color-mix(in srgb, var(--signal-err) 30%, transparent);
}
.bubble__meta {
  font-size: var(--fs-300);
  color: var(--ink-faint);
  margin-top: var(--space-2);
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: var(--space-2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Disclaimer ---- */
.disclaimer {
  font-size: var(--fs-300);
  color: var(--ink-muted);
  background: var(--paper-soft);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  border-left: 3px solid var(--ink-muted);
  margin: var(--space-5) 0;
}

/* ---- FAQ accordion (native <details>) ---- */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-500);
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink-muted);
  transition: transform var(--t-base) var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius-sm);
}
.faq details > *:not(summary) {
  margin-top: var(--space-4);
  color: var(--ink-soft);
}

/* ---- TOC sidebar (legal/security pages) ---- */
.with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; gap: var(--space-5); }
  .toc { position: static !important; }
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-5));
  font-size: var(--fs-300);
  padding-top: var(--space-2);
}
.toc__label {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.toc ol { list-style: none; padding-left: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); }
.toc li:last-child { border-bottom: none; }
.toc a {
  display: flex;
  gap: var(--space-2);
  color: var(--ink-soft);
  border-bottom: none;
}
.toc a:hover { color: var(--accent); }
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-8) 0 var(--space-5);
  background: var(--paper-soft);
  color: var(--ink-muted);
  font-size: var(--fs-300);
  margin-top: var(--space-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer__brand { grid-column: 1 / -1; }
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.footer__tagline { font-size: var(--fs-300); color: var(--ink-muted); max-width: 28ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: 0 0 var(--space-2); }
.footer__col a {
  color: var(--ink-soft);
  font-size: var(--fs-400);
  border-bottom: none;
}
.footer__col a:hover { color: var(--ink); }

.footer__bar {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--ink-faint);
  font-size: var(--fs-300);
}
.footer__bar a { color: var(--ink-faint); }

/* ---- Reveal animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); animation: fadeUp 600ms var(--ease) 60ms forwards; }
  .reveal-2 { animation-delay: 180ms; }
  .reveal-3 { animation-delay: 300ms; }
  .reveal-4 { animation-delay: 420ms; }
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   New brand-aligned components — added in the homepage build-out
   pass. Match the production app's visual rhythm and the pitch
   deck's editorial pace.
   ============================================================ */

/* ---- Kicker pill ----
   Sits above the hero H1: a small oxblood-tinted pill with a pulsing
   dot + 1-line status string. Communicates "live product" the moment
   the page loads. Pattern lifted from agenstry's home (templates/
   index.html:104-118) but rendered in our editorial palette. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 10px;
  background: var(--accent-faint);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: kicker-pulse 2.6s ease-in-out infinite;
}
@keyframes kicker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 10%, transparent); }
}

/* ---- Inline stats line — small mono row under the kicker ----
   Same visual register as the verb-spine but earlier in the hero
   stack (between kicker and H1). Keeps the hero busy without
   crowding the headline. */
.kicker-stats {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
}
.kicker-stats span:not(:last-child)::after {
  content: " ·";
  margin-left: var(--space-3);
  color: var(--ink-faint);
}

/* ---- Three-audience grid (Advocaat / Notaris / Accountant) ----
   Replaces the generic CTA-pair under the hero. Each tile is a
   warm-tinted card with audience name, one outcome line, link.
   Sits on the home page after the strip, lifts navigation to the
   right doorway for each persona. */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }
.audience {
  padding: var(--space-5);
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  box-shadow: var(--shadow-sm);
}
.audience:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  border-bottom-color: var(--accent);
}
.audience__label {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.audience__name {
  font-family: var(--font-serif);
  font-size: var(--fs-600);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.audience__line {
  font-size: var(--fs-400);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.audience__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: gap var(--t-fast) var(--ease);
}
.audience:hover .audience__arrow { gap: var(--space-3); }

/* ---- Stats band (Newsreader 96px, italic-oxblood emphasis) ----
   Bigger-than-life numeric band, exactly the pitch deck's `.kpi` row.
   Centres on a single beat between sections. Numbers in serif,
   labels in mono. Use sparingly — one band per page max. */
.statband {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .statband { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
.statband__num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
  display: block;
}
.statband__num em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.statband__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ---- Partner-tech logo strip ----
   Single-row grayscale strip with a short label. "We bouwen op…".
   Each logo is a text monogram in mono (no real logos — none of
   our partners have given us logo licence, and PostgreSQL et al
   come with brand guidelines that say "don't put us next to your
   tagline"). Mono-text strip is honest + on-brand. */
.partners {
  text-align: center;
  padding: var(--space-7) 0;
}
.partners__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.partners__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-400);
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.partners__row span { white-space: nowrap; }

/* ---- Pre-footer CTA tile ----
   Repeated component dropped before <footer> on most pages. Warm
   parchment gradient + one strong heading + button. Acts as the
   page's last "next step" prompt. */
.cta-tile {
  background: linear-gradient(135deg, var(--paper-soft), var(--paper-stark));
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: var(--space-9) auto 0;
  max-width: var(--container);
}
.cta-tile h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-3);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-tile p {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-5);
}
.cta-tile__actions {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- SDK / language tabs (developers page) ----
   Tab strip above a single code block. Pure CSS via :target/checked
   would work but :checked-radio pattern is clearer for screen readers.
   Implementation in JS-light HTML using <input type="radio">. */
.sdk-tabs {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: var(--paper-stark);
  box-shadow: var(--shadow-sm);
}
.sdk-tabs__nav {
  display: flex;
  gap: 0;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule);
}
.sdk-tabs__nav label {
  flex: 1;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  border-right: 1px solid var(--rule);
}
.sdk-tabs__nav label:last-child { border-right: 0; }
.sdk-tabs__nav label:hover { color: var(--ink); background: var(--paper-stark); }
.sdk-tabs input[type="radio"] { position: absolute; left: -9999px; }
.sdk-tabs__pane { display: none; padding: var(--space-5); }
.sdk-tabs input[type="radio"]:checked + label { color: var(--accent); background: var(--paper-stark); }
/* Match each radio's id to its pane's [data-tab] attribute via :checked
   ~ [data-tab="…"]. CSS pattern works because all panes are siblings
   of the radios within .sdk-tabs. */
.sdk-tabs input#sdk-curl:checked   ~ .sdk-tabs__pane[data-tab="curl"],
.sdk-tabs input#sdk-python:checked ~ .sdk-tabs__pane[data-tab="python"],
.sdk-tabs input#sdk-ts:checked     ~ .sdk-tabs__pane[data-tab="ts"] { display: block; }
.sdk-tabs__pane pre { margin: 0; border: 0; background: var(--paper); }

/* ---- Changelog list ----
   Compact dated rows. Each entry: monospace date · serif title ·
   sans body. Used on /changelog and as a teaser on home. */
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
}
.changelog__item:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 600px) { .changelog__item { grid-template-columns: 1fr; gap: var(--space-2); } }
.changelog__date {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.changelog__title {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.015em;
}
.changelog__body { color: var(--ink-soft); margin: 0; }

/* ---- Quote block (slide-1 pull-quote, used on home/about) ---- */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: var(--space-8) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent);
  max-width: 36ch;
}
.pullquote em { color: var(--accent); font-style: italic; }

/* Web-font @import has been moved to the top of this file; per
   CSS spec it MUST be the first non-comment statement, otherwise
   it is ignored. Leaving this comment as a tombstone. */

/* ============================================================
   SaaS-grade home page — full-bleed layouts + product mockups
   ============================================================
   Everything below this comment is added for the home page
   rebuild (high-end legal-AI SaaS reference: Harvey, Spellbook,
   Hebbia, Linear, Stripe). All components reuse the Co-Legal
   brand tokens — parchment, ink, oxblood, Newsreader serif,
   JetBrains Mono labels — but expressed in product-marketing
   layouts instead of deck-slide layouts.
   ============================================================ */

/* ---- Nav-CTA pill — top-right call-to-action, like every premium
   SaaS site (Linear "Get started", Stripe "Start now", Spellbook
   "Get a demo"). Visually separate from text-nav links. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-300);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(26, 27, 31, 0.10);
  transition: background var(--t-fast) var(--ease);
}
.nav__cta:hover { background: #26272B; border-bottom: none; }

/* ---- Full-bleed hero — asymmetric 2-col grid (text left, product
   mockup right) with soft warm vignette underneath. The premium-SaaS
   shape: tight H1, 1-line lead, primary + secondary CTA, trust-pill,
   product visual occupies ~55% of viewport width. */
.hero-saas {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem);
  isolation: isolate;
  overflow: clip;
}
.hero-saas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(254, 253, 250, 1), transparent 70%),
    radial-gradient(ellipse 60% 80% at 110% 50%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 75%),
    linear-gradient(180deg, var(--paper-stark) 0%, var(--paper) 60%);
  z-index: -1;
}
.hero-saas__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-saas__grid { grid-template-columns: 1fr; gap: 3rem; }
}
.hero-saas__copy h1 {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: var(--space-5) 0 var(--space-4);
  max-width: 16ch;
}
.hero-saas__copy h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-saas__copy .lead {
  font-size: var(--fs-500);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 42ch;
  margin: 0 0 var(--space-6);
}
.hero-saas__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-7);
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-saas__trust .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-ok) 18%, transparent);
}

/* ---- Product-visual stack — the right side of the hero ----
   Three semi-overlapping mockup cards (Canvas / Proposal / Agent)
   stacked at slight rotations so the eye reads them as "a product
   you'd actually use", not "a screenshot library". Each mockup uses
   the real app surface tokens (--surface-strong, --hairline, warm
   shadows). */
.hero-saas__visual {
  position: relative;
  height: clamp(420px, 56vw, 620px);
}
.mock {
  position: absolute;
  background: var(--paper-stark);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease);
}
.mock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-soft);
}
.mock__head__dots {
  display: inline-flex; gap: 5px;
}
.mock__head__dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint);
  opacity: 0.4;
}
.mock__body { padding: 14px 16px 16px; }

/* Mockup 1 — Canvas / Proposal tray */
.mock--canvas {
  width: 86%; right: 0; top: 0;
  transform: rotate(-1.4deg);
  z-index: 2;
}
.mock--canvas .mock__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2px 0 12px;
}
.mock--canvas .mock__row {
  display: flex; align-items: start; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
}
.mock--canvas .mock__row:first-of-type { border-top: none; }
.mock--canvas .mock__row__icon {
  width: 24px; height: 24px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--paper-soft);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  flex-shrink: 0;
}
.mock--canvas .mock__row__txt strong { font-weight: 500; }
.mock--canvas .mock__row__txt span {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  margin-top: 2px;
}
.mock--canvas .mock__actions {
  display: flex; gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
}
.mock__btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: var(--paper-stark);
  color: var(--ink);
}
.mock__btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}

/* Mockup 2 — DOCX tracked-changes diff */
.mock--docx {
  width: 60%; left: 0; top: 38%;
  transform: rotate(2.2deg);
  z-index: 3;
}
.mock--docx .mock__body { font-family: 'Georgia', serif; font-size: 12.5px; line-height: 1.6; }
.mock--docx ins {
  background: rgba(46, 125, 87, 0.12);
  color: var(--signal-ok);
  text-decoration: none;
  padding: 0 2px;
  border-radius: 2px;
}
.mock--docx del {
  background: rgba(122, 43, 36, 0.10);
  color: var(--accent);
  text-decoration: line-through;
  padding: 0 2px;
}

/* Mockup 3 — Event-log / Organism timeline */
.mock--events {
  width: 56%; right: 8%; top: 60%;
  transform: rotate(-0.8deg);
  z-index: 1;
}
.mock--events ul { list-style: none; margin: 0; padding: 0; }
.mock--events li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
}
.mock--events li + li {
  border-top: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
}
.mock--events .t {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.mock--events strong { font-weight: 500; }
.mock--events em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Audience strip — mono row, no implied customer endorsement ---- */
.logos-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--paper-stark);
}
.logos-strip__label {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: var(--space-5);
}
.logos-strip__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
  align-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
  text-align: center;
}
.logos-strip__row span:hover { color: var(--ink-muted); transition: color var(--t-fast) var(--ease); }
@media (max-width: 880px) { .logos-strip__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); } }
@media (max-width: 480px) { .logos-strip__row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Feature row — alternating split-screen (text + product mockup).
   The premium-SaaS workhorse. Each row alternates direction:
   `.feature-row--rev` flips text to the right, mockup to the left.
   Mockup container has subtle border + warm shadow + 4-px corner
   radius so it reads as "screenshot" not "card". */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.feature-row + .feature-row {
  border-top: 1px solid var(--rule);
}
.feature-row--rev { direction: rtl; }
.feature-row--rev > * { direction: ltr; }
@media (max-width: 980px) {
  .feature-row, .feature-row--rev { grid-template-columns: 1fr; direction: ltr; }
}
.feature-row__copy .eyebrow { margin-bottom: var(--space-4); }
.feature-row__copy h2 {
  font-size: var(--fs-h1-deck);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  max-width: 18ch;
}
.feature-row__copy h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.feature-row__copy p { max-width: 50ch; font-size: var(--fs-500); line-height: 1.5; }
.feature-row__copy ul {
  list-style: none; padding: 0; margin: var(--space-5) 0 0;
  display: grid; gap: 10px;
  color: var(--ink-soft);
}
.feature-row__copy ul li {
  display: flex; gap: 10px; align-items: start;
  font-size: var(--fs-400);
}
.feature-row__copy ul li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 500;
}

/* Mockup container — the visual half */
.feature-row__visual {
  position: relative;
  background: var(--paper-stark);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 12px;
  padding: clamp(1rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature-row__visual::before {
  /* Tiny mac-style window-controls row above the mockup */
  content: "";
  display: block;
  height: 14px;
  background:
    radial-gradient(circle at 8px 50%, #E8E2D2 4.5px, transparent 5px),
    radial-gradient(circle at 24px 50%, #E8E2D2 4.5px, transparent 5px),
    radial-gradient(circle at 40px 50%, #E8E2D2 4.5px, transparent 5px);
  margin-bottom: 12px;
}

/* ---- Stats row — KPI band, SaaS-grade scale (was deck-grade 9rem) ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-cell__n {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-kpi);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-optical-sizing: auto;
}
.stat-cell__n em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.stat-cell__l {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  max-width: 24ch;
}

/* ---- Bento — asymmetric capability grid ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: var(--space-5);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
@media (max-width: 880px) { .bento { grid-template-columns: 1fr; } }
.bento__cell {
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.bento__cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--rule));
}
.bento__cell .tnum {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.bento__cell h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-tile);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.bento__cell h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.bento__cell p {
  font-size: var(--fs-400);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.bento__cell--wide { grid-column: span 4; }
.bento__cell--half { grid-column: span 3; }
.bento__cell--third { grid-column: span 2; }
@media (max-width: 880px) {
  .bento__cell--wide, .bento__cell--half, .bento__cell--third { grid-column: 1; }
}

/* ---- Testimonial block ---- */
.testimonial {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 var(--space-7);
  text-wrap: balance;
}
.testimonial__quote em { font-style: italic; color: var(--accent); font-weight: 500; }
.testimonial__author {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Integrations grid — logo cards ---- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 880px) { .integrations-grid { grid-template-columns: repeat(2, 1fr); } }
.integration {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5);
  background: var(--paper-stark);
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-align: left;
  transition: border-color var(--t-fast) var(--ease);
}
.integration:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--rule)); }
.integration__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.integration__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Use-case row — concrete client scenarios ----
   Each row: mono "scenario" label, serif scenario title, body, then
   a small "what the AI proposed" mockup. Differs from generic feature-
   rows by being explicitly client-facing ("Familie De Vries vraagt
   schenking aan kinderen") with a concrete proposal-tray output. */
.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  align-items: center;
}
.usecase + .usecase { border-top: 1px solid var(--rule); }
.usecase--rev { direction: rtl; }
.usecase--rev > * { direction: ltr; }
@media (max-width: 980px) { .usecase, .usecase--rev { grid-template-columns: 1fr; direction: ltr; } }

.usecase__scenario {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.usecase__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: var(--space-3) 0 var(--space-4);
  max-width: 22ch;
}
.usecase__title em { font-style: italic; color: var(--accent); font-weight: 500; }
.usecase__body { color: var(--ink-soft); max-width: 50ch; }

.usecase__panel {
  background: var(--paper-stark);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.usecase__panel__head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.usecase__panel__body { padding: 16px 18px; font-size: 13px; }
.usecase__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
}
.usecase__step:first-child { border-top: none; }
.usecase__step__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.usecase__step__txt strong { font-weight: 500; color: var(--ink); }
.usecase__step__txt span {
  display: block; color: var(--ink-muted);
  font-size: 12px; margin-top: 2px;
}

/* ---- Comparison row — high-contrast table with "is-ours" column ---- */
.comparison {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-stark);
}
.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}
.comparison thead th {
  background: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}
.comparison thead th.is-ours {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-stark));
  color: var(--accent);
}
.comparison tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  font-size: var(--fs-400);
  color: var(--ink-soft);
}
.comparison tbody td:first-child {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  max-width: 26ch;
}
.comparison tbody td.is-ours {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  color: var(--ink);
  font-weight: 500;
}
.comparison .yes { color: var(--signal-ok); font-weight: 500; }
.comparison .no  { color: var(--ink-faint); }
.comparison .meh { color: var(--signal-warn); }

/* ---- Bento icons — mono inline SVG framework ----
   Each `.bento__icon` is a 32×32 stroked SVG inside a parchment-soft
   square so cells get a quick visual anchor without resorting to
   stock-graphic gloss. */
.bento__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-soft);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: var(--space-3);
}
.bento__icon svg { width: 18px; height: 18px; }

/* ============================================================
   Motion — restrained scroll-reveals + hero choreography
   ============================================================
   Pure-CSS staggered fade-up on first paint, plus a tiny JS
   IntersectionObserver in nav.js for scroll-reveal of deeper
   sections. `prefers-reduced-motion: reduce` kills everything. */

@keyframes co-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes co-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes co-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal-ok) 18%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in srgb, var(--signal-ok) 8%, transparent); }
}

/* Hero copy stagger */
.hero-saas__copy > * {
  opacity: 0;
  animation: co-fade-up 520ms var(--ease) forwards;
}
.hero-saas__copy > *:nth-child(1) { animation-delay: 0ms;   }
.hero-saas__copy > *:nth-child(2) { animation-delay: 60ms;  }
.hero-saas__copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-saas__copy > *:nth-child(4) { animation-delay: 180ms; }
.hero-saas__copy > *:nth-child(5) { animation-delay: 240ms; }
.hero-saas__copy > *:nth-child(6) { animation-delay: 300ms; }

/* Hero mockups — stagger-rise into rotated rest-pose. We compose
   two keyframes so the rotation arrives AFTER the fade settles. */
@keyframes co-rise-canvas {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(-1.4deg); }
}
@keyframes co-rise-events {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(-0.8deg); }
}
@keyframes co-rise-docx {
  from { opacity: 0; transform: translateY(20px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(2.2deg); }
}
.mock { opacity: 0; }
.mock--canvas { animation: co-rise-canvas 700ms var(--ease) 280ms forwards; }
.mock--events { animation: co-rise-events 700ms var(--ease) 480ms forwards; }
.mock--docx   { animation: co-rise-docx   700ms var(--ease) 680ms forwards; }

/* Trust-pill green dot pulses subtly — the "Live" affordance */
.hero-saas__trust .dot {
  animation: co-pulse-dot 2.4s ease-in-out infinite;
}

/* Logos-strip marquee — infinite horizontal scroll, soft fade at edges */
.logos-strip__marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-strip__marquee__track {
  display: inline-flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  white-space: nowrap;
  animation: co-marquee 38s linear infinite;
  padding-right: clamp(2rem, 5vw, 4rem);
}
.logos-strip__marquee__track > * { flex-shrink: 0; }

/* Scroll-reveal — viewport-entry fade-up. nav.js applies .in-view */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-saas__copy > *,
  .mock,
  .reveal-on-scroll,
  .logos-strip__marquee__track,
  .hero-saas__trust .dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   Pilot-badge — honest "Pilot · Q2 2026 · 3 BE-kantoren" chip
   ============================================================
   Sits above the hero H1. Distinguishes us from a vapor-shop
   pretending to already have AmLaw 100 clients. */
.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper-stark));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.pilot-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   "Gebouwd voor" — replaces fake-firm-name logos with profession
   icons (notaris-zegel / advocatenhamer / boekhoud-grootboek /
   bankier-balance). Honest pre-launch trust signal. */
.built-for {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--paper-stark);
}
.built-for__label {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: var(--space-5);
}
.built-for__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
@media (max-width: 880px) { .built-for__row { grid-template-columns: repeat(2, 1fr); } }
.built-for__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-muted);
  transition: color var(--t-fast) var(--ease);
}
.built-for__cell:hover { color: var(--ink); }
.built-for__cell svg {
  width: 28px; height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.built-for__cell__lbl {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: inherit;
}
.built-for__cell__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   Certifications / trust-mark strip — 4 chips with line-icons
   ============================================================ */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) { .cert-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-strip { grid-template-columns: 1fr; } }
.cert {
  display: flex;
  align-items: start;
  gap: var(--space-4);
}
.cert__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--paper-soft);
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.cert__icon svg { width: 18px; height: 18px; }
.cert__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-400);
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 4px;
}
.cert__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================================================
   Mobile nav sheet — full-screen overlay (SOTA mobile pattern)
   ============================================================ */
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    /* `top+bottom` alone should resolve height, but some Webkit
       builds (and Playwright's headless Chromium) collapse the box
       to fit content unless we also pin height explicitly. Both
       100vh and 100dvh are set — dvh is the modern dynamic value
       that excludes browser-chrome on mobile. */
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    padding: clamp(1.5rem, 5vw, 3rem);
    gap: 0;
    transform: translateX(100%);
    transition: transform 300ms var(--ease);
    pointer-events: none;
    overflow-y: auto;
    /* Sit above the .hero-saas stacking context (which uses
       `isolation: isolate` and would otherwise paint over us)
       AND above the sticky `<nav>` at z:20, so the sheet is the
       front-most element when open. */
    z-index: 50;
  }
  .nav__links.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav__links a {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .nav__links a.nav__cta {
    margin-top: var(--space-5);
    border: none;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-pill);
    text-align: center;
    font-family: var(--font-sans);
    font-size: var(--fs-400);
    padding: var(--space-3) var(--space-4);
  }
  body.nav-locked { overflow: hidden; }
}

/* ===================================================================
   Skills catalog — used on the homepage to advertise live + roadmap
   agent skills. Two-column grid on desktop, single column on mobile.
   Each card has a header (id + status badge), a title, body, and an
   inline example.
   =================================================================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 720px) {
  .skill-grid { grid-template-columns: 1fr; }
}

.skill-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  background: var(--paper);
  transition: border-color 120ms ease, transform 120ms ease;
}
.skill-card:hover {
  border-color: var(--accent-soft);
}
.skill-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.skill-card__id {
  font-family: var(--font-mono);
  font-size: var(--fs-400);
  color: var(--ink);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-1);
}
.skill-card__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.skill-card--live .skill-card__status {
  background: rgba(34, 139, 87, 0.12);
  color: #1f6a44;
}
.skill-card--soon .skill-card__status {
  background: rgba(122, 43, 36, 0.10);
  color: var(--accent);
}
.skill-card h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--fs-500);
}
.skill-card p {
  margin: var(--space-3) 0;
  font-size: var(--fs-400);
  color: var(--ink-muted);
}
.skill-card__example {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--bg-soft);
  padding: var(--space-3);
  border-radius: var(--radius-1);
  border-left: 2px solid var(--accent-soft);
  overflow-x: auto;
  word-break: break-word;
}
.skill-card--soon {
  opacity: 0.95;
  background: var(--bg-soft);
  border-style: dashed;
}
