/* =================================================================
   LUCID AI LABS — v0.3
   Replicating moves from resend.com + linear.app:
     · pure #000 canvas, no gradient noise
     · centered hero with massive product mock below (Linear)
     · floating pill notifications next to H1 (Linear)
     · small framed icon above each section title (Resend)
     · tech-stack pill row (Resend SDK row)
     · single chromatic accent applied surgically (violet)
     · huge vertical breathing room between sections
   ================================================================= */

:root {
  /* ── Type ── */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, 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: 4.5rem;
  --space-9: 6rem;
  --space-10: 9rem;
  --space-11: 12rem;

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ── Z scale ── */
  --z-content: 10;
  --z-nav: 100;

  /* ── Easings + durations ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 160ms;
  --dur-2: 240ms;
  --dur-3: 360ms;

  /* ── Layout ── */
  --nav-h: 60px;
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);
  --section-gap: clamp(7rem, 14vh, 14rem);
}

/* =================================================================
   COLOUR — DARK (signature)
   ================================================================= */

:root,
[data-theme='dark'] {
  color-scheme: dark;

  /* Lifted from pure #000 — buyer-tier audit (showcase 2026-05-05) flagged
     pure black as too aggressive for 50+ German clinic buyers. Slate-blue
     tint gives optical depth without introducing a second hue. Hero anchor
     surfaces stay deeper at --bg-deep for contrast. */
  --bg: #0F1015;
  --bg-deep: #050507;
  --bg-elev: #0c0c14;     /* card surface, the only step up */
  --bg-elev-2: #11111b;   /* nested surface inside cards */
  --bg-elev-3: #1A1A1F;   /* code blocks, app chrome */

  --fg: #F5F3FB;
  --fg-2: #A8A5B8;
  --fg-3: #7A7794;
  --fg-4: #4A4860;

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-3: rgba(255, 255, 255, 0.18);
  --border-violet: rgba(139, 124, 246, 0.32);
  --border-accent: rgba(139, 124, 246, 0.20);

  --accent: #8B7CF6;
  --accent-fg: #0A0A14;
  --accent-2: #B3A7F7;
  --accent-soft: rgba(139, 124, 246, 0.10);
  --accent-glow: rgba(139, 124, 246, 0.55);
  --accent-glow-soft: rgba(139, 124, 246, 0.18);
  --accent-tint: rgba(139, 124, 246, 0.08);

  /* Dot-grid texture token — applied in body::before */
  --dot-grid-color: rgba(255, 255, 255, 0.035);
  --dot-grid-size: 36px;

  --ok: #4ADE80;
  --warn: #FACC15;
  --err: #F87171;

  /* ── Legacy token aliases (showcase compat) ──
     Several inline styles across HTML pages still reference the old
     showcase token names (var(--surface), var(--r-card), --violet, etc.).
     Aliasing here resolves them to the new system instead of falling
     through to transparent / unstyled. */
  --surface: var(--bg-elev);
  --surface-2: var(--bg-elev-2);
  --r-card: var(--radius-md);
  --r-pill: var(--radius-pill);
  --text-primary: var(--fg);
  --text-muted: var(--fg-3);
  --violet: var(--accent);
}

/* =================================================================
   COLOUR — LIGHT (Daybreak)
   ================================================================= */

[data-theme='light'] {
  color-scheme: light;

  --bg: #FFFFFF;
  --bg-elev: #F8F8F8;
  --bg-elev-2: #F1F1F1;
  --bg-elev-3: #E8E8E8;

  --fg: #0A0A0C;
  --fg-2: #4A4A52;
  --fg-3: #71717A;
  --fg-4: #A1A1AA;

  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.12);
  --border-3: rgba(0, 0, 0, 0.18);

  --accent: #6D4ECC;
  --accent-fg: #FFFFFF;
  --accent-2: #5837C0;
  --accent-soft: rgba(109, 78, 204, 0.07);
  --accent-glow: rgba(109, 78, 204, 0.32);
  --accent-glow-soft: rgba(109, 78, 204, 0.10);

  /* Atmosphere tokens — same effects as dark, retuned for white canvas */
  --dot-grid-color: rgba(109, 78, 204, 0.16);

  --ok: #16A34A;
  --warn: #CA8A04;
  --err: #DC2626;
}

/* =================================================================
   RESET + BASE
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'ss03', 'cv11';
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--fg);
  background-color: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 360ms var(--ease-soft), color 240ms var(--ease-soft);
  position: relative;
}

/* Display-type letter-spacing safety net for any unclassed heading.
   Specific selectors like .hero__h1 (-0.048em), .h-section (-0.045em)
   override this. Body stays at -0.011em for paragraph rhythm. */
h1, h2 { letter-spacing: -0.028em; }
h3 { letter-spacing: -0.02em; }
h4, h5, h6 { letter-spacing: -0.015em; }

/* =================================================================
   ATMOSPHERIC LAYERS — ported from showcase live site (2026-05-07)
   Order (bottom up):
     -2 : body::before  — dot-grid texture
     -1 : body::after   — single violet pool top-centre + faint noise
     -1 : .hero-light-ray (slow-drifting violet beam, top-left)
     -1 : .bg-orbs      — 3 slow drifting blurred violet orbs
      0 : .cursor-reveal-grid — bright dots reveal around cursor
      1 : .cursor-spotlight   — cursor halo, mix-blend screen
      ≥10 : --z-content
   ================================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle at center, var(--dot-grid-color) 1px, transparent 1.5px);
  background-size: var(--dot-grid-size) var(--dot-grid-size);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 90%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    /* Single violet pool top-centre — single ambient source like Resend */
    radial-gradient(ellipse 60% 40% at 50% -8%, var(--accent-glow-soft), transparent 70%),
    /* Faint film-grain over the canvas — adds tactile texture */
    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 values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
[data-theme="light"] body::after {
  /* Lighter grain on white — keep violet pool, kill heavy film noise */
  background:
    radial-gradient(ellipse 60% 40% at 50% -8%, var(--accent-glow-soft), transparent 70%),
    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 values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Cursor spotlight (viewport-wide violet halo following cursor) ── */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    560px circle at var(--spot-x, 50%) var(--spot-y, 30%),
    rgba(139, 124, 246, 0.16),
    rgba(139, 124, 246, 0.05) 35%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: screen;
}
.cursor-spotlight.is-active { opacity: 1; }

/* ── Cursor reveal grid (bright dots inside cursor radius) ── */
.cursor-reveal-grid {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
    circle at center,
    var(--accent-2) 1.6px,
    transparent 2px
  );
  background-size: var(--dot-grid-size) var(--dot-grid-size);
  -webkit-mask-image: radial-gradient(
    520px circle at var(--rx, 50%) var(--ry, 50%),
    black 0%,
    rgba(0, 0, 0, 0.65) 50%,
    transparent 100%
  );
  mask-image: radial-gradient(
    520px circle at var(--rx, 50%) var(--ry, 50%),
    black 0%,
    rgba(0, 0, 0, 0.65) 50%,
    transparent 100%
  );
  opacity: 0.95;
  will-change: mask-position;
}

/* ── Hero light ray (slow-drifting violet beam) ── */
.hero-light-ray {
  position: fixed;
  top: -12%;
  left: -10%;
  width: 80vw;
  height: 95vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    ellipse 50% 75% at 22% 0%,
    var(--accent-glow),
    var(--accent-glow-soft) 28%,
    transparent 62%
  );
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: 0.65;
  will-change: transform;
  animation: hero-light-drift 32s ease-in-out infinite alternate;
}
@keyframes hero-light-drift {
  from { transform: translate(0, 0) rotate(-2deg); }
  to   { transform: translate(48px, 36px) rotate(2deg); }
}

/* ── Background orbs (3 slow-drifting blurred violet orbs) ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.42;
}
.bg-orb-a {
  width: 560px; height: 560px;
  top: -12%; left: -10%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.55), transparent 65%);
  animation: orb-drift-a 34s ease-in-out infinite alternate;
}
.bg-orb-b {
  width: 620px; height: 620px;
  top: 30%; right: -14%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.42), transparent 65%);
  animation: orb-drift-b 42s ease-in-out infinite alternate;
}
.bg-orb-c {
  width: 480px; height: 480px;
  bottom: -8%; left: 35%;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.38), transparent 65%);
  animation: orb-drift-c 38s ease-in-out infinite alternate;
}
@keyframes orb-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(12%, 6%, 0) scale(1.15); }
}
@keyframes orb-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10%, -8%, 0) scale(0.92); }
}
@keyframes orb-drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  100% { transform: translate3d(-8%, 10%, 0) scale(0.88); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight,
  .cursor-reveal-grid { display: none; }
  .hero-light-ray,
  .bg-orb { animation: none; }
}
@media (hover: none) {
  .cursor-spotlight,
  .cursor-reveal-grid { display: none; }
}
/* Light mode: same atmosphere stack, retuned for white canvas.
   Multiply blend lets the violet effects darken paper-style instead of
   washing out via screen blend (which only works on black). Opacity is
   pulled back so the canvas stays clean and editorial, not heavy. */
[data-theme="light"] .cursor-spotlight {
  mix-blend-mode: multiply;
  background: radial-gradient(
    560px circle at var(--spot-x, 50%) var(--spot-y, 30%),
    rgba(109, 78, 204, 0.18),
    rgba(109, 78, 204, 0.05) 35%,
    transparent 60%
  );
}
[data-theme="light"] .cursor-reveal-grid {
  background-image: radial-gradient(
    circle at center,
    rgba(109, 78, 204, 0.55) 1.6px,
    transparent 2px
  );
  opacity: 0.55;
}
[data-theme="light"] .hero-light-ray {
  mix-blend-mode: multiply;
  opacity: 0.45;
  background: radial-gradient(
    ellipse 50% 75% at 22% 0%,
    rgba(109, 78, 204, 0.32),
    rgba(109, 78, 204, 0.10) 28%,
    transparent 62%
  );
  filter: blur(60px);
}
[data-theme="light"] .bg-orb {
  mix-blend-mode: multiply;
  opacity: 0.30;
}
[data-theme="light"] .bg-orb-a {
  background: radial-gradient(circle, rgba(109, 78, 204, 0.42), transparent 65%);
}
[data-theme="light"] .bg-orb-b {
  background: radial-gradient(circle, rgba(109, 78, 204, 0.32), transparent 65%);
}
[data-theme="light"] .bg-orb-c {
  background: radial-gradient(circle, rgba(109, 78, 204, 0.28), transparent 65%);
}

/* Accent text — headline word with violet bloom (the "neon under the headline" trick) */
.text-accent,
.hero__h1 .accent {
  text-shadow:
    0 0 32px var(--accent-glow),
    0 0 64px var(--accent-glow-soft);
}

::selection { background: var(--accent); color: var(--accent-fg); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-3); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =================================================================
   LAYOUT PRIMITIVES
   ================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: var(--z-content);
}

/* Sections separated by HUGE breathing room (Linear move) */
.section {
  padding-block: var(--section-gap);
  position: relative;
  z-index: var(--z-content);
}

/* =================================================================
   NAV — pure black, restrained (resend + linear)
   ================================================================= */

/* Floating glass pill nav — sticky, rounded, blurred. Showcase pattern. */
.nav {
  position: sticky;
  top: 18px;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none; /* let inner pill capture clicks; gutters pass through */
}
.nav__inner {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1240px, 100%);
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(12, 14, 22, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
[data-theme="light"] .nav__inner {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 28px rgba(20, 14, 60, 0.08);
}
@media (max-width: 720px) {
  .nav { top: 12px; padding: 0 12px; }
  .nav__inner { padding: 8px 10px 8px 14px; gap: 10px; }
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.018em;
  color: var(--fg);
  transition: opacity var(--dur-2) var(--ease-soft);
}
.brand:hover { opacity: 0.75; }

/* Tiny LABS pill — sits next to brand wordmark, micro-size, mono caps */
.brand-labs-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(79, 209, 197, 0.1);
  border: 1px solid rgba(79, 209, 197, 0.35);
  border-radius: 3px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-labs-tag:hover { background: rgba(79, 209, 197, 0.2); }
.brand-labs-tag__arrow { font-size: 8px; opacity: 0.7; }
@media (max-width: 720px) {
  .brand-labs-tag { display: none; }
}


.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 12px rgba(0, 0, 0, 0.4);
}
.brand__mark svg { width: 14px; height: 14px; }
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(139, 124, 246, 0.45));
}

/* native audio player on dark canvas */
audio {
  color-scheme: dark;
  max-width: 100%;
}
.capability audio,
.demo-audio {
  width: 100%;
  margin-top: 1.25rem;
  display: block;
}

/* Numbered + Demo capability variants — when a capability contains either
   a numeric label or an audio element, switch from the icon+content grid
   to a single-column vertical flow so long titles don't wrap into a 1-char
   column. The default .capability grid only fits the icon-left variant. */
.capability:has(.capability__num),
.capability:has(audio),
.capability:has(.flow-dialog),
.capability:has(.section-label) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.capability:has(.capability__num) > *,
.capability:has(audio) > *,
.capability:has(.flow-dialog) > *,
.capability:has(.section-label) > * {
  width: 100%;
}
.capability:has(.capability__num) > .capability__num,
.capability:has(audio) > .capability__num,
.capability:has(.flow-dialog) > .capability__num,
.capability:has(.section-label) > .capability__num,
.capability:has(.capability__num) > .section-label,
.capability:has(.section-label) > .section-label {
  width: auto;
}
.capability__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  margin: 0 0 0.25rem;
}
.capability__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin: 0;
  color: var(--fg);
}
.capability:has(audio) .capability__body,
.capability:has(.capability__num) .capability__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.capability:has(audio) audio {
  margin-top: auto;
}

