/* ==========================================================================
   Cognaize marketing site — stylesheet
   Source of truth: design.md (tokens §3, components §6–7) + context.md (content)
   Every value traces to a token. No Lora, no DM Sans, no FontAwesome.
   ========================================================================== */

/* ---- 1. Fonts (self-hosted, design.md §4) -------------------------------- */

@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Book.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-BookItalic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Semibold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url("../assets/fonts/NebulaSans-Black.ttf") format("truetype");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SourceCodePro-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SourceCodePro-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("../assets/fonts/SourceCodePro-Semibold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---- 2. Design tokens (design.md §3, verbatim) --------------------------- */

:root {
  /* Brand core */
  --cz-royal: #145DDD;
  --cz-navy:  #292984;
  --cz-black: #191919;
  --cz-white: #FFFFFF;
  --cz-cloud: #EFEFF6;

  /* Royal tint ramp */
  --cz-royal-50:#EAF1FE; --cz-royal-100:#D2E0FC; --cz-royal-200:#A6C1F8;
  --cz-royal-300:#6E97F0; --cz-royal-400:#3D77E6; --cz-royal-500:#145DDD;
  --cz-royal-600:#1149AE; --cz-royal-700:#103C8C; --cz-royal-800:#112F6A; --cz-royal-900:#11254E;

  /* Neutral / ink ramp */
  --cz-ink-0:#FFFFFF; --cz-ink-25:#FAFAFC; --cz-ink-50:#EFEFF6; --cz-ink-100:#E2E2EC;
  --cz-ink-200:#CACAD8; --cz-ink-300:#A8A8BC; --cz-ink-400:#7E7E94; --cz-ink-500:#5C5C70;
  --cz-ink-600:#44444F; --cz-ink-700:#2E2E38; --cz-ink-800:#232329; --cz-ink-900:#191919;

  /* Secondary accents (data / status only) */
  --cz-ice:#32C7D6; --cz-grass:#38BAA1; --cz-coral:#E85454; --cz-sunflower:#EFE565;
  --cz-ice-soft:#E0F7FA; --cz-grass-soft:#E0F5F0; --cz-coral-soft:#FCE6E6; --cz-sunflower-soft:#FBF9D8;

  /* Semantic aliases */
  --color-brand:var(--cz-royal); --color-brand-strong:var(--cz-royal-600); --color-brand-navy:var(--cz-navy);
  --surface-page:var(--cz-ink-25); --surface-card:var(--cz-white); --surface-sunken:var(--cz-cloud);
  --surface-inverse:var(--cz-black); --surface-brand:var(--cz-royal);
  --text-strong:var(--cz-ink-900); --text-body:var(--cz-ink-700); --text-muted:var(--cz-ink-500);
  --text-subtle:var(--cz-ink-400); --text-on-brand:var(--cz-white); --text-on-dark:var(--cz-white);
  --text-link:var(--cz-royal);
  --border-subtle:var(--cz-ink-100); --border-default:var(--cz-ink-200); --border-strong:var(--cz-ink-300);
  --border-brand:var(--cz-royal); --ring-focus:rgba(20,93,221,0.35);
  --status-info:var(--cz-royal); --status-success:var(--cz-grass);
  --status-warning:var(--cz-sunflower); --status-danger:var(--cz-coral); --status-accent:var(--cz-ice);
  --confidence-high:var(--cz-grass); --confidence-medium:var(--cz-sunflower);
  --confidence-low:var(--cz-coral); --confidence-none:var(--cz-ink-300);

  /* Typography */
  --font-sans: "Nebula Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: var(--font-sans);
  --fw-light:300; --fw-book:400; --fw-medium:500; --fw-semibold:600; --fw-bold:700; --fw-black:900;
  --text-2xs:.6875rem; --text-xs:.75rem; --text-sm:.875rem; --text-md:1rem; --text-lg:1.125rem;
  --text-xl:1.375rem; --text-2xl:1.75rem; --text-3xl:2.25rem; --text-4xl:3rem; --text-5xl:4rem; --text-6xl:5.5rem;
  --leading-tight:1.05; --leading-snug:1.2; --leading-normal:1.5; --leading-relaxed:1.65;
  --tracking-tighter:-.03em; --tracking-tight:-.015em; --tracking-normal:0; --tracking-wide:.04em; --tracking-wider:.12em;

  /* Spacing */
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.25rem;
  --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem; --space-12:3rem; --space-16:4rem;
  --space-20:5rem; --space-24:6rem;

  /* Radii */
  --radius-xs:4px; --radius-sm:8px; --radius-md:10px; --radius-lg:14px; --radius-xl:20px;
  --radius-2xl:28px; --radius-full:9999px;
  --border-width:1px; --border-width-strong:1.5px;

  /* Shadows */
  --shadow-xs:0 1px 2px rgba(17,37,78,.06);
  --shadow-sm:0 1px 3px rgba(17,37,78,.08),0 1px 2px rgba(17,37,78,.04);
  --shadow-md:0 4px 12px rgba(17,37,78,.08),0 2px 4px rgba(17,37,78,.04);
  --shadow-lg:0 12px 28px rgba(17,37,78,.12),0 4px 8px rgba(17,37,78,.06);
  --shadow-xl:0 24px 56px rgba(17,37,78,.16),0 8px 16px rgba(17,37,78,.08);
  --shadow-focus:0 0 0 3px var(--ring-focus);

  /* Motion */
  --ease-out:cubic-bezier(.16,1,.3,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
  --dur-fast:120ms; --dur-base:200ms; --dur-slow:320ms;

  /* Layout */
  --container-max:1240px;
  --header-h:72px;
}

/* ---- 3. Base -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Fixed header: keep anchored sections from landing underneath it */
section[id], [id^="industries"], main [id] { scroll-margin-top: calc(var(--header-h) + var(--space-6)); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-book);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--text-link); text-decoration: none; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--shadow-focus); border-radius: var(--radius-xs); }

