/* ═══════════════════════════════════════════════════════════════════════
   AutoPartsAgent.ai — Design Tokens
   "Editorial parts catalog meets modern SaaS terminal"
   Evolved 2026-05-26 overhaul. Warm paper canvas retained.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Canvas (paper world) ────────────────────────────────────────── */
  --bg:            #fbf9f6;        /* warm cream — primary background */
  --paper:         #ffffff;        /* card / modal / drawer surface */
  --paper-deep:    #f5f1ea;        /* zebra rows, subtle hover, inset wells */
  --paper-edge:    #f0ebe1;        /* deeper inset (rare) */
  --bg-elevated:   #ffffff;        /* alias of --paper for legacy code */
  --bg-subtle:     #f5f1ea;        /* alias of --paper-deep for legacy */

  /* ── Ink (warm-tinted text) ──────────────────────────────────────── */
  --fg:            #1a1714;        /* near-black, warm tint (less harsh than 000) */
  --ink:           #1a1714;        /* synonym */
  --ink-strong:    #000000;        /* pure black, KPI numerals, hero only */
  --ink-muted:     #5a5249;        /* secondary text */
  --muted:         #5a5249;        /* legacy alias — was #777, now warm */
  --ink-subtle:    #6a635a;        /* tertiary labels, captions — WCAG AA 4.5:1 vs paper/cream */

  /* ── Borders (warm-tinted) ───────────────────────────────────────── */
  --border:         rgba(26, 23, 20, 0.08);   /* default dividers */
  --border-strong:  rgba(26, 23, 20, 0.16);   /* table rows, focused fields */
  --border-bold:    rgba(26, 23, 20, 0.28);   /* hover edges, selected */

  /* ── Accent (brick-rust — parts-trade tell) ──────────────────────── */
  --accent:         #b8390f;       /* primary CTA, focus, active nav */
  --accent-hover:   #9b2f0b;
  --accent-strong:  #7a2407;       /* pressed / dark variant */
  --accent-soft:    #fbeee6;       /* halo backgrounds, chip fills */
  --accent-soft-2:  #f6dcc8;       /* hover for soft surfaces */
  --accent-ink:     #ffffff;       /* text on accent */
  --accent-on-soft: #7a2407;       /* text on accent-soft */

  /* ── Status (tuned for cream world) ──────────────────────────────── */
  --green:        #15803d;
  --green-soft:   #dcfce7;
  --green-ink:    #14532d;

  --red:          #b91c1c;
  --red-soft:     #fee2e2;
  --red-ink:      #7f1d1d;

  --amber:        #b45309;
  --amber-soft:   #fef3c7;
  --amber-ink:    #78350f;

  --blue:         #1d4ed8;
  --blue-soft:    #dbeafe;
  --blue-ink:     #1e3a8a;

  --plum:         #7e22ce;
  --plum-soft:    #f3e8ff;

  /* ── Legacy --white kept for code that references it ────────────── */
  --white: #ffffff;

  /* ── Typography — 3-face system ──────────────────────────────────── */
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono:    'DM Mono', 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  /* legacy alias — Space Mono was the old --font-heading; remap to Fraunces */
  --font-heading: var(--font-display);
  /* legacy alias — many module CSS files reference --font-tabular for prices/SKUs */
  --font-tabular: var(--font-mono);

  /* ── Spacing scale (4px grid, three tiers) ───────────────────────── */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* ── Radii (tightened for SaaS feel) ─────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;       /* tightened from 16; cards/panels */
  --radius-lg:   20px;       /* modals, drawers */
  --radius-xl:   28px;       /* hero panels, landing only */
  --radius-full: 9999px;

  /* ── Shadows (warm-tinted, layered) ──────────────────────────────── */
  --shadow-xs: 0 1px 1px rgba(26, 23, 20, 0.03);
  --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.05), 0 1px 1px rgba(26, 23, 20, 0.03);
  --shadow-md: 0 4px 12px rgba(26, 23, 20, 0.06), 0 2px 4px rgba(26, 23, 20, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 23, 20, 0.08), 0 4px 8px rgba(26, 23, 20, 0.05);
  --shadow-xl: 0 24px 60px rgba(26, 23, 20, 0.12), 0 8px 16px rgba(26, 23, 20, 0.06);
  --shadow-inset: inset 0 1px 2px rgba(26, 23, 20, 0.06);
  /* Two-ring halo so the focus indicator stays visible on EVERY background:
     2px brick inner contrasts with cream paper + light surfaces; 2px soft
     outer bloom extends the visible ring without fighting brick buttons.
     Matches gap-doc C11 "2px brick + soft halo (--accent-soft)". */
  --halo-accent:  0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft);
  --halo-danger:  0 0 0 2px var(--red),    0 0 0 4px var(--red-soft);
  --halo-info:    0 0 0 3px var(--blue-soft);

  /* ── Motion ──────────────────────────────────────────────────────── */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;

  /* ── Layout ──────────────────────────────────────────────────────── */
  --container: 1204px;
  --section-py: 128px;

  /* ── Type scale (semantic) ───────────────────────────────────────── */
  --text-xs:      12px;
  --text-sm:      13px;
  --text-base:    14px;
  --text-md:      16px;
  --text-lg:      20px;
  --text-xl:      28px;
  --text-2xl:     36px;
  --text-display: 56px;
  --lh-tight:     1.15;
  --lh-snug:      1.35;
  --lh-normal:    1.55;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Accessibility baseline (world-class focus + skip link) ── */