.demo-disclaimer {
  text-align: center;
  opacity: 0.55;
  font-size: 0.875rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
}

/* ── Live-demo call block (replaces audio Hörproben) ── */
.demo-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin: 0 auto var(--space-8);
  text-align: center;
}
.demo-call__num {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  max-width: 100%;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
  color: var(--fg);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-soft);
}
.demo-call__num:hover { color: var(--accent-2); }
.demo-live {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: demoPulse 2.4s var(--ease-out) infinite;
}
@keyframes demoPulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 13px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.demo-call__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fg-3);
}
.demo-cheat-head {
  max-width: 52ch;
  margin: 0 auto var(--space-5);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}

/* ── Phrasebook: what you can say to Lina ── */
.demo-script {
  list-style: none;
  margin: 0 auto var(--space-7);
  padding: 0;
  max-width: 660px;
  border-top: 1px solid var(--border);
}
.demo-script__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--space-5);
  align-items: baseline;
  padding: var(--space-5) var(--space-2);
  border-bottom: 1px solid var(--border);
}
.demo-script__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 0.2em;
}
.demo-script__say {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.demo-script__does {
  display: flex;
  gap: 0.5em;
  margin: 0.55rem 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
}
.demo-script__does::before {
  content: "\2192";
  flex: none;
  color: var(--accent);
}
@media (max-width: 560px) {
  .demo-script__row {
    grid-template-columns: 1fr;
    gap: var(--space-2) 0;
    padding: var(--space-4) 0;
  }
  .demo-script__idx { padding-top: 0; }
}
.brand__mark:has(img) { background: none !important; border: 0 !important; border-radius: 50%; }
.brand__mark:has(img)::after { display: none; }
.brand__mark--legacy::after {
  /* legacy violet corner accent (pre-logo placeholder) */
  content: '';
  position: absolute;
  inset: auto 3px 3px auto;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
}

.brand__sub { color: var(--fg-3); font-weight: 400; }

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  justify-self: center;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--fg-2);
  transition: color var(--dur-2) var(--ease-soft),
              background-color var(--dur-2) var(--ease-soft);
}
.nav__link:hover {
  color: var(--fg);
  background: rgba(139, 124, 246, 0.12);
}

@media (min-width: 880px) { .nav__links { display: inline-flex; } }

.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  color: var(--fg-2);
  transition: color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft);
}
.theme-toggle:hover { color: var(--fg); background: var(--bg-elev); }
.theme-toggle svg { width: 14px; height: 14px; }
[data-theme='dark'] .theme-toggle .sun { display: block; }
[data-theme='dark'] .theme-toggle .moon { display: none; }
[data-theme='light'] .theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .moon { display: block; }

/* ── Lang switch (EN/DE pill, sits next to theme toggle) ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lang-switch__opt {
  position: relative;
  height: 100%;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--fg-3);
  transition: color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft);
}
.lang-switch__opt:hover { color: var(--fg); }
.lang-switch__opt.is-active {
  color: var(--fg);
  background: var(--bg-elev-2);
}

/* =================================================================
   BUTTONS — small + restrained (resend uses tiny CTAs)
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  border: 1px solid transparent;
  transition: transform var(--dur-1) var(--ease-spring),
              background-color var(--dur-2) var(--ease-soft),
              border-color var(--dur-2) var(--ease-soft),
              color var(--dur-2) var(--ease-soft);
}
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    height: auto;
    min-height: 44px;
    padding-block: 10px;
  }
  .btn--lg {
    min-height: 50px;
    padding-block: 12px;
  }
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 24px rgba(139, 124, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--fg);
}
.btn--ghost:hover {
  background: var(--bg-elev);
  border-color: var(--border-3);
  transform: translateY(-1px);
}
.btn--ghost:active { transform: scale(0.97); }

.btn {
  transition:
    background 200ms cubic-bezier(.2,.8,.2,1),
    color 200ms cubic-bezier(.2,.8,.2,1),
    border-color 200ms cubic-bezier(.2,.8,.2,1),
    transform 200ms cubic-bezier(.2,.8,.2,1),
    box-shadow 200ms cubic-bezier(.2,.8,.2,1);
}

.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; gap: 10px; }
.btn--lg .btn__arrow { width: 14px; height: 14px; }
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }

.btn__arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-2) var(--ease-spring);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-chev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--dur-2) var(--ease-soft), gap var(--dur-2) var(--ease-spring);
}
.link-chev:hover { color: var(--fg); gap: 8px; }
.link-chev svg { width: 12px; height: 12px; }

/* =================================================================
   ANNOUNCE PILL (above hero)
   ================================================================= */

.announce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--fg-2);
  transition: border-color var(--dur-2) var(--ease-soft);
}
.announce:hover { border-color: var(--border-2); color: var(--fg); }
.announce__chip {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.announce__arrow { color: var(--fg-3); width: 12px; height: 12px; }

/* =================================================================
   HERO — centered (Linear style)
   ================================================================= */

.hero {
  padding-top: clamp(5rem, 11vh, 8.5rem);
  padding-bottom: clamp(4rem, 7vh, 6rem);
  text-align: center;
}

.hero__inner {
  max-width: 920px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-5);
  justify-items: center;
}

.hero__h1 {
  font-size: clamp(2.8rem, 6.8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.04;
  color: var(--fg);
  margin: 0;
  max-width: 17ch;
}

.hero__h1 .accent {
  color: var(--accent-2);
  font-weight: 500;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0;
}

.hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-2);
}

/* Trust pills row — sits below CTAs in the hero */
.hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  justify-content: center;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.hero-trust svg {
  width: 13px;
  height: 13px;
  color: var(--ok);
  flex-shrink: 0;
}

/* Floating notification chips next to the H1 — Linear's "issue applied" move */
.float-chips {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  height: 0;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: -0.005em;
  color: var(--fg-2);
  white-space: nowrap;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.float-chip .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
.float-chip.is-warn .dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.float-chip.is-violet .dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.float-chip--a { top: -120px; left: -20px; }
.float-chip--b { top: -60px; right: 0px; }
.float-chip--c { top: 40px; left: 60px; }

@media (max-width: 980px) {
  .float-chips { display: none; }
}

/* =================================================================
   PRODUCT MOCK — the centerpiece (Linear move)
   A polished chatbot admin UI screenshot
   ================================================================= */

.mock-wrap {
  margin-top: clamp(4rem, 7vh, 7rem);
  padding-inline: var(--container-pad);
  position: relative;
  z-index: var(--z-content);
  isolation: isolate;
}

.mock-wrap::before {
  /* Subtle violet glow under the mock */
  content: '';
  position: absolute;
  inset: 30% 10% -10% 10%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.mock {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  background-color: #0c0c14; /* explicit solid — never inherit transparency */
  background-image: linear-gradient(180deg, rgba(139,124,246,0.04) 0%, transparent 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-3);
}
[data-theme='light'] .mock {
  background-color: #F8F8F8;
  background-image: linear-gradient(180deg, rgba(139,124,246,0.05) 0%, transparent 40%);
}

[data-theme='light'] .mock {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 80px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--border-2);
}

/* Top chrome — fake browser */
.mock__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}

.mock__dots { display: inline-flex; gap: 6px; }
.mock__dots i {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-elev-3);
}

.mock__url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  flex: 1;
  text-align: center;
  letter-spacing: -0.005em;
}
.mock__url .lock { color: var(--ok); margin-right: 6px; }

/* Body — sidebar | content | signals */
.mock__body {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  min-height: 540px;
}

@media (max-width: 1080px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__sidebar, .mock__signals { display: none; }
}

/* Sidebar */
.mock__sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-elev-2);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12.5px;
}

.mock__seclabel {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.mock__seclabel:first-child { margin-top: 0; }

.mock__navrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--fg-2);
  font-weight: 400;
}
.mock__navrow.is-active {
  background: var(--bg-elev-3);
  color: var(--fg);
  font-weight: 500;
}
.mock__navrow .ico {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-3);
}
.mock__navrow.is-active .ico { background: var(--accent); border-color: transparent; }
.mock__navrow .badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-elev-3);
  color: var(--fg-3);
  padding: 1px 6px;
  border-radius: 100px;
}
.mock__navrow.is-active .badge { background: var(--accent-soft); color: var(--accent-2); }

/* Conversation pane */
.mock__chat {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.mock__chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mock__chat-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock__chat-title .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.mock__chat-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mock__chat-meta .live::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: 1px;
}

.bubble {
  max-width: 80%;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.bubble--bot {
  align-self: flex-start;
  background: var(--bg-elev-2);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.bubble--system {
  align-self: stretch;
  text-align: center;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  padding: 4px 0;
  letter-spacing: 0.04em;
}
.bubble--system .accent { color: var(--accent-2); }
.bubble .meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-top: 5px;
}
.bubble--user .meta { color: rgba(10, 10, 20, 0.6); }

/* Signals pane */
.mock__signals {
  border-left: 1px solid var(--border);
  background: var(--bg-elev-2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mock__sig {
  display: grid;
  gap: 6px;
}
.mock__sig-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.mock__sig-label .v { color: var(--fg); font-weight: 500; }
.mock__sig-bar {
  position: relative;
  height: 4px;
  background: var(--bg-elev-3);
  border-radius: 100px;
  overflow: hidden;
}
.mock__sig-bar > i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: 100px;
  transition: width 700ms var(--ease-spring), background 240ms var(--ease-soft);
}
.mock__sig-bar > i.is-low { background: var(--err); }
.mock__sig-thresh {
  position: absolute;
  top: -2px; bottom: -2px;
  left: 75%;
  width: 1px;
  background: var(--fg-4);
}

.mock__divider {
  height: 1px;
  background: var(--border);
  margin: -4px 0;
}

.mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: -0.005em;
  padding: 4px 0;
}
.mock__row .v { color: var(--fg); font-weight: 500; }
.mock__row .v.ok { color: var(--ok); }
.mock__row .v.no { color: var(--err); }

/* =================================================================
   LOGO LOOP — vanilla port of React Bits LogoLoop
   Pattern: wrapper has fade mask, track contains 2x identical lists,
   animates translateX 0 → -50% linearly, paused on hover.
   ================================================================= */

.logoloop {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: var(--space-9);
  margin-bottom: var(--space-2);
  padding-block: var(--space-3);
  /* Fade masks on left + right (Resend-style logos strip vibe) */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logoloop__lead {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--space-5);
}

.logoloop__track {
  display: flex;
  width: max-content;
  animation: logoloop-scroll 38s linear infinite;
  will-change: transform;
}

.logoloop:hover .logoloop__track,
.logoloop:focus-within .logoloop__track {
  animation-play-state: paused;
}

.logoloop__list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.logoloop__item {
  flex-shrink: 0;
  padding-inline: clamp(1.4rem, 3vw, 2.6rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  color: var(--fg-3);
  transition: color var(--dur-2) var(--ease-soft), transform var(--dur-2) var(--ease-spring);
  cursor: default;
}

.logoloop__node:hover {
  color: var(--fg);
  transform: scale(1.08);
}

.logoloop__node svg {
  width: auto;
  height: 28px;
  max-width: 120px;
}

.logoloop__name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: inherit;
}

@keyframes logoloop-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logoloop__track { animation: none; }
}

/* =================================================================
   SECTION ANCHOR — small framed icon above titles (Resend move)
   ================================================================= */

.section-head {
  display: grid;
  gap: var(--space-4);
  text-align: center;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

.anchor {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px var(--border) inset,
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-soft);
}
.anchor::before {
  /* top edge highlight (the "framed" feel from Resend's icon cards) */
  content: '';
  position: absolute;
  inset: 0 8px auto 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.anchor::after {
  /* inner glass facet */
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
}
.anchor svg { width: 28px; height: 28px; position: relative; z-index: 1; stroke-width: 1.6; }

.h-section {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
  max-width: 22ch;
}
.h-section .accent { color: var(--accent-2); font-weight: 500; }
.h-section .fg-2 { color: var(--fg-2); font-weight: 400; }

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0;
}

/* =================================================================
   SAFEGUARDS — typographic 2x2 grid
   ================================================================= */

.guards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 880px) {
  .guards { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}

.guard {
  position: relative;
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}
.guard:hover { border-color: var(--border-2); background: var(--bg-elev-2); }

.guard__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  padding-top: 4px;
  white-space: nowrap;
}

.guard__name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

.guard__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

/* =================================================================
   SERVICES — three cards, deeper
   ================================================================= */

.offerings {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 880px) {
  .offerings { grid-template-columns: repeat(3, 1fr); }
}

.offer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 260px;
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
  position: relative;
  overflow: hidden;
}
.offer:hover { border-color: var(--border-2); background: var(--bg-elev-2); }

.offer__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border-2);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow var(--dur-2) var(--ease-soft);
}
.offer__icon::before {
  content: '';
  position: absolute;
  inset: 0 6px auto 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.offer:hover .offer__icon {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 50px var(--accent-soft);
}
.offer__icon svg { width: 26px; height: 26px; stroke-width: 1.6; position: relative; z-index: 1; }

.offer__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: var(--space-3) 0 0;
}

.offer__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}

.offer__tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.offer__tag .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
}
.offer__tag.is-soon .dot { background: var(--warn); }

/* =================================================================
   CASE — Lucid showcase (asymmetric, Resend-feel)
   ================================================================= */