.skip-link {
  position: absolute; left: -9999px; top: var(--space-2); z-index: 100;
  background: var(--cz-white); color: var(--text-strong);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-2); }

/* Type roles */
.h1 {
  font-weight: var(--fw-bold);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, var(--text-4xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.h2 {
  font-weight: var(--fw-bold);
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, var(--text-3xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.h3 {
  font-weight: var(--fw-semibold);
  font-size: clamp(1.25rem, 1.1rem + .6vw, var(--text-2xl));
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.h4 {
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}
.body-lg { font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.caption { font-size: var(--text-xs); line-height: 1.4; color: var(--text-subtle); }
.mono { font-family: var(--font-mono); }

.measure { max-width: 68ch; }

/* Available to assistive tech, absent from the visual layout. */
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---- 4. Layout ------------------------------------------------------------ */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 1024px) {
  .container { padding-inline: var(--space-8); }
}

.section { padding-block: var(--space-12); }
@media (min-width: 1024px) {
  .section { padding-block: var(--space-20); }
}
.section--sunken { background: var(--surface-sunken); }

.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head .lead { margin-top: var(--space-4); }

/* Short mono section label (context.md §9 — ALL-CAPS reserved for these) */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--cz-royal);
  margin-bottom: var(--space-4);
}
.field .eyebrow { color: var(--cz-royal-300); }

/* ---- 5. Grainy gradient field (pure CSS — royal→navy→black + noise) ------- */

.field {
  position: relative;
  background-color: #10101A;
  background-image:
    radial-gradient(1100px 640px at 18% -12%, rgba(20,93,221,.52), transparent 62%),
    radial-gradient(900px 640px at 88% 14%, rgba(41,41,132,.58), transparent 62%),
    radial-gradient(1000px 700px at 55% 118%, rgba(17,47,106,.62), transparent 66%);
  color: var(--text-on-dark);
}
.field::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.field > * { position: relative; }

.field .h2, .field .h3 { color: var(--text-on-dark); }
.field p { color: rgba(255,255,255,.78); }

/* ---- 6. Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--fw-medium); font-size: var(--text-sm);
  line-height: 1; padding: 0 var(--space-5); height: 42px;
  border-radius: var(--radius-md); border: var(--border-width) solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(.5px) scale(.99); }
.btn:focus-visible { box-shadow: var(--shadow-focus); }

.btn--lg { height: 50px; padding: 0 var(--space-8); font-size: var(--text-md); }

.btn--primary { background: var(--cz-royal); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--cz-royal-600); }

.btn--secondary {
  background: var(--surface-card); color: var(--text-strong);
  border-color: var(--border-default);
}
.btn--secondary:hover { border-color: var(--border-strong); background: var(--cz-ink-25); }

.btn--ghost { background: transparent; color: var(--text-link); }
.btn--ghost:hover { background: var(--cz-royal-50); }

/* on-dark variants */
.btn--ghost-dark {
  background: rgba(255,255,255,.06); color: var(--text-on-dark);
  border-color: rgba(255,255,255,.28);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.44); }

.text-link {
  font-weight: var(--fw-medium); font-size: var(--text-sm); color: var(--text-link);
}
.text-link:hover { color: var(--color-brand-strong); }

/* ---- 7. Header / nav -------------------------------------------------------- */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: var(--border-width) solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16,16,26,.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.08);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
}
.site-header__logo img { height: 22px; width: auto; }

.site-nav { display: none; align-items: center; gap: var(--space-2); }
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav__link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: var(--fw-medium); font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: none; border: none; cursor: pointer; font-family: var(--font-sans);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.site-nav__link:hover { color: var(--cz-white); background: rgba(255,255,255,.08); }
.site-nav__link[aria-current="page"] { color: var(--cz-white); }
.site-nav__link .chev { transition: transform var(--dur-fast) var(--ease-out); }

.nav-item { position: relative; }
.nav-flyout {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--surface-card); border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast);
}
.nav-item.is-open .nav-flyout,
.nav-item:focus-within .nav-flyout {
  opacity: 1; transform: none; visibility: visible;
}
.nav-item.is-open .chev { transform: rotate(180deg); }
.nav-flyout a {
  display: block; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--text-body); font-size: var(--text-sm); font-weight: var(--fw-medium);
}
.nav-flyout a:hover { background: var(--cz-royal-50); color: var(--text-strong); }