:root { color-scheme: light; }
/* Visible keyboard focus on every interactive element. :where() keeps
   specificity 0 so component styles still win; the explicit input rules below
   restore a ring where `outline:none` is set. */
:where(a, button, summary, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--accent, var(--fg));
  outline-offset: 2px;
  border-radius: var(--radius-sm, 6px);
}
.chat-input input:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--accent, var(--fg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--fg)) 35%, transparent);
}
/* Skip-to-content link, revealed on focus */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 1000;
  background: var(--fg); color: var(--bg); padding: 10px 16px;
  border-radius: 0 0 8px 8px; font-weight: 600; font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
.tabular-nums { font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo { height: 44px; width: auto; aspect-ratio: 2963 / 821; flex-shrink: 0; }
.footer-logo { height: 36px; width: auto; aspect-ratio: 2963 / 821; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--fg);
}
.nav-links a { transition: opacity 0.15s; }
.nav-links a:hover { opacity: 0.6; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn-black {
  background: var(--fg);
  color: var(--white);
  border-color: var(--fg);
}
.btn-black:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--fg); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; font-weight: 600; }
.btn-full { width: 100%; }

/* ── Section shared ── */
.section {
  padding: var(--section-py) 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 48px;
  text-align: center;
}
.section-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}
.section-desc.center { margin: 0 auto 48px; }
.section-desc em { font-style: normal; font-weight: 500; color: var(--fg); }