.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.case::before {
  content: '';
  position: absolute;
  inset: -50% 60% auto -10%;
  height: 200%;
  background: radial-gradient(ellipse 40% 40% at 50% 50%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

@media (min-width: 880px) {
  .case { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: clamp(2.5rem, 5vw, 4rem); }
}

.case__copy { display: grid; gap: var(--space-3); position: relative; }

.case__h {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0;
}
.case__h .accent { color: var(--accent-2); font-weight: 500; }

.case__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 50ch;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-5);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.case__metric-v {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.case__metric-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}

.case__cta {
  display: inline-flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.case__visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-2);
  position: relative;
  overflow: hidden;
}

.case__visual::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.case__visual .k { color: var(--accent-2); }
.case__visual .s { color: var(--ok); }
.case__visual .c { color: var(--fg-4); }
.case__visual .n { color: var(--warn); }
.case__visual .cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: -2px;
  animation: cursor-blink 1s steps(2, end) infinite;
}
@keyframes cursor-blink { to { opacity: 0; } }

/* =================================================================
   CTA
   ================================================================= */

.cta {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-elev);
  position: relative;
  overflow: hidden;
}

.cta__h {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 auto var(--space-3);
  max-width: 22ch;
}
.cta__h .accent { color: var(--accent-2); font-weight: 500; }

.cta__sub {
  font-size: 15.5px;
  color: var(--fg-2);
  margin: 0 auto var(--space-5);
  max-width: 48ch;
  line-height: 1.6;
}

.cta__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* =================================================================
   FOOTER
   ================================================================= */

/* Section dividers — were used as 1px gray rules between sections.
   Killed sitewide per Fabi: section padding alone provides the rhythm. */
hr { display: none; }

/* Footer — single tight row: lockup · inline links · copyright */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-block: 28px 24px;
  margin-top: var(--space-9);
  /* Force opaque: z-index above atmospheric layers + isolate stacking context
     so .bg-orbs / dot-grid (z-index: -1/-2 fixed) cannot show through. */
  position: relative;
  z-index: var(--z-content);
  isolation: isolate;
}
[data-theme="light"] .footer { background: var(--bg-elev-2); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.footer__lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}
.footer__mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}
.footer__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 13.5px;
  color: var(--fg);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  font-size: 12.5px;
}
.footer__links a,
.footer__links button {
  color: var(--fg-3);
  transition: color var(--dur-2) var(--ease-soft);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer__links a:hover,
.footer__links button:hover { color: var(--fg); }

.footer__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-4);
}

@media (max-width: 720px) {
  .footer__copy { margin-left: 0; width: 100%; }
}

/* =================================================================
   PAGE — VOICE AGENT specific blocks
   ================================================================= */

/* Trust strip — three pillars under the hero on /voice-agent/ */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
@media (min-width: 720px) {
  .trust-strip {
    /* Asymmetric bento: first pillar is the headline statement, others are supporting */
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.trust-pillar {
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 220ms cubic-bezier(.2,.8,.2,1), background 220ms cubic-bezier(.2,.8,.2,1), transform 220ms cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.trust-pillar:hover {
  border-color: var(--border-2);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
/* First pillar gets a subtle violet gradient sheen — earns the larger column */
.trust-strip > .trust-pillar:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(139, 124, 246, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.trust-pillar > * { position: relative; z-index: 1; }
.trust-pillar__num {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  line-height: 0.95;
}
.trust-strip > .trust-pillar:first-child .trust-pillar__num {
  font-size: 56px;
}
.trust-pillar__head {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.trust-pillar__body {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* Pain stats — 3 large metric blocks */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
}
.pain-card {
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}
.pain-card:hover { border-color: var(--border-2); background: var(--bg-elev-2); }
.pain-card__stat {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--space-3);
}
.pain-card__head {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}
.pain-card__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* Capabilities — list with mono numerals */
.capabilities {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 880px) {
  .capabilities { grid-template-columns: repeat(2, 1fr); }
}
.capability {
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  transition:
    border-color 240ms cubic-bezier(.2,.8,.2,1),
    background 240ms cubic-bezier(.2,.8,.2,1),
    transform 240ms cubic-bezier(.2,.8,.2,1);
}
.capability:hover {
  border-color: var(--border-2);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.capability__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}
.capability__icon svg { width: 20px; height: 20px; }
.capability__head {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0 0 4px;
}
.capability__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* Pricing tiers — 3 cards with featured center */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}
@media (min-width: 1100px) {
  .tiers { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
}
/* 3-tier layout (DE pages, Starter dropped). Compound selector outranks base
   .tiers so it wins regardless of source order / media query. EN pages keep 4-col. */
@media (min-width: 880px) {
  .tiers.tiers--3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    max-width: 1080px;
    margin-inline: auto;
  }
}
.tier {
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition:
    border-color 240ms cubic-bezier(.2,.8,.2,1),
    background 240ms cubic-bezier(.2,.8,.2,1),
    transform 240ms cubic-bezier(.2,.8,.2,1),
    box-shadow 240ms cubic-bezier(.2,.8,.2,1);
}
.tier:hover {
  border-color: var(--border-2);
  background: var(--bg-elev-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .tier:hover {
  box-shadow: 0 8px 24px rgba(10, 10, 12, 0.06);
}
.tier--featured {
  border-color: var(--border-violet);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 50%),
    var(--bg-elev);
  box-shadow: 0 0 0 1px var(--border-accent), 0 16px 40px rgba(0, 0, 0, 0.4);
}
.tier__badge {
  position: absolute;
  top: -10px;
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-fg);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tier__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0;
}
.tier__price {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tier__price .currency { font-size: 18px; color: var(--fg-3); margin-right: 4px; }
.tier__price .per { font-size: 14px; color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.tier__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.tier__list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  display: grid;
  gap: var(--space-2);
  font-size: 13.5px;
  color: var(--fg-2);
}
.tier__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}
.tier__list svg {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
  margin-top: 4px;
}
.tier__cta {
  margin-top: auto;
  padding-top: var(--space-3);
}

/* FAQ — disclosure pattern */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elev);
  overflow: hidden;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: 0; }
.faq__summary {
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: background var(--dur-2) var(--ease-soft);
  list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary:hover { background: var(--bg-elev-2); }
.faq__summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-3);
  transition: transform var(--dur-2) var(--ease-spring), color var(--dur-2) var(--ease-soft);
}
.faq__item[open] .faq__summary::after {
  content: '−';
  color: var(--accent-2);
}
.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
.faq__answer p { margin: 0 0 var(--space-3); }
.faq__answer p:last-child { margin: 0; }

/* =================================================================
   LEGAL PAGES — long-form prose typography
   ================================================================= */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
}
.legal__head {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.legal__head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal__head .eyebrow::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--accent);
}
.legal h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: var(--space-3) 0 var(--space-2);
}
.legal__head time, .legal__head .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.legal__body { font-size: 15.5px; line-height: 1.7; color: var(--fg-2); }
.legal__body h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal__body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: var(--space-5) 0 var(--space-2);
}
.legal__body p { margin: 0 0 var(--space-3); max-width: 68ch; }
.legal__body ul, .legal__body ol { margin: 0 0 var(--space-3); padding-left: var(--space-5); }
.legal__body li { margin-bottom: var(--space-2); max-width: 68ch; }
.legal__body a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--accent-2); }
.legal__body strong { color: var(--fg); font-weight: 500; }
.legal__body code { font-family: var(--font-mono); font-size: 0.92em; background: var(--bg-elev); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); }
.legal__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: var(--space-4) 0;
}
.legal__body th, .legal__body td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal__body th { font-weight: 500; color: var(--fg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.legal__toc {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}
.legal__toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--space-2);
}
.legal__toc ol { margin: 0; padding-left: var(--space-5); display: grid; gap: 4px; }
.legal__toc a { color: var(--fg-2); font-size: 14px; }
.legal__toc a:hover { color: var(--accent-2); }

/* Footer-link button (for "Cookie settings" reopen) */
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-2) var(--ease-soft);
}
.footer-link-btn:hover { color: var(--fg); }

/* =================================================================
   COOKIE BANNER — toast + panel
   ================================================================= */

.cookie-toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  z-index: 200;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 18px 18px 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border) inset;
  animation: cookie-slide-in 360ms var(--ease-spring);
}

@media (min-width: 720px) {
  .cookie-toast { left: 24px; right: auto; bottom: 24px; }
}

@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-toast-head { margin-bottom: 8px; }
.cookie-toast-head strong { font-size: 14px; font-weight: 500; color: var(--fg); }
.cookie-toast-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 var(--space-3);
}
.cookie-toast-body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cookie-toast-body a:hover { color: var(--accent-2); }

.cookie-row {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  flex: 1;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-spring), background-color var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft);
  border: 1px solid transparent;
  white-space: nowrap;
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.cookie-btn-primary:hover { background: var(--accent); color: var(--accent-fg); }
.cookie-btn-ghost {
  background: var(--bg-elev-2);
  border-color: var(--border-2);
  color: var(--fg);
}
.cookie-btn-ghost:hover { background: var(--bg-elev-3); border-color: var(--border-3); }
.cookie-btn-link {
  background: transparent;
  border: 0;
  color: var(--fg-2);
  font-weight: 500;
  flex: 0 0 auto;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cookie-btn-link:hover { color: var(--fg); }

.cookie-toast-link {
  background: none;
  border: 0;
  padding: 6px 0 0;
  margin-top: 4px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-soft);
}
.cookie-toast-link:hover { color: var(--fg); }

/* Panel (granular control) */

.cookie-panel {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  z-index: 200;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border) inset;
  animation: cookie-slide-in 360ms var(--ease-spring);
}

@media (min-width: 720px) {
  .cookie-panel { left: 24px; bottom: 24px; right: auto; max-width: 520px; }
}

.cookie-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-panel-head strong { font-size: 16px; font-weight: 500; color: var(--fg); }
.cookie-panel-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
}
.cookie-panel-intro {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
}
.cookie-panel-intro a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cookie-panel-intro a:hover { color: var(--accent-2); }

.cookie-toggles {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cookie-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cookie-toggle-meta { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cookie-toggle-meta strong { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.cookie-toggle-meta span { font-size: 12.5px; line-height: 1.5; color: var(--fg-2); }
.cookie-toggle-sub { color: var(--fg-3); font-weight: 400; }

.cookie-switch {
  appearance: none;
  flex-shrink: 0;
  width: 36px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev-3);
  border: 1px solid var(--border-2);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft);
}
.cookie-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: transform var(--dur-2) var(--ease-spring), background var(--dur-2) var(--ease-soft);
}
.cookie-switch.is-on { background: var(--accent); border-color: transparent; }
.cookie-switch.is-on::after { transform: translateX(14px); background: #fff; }
.cookie-switch.is-locked { cursor: not-allowed; opacity: 0.7; }

.cookie-actions {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.cookie-panel-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.005em;
}

/* =================================================================
   REVEAL — progressive enhancement
   ================================================================= */

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
html.js .reveal[data-d='1'] { transition-delay: 60ms; }
html.js .reveal[data-d='2'] { transition-delay: 120ms; }
html.js .reveal[data-d='3'] { transition-delay: 180ms; }
html.js .reveal[data-d='4'] { transition-delay: 240ms; }

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

/* =================================================================
   FOCUS
   ================================================================= */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* =================================================================
   MOBILE TUNE
   ================================================================= */

@media (max-width: 640px) {
  .nav__actions .btn--primary { display: none; }
  .nav__inner { gap: var(--space-3); }
  .brand__sub { display: none; }
  :root { --section-gap: 6rem; }
  .case__metrics { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .case__metric-v { font-size: 18px; }
}

/* =================================================================
   CONTACT PAGE
   ================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-label__opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .55;
  font-size: 12px;
  margin-left: 4px;
}

.form-input {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  color: var(--fg);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color var(--dur-2) var(--ease-soft),
              box-shadow var(--dur-2) var(--ease-soft);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-input--textarea {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239F9FA8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.form-submit-btn {
  width: 100%;
  justify-content: center;
}

.form-fallback {
  font-size: 12.5px;
  color: var(--fg-3);
  margin: 0;
}

.form-fallback a {
  color: var(--accent);
}

.form-feedback {
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.form-feedback--ok {
  color: var(--ok);
  margin: 0;
  font-size: 14px;
}

.form-feedback--error {
  color: var(--err);
  margin: 0;
  font-size: 14px;
}

/* Honeypot — hidden from users, visible to bots */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* ── Bonus checkboxes ── */
.bonus-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.bonus-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonus-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  cursor: pointer;
  line-height: 1.4;
}

.bonus-check-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.bonus-check-label:hover {
  color: var(--fg);
}

/* ── Promise sidecar ── */
.promise-sidecar {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-6));
}

.promise-sidecar__inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.promise-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.promise-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
}

.promise-item__icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.promise-item__head {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 2px;
}

.promise-item__body {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.5;
}

.sidecar-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 0;
}

.sidecar-founding-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidecar-founding-note__text {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
}

.sidecar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity var(--dur-1) var(--ease-soft);
}

.sidecar-link:hover { opacity: .75; }

/* ── Explore grid ── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 800px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .explore-grid { grid-template-columns: 1fr; }
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-2) var(--ease-soft),
              background var(--dur-2) var(--ease-soft);
}

.explore-card:hover {
  border-color: var(--border-2);
  background: var(--bg-elev-2);
}

.explore-card__icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.explore-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.explore-card__sub {
  font-size: 12.5px;
  color: var(--fg-3);
}

/* =================================================================
   VOICE AGENT PAGE — NEW CLASSES
   ================================================================= */