.site-header__cta { display: none; }
@media (min-width: 640px) { .site-header__cta { display: inline-flex; } }

/* Mobile menu */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  color: var(--cz-white); border-radius: var(--radius-sm);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40; padding-top: var(--header-h);
  display: none; flex-direction: column;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__links { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-1); overflow-y: auto; }
.mobile-nav__links a {
  color: var(--cz-white); font-size: var(--text-xl); font-weight: var(--fw-semibold);
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm);
}
.mobile-nav__links a.sub { font-size: var(--text-md); font-weight: var(--fw-book); color: rgba(255,255,255,.75); padding-left: var(--space-5); }
.mobile-nav__links .divider { height: 1px; background: rgba(255,255,255,.14); margin: var(--space-3) 0; }
body.nav-locked { overflow: hidden; }

/* ---- 8. Hero ----------------------------------------------------------------- */

.hero { padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: var(--space-16); }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + var(--space-24)); padding-bottom: var(--space-24); }
}

.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); }
}

.hero__title {
  font-weight: var(--fw-black);
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.75rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-on-dark);
  max-width: 15ch;
}
.hero__sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: rgba(255,255,255,.78);
  max-width: 46ch;
}
.hero__cta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Page hero (secondary pages) */
.page-hero { padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: var(--space-16); }
.page-hero__title {
  font-weight: var(--fw-black);
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, var(--text-5xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-on-dark);
  max-width: 18ch;
}
.page-hero__sub {
  margin-top: var(--space-6); font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: rgba(255,255,255,.78); max-width: 56ch;
}

/* ---- 9. Hero extraction card (product visual + ConfidenceMeter) --------------- */

.extract-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  color: var(--text-body);
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
@media (min-width: 1024px) { .extract-card { justify-self: end; } }

.extract-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--border-width) solid var(--border-subtle);
}
.extract-card__doc { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-2xs); font-weight: var(--fw-medium);
  padding: 3px 10px; border-radius: var(--radius-full);
}
.badge--success { background: var(--cz-grass-soft); color: #1E7A69; }
.badge--outline { border: var(--border-width) solid var(--border-default); color: var(--text-muted); background: var(--surface-card); }
.badge .dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }

.extract-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--border-width) solid var(--border-subtle);
}
.extract-row__label { font-size: var(--text-sm); color: var(--text-body); }
.extract-row__note { display: block; font-size: var(--text-2xs); color: var(--text-link); margin-top: 2px; }
.extract-row__value { font-family: var(--font-mono); font-weight: var(--fw-medium); font-size: var(--text-sm); color: var(--text-strong); }
.extract-row__check { color: var(--confidence-high); display: inline-flex; }

.extract-card__verify {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs); color: #1E7A69;
  padding: var(--space-4) 0 var(--space-2);
}

/* ---- 10. Cards & grids ---------------------------------------------------------- */

.card {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}
.card--interactive {
  display: block; color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card--interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Marks the document set that is live today */
.card--current {
  border-color: var(--cz-royal);
  box-shadow: 0 0 0 1px var(--cz-royal-100), var(--shadow-sm);
}

.card .h3, .card .h4 { margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.card .text-link { display: inline-block; margin-top: var(--space-4); }

/* Example bullets inside cards */
.card-points { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.card-points li {
  position: relative; padding-left: var(--space-4);
  font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed);
}
.card-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: var(--radius-full); background: var(--cz-royal-300);
}

.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.medallion {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--cz-royal-50); color: var(--cz-royal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}

/* Icon feature list (no card chrome) */
.icon-list { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .icon-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .icon-list--3 { grid-template-columns: repeat(3, 1fr); } }

/* Industry index list: one row per industry, hairline-divided, whole row clickable */
.uc-list { border-top: var(--border-width) solid var(--border-subtle); }
.uc-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  border-bottom: var(--border-width) solid var(--border-subtle);
  color: inherit;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.uc-row:hover { background: var(--cz-white); box-shadow: var(--shadow-xs); }
.uc-row__icon { color: var(--cz-royal); display: inline-flex; }
.uc-row__name {
  display: block; font-weight: var(--fw-semibold); font-size: var(--text-lg);
  color: var(--text-strong); line-height: var(--leading-snug);
}
.uc-row__desc { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-1); }
.uc-row__arrow {
  color: var(--cz-ink-300);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.uc-row:hover .uc-row__arrow { color: var(--cz-royal); transform: translateX(2px); }

/* Split section: heading + lead left, stacked list right */
.split { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 6fr 5fr; gap: var(--space-20); } }
.split .section-head { margin-bottom: 0; }
.icon-list--stack, .icon-list--stack.icon-list { grid-template-columns: 1fr; gap: 0; }
.icon-list--stack .icon-list__item { padding-block: var(--space-6); border-bottom: var(--border-width) solid var(--border-subtle); }
.icon-list--stack .icon-list__item:first-child { padding-top: var(--space-2); }
.icon-list--stack .icon-list__item:last-child { border-bottom: none; }
.icon-list__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.icon-list__item svg { flex: none; color: var(--cz-royal); margin-top: 2px; }
.icon-list__item strong { display: block; font-weight: var(--fw-semibold); color: var(--text-strong); margin-bottom: var(--space-1); }
.icon-list__item p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ---- 11. Flow diagram (neural → symbolic → verified, with loop) ----------------- */