/* ── HERO ── */
.hero {
  padding: 200px 0 96px;
  text-align: center;
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-sub-top {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.hero-qualifier-small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Hero input box (mimicking usenaive's prompt box) */
.hero-input-wrap {
  max-width: 740px;
  margin: 0 auto;
}
.hero-input-box {
  background: var(--fg);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: left;
}
.hero-input-text {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.hero-input-text strong { color: var(--white); }
.hero-input-actions {
  display: flex;
  gap: 8px;
}
.hero-input-actions .btn-black {
  background: var(--white);
  color: var(--fg);
  border-color: var(--white);
}
.hero-input-actions .btn-outline {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.2);
}
.hero-input-actions .btn-outline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

/* Hero call button */
.hero-call-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.hero-call-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
}
.hero-call-btn {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: var(--fg);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.hero-call-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.hero-call-btn:active { transform: scale(0.97); }
.hero-call-hint {
  font-size: 14px;
  color: var(--muted);
}

/* Call modal */
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-modal[hidden] { display: none; }
.call-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.call-modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.call-modal-setup h3,
.call-modal-setup h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.call-modal-setup > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.call-modal-setup .form-group {
  text-align: left;
  margin-bottom: 20px;
}

/* Active call UI */
.call-modal-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
/* The [hidden] HTML attribute should hide the active-call panel until
   startVoiceCall() flips it on. Without this override, the .call-modal-
   active rule above (display: flex) wins over the user-agent default
   `[hidden] { display: none }` because both have a single class /
   attribute selector, and the .class came later in cascade order.
   Result before this fix: intake form AND active-call panel rendered
   simultaneously the moment the modal opened. */
.call-modal-active[hidden] { display: none; }
.call-pulse-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.call-pulse-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--fg);
  opacity: 0.2;
  animation: callPulse 2s ease-in-out infinite;
}
@keyframes callPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.15); opacity: 0.05; }
}
.call-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-avatar.speaking {
  animation: speakPulse 0.6s ease-in-out infinite alternate;
}
@keyframes speakPulse {
  from { box-shadow: 0 0 0 0 rgba(0,0,0,0.1); }
  to { box-shadow: 0 0 0 16px rgba(0,0,0,0.05); }
}
.call-info { text-align: center; }
.call-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}
.call-status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.call-timer {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 4px;
}
.call-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}
.call-visualizer .bar {
  width: 4px;
  background: var(--fg);
  border-radius: 2px;
  animation: vizBar 0.8s ease-in-out infinite alternate;
}
.call-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.call-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.call-visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.call-visualizer .bar:nth-child(5) { animation-delay: 0.15s; }
.call-visualizer .bar:nth-child(6) { animation-delay: 0.25s; }
.call-visualizer .bar:nth-child(7) { animation-delay: 0.05s; }
@keyframes vizBar {
  from { height: 6px; }
  to { height: 32px; }
}
.call-end-btn {
  background: #dc2626;
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  margin-top: 8px;
}
.call-end-btn:hover { background: #b91c1c; }

/* Hero cloud decoration */
.hero-cloud {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(200,195,188,0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Split panels (How it works) ── */
.split-panel {
  display: flex;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  min-height: 400px;
}
.split-left, .split-right {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-cream {
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.split-black {
  background: var(--fg);
  color: var(--white);
}
.split-panel .split-left.split-black {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.split-panel .split-right.split-black {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.step-num {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  display: block;
  line-height: 1.2;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.step-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
}

/* Brand logos grid (step 01 left panel) */
.brand-logos-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: center;
  justify-items: center;
  padding: 12px;
}
.brand-logos-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s;
  filter: grayscale(0.3);
}
.brand-logos-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Confidential visual (step 04) */
.confidential-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
}
.conf-lock {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}
.conf-lock svg {
  width: 64px;
  height: 64px;
}
.conf-badge {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 28px;
  border-radius: var(--radius-full);
}

/* Step description for white-on-black panels */
.step-desc-white {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Step demo box (step 01 left panel) */
.step-demo-box {
  max-width: 420px;
  margin: 0 auto;
}
.step-demo-label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.step-demo-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.step-demo-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
  background: var(--white);
}

/* Roles grid (step 02 left panel) */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.role-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* Dashboard mock (step 03 left panel) */
.dashboard-mock {
  max-width: 400px;
  margin: 0 auto;
}
.dash-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.dash-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dash-value {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}
.dash-sub {
  font-size: 13px;
  color: var(--muted);
}
.live-dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.dash-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.dash-row strong { color: var(--fg); }

/* ── Integrations ── */
.integrations-section { background: var(--bg); }
.integrations-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.integrations-text .section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}
.integrations-text .section-desc { margin-bottom: 24px; }
.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
}
.integ-icon {
  background: var(--fg);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.integ-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Integrations pill grid */
.integrations-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.integ-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}
.integ-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.integ-pill:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}
.integ-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Features grid ── */
.features-wrap {
  background: var(--fg);
  color: var(--white);
  border-radius: var(--radius-xl);
  margin: 0 24px;
  padding: 96px 0;
}
.features-wrap .section-title { color: var(--white); margin-bottom: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 24px;
}
.feature-card {
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--fg);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Demo chat ── */
.demo-section { background: var(--bg); }
.chat-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.chat-title { flex: 1; }
.chat-title > div:first-child { font-weight: 600; font-size: 14px; }
.chat-status { font-size: 12px; color: var(--muted); }
.chat-reset {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.chat-reset:hover { border-color: var(--fg); color: var(--fg); }

.chat-log {
  padding: 20px;
  min-height: 280px;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-bubble.user .chat-avatar {
  background: var(--border);
  color: var(--muted);
}
.chat-text {
  background: #f5f5f0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 78%;
  color: var(--fg);
  white-space: normal;
  word-wrap: break-word;
}
.chat-bubble.user .chat-text {
  background: var(--fg);
  color: var(--white);
}

.chat-thinking {
  padding: 0 20px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.chat-thinking.visible {
  display: flex;
}
.dots { display: inline-flex; gap: 4px; }
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  animation: bounce 1.2s infinite ease;
}
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.chat-input input:focus { border-color: var(--fg); }
.mic-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mic-btn:hover { border-color: var(--fg); color: var(--fg); }
.mic-btn.recording { background: var(--red); color: var(--white); border-color: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0.2); } }
.send-btn {
  background: var(--fg);
  border: 1px solid var(--fg);
  color: var(--white);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.15s;
}
.send-btn:hover { opacity: 0.85; }

.chat-suggestions {
  padding: 12px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
}
.suggest {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: inherit;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.suggest:hover { border-color: var(--fg); color: var(--fg); }

.demo-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.demo-note a { color: var(--fg); font-weight: 500; text-decoration: underline; }

/* ── Qualification ── */
.qualify-section { background: var(--bg); }
.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.qualify-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: var(--white);
}
.qualify-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.qualify-yes h3 { color: var(--green); }
.qualify-no h3 { color: var(--red); }
.qualify-card ul { display: flex; flex-direction: column; gap: 14px; }
.qualify-card li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}
.qualify-card li strong { color: var(--fg); }
.qualify-yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.qualify-no li::before { content: "\2717"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
}
.pricing-popular {
  border-color: var(--fg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-name {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.pricing-setup {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--fg);
  font-size: 12px;
}
.pricing-overage {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

/* ── CTA + Deposit ── */
.cta-section {
  text-align: center;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
}

/* Cohort counter */
.cohort-counter {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: left;
}
.cohort-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.cohort-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}
.cohort-fill {
  height: 100%;
  background: var(--fg);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cohort-status {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-heading);
}

/* Deposit form */
.deposit-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23777'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--fg); }

.revenue-block {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}
.revenue-block p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.deposit-error {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 14px;
}
.form-fine-print {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ── Cohort Story ── */
.cohort-story-section { background: var(--bg); }
.cohort-story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}
.cohort-story-left .section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 24px;
}
.cohort-story-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.cohort-story-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 48px;
}
.cohort-stat-card {
  background: var(--fg);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
}
.cohort-stat-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.cohort-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.cohort-scenario {
  margin: 64px 0;
  text-align: center;
}
.cohort-scenario .section-tag {
  display: inline-block;
  margin-bottom: 32px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.scenario-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}