/* ── Section label (mono overline) ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--space-4);
}

/* ── h-sub (secondary heading) ── */
.h-sub {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--fg);
}

/* ── Conversation flow dialogs ── */
.flow-dialog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.flow-turn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
}

.flow-turn--patient {
  flex-direction: row;
}

.flow-turn--lucid {
  flex-direction: row-reverse;
}

.flow-who {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-4);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 48px;
  flex-shrink: 0;
}

.flow-turn--lucid .flow-who {
  text-align: right;
  color: var(--accent);
}

.flow-text {
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--fg);
  max-width: 75%;
}

.flow-turn--lucid .flow-text {
  background: var(--accent-soft);
  border-color: rgba(139, 124, 246, 0.18);
  margin-left: auto;
}

.flow-trailing {
  font-size: 12px;
  color: var(--fg-3);
  font-style: italic;
  padding-left: 58px;
  margin-top: -4px;
}

/* ── Software pills ── */
.software-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.software-pill {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  color: var(--fg-2);
  background: var(--bg-elev);
}

/* ── Versus (yes/no) columns ── */
.versus-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.versus-col--no {
  background: rgba(248, 113, 113, 0.04);
  border-color: rgba(248, 113, 113, 0.12);
}

.versus-col--yes {
  background: rgba(74, 222, 128, 0.04);
  border-color: rgba(74, 222, 128, 0.12);
}

.versus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.45;
}

/* ── Comparison table ── */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fg-3);
}

.compare-table__col--bad {
  color: var(--err);
}

.compare-table__col--good {
  color: var(--ok);
}

/* ── Math grid (ROI calculation) ── */
.math-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.math-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-2);
}

.math-row:last-child { border-bottom: 0; }

.math-row--total {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--fg);
}

.math-row--highlight {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 700;
}

/* ── Founding hero block ── */
.founding-hero {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
}

.founding-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(139, 124, 246, 0.07), transparent 60%);
  pointer-events: none;
}

.founding-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(139, 124, 246, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: var(--space-4);
}

.founding-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-3);
  line-height: 1.15;
}

.founding-hero__body {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 var(--space-5);
}

.founding-hero__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-5);
}

.founding-hero__line {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--fg);
}

.founding-hero__line--strike {
  text-decoration: line-through;
  color: var(--fg-3);
}

.founding-hero__line--muted {
  font-size: 13.5px;
  color: var(--fg-3);
  font-weight: 400;
}

.founding-hero__features {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.founding-hero__features li {
  font-size: 14px;
  color: var(--fg-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.founding-hero__exchange {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}

.founding-hero__exchange-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fg-3);
  margin: 0 0 6px;
}

.founding-hero__exit {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: var(--space-5);
}

.founding-hero__scarcity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--warn);
  font-family: var(--font-mono);
}

/* ===================================================================
   FOUNDING CARD — Life OS-style hero pricing card
   Big-number value-stacked layout: badge / strikethrough / huge price /
   subtitle / CTA / trust line / divider / "ALLES INKLUSIVE" checklist
   =================================================================== */

.founding-card {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid rgba(139, 124, 246, 0.32);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  box-shadow:
    0 0 0 1px rgba(139, 124, 246, 0.08),
    0 20px 60px -20px rgba(139, 124, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.founding-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(139, 124, 246, 0.5),
    rgba(139, 124, 246, 0.05) 40%,
    rgba(139, 124, 246, 0.5)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.founding-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(139, 124, 246, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.founding-card > * { position: relative; z-index: 1; }

.founding-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: rgba(139, 124, 246, 0.14);
  border: 1px solid rgba(139, 124, 246, 0.32);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.founding-card__strike {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.founding-card__strike s {
  color: var(--fg-3);
  font-weight: 500;
}

.founding-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 10px;
  line-height: 1;
  flex-wrap: wrap;
}
.founding-card__currency {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
  margin-right: 2px;
}
.founding-card__amount {
  font-size: clamp(64px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--fg);
  line-height: 0.95;
  text-shadow: 0 0 60px rgba(139, 124, 246, 0.22);
}
.founding-card__per {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  margin-left: 6px;
  margin-bottom: 12px;
}

.founding-card__subtitle {
  font-size: 14.5px;
  color: var(--fg-2);
  margin: 0 0 22px;
  text-align: center;
  line-height: 1.5;
}

.founding-card__cta {
  width: 100%;
  margin-bottom: 14px;
  font-weight: 600;
}

.founding-card__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0;
  padding: 8px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fg-2);
  width: fit-content;
}
.founding-card__guarantee svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.founding-card__center { text-align: center; }

.founding-card__divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 24px 0 20px;
}

.founding-card__included-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
  margin: 0 0 14px;
}

.founding-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.founding-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
}
.founding-card__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ── Bonus divider pill (horizontal lines + centered pill) ── */
.bonus-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px auto 28px;
  max-width: 720px;
}
.bonus-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.bonus-divider__pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-2);
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ── Bonus grid (value-stacked cards) ── */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
}

.bonus-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  text-align: center;
  transition: border-color 240ms var(--ease-soft), transform 240ms var(--ease-soft);
}
.bonus-card:hover {
  border-color: rgba(139, 124, 246, 0.28);
  transform: translateY(-2px);
}

.bonus-card__value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-elev-3);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.bonus-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 0 8px;
}

.bonus-card__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* ── Final CTA below bonuses ── */
.founding-cta-bottom {
  text-align: center;
  margin-top: 32px;
}
.founding-cta-bottom .btn { min-width: 280px; }
.founding-cta-bottom__scarcity {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warn);
  margin: 14px 0 0;
}

/* ── Light theme tweaks for founding-card ── */
[data-theme="light"] .founding-card {
  box-shadow:
    0 0 0 1px rgba(139, 124, 246, 0.08),
    0 14px 40px -16px rgba(139, 124, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ── Guarantee block ── */
.guarantee-block {
  padding: var(--space-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 100%;
}

.guarantee-block__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 8px;
}

.guarantee-block__body {
  font-size: 13.5px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.55;
}

/* ── Architecture flow ── */
.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.arch-flow::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.arch-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  position: relative;
}

.arch-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.arch-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 4px;
  padding-top: 8px;
}

.arch-step__body {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.5;
}

/* ── Tier extras ── */
.tier__setup {
  font-size: 12.5px;
  color: var(--fg-3);
  margin-top: 2px;
}

.tier__minutes {
  font-size: 12.5px;
  color: var(--fg-2);
  font-family: var(--font-mono);
}

/* ── Grid 6 — 3-col pain grid ── */
.grid-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 600px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
.pain-card__icon {
  font-size: 28px;
  display: block;
  margin-bottom: var(--space-3);
  line-height: 1;
}
.pain-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}

/* ── Demo stage / transcript ── */
.demo-stage {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
}
.demo-transcript {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.demo-turn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}
.demo-who {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 3px;
  white-space: nowrap;
  min-width: 72px;
}
.demo-turn--agent .demo-who { color: var(--accent-2); }
.demo-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.demo-turn--agent .demo-text { color: var(--fg); }
.demo-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-3);
  flex-wrap: wrap;
}
.demo-cta a:not(.btn) { color: var(--accent-2); text-decoration: none; font-weight: 500; }
.demo-cta a:not(.btn):hover { text-decoration: underline; }

/* ── Founder bio ── */
.bio-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-7);
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-7);
}
@media (max-width: 640px) {
  .bio-block { grid-template-columns: 1fr; }
}
.bio-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bio-initial {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  line-height: 1;
}
.bio-content { display: flex; flex-direction: column; gap: var(--space-3); }
.bio-role-pill {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.bio-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
.bio-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

/* ── Milestones ── */
.milestone-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .milestone-list { grid-template-columns: repeat(2, 1fr); }
}
.milestone-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}
.milestone-item:hover { border-color: var(--border-2); background: var(--bg-elev-2); }
.milestone-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  padding-top: 4px;
}
.milestone-item h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0 0 var(--space-2);
}
.milestone-item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* ── Differentiators ── */
.differentiator-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.differentiator-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}
.differentiator-list li:hover { border-color: var(--border-2); background: var(--bg-elev-2); }
.differentiator-list li span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: -0.01em;
}
.differentiator-list li p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  font-weight: 400;
}

/* ── Neural graph layout (static placeholder) ── */
.neural-graph-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .neural-graph-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
}
.neural-graph-frame {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(5, 5, 9, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
}
.neural-graph-warning {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  background: rgba(251, 191, 36, 0.06);
}
.neural-graph-warning-icon { font-size: 18px; line-height: 1.3; }
.neural-graph-warning strong { display: block; color: var(--fg); font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.neural-graph-warning p { margin: 0; color: var(--fg-2); font-size: 13px; line-height: 1.5; }
.neural-graph-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-5);
}
.neural-graph-caption span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); }
.neural-graph-caption strong { font-size: 15px; font-weight: 500; color: var(--fg); }
.neural-graph-panel {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.neural-panel-headline {
  font-size: clamp(1.1rem, 1.4vw + 0.5rem, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--fg);
  margin: 0;
}
.neural-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.neural-stat-tile {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.neural-stat-tile strong {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.neural-stat-tile--accent { border-color: var(--border-violet); }
.neural-stat-tile span { font-size: 12px; color: var(--fg-3); line-height: 1.4; }

/* =================================================================
   LUCID ARCHITECTURE GRAPH (live SVG, replaces static placeholder)
   ================================================================= */
.lucid-arch {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 980px) {
  .lucid-arch { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
}

.lucid-arch__viz {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 42%, rgba(139,124,246,0.10) 0%, rgba(139,124,246,0) 55%),
    radial-gradient(circle at 50% 42%, rgba(79,209,197,0.05) 0%, rgba(79,209,197,0) 65%),
    rgba(8, 6, 18, 0.96);
  overflow: hidden;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  isolation: isolate;
}
[data-theme="light"] .lucid-arch__viz {
  background:
    radial-gradient(circle at 50% 42%, rgba(139,124,246,0.10) 0%, rgba(139,124,246,0) 55%),
    radial-gradient(circle at 50% 42%, rgba(79,209,197,0.06) 0%, rgba(79,209,197,0) 65%),
    var(--bg-elev);
}

.lucid-arch__svg {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
}

.lucid-arch__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  align-self: flex-start;
}
.lucid-arch__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(79,209,197,0.7);
  animation: lucid-arch-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes lucid-arch-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.3); }
}

/* memory atoms (background dots) */
.lucid-arch__memories circle {
  fill: #4fd1c5;
  animation: lucid-twinkle 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.2;
}
@keyframes lucid-twinkle {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.7; }
}

/* orbit rings */
.lucid-arch__rings { opacity: 0.07; }
.lucid-arch__rings circle:nth-child(2) { opacity: 0.6; }

/* edges */
.lucid-arch__edges line {
  opacity: 0.55;
  stroke-dasharray: 4 9;
  animation: lucid-arch-flow 6s linear infinite;
}
@keyframes lucid-arch-flow {
  to { stroke-dashoffset: -260; }
}

/* outer nodes */
.lucid-arch__node .node-bg {
  fill: rgba(20, 18, 35, 0.9);
  stroke: rgba(139,124,246,0.35);
  stroke-width: 1;
  transition: stroke var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              fill var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] .lucid-arch__node .node-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(139,124,246,0.5);
}
.lucid-arch__node:hover .node-bg {
  stroke: var(--accent);
  fill: rgba(139,124,246,0.18);
}
.lucid-arch__node .node-icon { color: var(--accent-2); }
.lucid-arch__node .node-label {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  fill: var(--fg);
  text-anchor: middle;
}
.lucid-arch__node .node-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--fg-3);
  text-anchor: middle;
}
.lucid-arch__node--accent .node-bg {
  stroke: var(--accent);
  fill: rgba(139,124,246,0.22);
}
.lucid-arch__node--accent .node-icon { color: var(--accent); }

/* core */
.lucid-arch__core .core-orb {
  transform-origin: center;
  transform-box: fill-box;
  animation: lucid-arch-core 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.lucid-arch__core .core-halo {
  transform-origin: center;
  transform-box: fill-box;
  animation: lucid-arch-halo 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes lucid-arch-core {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.04); opacity: 0.92; }
}
@keyframes lucid-arch-halo {
  0%, 100% { transform: scale(1);    opacity: 0.45; }
  50%      { transform: scale(1.12); opacity: 0.85; }
}
.lucid-arch__core .core-label {
  fill: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: -0.02em;
}
.lucid-arch__core .core-sub {
  fill: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}

.lucid-arch__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lucid-arch__caption span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.lucid-arch__caption strong {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
}

.lucid-arch__panel {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.lucid-arch__headline {
  font-size: clamp(1.15rem, 1.4vw + 0.5rem, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--fg);
  margin: 0;
}
.lucid-arch__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.lucid-arch__legend li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.lucid-arch__legend li > div { flex: 1; min-width: 0; }
.lucid-arch__legend strong { color: var(--fg); font-weight: 600; }
.lucid-arch__legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.lucid-arch__legend .dot--violet { background: var(--accent); box-shadow: 0 0 10px rgba(139,124,246,0.6); }
.lucid-arch__legend .dot--teal   { background: var(--accent-2); box-shadow: 0 0 10px rgba(79,209,197,0.6); }
.lucid-arch__legend .dot--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(139,124,246,0.7);
}