.flow-wrap { position: relative; }

.flow { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 1fr auto 1.15fr auto 1.15fr auto 1fr; gap: var(--space-2); }
}

.flow-node {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-1);
}
.flow-node strong { font-weight: var(--fw-semibold); color: var(--text-strong); font-size: var(--text-md); }
.flow-node span { font-size: var(--text-xs); color: var(--text-subtle); line-height: 1.4; }

.flow-node--neural { border-top: 2px solid var(--cz-royal); }
.flow-node--symbolic { border-top: 2px solid var(--cz-navy); }
.flow-node--out { border-top: 2px solid var(--cz-grass); }

.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--cz-ink-300); }
.flow-arrow svg { transform: rotate(90deg); }
@media (min-width: 1024px) { .flow-arrow svg { transform: none; } }

.flow-loop {
  margin-top: var(--space-4);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  color: var(--text-subtle); font-size: var(--text-xs);
}
@media (min-width: 1024px) {
  .flow-loop { margin-top: var(--space-6); }
}
.flow-loop svg { color: var(--cz-ink-300); }

/* Dark variant (used inside .field) */
.field .flow-node {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.field .flow-node strong { color: var(--cz-white); }
.field .flow-node span { color: rgba(255,255,255,.6); }
.field .flow-arrow, .field .flow-loop { color: rgba(255,255,255,.55); }
.field .flow-loop svg { color: rgba(255,255,255,.45); }

/* ---- 11b. Zoned workflow (your intake → Cognaize → your systems) ---------------
   Shows the run boundary: intake and systems of record stay unchanged, and every
   step in between happens inside the customer's own environment. */

.zflow { display: grid; grid-template-columns: 1fr; gap: var(--space-3); align-items: stretch; }
@media (min-width: 1100px) {
  .zflow { grid-template-columns: minmax(9.5rem,1fr) auto minmax(0,4fr) auto minmax(9.5rem,1fr); align-items: center; }
}

.zone {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.zone--edge { background: var(--cz-ink-50); border: var(--border-width) solid var(--cz-ink-100); }
.zone--core { background: var(--surface-card); border: var(--border-width-strong) solid var(--cz-royal); }
.zone > .znode { flex: 1; }

.zone__label { font-size: var(--text-2xs); letter-spacing: .03em; color: var(--text-subtle); }
.zone--core .zone__label {
  text-align: center;
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  letter-spacing: normal; color: var(--cz-royal);
}

.zrow { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 1100px) {
  /* node · arrow · node · arrow · node · arrow · note · arrow · node */
  .zrow {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto auto auto minmax(0,1fr);
    align-items: stretch;
    gap: var(--space-1);
  }
  .zrow > .zarrow { align-self: center; }
}

.znode {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-1);
}
.znode strong { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); line-height: 1.3; }
.znode span { font-size: var(--text-2xs); color: var(--text-subtle); line-height: 1.4; }

.znode--kernel { border: var(--border-width-strong) solid var(--cz-navy); }
.znode--review { border: var(--border-width-strong) solid var(--cz-royal); }
.znode--human  { border: var(--border-width-strong) solid var(--cz-ice); }
.znode--out    { border: var(--border-width-strong) solid var(--cz-grass); }

/* Escalation aside: an annotation on the path, not a step in it. */
.znote {
  align-self: center;
  background: var(--cz-ink-50);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-2xs); color: var(--text-muted); line-height: 1.4;
}
@media (min-width: 1100px) { .znote { max-width: 7rem; padding: var(--space-2); } }

.zarrow {
  display: flex; align-items: center; justify-content: center; gap: var(--space-1);
  color: var(--cz-ink-300);
  padding: var(--space-1) 0;
}
.zarrow svg { transform: rotate(90deg); }
.zarrow span { font-size: var(--text-2xs); color: var(--text-subtle); }
@media (min-width: 1100px) {
  .zarrow { flex-direction: column; gap: 2px; padding: 0; }
  .zarrow svg { transform: none; width: 18px; height: 18px; }
}

/* Neural vs symbolic pair cards */
.pair-note {
  margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-subtle);
}
.pair-note strong { color: var(--text-muted); font-weight: var(--fw-semibold); }


/* ---- 13. Engine section (dark) — mermaid diagram + figure row --------------------- */

.diagram-note { margin-top: var(--space-4); font-size: var(--text-xs); color: rgba(255,255,255,.55); text-align: center; }