.scenario-before {
  background: var(--white);
  border: 1px solid var(--border);
}
.scenario-after {
  background: var(--fg);
  color: var(--white);
}
.scenario-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.scenario-before .scenario-label { color: var(--red); }
.scenario-after .scenario-label { color: rgba(255,255,255,0.5); }
.scenario-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scenario-card li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}
.scenario-before li { color: var(--muted); }
.scenario-after li { color: rgba(255,255,255,0.8); }
.scenario-before li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.scenario-after li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.cohort-scenario-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.cohort-2-announcement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.cohort-2-announcement .section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
}
.cohort-2-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: left;
}
.cohort-2-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
  text-align: left;
}
.cohort-2-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.cohort-2-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--fg);
}
.cohort-2-item span {
  font-size: 14px;
  color: var(--muted);
}
.cohort-2-urgency {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 24px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.footer-col h4,
.footer-col h3,
.footer-col__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--fg);
  padding: 4px 0;
  transition: opacity 0.15s;
}
.footer-col a:hover { opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  :root { --section-py: 80px; }

  .nav { position: relative; }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile drawer: click burger → .nav gets .is-open → links + actions slide down */
  .nav.is-open .nav-inner { flex-wrap: wrap; row-gap: 0; }
  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  .nav.is-open .nav-actions { padding-top: 0; border-top: none; margin-top: 0; }
  .nav.is-open .nav-links a {
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
  }
  .nav.is-open .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero { padding: 120px 0 64px; min-height: auto; }
  .hero-title { font-size: clamp(28px, 7vw, 40px); }
  .hero-input-actions { flex-direction: column; }

  .split-panel { flex-direction: column; }
  .split-left, .split-right { padding: 32px; }
  .split-cream { border: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none; }
  .split-panel .split-right.split-black { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .split-panel .split-left.split-black { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

  .integrations-layout { grid-template-columns: 1fr; gap: 40px; }
  .integ-pills { max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .features-wrap { margin: 0 16px; border-radius: var(--radius-lg); }
  .qualify-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .cohort-story { grid-template-columns: 1fr; }
  .cohort-2-highlights { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-logos-grid { grid-template-columns: repeat(5, 1fr); }
  .nav-logo { height: 36px; }
  .hero-call-btn { width: 130px; height: 130px; border-radius: 24px; }
  .hero-call-btn svg { width: 48px; height: 48px; }
  .btn-lg { padding: 14px 20px; font-size: 14px; }

  .form-group input,
  .form-group select,
  .chat-input input { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-input-box { padding: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .deposit-card { padding: 24px 16px; }
  .btn-lg { padding: 14px 16px; font-size: 13px; }
  .cohort-stat-value { font-size: 28px; }
}

.call-review {
  display: grid;
  gap: 16px;
}

.calls-week-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper, #fffdf7);
  font-size: 14px;
}

.calls-week-strip strong {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 700;
}

.calls-attention-chip,
.review-chip,
.outcome-pill,
.call-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.calls-attention-chip {
  cursor: pointer;
  border-color: #d97706;
  background: #fff7ed;
  color: #9a3412;
}

.calls-filterbar {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(2, minmax(136px, 1fr)) repeat(2, max-content) max-content;
  gap: 10px;
  align-items: end;
}

.calls-filterbar label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.calls-filterbar select,
.calls-filterbar input[type="date"] {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  font: inherit;
}

.calls-check {
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  align-items: center;
  min-height: 38px;
  color: var(--fg);
}

.calls-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.call-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) max-content max-content max-content max-content;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.call-row:hover,
.call-row:focus-visible {
  border-color: var(--fg);
  outline: none;
}

.call-row__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.call-row__main strong,
.call-row__main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-pill {
  text-transform: capitalize;
}

.review-chip--green {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.review-chip--amber {
  border-color: #d97706;
  background: #fff7ed;
  color: #9a3412;
}

.review-chip--red,
.call-flag--lost {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.review-chip--muted {
  color: var(--muted);
  background: #f8fafc;
}

.call-icon {
  font-size: 16px;
}

.calls-empty,
.calls-error {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.calls-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.calls-load-more {
  justify-self: center;
}

.calls-drawer[hidden] {
  display: none;
}

.calls-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.calls-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.calls-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(620px, 100%);
  overflow-y: auto;
  background: #fff;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
}

.calls-drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.calls-drawer__head h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.calls-drawer__body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.review-card,
.call-detail-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.review-card__score {
  font-size: 22px;
  font-weight: 800;
}

.review-card dl,
.review-card dt,
.review-card dd {
  margin: 0;
}

.review-card dl {
  display: grid;
  gap: 8px;
}

.review-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lost-sale-banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}

.call-detail-block h3 {
  margin: 0;
  font-size: 14px;
}

.call-detail-block audio {
  width: 100%;
}

.transcript-turns {
  display: grid;
  gap: 10px;
}

.turn {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.turn--agent {
  justify-self: end;
  background: var(--paper-deep, #f3f0ea);
}

.turn span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.turn p {
  margin: 0;
  line-height: 1.5;
}

.call-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.call-facts div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.call-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.call-facts dd {
  margin: 0;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 960px) {
  .calls-filterbar,
  .call-row,
  .call-facts {
    grid-template-columns: 1fr;
  }

  .calls-week-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .calls-drawer__panel {
    width: 100%;
  }
}