@media (max-width: 720px) {
  .lucid-arch__viz { padding: var(--space-3); }
  .lucid-arch__svg { max-height: 440px; }
  .lucid-arch__node .node-label { font-size: 12px; }
  .lucid-arch__node .node-sub { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .lucid-arch__memories circle,
  .lucid-arch__edges line,
  .lucid-arch__core .core-orb,
  .lucid-arch__core .core-halo,
  .lucid-arch__pill-dot,
  .lucid-arch__pulses circle { animation: none !important; }
  .lucid-arch__pulses { display: none; }
}

/* ── MCP page ── */
.mcp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: var(--space-5);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
}
.mcp-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) { .mcp-stat-strip { grid-template-columns: repeat(4, 1fr); } }
.mcp-stat {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mcp-stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}
.mcp-stat-label { font-size: 13px; color: var(--fg-3); }
.mcp-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .mcp-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mcp-tools-grid { grid-template-columns: repeat(3, 1fr); } }
.mcp-tool {
  padding: var(--space-5) var(--space-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  transition: border-color var(--dur-2) var(--ease-soft);
}
.mcp-tool:hover { border-color: var(--border-2); }
@media (min-width: 960px) { .mcp-tool-wide { grid-column: span 3; } }
.mcp-tool-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  padding-top: 3px;
}
.mcp-tool-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}
.mcp-tool p { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.mcp-arch {
  padding: var(--space-7) var(--space-6);
}
.mcp-arch-flow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}
.mcp-arch-row { display: flex; align-items: center; gap: var(--space-3); }
.mcp-arch-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mcp-arch-node strong { font-size: 14px; font-weight: 500; color: var(--fg); }
.mcp-arch-node span { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-3); }
.mcp-arch-arrow { font-size: 20px; color: var(--fg-3); }
.mcp-arch-note { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0; border-top: 1px solid var(--border); padding-top: var(--space-5); }
.mcp-arch-note strong { color: var(--fg); }
.mcp-install {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.mcp-install-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.mcp-install-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.mcp-install-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: default;
}
.mcp-install-tab-active { color: var(--fg); background: var(--bg-elev); }
.mcp-install-hint { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.mcp-install-pre { margin: 0; padding: var(--space-6); overflow-x: auto; }
.mcp-install-pre code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--fg-2); }
.mcp-cat-list { display: flex; flex-direction: column; gap: var(--space-2); }
.mcp-cat-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 480px) { .mcp-cat-row { grid-template-columns: 1fr auto; } .mcp-cat-track { display: none; } }
.mcp-cat-name { font-size: 14px; color: var(--fg-2); }
.mcp-cat-track { height: 4px; background: var(--bg-elev-2); border-radius: 2px; overflow: hidden; }
.mcp-cat-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.mcp-cat-count { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); text-align: right; min-width: 42px; }
.cross-link-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .cross-link-strip { grid-template-columns: repeat(2, 1fr); } }
.cross-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-6) var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}
.cross-link:hover { border-color: var(--border-2); background: var(--bg-elev-2); }
.cross-link-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); }
.cross-link-title { font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: -0.015em; }
.cross-link-arrow { font-size: 13px; color: var(--fg-3); }
.mcp-cta {
  text-align: center;
  padding: var(--space-10) var(--space-7);
}
.mcp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; margin: var(--space-3) 0; }
.mcp-cta p { font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0 auto var(--space-6); max-width: 56ch; }
.detail-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.detail-block h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.022em; color: var(--fg); margin: 0 0 var(--space-2); }
.detail-block p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .capability-grid { grid-template-columns: repeat(3, 1fr); } }
.research-title-accent { color: var(--accent-2); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; margin-top: var(--space-6); }
.primary-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft);
}
.primary-button:hover { background: var(--accent-2); color: var(--bg); }
.secondary-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft);
}
.secondary-button:hover { border-color: var(--fg-3); color: var(--fg); }
.research-hero {
  padding-top: var(--space-10);
  padding-bottom: var(--space-8);
}
.research-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 var(--space-4);
}
.research-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0;
}
.page-detail { padding-bottom: var(--space-10); }
.page-section {
  max-width: var(--content-max);
  margin: 0 auto var(--space-10);
  padding: 0 var(--space-5);
}
.section-heading { margin-bottom: var(--space-7); }
.section-heading h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; margin: var(--space-2) 0; color: var(--fg); }
.section-heading p { font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0; max-width: 58ch; }
.research-close { padding-bottom: 0; }

/* =================================================================
   CMD-K PALETTE
   ================================================================= */
.cmdk {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.cmdk::backdrop {
  background: rgba(8, 6, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cmdk__inner {
  width: min(560px, 92vw);
  margin-top: clamp(8vh, 14vh, 18vh);
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border-3);
}
[data-theme="light"] .cmdk__inner {
  background: #FFFFFF;
}
.cmdk__input {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
}
.cmdk__input::placeholder { color: var(--fg-3); }
.cmdk__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 50vh;
  overflow-y: auto;
}
.cmdk__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--fg);
  transition: background-color var(--dur-1) cubic-bezier(0.4, 0, 0.2, 1);
}
.cmdk__item.is-active,
.cmdk__item:hover {
  background: rgba(139, 124, 246, 0.12);
}
.cmdk__item.is-active {
  outline: 1px solid rgba(139, 124, 246, 0.35);
}
.cmdk__label { font-weight: 500; }
.cmdk__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-align: right;
}
.cmdk__empty {
  padding: 24px;
  text-align: center;
  color: var(--fg-3);
  font-size: 13px;
}
.cmdk__footer {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.cmdk__footer kbd {
  font-family: inherit;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  margin-right: 4px;
}
@media (max-width: 720px) {
  .cmdk__hint { display: none; }
  .cmdk__inner { margin-top: 8vh; }
}

/* Toast (used by Cmd-K actions like copy-email, random-memory) */
.cmdk-toast-host {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmdk-toast {
  background: #0c0c14;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90vw;
}
[data-theme="light"] .cmdk-toast {
  background: #FFFFFF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.cmdk-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   WERKBANK page — current focus + ship log + lessons
   ================================================================= */
.labs-now {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.labs-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.labs-card:hover {
  border-color: rgba(139, 124, 246, 0.4);
  transform: translateY(-2px);
}
.labs-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}
.labs-card__pill.is-running {
  background: rgba(79, 209, 197, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(79, 209, 197, 0.35);
}
.labs-card__pill.is-running::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.7);
  animation: labs-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.labs-card__pill.is-meta {
  background: rgba(139, 124, 246, 0.1);
  color: var(--accent);
  border: 1px solid rgba(139, 124, 246, 0.35);
}
@keyframes labs-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.labs-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.labs-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.labs-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.labs-card__link.is-mute { color: var(--fg-3); }
.labs-card__link:hover { color: var(--accent-2); }

/* Ship log */
.ship-log {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 920px;
}
.ship-log__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-2);
}
.ship-log__item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 720px) {
  .ship-log__item { grid-template-columns: 1fr; gap: var(--space-2); }
}
.ship-log__time {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  padding-top: 4px;
}
.ship-log__h {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 6px;
}
.ship-log__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 65ch;
}
.ship-log__body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg);
}

/* Lessons list */
.lessons {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 880px;
}
.lesson {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px dashed var(--border-2);
}
.lesson:last-child { border-bottom: 0; }
.lesson__num {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 1px;
}
.lesson p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 65ch;
}
.lesson code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg);
}

/* =================================================================
   USES page — stack list rows
   ================================================================= */
.uses-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.uses-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-2);
  background: var(--bg-elev);
  transition: background-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.uses-row:last-child { border-bottom: 0; }
.uses-row:hover { background: var(--bg-elev-2); }
@media (max-width: 720px) {
  .uses-row { grid-template-columns: 1fr; gap: 4px; padding: var(--space-3) var(--space-4); }
}
.uses-row strong {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-size: 14.5px;
}
.uses-row span {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
}

/* =================================================================
   LABS BLOCKS — distinct visual treatment per build
   ================================================================= */

.labs-block {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  isolation: isolate;
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.labs-block:hover { border-color: rgba(139, 124, 246, 0.35); }

.labs-block__head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.labs-block__date {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.labs-block__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.labs-block__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 880px) {
  .labs-block__body { grid-template-columns: 1fr; gap: var(--space-5); }
}
.labs-block__body--stacked {
  grid-template-columns: 1fr;
}

.labs-block__title {
  font-size: clamp(1.2rem, 1.4vw + 0.5rem, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 12px;
  line-height: 1.2;
}
.labs-block__lede {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
  max-width: 60ch;
}
.labs-block__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
}
.labs-block__link:hover { color: var(--accent-2); }

/* =================================================================
   GLOBAL NOISE OVERLAY — luxury-minimalist texture signal (~3% opacity)
   feTurbulence SVG noise composited above content via mix-blend-mode.
   Hidden under prefers-reduced-motion is not necessary (it's static).
   ================================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
[data-theme="light"] body::after {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* =================================================================
   SERIF PULL-QUOTE — used on About + Labs + future content pages
   System-serif chain, no external font load.
   ================================================================= */
.pull-quote.is-serif,
.pull-quote--serif {
  font-family: 'New York', 'Iowan Old Style', 'Charter', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* =================================================================
   ? SHORTCUTS OVERLAY — discoverability hint for Cmd-K + others
   ================================================================= */
.shortcuts-help {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
}
.shortcuts-help::backdrop {
  background: rgba(8, 6, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.shortcuts-help__inner {
  width: min(440px, 92vw);
  margin: 18vh auto 0;
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 80px rgba(0,0,0,0.6);
}
[data-theme="light"] .shortcuts-help__inner { background: #FFFFFF; }
.shortcuts-help__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}
.shortcuts-help__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin: 0;
  list-style: none;
}
.shortcuts-help__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--fg);
  border-radius: var(--radius-md);
}
.shortcuts-help__row:hover { background: rgba(139,124,246,0.08); }
.shortcuts-help__keys { display: inline-flex; gap: 4px; }
.shortcuts-help__keys kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-elev-2);
  color: var(--fg-2);
  min-width: 22px;
  text-align: center;
}

/* =================================================================
   FOOTER STATUS PILL — small live-status indicator
   ================================================================= */
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  text-decoration: none;
}
.footer-status:hover { color: var(--fg-2); border-color: var(--border-2); }
.footer-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px rgba(79,209,197,0.7);
  animation: footer-status-pulse 2.4s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes footer-status-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* ── Labs FEATURE blocks — blog-style major arcs (last 60 days) ── */
.labs-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
  max-width: 1080px;
}

.labs-feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  isolation: isolate;
  position: relative;
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.labs-feature:hover { border-color: rgba(139, 124, 246, 0.4); }

.labs-feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.labs-feature__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(79, 209, 197, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(79, 209, 197, 0.35);
}
.labs-feature__pill.is-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(79, 209, 197, 0.7);
}
.labs-feature__pill.is-progress {
  background: rgba(139, 124, 246, 0.1);
  color: var(--accent);
  border-color: rgba(139, 124, 246, 0.35);
}
.labs-feature__pill.is-infra {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-2);
  border-color: var(--border);
}
.labs-feature__when {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.labs-feature__title {
  font-size: clamp(1.4rem, 2vw + 0.5rem, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
  line-height: 1.15;
}
.labs-feature__lede {
  font-size: 16px;
  line-height: 1.625;
  color: var(--fg);
  margin: 0;
  font-weight: 500;
  max-width: 68ch;
}
.labs-feature__story {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
  max-width: 70ch;
}
.labs-feature__story code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--fg);
}

.labs-feature__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-2);
  background: var(--bg);
}
.labs-feature__stats > div {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.labs-feature__stats > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .labs-feature__stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .labs-feature__stats > div:last-child { border-bottom: 0; }
}
.labs-feature__stats strong {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.labs-feature__stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  line-height: 1.3;
}

.labs-feature__link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-2);
  align-self: flex-start;
}
.labs-feature__link:hover { color: var(--accent-2); }