/* Figure + companion card row under the diagram */
.hyper-follow { display: grid; gap: var(--space-8); margin-top: var(--space-16); }
@media (min-width: 900px) {
  .hyper-follow { grid-template-columns: 1fr 1.5fr; align-items: center; gap: var(--space-16); }
}
.dark-card {
  background: rgba(255,255,255,.06);
  border: var(--border-width) solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
}
.dark-card strong { display: block; color: var(--cz-white); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.dark-card p { font-size: var(--text-sm); color: rgba(255,255,255,.72); line-height: var(--leading-relaxed); }

/* ---- 14. Figures / stat callouts --------------------------------------------------- */

.figure-panel {
  display: grid; gap: var(--space-8); align-items: center;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-10);
}
@media (min-width: 768px) { .figure-panel { grid-template-columns: auto 1fr; gap: var(--space-12); } }

.figure {
  font-family: var(--font-mono); font-weight: var(--fw-semibold);
  font-size: clamp(2.75rem, 2rem + 3vw, var(--text-5xl));
  line-height: 1; color: var(--cz-royal); white-space: nowrap;
}
.figure__label { display: block; margin-top: var(--space-3); font-family: var(--font-sans); font-size: var(--text-sm); color: var(--text-muted); font-weight: var(--fw-medium); }

.field .figure { color: var(--cz-royal-300); }
.field .figure__label { color: rgba(255,255,255,.7); }

/* ---- 15. Comparison table ----------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: var(--border-width) solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 820px; }
.compare th, .compare td {
  text-align: left; vertical-align: top;
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border-width) solid var(--border-subtle);
  font-size: var(--text-sm); line-height: var(--leading-relaxed);
}
.compare thead th {
  font-weight: var(--fw-semibold); color: var(--text-strong); font-size: var(--text-xs);
  background: var(--cz-ink-25);
  position: sticky; top: 0;
}
.compare tbody th { font-weight: var(--fw-semibold); color: var(--text-strong); white-space: nowrap; }
.compare tbody th span { display: block; font-weight: var(--fw-book); font-size: var(--text-xs); color: var(--text-subtle); margin-top: 2px; white-space: normal; }
.compare td { color: var(--text-muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tr.is-cognaize { background: var(--cz-royal-50); }
.compare tr.is-cognaize td { color: var(--text-body); }

/* ---- 16. Glossary --------------------------------------------------------------------- */

.glossary { display: grid; gap: var(--space-6) var(--space-12); grid-template-columns: 1fr; }
@media (min-width: 768px) { .glossary { grid-template-columns: 1fr 1fr; } }
.glossary > div { border-top: var(--border-width) solid var(--border-subtle); padding-top: var(--space-5); }
.glossary dt { font-weight: var(--fw-semibold); color: var(--text-strong); margin-bottom: var(--space-2); }
.glossary dd { margin: 0; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ---- 16b. Tech-page components: callout, journey, stat grid, FAQ ------------------------ */

/* Callout example panel */
.callout {
  background: var(--cz-royal-50);
  border: var(--border-width) solid var(--cz-royal-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  max-width: 68ch;
  margin-block: var(--space-8);
}
.callout p { color: var(--cz-royal-900); line-height: var(--leading-relaxed); }

/* Numbered document journey */
.journey { list-style: none; margin: 0; padding: 0; max-width: 820px; counter-reset: step; }
.journey > li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-6); padding-bottom: var(--space-10); }
.journey > li:last-child { padding-bottom: 0; }
.journey > li::before {
  content: ""; position: absolute; left: 24px; top: 56px; bottom: var(--space-2);
  width: 1px; background: var(--border-default);
}
.journey > li:last-child::before { display: none; }
.journey__num {
  counter-increment: step;
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--surface-card); border: var(--border-width) solid var(--cz-royal-200);
  color: var(--cz-royal); font-family: var(--font-mono); font-weight: var(--fw-semibold);
  display: flex; align-items: center; justify-content: center;
}
.journey__num::before { content: counter(step); }
.journey .h4 { margin-bottom: var(--space-2); }
.journey p { color: var(--text-muted); line-height: var(--leading-relaxed); max-width: 62ch; }

/* Stat grid (2×2) */
.stat-grid { display: grid; gap: var(--space-10) var(--space-16); grid-template-columns: 1fr; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.figure small {
  font-family: var(--font-sans); font-weight: var(--fw-medium);
  font-size: .4em; letter-spacing: var(--tracking-normal); vertical-align: .35em;
}
.stat-grid .figure__label { max-width: 44ch; }

/* FAQ accordion (native details/summary) */
.faq-list { border-top: var(--border-width) solid var(--border-subtle); max-width: 820px; }
.faq { border-bottom: var(--border-width) solid var(--border-subtle); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  cursor: pointer; padding: var(--space-5) 0;
  font-weight: var(--fw-semibold); font-size: var(--text-lg); color: var(--text-strong);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cz-royal-600); }
.faq summary svg { flex: none; color: var(--text-subtle); transition: transform var(--dur-base) var(--ease-out); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq > p { padding-bottom: var(--space-6); color: var(--text-muted); line-height: var(--leading-relaxed); max-width: 66ch; }

/* ---- 17. Trust strip -------------------------------------------------------------------- */

.trust {
  border-top: var(--border-width) solid var(--border-subtle);
  border-bottom: var(--border-width) solid var(--border-subtle);
  background: var(--surface-card);
}
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6);
  padding-block: var(--space-8);
}
.trust__icon { color: var(--cz-royal); flex: none; }
.trust__text { flex: 1 1 380px; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.trust__meta { display: flex; align-items: center; gap: var(--space-5); }

/* ---- 18. CTA band ------------------------------------------------------------------------- */

.cta-band { text-align: center; padding-block: var(--space-20); }
@media (min-width: 1024px) { .cta-band { padding-block: var(--space-24); } }
.cta-band .h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin: var(--space-5) auto 0; }
.cta-band .btn { margin-top: var(--space-8); }

/* ---- 19. Footer ------------------------------------------------------------------------------ */

.site-footer { background: var(--surface-inverse); color: rgba(255,255,255,.65); }
.site-footer a { color: rgba(255,255,255,.65); transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--cz-white); }

.site-footer__main {
  display: grid; gap: var(--space-12);
  padding-block: var(--space-16);
}
@media (min-width: 768px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr; } }

.site-footer__brand img { height: 20px; width: auto; margin-bottom: var(--space-5); }
.site-footer__brand p { font-size: var(--text-sm); max-width: 34ch; line-height: var(--leading-relaxed); }

.site-footer__col h4 {
  font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--cz-white);
  margin-bottom: var(--space-5);
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.site-footer__col a { font-size: var(--text-sm); }

.site-footer__legal {
  border-top: var(--border-width) solid rgba(255,255,255,.12);
  padding-block: var(--space-6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs);
}
.site-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-6); }

/* ---- 20. Reveal on scroll (quiet). Content is visible by default; JS adds
   .reveal-pending only to below-fold elements, then removes it on entry —
   so no-JS, pre-JS, and capture contexts always see the full page. ---------- */

[data-reveal] {
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].reveal-pending { opacity: 0; transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
  .btn, .card--interactive, .nav-flyout { transition: none; }
}

/* ==========================================================================
   21. How-it-works diagram components (v4 visual redesign)
   All values trace to §2 tokens. Flow diagrams are Mermaid-authored
   (site/assets/diagrams/src/*.mmd), pre-rendered to brand-themed SVG and
   inlined so page fonts apply. No runtime mermaid.js.
   ========================================================================== */

/* ---- 21a. Mermaid diagram figures (SVGs pre-rendered from src/*.mmd) ------- */

.mermaid-fig { overflow-x: auto; }
.mermaid-fig svg { display: block; width: 100%; height: auto; min-width: 760px; }
@media (min-width: 1024px) { .mermaid-fig svg { min-width: 0; } }
/* Labels are sized by mermaid-cli against its own fallback font; Nebula Sans
   runs slightly wider, so step the rendered size down to stay inside nodes. */
.mermaid-fig svg .nodeLabel, .mermaid-fig svg .edgeLabel { font-size: 13px !important; }
.mermaid-fig svg .nodeLabel small, .mermaid-fig svg .edgeLabel small { font-size: 11px; }

/* PAF flow: define once → kernel translates → enforced everywhere */
.paf-flow { display: grid; gap: var(--space-4); }
.paf-flow > * { min-width: 0; }
@media (min-width: 1024px) {
  .paf-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: var(--space-3); }
}
.paf-step {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.paf-step--kernel { border-color: var(--cz-royal-200); box-shadow: var(--shadow-md); }
.paf-step__num { font-family: var(--font-mono); font-weight: var(--fw-medium); font-size: var(--text-xs); color: var(--cz-royal); }
.paf-step .h4 { margin: 0; }
.paf-step p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.paf-step__mark { width: 32px; height: 32px; background: var(--cz-royal); border-radius: var(--radius-full); }
.paf-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.paf-tag {
  font-size: var(--text-xs); font-weight: var(--fw-medium);
  color: var(--cz-royal-700); background: var(--cz-royal-50);
  border-radius: var(--radius-full); padding: 3px 12px;
}
.paf-flow .flow-arrow { align-self: center; }

/* ---- 21b. Neural / symbolic legend chips ---------------------------------- */

.legend { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-bottom: var(--space-8); }
@media (min-width: 768px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend__chip {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-4) var(--space-5);
}
.legend__dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex: none; margin-top: 7px; }
.legend__dot--neural { background: var(--cz-royal); }
.legend__dot--symbolic { background: var(--cz-navy); }
.legend__chip strong { display: block; font-weight: var(--fw-semibold); color: var(--text-strong); }
.legend__chip .tag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-subtle); font-weight: var(--fw-book); }
.legend__chip p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); margin-top: 2px; }

/* ---- 21f. Model fleet + data foundation ------------------------------------- */

.found { display: grid; gap: var(--space-10); }
@media (min-width: 1024px) { .found { grid-template-columns: 5fr 7fr; gap: var(--space-20); align-items: center; } }
.found__note { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--text-muted); max-width: 40ch; line-height: var(--leading-relaxed); }