/* Dev-Notiz callout — appears per block, gives a wry / personal aside */
.labs-block__aside {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--fg-3);
  letter-spacing: 0.01em;
  max-width: 62ch;
}
.labs-block__aside::before {
  content: "// Dev-Notiz · ";
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── BARS treatment (Bild-Pipeline) ── */
.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.bar-row__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.bar {
  height: 16px;
  background: var(--bg-elev-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-2);
}
.bar__fill {
  height: 100%;
  border-radius: 4px;
}
.bar--before .bar__fill {
  background: linear-gradient(90deg, #f97373, #ef4444);
  box-shadow: 0 0 16px rgba(249, 115, 115, 0.35);
}
.bar--after .bar__fill {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(79, 209, 197, 0.35);
}
.bar-row__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  white-space: nowrap;
  text-align: right;
}
.bar-row__value strong {
  color: var(--accent-2);
  font-weight: 600;
}

/* ── MINI-GRAPH treatment (Architektur-Viz) ── */
.labs-block__visual--mini-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(139,124,246,0.06) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.labs-block__visual--mini-graph svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

/* ── KEYSTROKE treatment (Cmd-K) ── */
.labs-block__visual--keystroke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.keystroke {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.keystroke__key {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--fg);
  background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 26px;
  min-width: 80px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 2px 0 0 rgba(0, 0, 0, 0.4);
  letter-spacing: -0.02em;
}
.keystroke__plus {
  font-size: 1.5rem;
  color: var(--fg-3);
  font-weight: 300;
}
.keystroke__list {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}
.keystroke__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--fg-2);
  border-radius: var(--radius-md);
}
.keystroke__row.is-active {
  background: rgba(139, 124, 246, 0.15);
  color: var(--fg);
  outline: 1px solid rgba(139, 124, 246, 0.35);
}
.keystroke__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* ── MINI-MOCK treatment (Portal preview tease) ── */
.mini-mock {
  background: #0c0c14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(0, 0, 0, 0.4);
}
[data-theme="light"] .mini-mock { background: #FFFFFF; }
.mini-mock__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
  font-size: 10px;
}
.mini-mock__dots { display: inline-flex; gap: 4px; }
.mini-mock__dots i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-elev-3);
}
.mini-mock__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-mock__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  border: 1px solid rgba(79, 209, 197, 0.35);
  background: rgba(79, 209, 197, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.mini-mock__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.mini-mock__metrics > div {
  padding: 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-mock__metrics > div:last-child { border-right: 0; }
.mini-mock__metrics span {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}
.mini-mock__metrics strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.mini-mock__bar {
  height: 4px;
  background: var(--bg-elev-2);
  margin: 14px 14px 6px;
  border-radius: 999px;
  overflow: hidden;
}
.mini-mock__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mini-mock__caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  padding: 0 14px 14px;
}

/* ── FLOW treatment (Form before/after) ── */
.labs-block__visual--flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.flow-row--strikethrough .flow-pill,
.flow-row--strikethrough .flow-arrow {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.5;
}
.flow-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--fg-3);
  white-space: nowrap;
}
.flow-pill.is-old { color: #f97373; border-color: rgba(249, 115, 115, 0.3); background: rgba(249, 115, 115, 0.06); }
.flow-pill.is-new { color: var(--accent-2); border-color: rgba(79, 209, 197, 0.4); background: rgba(79, 209, 197, 0.1); }
.flow-arrow {
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 14px;
}
.flow-arrow.is-new { color: var(--accent-2); }

/* ── STEPS treatment (Domain cutover) ── */
.step-row {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
@media (max-width: 720px) {
  .step-row { grid-template-columns: 1fr; }
}
.step {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: 0; }
@media (max-width: 720px) {
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
}
.step::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  z-index: 1;
}
.step:last-child::after { display: none; }
@media (max-width: 720px) { .step::after { display: none; } }
.step__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.step__verb {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f97373;
}
.step__verb.is-add { color: var(--accent-2); }
.step__what {
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.3;
}

/* Coming-next section (Labs page · Auf der Liste) */
.coming-next {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
  max-width: 1080px;
}
.coming-next__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.coming-next__item:hover {
  border-color: rgba(139, 124, 246, 0.4);
  transform: translateY(-2px);
}
.coming-next__num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.coming-next__body h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 6px;
}
.coming-next__body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* =================================================================
   PORTAL PREVIEW — voice-agent page Q3 2026 dashboard teaser
   ================================================================= */
.portal-preview {
  max-width: 1120px;
  margin: var(--space-6) auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: #0c0c14;
  background-image: linear-gradient(180deg, rgba(139,124,246,0.05) 0%, transparent 35%);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: var(--z-content);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-3);
}
[data-theme="light"] .portal-preview {
  background-color: #F8F8F8;
  background-image: linear-gradient(180deg, rgba(139,124,246,0.06) 0%, transparent 35%);
}

.portal-preview__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}
.portal-preview__dots { display: inline-flex; gap: 6px; }
.portal-preview__dots i {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-elev-3);
}
.portal-preview__url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  flex: 1;
  text-align: center;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-preview__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  padding: 4px 10px;
  border: 1px solid rgba(79, 209, 197, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(79, 209, 197, 0.08);
  white-space: nowrap;
}

/* metrics row */
.portal-preview__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) {
  .portal-preview__metrics { grid-template-columns: repeat(2, 1fr); }
}
.portal-preview__metric {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.portal-preview__metric:last-child { border-right: 0; }
@media (max-width: 720px) {
  .portal-preview__metric:nth-child(2) { border-right: 0; }
  .portal-preview__metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
.portal-preview__metric-l {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.portal-preview__metric strong {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.portal-preview__metric-d { font-size: 11px; color: var(--fg-3); }

/* body — 3 cols */
.portal-preview__body {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  min-height: 360px;
}
@media (max-width: 1080px) {
  .portal-preview__body { grid-template-columns: 1fr; }
  .portal-preview__feed,
  .portal-preview__stats { display: none; }
}

.portal-preview__seclabel {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 14px 16px 8px;
}

/* left feed */
.portal-preview__feed {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.portal-preview__call {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-2);
  font-size: 12.5px;
  align-items: flex-start;
  transition: background-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.portal-preview__call:last-child { border-bottom: 0; }
.portal-preview__call.is-active { background: rgba(139, 124, 246, 0.08); }
.portal-preview__call-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  flex-shrink: 0;
  padding-top: 1px;
  width: 36px;
}
.portal-preview__call-name {
  display: block;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
}
.portal-preview__call-tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.portal-preview__call-tag.is-booked { color: var(--accent-2); }
.portal-preview__call-tag.is-escalated { color: #f97373; }

/* center transcript */
.portal-preview__transcript {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .portal-preview__transcript { background: rgba(0, 0, 0, 0.02); }
.portal-preview__transcript-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 4px;
}
.portal-preview__conf { color: var(--accent-2); }
.portal-preview__line {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-2);
}
.portal-preview__line-who {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  flex-shrink: 0;
  width: 70px;
  padding-top: 2px;
}
.portal-preview__line.is-bot .portal-preview__line-who { color: var(--accent); }
.portal-preview__line.is-system {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-2);
  display: block;
}

/* right stats */
.portal-preview__stats {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.portal-preview__stats-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.portal-preview__stats-card:last-child { border-bottom: 0; }
.portal-preview__stats-l {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.portal-preview__stats-card strong {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.portal-preview__stats-d { font-size: 11.5px; color: var(--fg-3); line-height: 1.4; }
.portal-preview__bar {
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.portal-preview__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.portal-preview__inbox {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.portal-preview__inbox li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  padding-left: 12px;
  position: relative;
}
.portal-preview__inbox li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #f97373;
}

/* bottom note */
.portal-preview__note {
  max-width: 680px;
  margin: var(--space-5) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}
.portal-preview__note p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* =================================================================
   ABOUT PAGE — story timeline, pull quote, facts grid, work contrast,
   socials, portrait. Solo-Engineer founder narrative.
   ================================================================= */

.story-timeline {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 920px;
}
.story-timeline > li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-5);
  align-items: flex-start;
  position: relative;
}
.story-timeline > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 56px;
  bottom: -36px;
  width: 1px;
  background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
}
@media (max-width: 720px) {
  .story-timeline > li { grid-template-columns: 60px 1fr; gap: var(--space-3); }
  .story-timeline > li:not(:last-child)::before { left: 16px; top: 38px; }
}
.story-timeline__num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  position: relative;
}
@media (max-width: 720px) {
  .story-timeline__num { font-size: 1.5rem; }
}
.story-timeline > li h3 {
  font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 8px;
}
.story-timeline > li p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
  max-width: 65ch;
}

/* Pull quote (no left-stripe per brand bans, uses quote glyph) */
.pull-quote {
  font-size: clamp(1.15rem, 1.4vw + 0.6rem, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 760px;
  margin: var(--space-7) auto 0;
  padding: var(--space-6) var(--space-5) var(--space-5);
  text-align: center;
  position: relative;
  font-style: normal;
}
.pull-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-mono);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* Facts grid */
.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.about-facts__tile {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1);
}
.about-facts__tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.about-facts__tile strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.about-facts__tile span {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Work contrast: what you don't get / what you get */
.about-work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 880px) {
  .about-work-grid { grid-template-columns: 1fr 1fr; }
}
.about-work-col {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.about-work-col--yes {
  border-color: rgba(139, 124, 246, 0.4);
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.06), rgba(79, 209, 197, 0.03));
}
.about-work-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-bottom: var(--space-4);
}
.about-work-col--yes .about-work-label { color: var(--accent); }
.about-work-col--no .about-work-label { color: #f97373; }
.about-work-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.about-work-col li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-2);
  padding-left: 28px;
  position: relative;
}
.about-work-col li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 600;
  font-size: 16px;
}
.about-work-col--no li::before { content: "\2715"; color: #f97373; }
.about-work-col--yes li::before { content: "\2713"; color: var(--accent); }

/* Socials row */
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.about-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-elev);
  transition: border-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-2) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-1) cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
}
.about-socials a:hover {
  border-color: var(--accent);
  background: rgba(139, 124, 246, 0.08);
  transform: translateY(-1px);
}
.about-socials a svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Who-I-Am layout: portrait + facts side by side on desktop */
.about-who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  align-items: start;
}
@media (min-width: 880px) {
  .about-who-grid {
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
  }
}
.about-who-grid .about-facts { margin-top: 0; }

.about-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
@media (max-width: 879px) {
  .about-portrait { align-items: center; }
}
.about-portrait img {
  width: 240px;
  height: 240px;
  border-radius: 28px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45);
  display: block;
}
[data-theme="light"] .about-portrait img {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.14);
}
.about-portrait figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

/* =================================================================
   A11Y / TOUCH-TARGET POLISH (audit 2026-05-08)
   Mobile hit areas raised to WCAG 2.5.5 minimum (44x44).
   Visual size on desktop is preserved; mobile gets the bump.
   ================================================================= */

/* Compare table — mobile scroll hint so the Lucid column isn't hidden */
@media (max-width: 720px) {
  .compare-table-wrap {
    position: relative;
  }
  .compare-table-wrap::before {
    content: "← scrollen für Vergleich →";
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    text-align: center;
    padding: 8px 0 4px;
    opacity: 0.85;
  }
}

/* Dental FAQ buttons (no styles before — set baseline + a11y target) */
.dental-faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 44px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-soft);
}
.dental-faq-q:hover { background: var(--bg-elev); }
.dental-faq-q[aria-expanded="true"] { color: var(--accent-2); }

/* Mobile-only touch target bumps for nav, switcher, theme toggle, footer */
@media (max-width: 720px) {
  .nav__link {
    min-height: 44px;
    padding: 0 14px;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
  .lang-switch {
    height: 40px;
  }
  .lang-switch__opt {
    min-width: 44px;
    justify-content: center;
    padding: 0 12px;
  }
  .footer__links a,
  .footer__links button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer__links {
    gap: 0 18px;
  }
  /* FAQ summary touch target safety */
  .faq__summary { min-height: 44px; }
}

/* ═══ Hero signature device — live-call visualization (voice-agent) ═══ */
.hero__copy { display: grid; gap: var(--space-5); justify-items: center; }
.hero__viz { width: 100%; display: flex; justify-content: center; }

.callviz {
  position: relative;
  width: 100%;
  max-width: 442px;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-2xl);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  box-shadow: 0 1px 0 var(--border-2) inset, 0 26px 64px -30px var(--accent-glow);
  overflow: hidden;
}
.callviz::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 58% at 50% 0%, var(--accent-glow-soft), transparent 62%);
  pointer-events: none;
}
.callviz > * { position: relative; }

.callviz__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
}
.callviz__status { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.02em; }
.callviz .demo-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  animation: demoPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.callviz__timer { color: var(--fg); }

.callviz__caller {
  margin-top: 0.85rem;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.01em; color: var(--fg-2);
}

.callviz__wave {
  display: flex; align-items: center; gap: 3px;
  height: 46px; margin: 1rem 0 1.15rem;
}
.callviz__wave i {
  flex: 1; min-width: 0; height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  opacity: 0.55;
  transform-origin: center;
  transform: scaleY(0.4);
  animation: callWave 1.15s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.07s);
}
.callviz__wave i:nth-child(3n)   { opacity: 0.82; }
.callviz__wave i:nth-child(2n)   { transform: scaleY(0.62); }
.callviz__wave i:nth-child(3n)   { transform: scaleY(0.92); }
.callviz__wave i:nth-child(5n)   { transform: scaleY(0.34); animation-duration: 1.35s; }
.callviz__wave i:nth-child(4n+1) { animation-duration: 0.95s; }
@keyframes callWave {
  0%, 100% { transform: scaleY(0.18); }
  50%      { transform: scaleY(1); }
}

.callviz__log { display: grid; gap: 0.5rem; }
.callviz__line {
  display: flex; gap: 0.6rem; align-items: baseline;
  font-size: 13.5px; line-height: 1.45;
  animation: callLineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.45s + var(--d) * 0.5s);
}
@keyframes callLineIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.callviz__who {
  flex: none; width: 3.6rem; padding-top: 0.16rem;
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-2);
}
.callviz__line--lina .callviz__who { color: var(--accent-2); }
.callviz__txt {
  flex: 1;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem; color: var(--fg);
}
.callviz__line--lina .callviz__txt { border-color: var(--border-accent); }
.callviz__line--ok {
  align-items: center; gap: 0.5rem; padding-top: 0.1rem;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.005em; color: var(--accent-2);
}
.callviz__line--ok svg { width: 14px; height: 14px; flex: none; }

.callviz__foot {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.01em; color: var(--fg-2);
}

/* Hero split — copy left, signature device right (desktop only) */
@media (min-width: 1000px) {
  .hero { text-align: left; }
  .hero__inner--split {
    max-width: 1140px;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    justify-items: stretch;
  }
  .hero__inner--split .hero__copy { justify-items: start; }
  .hero__inner--split .hero__h1 { max-width: 14ch; }
  .hero__inner--split .hero__sub { max-width: 46ch; }
  .hero__inner--split .hero__cta,
  .hero__inner--split .hero-trust { justify-content: flex-start; }
  .hero__inner--split .hero__viz { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .callviz__wave i { animation: none; }
  .callviz__line { animation-delay: 0s; }
}
/* ═══ end live-call device ═══ */

/* ═══ #pain — editorial stagger (replaces equal card grid) ═══ */
.pain-editorial { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .pain-editorial { grid-template-columns: 1.12fr 0.88fr; align-items: center; }
}
.pain-lead__stat {
  display: block;
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 500; letter-spacing: -0.05em; line-height: 0.92;
  color: var(--accent-2);
  text-shadow: 0 0 44px var(--accent-glow-soft);
}
.pain-lead__label {
  display: block; margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.3;
  color: var(--fg); max-width: 20ch;
}
.pain-lead__note {
  display: block; margin-top: 0.85rem;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  color: var(--fg-2); max-width: 42ch;
}
.pain-side { display: grid; gap: 1.7rem; }
.pain-fact {
  display: grid; grid-template-columns: auto 1fr; gap: 0 1.15rem;
  align-items: baseline; padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.pain-side .pain-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.pain-fact__stat {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500; letter-spacing: -0.03em; color: var(--fg);
}
.pain-fact__body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }

/* ═══ #technical — connected pipeline diagram (replaces 7-box arch-flow) ═══ */
.pipeline { position: relative; margin-top: 2.5rem; }
.pipeline::before {
  content: ""; position: absolute; left: 1.25rem; top: 1.3rem; bottom: 1.3rem;
  width: 2px; background: var(--border-2); border-radius: 2px;
}
.pipeline__beam {
  position: absolute; left: 1.25rem; top: 1.3rem; bottom: 1.3rem;
  width: 2px; border-radius: 2px; overflow: hidden; pointer-events: none;
}
.pipeline__beam::before {
  content: ""; position: absolute; left: 0; width: 2px; height: 38%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateY(-130%);
  animation: pipeBeam 4.4s ease-in-out infinite;
}
@keyframes pipeBeam {
  0%   { transform: translateY(-130%); }
  100% { transform: translateY(330%); }
}
.pipeline__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.15rem, 2.5vw, 1.9rem);
}
.pipeline__step {
  position: relative;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.15rem;
  align-items: start;
}
.pipeline__node {
  position: relative; z-index: 1;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border-violet);
  box-shadow: 0 0 0 5px var(--bg);
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-2);
}
.pipeline__node--end {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pipeline__content { padding-top: 0.3rem; min-width: 0; }
.pipeline__title { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 500; color: var(--fg); }
.pipeline__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); max-width: 60ch; }

.pipeline-tools { margin-top: 2.75rem; }
.pipeline-tools .h-sub { margin-bottom: 1rem; }
.pipeline-tools__list { list-style: none; margin: 0; padding: 0; }
.pipeline-tool {
  display: grid; grid-template-columns: 1.5rem minmax(8rem, 12rem) 1fr;
  gap: 0 1.1rem; align-items: center;
  padding: 0.85rem 0; border-top: 1px solid var(--border);
}
.pipeline-tool:first-child { border-top: 0; }
.pipeline-tool__ico { color: var(--accent-2); display: grid; place-items: center; }
.pipeline-tool__name { font-size: 0.92rem; font-weight: 500; color: var(--fg); }
.pipeline-tool__sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); }
@media (max-width: 680px) {
  .pipeline-tool { grid-template-columns: 1.5rem 1fr; }
  .pipeline-tool__sub { grid-column: 2; padding-top: 0.25rem; }
}
/* ═══ #dentists — zig-zag alternating rows (replaces duplicate card grid) ═══ */
.zigzag { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.zig {
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
}
.zigzag .zig:last-child { border-bottom: 0; padding-bottom: 0; }
.zig--alt { flex-direction: row-reverse; }
.zig__stat {
  flex: none; min-width: clamp(5.5rem, 15vw, 10.5rem);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: var(--accent-2); text-shadow: 0 0 36px var(--accent-glow-soft);
}
.zig--alt .zig__stat { text-align: right; }
.zig__txt { flex: 1; min-width: 0; }
.zig__title { margin: 0 0 0.4rem; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; color: var(--fg); }
.zig__body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-2); max-width: 56ch; }
.zig--alt .zig__txt { text-align: right; }
.zig--alt .zig__body { margin-left: auto; }
@media (max-width: 720px) {
  .zig, .zig--alt { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .zig--alt .zig__stat, .zig--alt .zig__txt, .zig--alt .zig__body { text-align: left; margin-left: 0; }
}

/* ═══ pricing bonus — inline value-stack (replaces 4-card grid) ═══ */
.bonus-stack { display: grid; gap: 0; max-width: 720px; margin-inline: auto; }
.bonus-row {
  display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0 1.5rem; align-items: baseline;
  padding: 1.25rem 0; border-top: 1px solid var(--border);
}
.bonus-row:first-child { border-top: 0; padding-top: 0; }
.bonus-row__tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.02em; color: var(--accent-2); padding-top: 0.2rem;
}
.bonus-row__title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 500; color: var(--fg); }
.bonus-row__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
@media (max-width: 620px) {
  .bonus-row { grid-template-columns: 1fr; gap: 0.35rem 0; }
  .bonus-row__tag { padding-top: 0; }
}
/* ═══ #included — inclusion list (replaces 6-card capability grid) ═══ */
.include-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 860px) {
  .include-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
}
.include-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  align-items: start; padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.include-item:first-child { border-top: 0; }
@media (min-width: 860px) { .include-item:nth-child(2) { border-top: 0; } }
.include-item__ico {
  flex: none; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid var(--border-accent);
}
.include-item__ico svg { width: 18px; height: 18px; }
.include-item__head { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 500; color: var(--fg); }
.include-item__body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.include-list--num .include-item__ico {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
}

/* ═══ bento — content-weighted asymmetric grid (anti equal-card) ═══ */
.bento { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); margin-top: 0.5rem; }
@media (min-width: 900px) {
  .bento--how {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .bento--how .bento__cell--hero { grid-column: 1; grid-row: 1 / 3; }
  .bento--how .bento__cell--wide { grid-column: 2 / 4; grid-row: 1; }
  .bento--trio {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .bento--trio .bento__cell--hero { grid-column: 1; grid-row: 1 / 3; }
}
.bento__cell {
  position: relative;
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.bento__cell--hero {
  background: radial-gradient(125% 80% at 100% 0%, var(--accent-glow-soft), transparent 60%), var(--bg-elev);
  border-color: var(--border-violet);
  gap: 0.85rem;
}
.bento__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent-2);
}
.bento__cell .demo-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: demoPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.bento__ico { color: var(--accent-2); }
.bento__ico svg { width: 22px; height: 22px; }
.bento__cell--hero .bento__ico svg { width: 30px; height: 30px; }
.bento__title { margin: 0; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.bento__cell--hero .bento__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.bento__body { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }
.bento__cell--hero .bento__body { font-size: 14.5px; max-width: 36ch; }
.bento__cell--hero { margin-top: auto; }
.bento__cell--hero .bento__live { margin-bottom: auto; }

/* ═══ numbered-editorial — big numerals, hairline rows (anti icon-list) ═══ */
.numbered-list { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 0; }
.numbered-item {
  display: grid; grid-template-columns: clamp(3.25rem, 7vw, 5.5rem) 1fr;
  gap: 0 clamp(1rem, 3vw, 2rem); align-items: start;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0;
  border-top: 1px solid var(--border);
}
.numbered-item:first-child { border-top: 0; padding-top: 0; }
.numbered-item__n {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent-2);
}
.numbered-item__head { margin: 0 0 0.45rem; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: var(--fg); }
.numbered-item__body { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); max-width: 62ch; }
@media (max-width: 620px) {
  .numbered-item { grid-template-columns: 1fr; gap: 0.5rem 0; }
}
/* ═══ end pain/pipeline archetypes ═══ */

/* ═══ /work/ + case-study-02 trust-pillar (__stat/__label naming) ═══
   Mirrors the display contract of /lucid/'s .trust-pillar__num pattern.
   Without these rules the stats rendered as 16px body text (real bug, 2026-05-20). */
.trust-pillar__stat {
  display: block;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  line-height: 1.1;
}
.trust-strip > .trust-pillar:first-child .trust-pillar__stat { font-size: 56px; }
.trust-pillar__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* tabular-nums extension to remaining display-number selectors */
.numbered-item__n,
.pain-lead__stat,
.math-row__value {
  font-variant-numeric: tabular-nums;
}
.math-row__value { font-weight: 500; color: var(--fg); }

/* ═══ Nav · Variant A grouped dropdowns (shipped 2026-05-21) ═════════════
   Top nav now: Brand+LABS | Product ▾ · Pricing · Proof ▾ · Contact | actions
   Burger appears <=980px, links collapse into off-canvas drawer below. */
.nav__group { position: relative; display: inline-block; }

.nav__link--trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--fg-2);
}
.nav__link--trigger:hover,
.nav__link--trigger[aria-expanded="true"] { color: var(--fg); }

.nav__caret {
  width: 10px;
  height: 10px;
  opacity: 0.65;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__link--trigger[aria-expanded="true"] .nav__caret {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 304px;
  padding: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border) inset;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 180ms;
  z-index: 100;
}
.nav__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}

.nav__panel-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--fg);
  transition: background 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__panel-item:hover { background: var(--bg-elev-2); }

.nav__panel-ico {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid var(--border-violet);
  flex-shrink: 0;
}
.nav__panel-ico svg { width: 15px; height: 15px; }

.nav__panel-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav__panel-item__head {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.nav__panel-item__sub {
  font-size: 11.5px;
  color: var(--fg-3);
  line-height: 1.4;
}

/* Mobile burger (desktop hides, ≤980px shows) */
.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-2);
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
}
.nav__burger svg { width: 18px; height: 18px; }
.nav__burger-line { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms; transform-origin: center; }
.nav__burger[aria-expanded="true"] .nav__burger-line--top { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-line--mid { opacity: 0; }
.nav__burger[aria-expanded="true"] .nav__burger-line--bot { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    padding: 10px;
    z-index: 90;
    box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.5);
    gap: 4px;
    align-items: stretch;
  }
  .nav__links[data-mobile-open="true"] { display: flex; }
  .nav__group { display: block; }
  .nav__link,
  .nav__link--trigger {
    width: 100%;
    text-align: left;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .nav__link:hover,
  .nav__link--trigger:hover { background: var(--bg-elev-2); }
  .nav__panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
    transition: none;
  }
  .nav__panel[data-open="true"] { display: block; }
  .nav__panel-ico { width: 28px; height: 28px; }
  .nav__panel-ico svg { width: 13px; height: 13px; }
}

/* ═══ Lucid system-status panel · signature device for /lucid/ #metrics ═══
   Terminal-style live snapshot of the Lucid system. Mono font, key:value rows,
   live pulsing dot. Reads as "looking inside the system" rather than a card grid. */
.syspanel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-violet);
  border-radius: var(--radius-xl);
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: 0 28px 70px -32px rgba(139, 124, 246, 0.25);
}
.syspanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(150% 70% at 50% 0%, var(--accent-glow-soft), transparent 62%);
  pointer-events: none;
}
.syspanel__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.syspanel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
  box-shadow: 0 0 14px var(--accent-glow-soft);
  animation: sysPulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes sysPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
.syspanel__title { color: var(--fg-2); font-weight: 500; }
.syspanel__live {
  margin-left: auto;
  color: var(--accent-2);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.syspanel__body {
  position: relative;
  padding: 1.1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.55rem;
}
.syspanel__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  font-size: 13.5px;
  line-height: 1.45;
  align-items: baseline;
}
.syspanel__key {
  color: var(--fg-3);
}
.syspanel__key::after {
  content: ":";
  color: var(--fg-3);
  margin-right: 0.55rem;
}
.syspanel__val {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.syspanel__val--ok {
  color: var(--accent-2);
}
.syspanel__val--ok::before {
  content: "● ";
  color: var(--accent-2);
}
.syspanel__footer {
  position: relative;
  padding: 0.85rem 1.25rem;
  font-size: 11.5px;
  color: var(--fg-3);
  border-top: 1px solid var(--border);
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .syspanel__row { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .syspanel__key::after { display: none; }
}

/* ───────────────────────────────────────────────────────────────────
   Legal page · PDF download row (AVV / DPA / TOMs)
   ─────────────────────────────────────────────────────────────────── */
.legal__head .legal__download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border);
}
.legal__head .legal__download .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}
.legal__head .legal__download .btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.legal__head .legal__download-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  max-width: 48ch;
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────────────────
   Print stylesheet · for AVV/TOM/Datenschutz PDF generation
   Goal: clean signature-ready document, no nav/footer/cookies/mesh.
   ─────────────────────────────────────────────────────────────────── */