.fleet { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .fleet { grid-template-columns: 1fr 1fr; } }
.fleet__chip {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: var(--space-4) var(--space-5);
}
@media (min-width: 640px) { .fleet__chip:last-child { grid-column: 1 / -1; } }
.fleet__chip svg { color: var(--cz-royal); flex: none; margin-top: 2px; }
.fleet__chip strong { display: block; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.fleet__chip span { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; line-height: 1.5; }


/* ---- 22. Compliance tile grid (security page) -------------------------------------------- */

.comp-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .comp-grid { grid-template-columns: repeat(3, 1fr); } }
.comp-tile {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.comp-tile strong { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
.comp-tile span { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }
.comp-tile--primary { border-color: var(--cz-royal); border-width: var(--border-width-strong); }

/* Credential wall (security page): borderless centered items, mark above label */
.cred-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10) var(--space-8); }
@media (min-width: 640px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } }
.cred-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); }
.cred-item__mark { height: 96px; width: auto; color: var(--text-strong); margin-bottom: var(--space-3); }
.cred-item strong { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
.cred-item span { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); max-width: 36ch; }


/* ---- 23. News & insights archive (listing, filters, pagination) ---------------- */

.news-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-5);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
  border-bottom: var(--border-width) solid var(--border-subtle);
}

.news-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); }

.news-filter { display: flex; flex-direction: column; gap: var(--space-2); }
.news-filter label {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
}
.news-filter select {
  appearance: none;
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--text-strong);
  background-color: var(--surface-card);
  /* Chevron drawn inline so the control needs no extra markup or image request. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237E7E94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-md);
  /* Symmetric padding so the centred label sits on the true centre of the control,
     and clears the chevron sitting in the right gutter. */
  padding: 0 var(--space-8);
  text-align: center; text-align-last: center;
  height: 42px; min-width: 172px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.news-filter select:hover { border-color: var(--border-strong); }

.news-clear { height: 42px; }
.news-count { font-size: var(--text-sm); color: var(--text-subtle); margin: 0; }

.news-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards are hidden by default and revealed a page at a time by news.js, so a
   no-JS reader still gets the full archive rather than an empty grid. */
.js .news-card { display: none; }
.js .news-card.is-active { display: flex; }

.news-card {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.news-card__media { aspect-ratio: 3 / 2; background: var(--cz-ink-50); overflow: hidden; }
.news-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__media-fallback { width: 100%; height: 100%; background: var(--cz-royal-50); }

.news-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-6); }

.news-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.news-card__meta time { font-size: var(--text-xs); color: var(--text-subtle); margin-left: auto; }

.tag {
  display: inline-flex; align-items: center;
  font-size: var(--text-2xs); font-weight: var(--fw-medium);
  padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--cz-ink-50); color: var(--text-muted);
  white-space: nowrap;
}
.tag--format { background: var(--cz-royal-50); color: var(--cz-royal-600); }

.news-card__title {
  font-size: var(--text-md); font-weight: var(--fw-semibold);
  line-height: var(--leading-snug); color: var(--text-strong);
  margin-bottom: var(--space-3);
}
.news-card__text {
  font-size: var(--text-sm); line-height: var(--leading-relaxed);
  color: var(--text-muted); margin: 0;
}
.news-card__more {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-5); padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--border-subtle);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-link);
}
.news-card__more svg { transition: transform var(--dur-fast) var(--ease-out); }
.news-card:hover .news-card__more svg { transform: translateX(3px); }

.news-empty { text-align: center; padding-block: var(--space-16); }
.news-empty p { color: var(--text-muted); margin-top: var(--space-2); }
.news-empty .btn { margin-top: var(--space-6); }

.pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-2); margin-top: var(--space-12);
}
.pagination button {
  min-width: 40px; height: 40px; padding: 0 var(--space-3);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--text-body);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.pagination button:hover:not(:disabled) { border-color: var(--border-strong); background: var(--cz-ink-25); }
.pagination button[aria-current="page"] {
  background: var(--cz-royal); border-color: var(--cz-royal); color: var(--text-on-brand);
}
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .pagination__gap { color: var(--text-subtle); padding: 0 var(--space-1); }

@media (max-width: 639px) {
  .news-filter select { min-width: 0; width: 100%; }
  .news-filter { flex: 1 1 100%; }
  .news-clear { width: 100%; }
}

/* ---- 24. News & insights detail pages (news/<slug>.html) ------------------
   One template for all four formats: dark .field hero carrying the meta,
   then a single-column reading measure on the page surface. Media formats
   (podcast / webinar / video) put an .embed player at the top of the column. */

.article-hero { padding-top: calc(var(--header-h) + var(--space-12)); padding-bottom: var(--space-12); }
@media (min-width: 1024px) {
  .article-hero { padding-top: calc(var(--header-h) + var(--space-16)); padding-bottom: var(--space-16); }
}

.article-back {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: rgba(255,255,255,.65);
  margin-bottom: var(--space-8);
  transition: color var(--dur-fast) var(--ease-out);
}
.article-back:hover { color: var(--cz-white); }
.article-back svg { transition: transform var(--dur-fast) var(--ease-out); }
.article-back:hover svg { transform: translateX(-3px); }

.article-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
/* .tag on the dark field needs its own contrast pass */
.article-hero .tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.78); }
.article-hero .tag--format { background: rgba(20,93,221,.38); color: var(--cz-royal-100); }
.article-hero__meta time { font-size: var(--text-xs); color: rgba(255,255,255,.55); }

.article-hero__title {
  font-weight: var(--fw-black);
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, var(--text-4xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-on-dark);
  max-width: 30ch;
}
.article-hero__byline { margin-top: var(--space-5); font-size: var(--text-sm); color: rgba(255,255,255,.6); }

/* Reading column */
.article { padding-block: var(--space-12); }
@media (min-width: 1024px) { .article { padding-block: var(--space-16); } }
.article__inner { max-width: 720px; margin-inline: auto; }

.article-body { font-size: 1.0625rem; line-height: var(--leading-relaxed); color: var(--text-body); }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2, .article-body h3, .article-body h4, .article-body h5 {
  font-weight: var(--fw-semibold); color: var(--text-strong); line-height: var(--leading-snug);
}
.article-body h2 { font-size: var(--text-2xl); margin-top: var(--space-10); }
.article-body h3 { font-size: var(--text-xl); margin-top: var(--space-8); }
.article-body h4, .article-body h5 { font-size: var(--text-lg); margin-top: var(--space-6); }
.article-body ul, .article-body ol { padding-left: 1.4em; display: grid; gap: var(--space-2); }
.article-body li::marker { color: var(--cz-royal-300); }
.article-body a {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--cz-royal-200);
  transition: color var(--dur-fast) var(--ease-out);
}
.article-body a:hover { color: var(--color-brand-strong); text-decoration-color: currentColor; }
.article-body img {
  height: auto; /* width/height attrs stay for CLS; don't let the attr height win */
  border-radius: var(--radius-lg);
  margin-inline: auto;
  margin-block: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.article-body p img { margin-block: var(--space-4); }
.article-body figure { margin-block: var(--space-8); }
.article-body figure img { margin-block: 0; }
.article-body figcaption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--text-subtle); text-align: center; }
.article-body blockquote {
  margin-block: var(--space-8);
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--cz-royal);
  background: var(--cz-royal-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  color: var(--cz-royal-900);
  font-size: var(--text-lg);
}
.article-body blockquote p { margin: 0; }
.article-body blockquote p + p { margin-top: var(--space-3); }
.article-body cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: var(--text-sm); color: var(--text-muted); }
.article-body hr { border: none; border-top: var(--border-width) solid var(--border-subtle); margin-block: var(--space-10); }
.article-body sup { line-height: 1; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.article-body table td {
  padding: var(--space-2) var(--space-4);
  border: var(--border-width) solid var(--border-subtle);
  vertical-align: top;
}
.article-body table td:first-child {
  white-space: nowrap;
  width: 1%;
  color: var(--text-muted);
}

/* Responsive player (YouTube / Vimeo / self-hosted) */
.embed { margin-block: var(--space-4) var(--space-10); }
.embed iframe, .embed video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius-lg);
  background: var(--cz-ink-900);
  box-shadow: var(--shadow-md);
}
.article-body .embed { margin-block: var(--space-8); }

/* Click-to-load video facade. Vimeo's CDN sets a cookie on the iframe document
   itself, and dnt=1 does not suppress it, so the player is only fetched once the
   visitor asks for it. Until then the page touches no third-party host. */
.video-facade { position: relative; display: block; }
.video-facade__poster {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--cz-ink-900);
  box-shadow: var(--shadow-md);
  margin: 0;
}
.video-facade__play {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  width: 100%; padding: 0;
  border: 0; border-radius: var(--radius-lg);
  background: none; color: var(--cz-white); cursor: pointer;
}
.js .video-facade__play { display: flex; }
.video-facade__badge {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem;
  border-radius: var(--radius-full);
  background: var(--cz-royal);
  box-shadow: var(--shadow-lg);
  transition: transform 150ms ease, background 150ms ease;
}
.video-facade__play:hover .video-facade__badge,
.video-facade__play:focus-visible .video-facade__badge {
  transform: scale(1.06);
  background: var(--cz-royal-600);
}
.video-facade__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-subtle);
}
@media (prefers-reduced-motion: reduce) {
  .video-facade__badge { transition: none; }
  .video-facade__play:hover .video-facade__badge,
  .video-facade__play:focus-visible .video-facade__badge { transform: none; }
}

/* Listen / watch links (podcasts, webinars) */
.listen-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-2) var(--space-8); }

/* People (podcast guests & hosts, webinar speakers) */
.people { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin-block: var(--space-6); }
@media (min-width: 640px) { .people { grid-template-columns: 1fr 1fr; } }
.person {
  display: flex; gap: var(--space-4); align-items: center;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-4) var(--space-5);
}
.person img { width: 64px; height: 64px; border-radius: var(--radius-full); object-fit: cover; flex: none; margin: 0; box-shadow: none; }
.person strong { display: block; font-size: var(--text-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.person span { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

/* End-of-article rail back to the archive */
.article-foot {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--border-subtle);
}