@media print {
  :root,
  html[data-theme="dark"],
  html[data-theme="light"] {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --fg: #111111;
    --fg-2: #1a1a1a;
    --fg-3: #444444;
    --accent: #1a1a1a;
    --accent-2: #1a1a1a;
    --border: #cccccc;
    --border-2: #cccccc;
    --border-3: #999999;
  }
  html, body {
    background: #ffffff !important;
    color: #111111 !important;
  }
  body::before,
  body::after {
    display: none !important;
    background: none !important;
  }
  .nav,
  .footer,
  #nav-mount,
  #footer-mount,
  .cookie-banner,
  .cookie-banner-wrap,
  #cookieReopen,
  .cmdk,
  .floating-cta,
  .toast,
  .legal__download,
  .nav__burger,
  .footer-status,
  .brand-labs-tag {
    display: none !important;
  }
  main.container.legal {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .legal__head {
    border-bottom: 1px solid #333 !important;
    padding-bottom: 16px !important;
    margin-bottom: 24px !important;
  }
  .legal__head h1 {
    color: #111 !important;
    font-size: 24pt !important;
  }
  .legal__head .eyebrow {
    color: #555 !important;
  }
  .legal__head .eyebrow::before {
    background: #555 !important;
  }
  .legal__head .updated,
  .legal__head .lede {
    color: #444 !important;
    font-size: 10pt !important;
  }
  .legal__body {
    color: #1a1a1a !important;
    font-size: 11pt !important;
    line-height: 1.55 !important;
  }
  .legal__body h2 {
    color: #111 !important;
    font-size: 14pt !important;
    margin-top: 22pt !important;
    page-break-after: avoid;
  }
  .legal__body h3 {
    color: #111 !important;
    font-size: 12pt !important;
    page-break-after: avoid;
  }
  .legal__body p,
  .legal__body li {
    color: #1a1a1a !important;
    max-width: none !important;
  }
  .legal__body a {
    color: #1a1a1a !important;
    text-decoration: underline !important;
  }
  .legal__body strong {
    color: #000 !important;
  }
  .legal__body code {
    background: #f1f1f1 !important;
    color: #111 !important;
    border-color: #ccc !important;
  }
  .legal__body table {
    page-break-inside: avoid;
  }
  .legal__body th {
    color: #111 !important;
  }
  .legal__body th,
  .legal__body td {
    border-bottom: 1px solid #999 !important;
  }
  @page {
    size: A4;
    margin: 18mm 16mm 20mm 16mm;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Essay typography · /writing/ long-form
   ─────────────────────────────────────────────────────────────────── */
main.essay {
  max-width: 720px;
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
.essay__head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.essay__crumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-4);
}
.essay__crumb a {
  color: var(--fg-3);
  text-decoration: none;
}
.essay__crumb a:hover {
  color: var(--accent-2);
}
.essay__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--space-4);
}
.essay__eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.essay__h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
  color: var(--fg);
  max-width: 22ch;
}
.essay__dek {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 var(--space-5);
  max-width: 60ch;
}
.essay__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin: 0;
}
.essay__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fg-3);
  opacity: 0.6;
}

.essay__body {
  font-size: 17px;
  line-height: 1.72;
  color: var(--fg-2);
}
.essay__body h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: var(--space-7) 0 var(--space-3);
  max-width: 28ch;
}
.essay__body h2:first-child {
  margin-top: 0;
}
.essay__body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: var(--space-5) 0 var(--space-2);
}
.essay__body p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}
.essay__body em {
  color: var(--fg);
  font-style: italic;
}
.essay__body strong {
  color: var(--fg);
  font-weight: 500;
}
.essay__body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(125, 125, 125, 0.4);
  transition: text-decoration-color 200ms ease;
}
.essay__body a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent-2);
}
.essay__body ul,
.essay__body ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}
.essay__body li {
  margin-bottom: var(--space-3);
  max-width: 65ch;
}
.essay__body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--fg);
}

.essay__foot {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.essay__share {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-5);
}
.essay__share a {
  color: var(--accent);
}
.essay__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.essay__nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 200ms ease, color 200ms ease;
}
.essay__nav a:hover {
  border-color: var(--border-3);
  color: var(--fg);
}
.essay__nav-next {
  margin-left: auto;
}

@media (max-width: 600px) {
  .essay__h1 {
    font-size: 2rem;
  }
  .essay__dek {
    font-size: 16.5px;
  }
  .essay__body {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ───────────────────────────────────────────────────────────────────
   /process · stage blocks with custom artifacts per stage
   No numbered circles. Each stage gets a different visual primitive.
   ─────────────────────────────────────────────────────────────────── */
.stage-block {
  display: grid;
  gap: var(--space-5);
}
.stage-block__head {
  max-width: 70ch;
}
.stage-block__day {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-3);
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--bg-elev);
}
.stage-block__h {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.026em;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  color: var(--fg);
}
.stage-block__lede {
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg-2);
  margin: 0;
  max-width: 65ch;
}
.stage-block__note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
  max-width: 65ch;
  border-left: none;
  margin: var(--space-4) 0 0;
}

/* — Stage 1 · Intake preview (terminal-style field list) — */
.intake-preview {
  font-family: var(--font-mono);
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
}
.intake-preview__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  color: var(--fg-2);
}
.intake-preview__title { font-weight: 500; color: var(--fg); }
.intake-preview__meta { font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; }
.intake-preview__body {
  padding: 8px 0;
}
.intake-preview__field {
  display: grid;
  grid-template-columns: minmax(180px, 28%) 1fr;
  gap: 16px;
  padding: 9px 18px;
  border-bottom: 1px dashed var(--border);
}
.intake-preview__field:last-of-type {
  border-bottom: 0;
}
.intake-preview__k {
  color: var(--accent);
  font-weight: 500;
}
.intake-preview__v {
  color: var(--fg-2);
}
.intake-preview__field--more {
  grid-template-columns: 1fr;
  font-style: italic;
  color: var(--fg-3);
}
.intake-preview__foot {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-3);
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .intake-preview__field { grid-template-columns: 1fr; gap: 4px; }
}

/* — Stage 2 · Voice picks (varied cards, one featured custom-clone tile) — */
.voice-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.voice-pick {
  padding: var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.voice-pick:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
}
.voice-pick--custom {
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.07), transparent);
  border-color: var(--border-3);
}
.voice-pick__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.voice-pick h3 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  color: var(--fg);
}
.voice-pick p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* — Stage 3 · KB flow (4-stage pipeline with arrows) — */
.kb-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: var(--space-5);
}
.kb-flow__stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
  min-width: 150px;
}
.kb-flow__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.kb-flow__card {
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
}
.kb-flow__card .kb-flow__title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 0 2px;
  color: var(--fg-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.kb-flow__size {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 400;
}
.kb-flow__arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg-3);
  padding: 0 12px;
  user-select: none;
}
@media (max-width: 800px) {
  .kb-flow { padding: var(--space-4); }
  .kb-flow__arrow { transform: rotate(90deg); padding: 6px 0; align-self: stretch; text-align: center; }
}

/* — Stage 4 · API trace (terminal-style booking trace) — */
.api-trace {
  font-family: var(--font-mono);
  background: #0a0c10;
  border: 1px solid var(--border-3);
  border-radius: 14px;
  overflow: hidden;
  font-size: 12.5px;
  color: #cfd3dc;
}
[data-theme="light"] .api-trace {
  background: #f6f6f3;
  color: #1a1a1a;
  border-color: var(--border-2);
}
.api-trace__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}
[data-theme="light"] .api-trace__header { background: rgba(0,0,0,0.03); border-color: var(--border); }
.api-trace__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(79, 209, 197, 0.18);
  animation: sysPulse 2.4s ease-in-out infinite;
}
.api-trace__title { font-size: 11.5px; letter-spacing: 0.04em; color: var(--fg-3); }
.api-trace__step {
  display: grid;
  grid-template-columns: 80px 60px 1fr 60px;
  gap: 14px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
[data-theme="light"] .api-trace__step { border-color: var(--border); }
.api-trace__step:last-of-type { border-bottom: 0; }
.api-trace__t { color: #6e7484; font-size: 11.5px; }
[data-theme="light"] .api-trace__t { color: var(--fg-3); }
.api-trace__verb {
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.06em;
  padding: 3px 0;
  border-radius: 4px;
}
.api-trace__verb--get { background: rgba(79, 209, 197, 0.15); color: var(--accent-2); }
.api-trace__verb--post { background: rgba(139, 124, 246, 0.18); color: var(--accent); }
.api-trace__verb--say { background: rgba(255, 200, 100, 0.15); color: #ffc864; }
.api-trace__path { font-size: 12.5px; }
.api-trace__ms { font-size: 11px; color: #6e7484; text-align: right; }
[data-theme="light"] .api-trace__ms { color: var(--fg-3); }
.api-trace__footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--fg-3);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .api-trace__footer { border-color: var(--border); background: rgba(0,0,0,0.02); }
@media (max-width: 640px) {
  .api-trace__step { grid-template-columns: 70px 50px 1fr; }
  .api-trace__ms { display: none; }
}

/* — Stage 5 · Test matrix (grid table, alert rows highlighted) — */
.test-matrix {
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
}
.test-matrix__row {
  display: grid;
  grid-template-columns: 1.8fr 0.6fr 0.9fr 2fr;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  align-items: baseline;
}
.test-matrix__row:last-of-type { border-bottom: 0; }
.test-matrix__row--head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  background: rgba(255,255,255,0.025);
}
[data-theme="light"] .test-matrix__row--head { background: rgba(0,0,0,0.02); }
.test-matrix__row--alert {
  background: linear-gradient(180deg, rgba(139, 124, 246, 0.03), transparent);
}
.test-matrix__row--alert span:nth-child(3) { color: var(--accent); font-weight: 500; }
@media (max-width: 720px) {
  .test-matrix__row { grid-template-columns: 1fr 1fr; }
  .test-matrix__row span:nth-child(3), .test-matrix__row span:nth-child(4) { display: none; }
  .test-matrix__row--alert span:nth-child(3) { display: inline; grid-column: 1 / -1; }
}

/* — Stage 6 · Pilot live feed (mock monitoring panel) — */
.pilot-feed {
  font-family: var(--font-mono);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  font-size: 13px;
}
.pilot-feed__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
[data-theme="light"] .pilot-feed__bar { background: rgba(0,0,0,0.02); }
.pilot-feed__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: sysPulse 2s ease-in-out infinite;
}
.pilot-feed__title { color: var(--fg-2); font-size: 11.5px; letter-spacing: 0.04em; flex: 1; }
.pilot-feed__counter { font-size: 11px; color: var(--accent-2); }
.pilot-feed__call {
  display: grid;
  grid-template-columns: 60px 1.2fr 1.4fr 1fr;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px dashed var(--border);
  align-items: center;
  font-size: 12.5px;
}
.pilot-feed__call:last-of-type { border-bottom: 0; }
.pilot-feed__time { color: var(--fg-3); }
.pilot-feed__caller { color: var(--fg-2); }
.pilot-feed__intent { color: var(--fg-2); }
.pilot-feed__status {
  font-size: 11.5px;
  font-weight: 500;
  text-align: right;
}
.pilot-feed__status--ok { color: var(--accent-2); }
.pilot-feed__status--esc { color: #ffc864; }
.pilot-feed__footer {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-3);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .pilot-feed__footer { background: rgba(0,0,0,0.02); }
@media (max-width: 640px) {
  .pilot-feed__call { grid-template-columns: 50px 1fr 1fr; }
  .pilot-feed__intent { display: none; }
}

/* =================================================================
   2026 WEB PLATFORM PRIMITIVES — added 2026-05-28
   View Transitions, Scroll-Driven Anims, grainy gradient, mouse glow.
   All progressively enhanced. Firefox falls through @supports cleanly.
   Ref: deep-research 2026-05-28 (Web Platform Surveyor + Visual Craft Hunter)
   ================================================================= */

/* ── View Transitions API (Baseline Oct 2025) ───────────────────────
   Single CSS rule replaces SPA-router transitions.
   Browser-level compositor crossfade between every internal page.
   Chrome 126+, Safari 18+, Firefox falls through (instant nav). */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ── Grainy gradient overlay (Linear / Stripe Press signature) ──────
   SVG feTurbulence noise via inline data-URL, no asset file.
   Adds film-grain texture to flat gradient surfaces.
   Scoped to stage blocks and intake-preview cards only. */
.stage-block,
.intake-preview {
  position: relative;
  isolation: isolate;
}

.stage-block::after,
.intake-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

.stage-block > *,
.intake-preview > * {
  position: relative;
  z-index: 1;
}

[data-theme="light"] .stage-block::after,
[data-theme="light"] .intake-preview::after {
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* ── Scroll-Driven Animations behind @supports ──────────────────────
   Replaces IntersectionObserver scroll-reveal. Zero JS.
   Chrome/Safari light up now. Firefox waits for Interop 2026 H2.
   When FF lands the feature, pages automatically gain the animation. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage-block,
    .intake-preview,
    .voice-picks,
    .kb-flow,
    .api-trace,
    .test-matrix,
    .pilot-feed {
      animation: scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 28%;
    }

    .essay__body > p,
    .essay__body > ul,
    .essay__body > ol,
    .essay__body > blockquote,
    .essay__body > pre,
    .essay__body > h2,
    .essay__body > h3 {
      animation: scroll-reveal-soft linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 32%;
    }

    @keyframes scroll-reveal {
      from { opacity: 0; translate: 0 18px; }
      to   { opacity: 1; translate: 0 0; }
    }
    @keyframes scroll-reveal-soft {
      from { opacity: 0; translate: 0 10px; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

/* ── Mouse-tracked ambient glow on primary CTAs ─────────────────────
   Single mousemove listener (in layout.js) updates --mx/--my per button.
   Radial gradient tracks cursor inside button bounds on hover.
   Linear / Vercel "the button knows where my cursor is" pattern. */
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    140px circle at var(--mx, 50%) var(--my, 50%),
    rgba(139, 124, 246, 0.45),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 220ms var(--ease-soft);
}

.btn--primary:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before { display: none; }
}

[data-theme="light"] .btn--primary::before {
  background: radial-gradient(
    140px circle at var(--mx, 50%) var(--my, 50%),
    rgba(109, 78, 204, 0.32),
    transparent 65%
  );
}
