/* Vexara AI — Design tokens & base */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Light theme (default) */
  --bg: oklch(99% 0.003 240);
  --bg-elev: oklch(100% 0 0);
  --bg-subtle: oklch(97% 0.005 240);
  --ink: oklch(15% 0.02 250);
  --ink-muted: oklch(45% 0.015 250);
  --ink-faint: oklch(65% 0.012 250);
  --line: oklch(15% 0.02 250 / 0.09);
  --line-strong: oklch(15% 0.02 250 / 0.16);
  --accent: oklch(58% 0.20 255);
  --accent-ink: oklch(98% 0.005 240);
  --accent-soft: oklch(58% 0.20 255 / 0.10);
  --success: oklch(62% 0.16 155);
  --warn: oklch(72% 0.16 60);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --container: 1240px;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;

  --shadow-sm: 0 1px 2px oklch(15% 0.02 250 / 0.04), 0 1px 1px oklch(15% 0.02 250 / 0.03);
  --shadow: 0 4px 24px oklch(15% 0.02 250 / 0.06), 0 1px 2px oklch(15% 0.02 250 / 0.04);
  --shadow-lg: 0 24px 64px oklch(15% 0.02 250 / 0.10), 0 2px 8px oklch(15% 0.02 250 / 0.04);
}

[data-theme="dark"] {
  --bg: oklch(12% 0.015 250);
  --bg-elev: oklch(16% 0.018 250);
  --bg-subtle: oklch(19% 0.018 250);
  --ink: oklch(98% 0.005 240);
  --ink-muted: oklch(78% 0.012 250);
  --ink-faint: oklch(62% 0.015 250);
  --line: oklch(97% 0.005 240 / 0.10);
  --line-strong: oklch(97% 0.005 240 / 0.20);
  --accent: oklch(78% 0.16 255);
  --accent-ink: oklch(12% 0.015 250);
  --accent-soft: oklch(78% 0.16 255 / 0.18);
  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.4);
  --shadow: 0 8px 32px oklch(0% 0 0 / 0.4), 0 2px 4px oklch(0% 0 0 / 0.3);
  --shadow-lg: 0 24px 64px oklch(0% 0 0 / 0.5), 0 4px 12px oklch(0% 0 0 / 0.3);
}

/* Dark-mode contrast fixes — without these, light-on-light text disappears on
   inverted-ink components (primary buttons, logo mark, agent bubbles, etc.).
   Pulled from the bundle 2 iteration where the user reported text vanishing
   when toggling dark mode. */
[data-theme="dark"] .btn-primary {
  background: var(--ink);
  color: oklch(12% 0.015 250);
}
[data-theme="dark"] .logo-mark {
  background: var(--ink);
  color: oklch(12% 0.015 250);
}
[data-theme="dark"] .stage.done .marker { color: oklch(12% 0.015 250); }
[data-theme="dark"] .bubble.agent { color: oklch(12% 0.015 250); }
[data-theme="dark"] .roi-controls input[type=range]::-webkit-slider-thumb { background: var(--ink); }
[data-theme="dark"] .submit-btn,
[data-theme="dark"] .btn-primary { color: oklch(12% 0.015 250) !important; }
[data-theme="dark"] .faq-item.open .plus { color: oklch(12% 0.015 250); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }

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

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }

p { color: var(--ink-muted); text-wrap: pretty; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-elev);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--ink-muted); }
.btn-arrow svg { transition: transform 0.18s; }
.btn-arrow:hover svg { transform: translateX(2px); }

/* Section scaffold */
section { padding: 112px 0; position: relative; }
.section-header { max-width: 760px; margin-bottom: 64px; }
.section-header h2 { margin: 18px 0 18px; }
.section-header .lead { font-size: 20px; }

/* Section rhythm — alternate light/subtle for tempo.
   #shifts is the first content section after the logo band; subtle-bg.
   transcript-section already uses bg-subtle (declared below).
   #industries gets subtle-bg to play off the stats band's light. */
#shifts { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#industries { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#roi { background: var(--bg); }
.testimonial { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 128px 0; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px oklch(15% 0.02 250 / 0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-subtle); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.logo-mark svg { width: 16px; height: 16px; }

/* HERO */
.hero {
  padding: 104px 0 88px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Layered atmospheric backdrop:
   - .hero-grid-bg  → subtle architectural grid
   - .hero::before  → soft radial accent glow behind the callcard
   - .hero::after   → fine film-grain noise to break the digital flatness */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 38%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, color-mix(in oklch, var(--accent) 8%, transparent), transparent 70%);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' 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.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: -1;
}
[data-theme="dark"] .hero::after { mix-blend-mode: overlay; opacity: 0.22; }
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.55;
  z-index: -2;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.hero-pill .tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.hero h1 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  /* Instrument Serif sits high in its em box — nudge it back onto the baseline
     so it doesn't float above the Geist line beside it. */
  display: inline-block;
  transform: translateY(0.04em);
  padding-right: 0.05em;
}
.hero h1 .accent::after {
  /* Hairline brand-blue underline anchors the serif to the page accent */
  content: '';
  display: block;
  height: 2px;
  margin-top: -0.18em;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  border-radius: 2px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 52ch;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.hero-trust {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }

/* HERO ANIM CARD */
.callcard {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--accent) 4%, var(--bg-elev)) 0%, var(--bg-elev) 18%),
    var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow:
    0 1px 0 0 color-mix(in oklch, white 60%, transparent) inset,
    0 24px 48px -16px color-mix(in oklch, var(--accent) 22%, transparent),
    0 32px 80px -24px oklch(15% 0.02 250 / 0.18),
    0 2px 8px oklch(15% 0.02 250 / 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
}
[data-theme="dark"] .callcard {
  background: var(--bg-elev);
  box-shadow:
    0 1px 0 0 color-mix(in oklch, white 8%, transparent) inset,
    0 24px 48px -16px color-mix(in oklch, var(--accent) 28%, transparent),
    0 32px 80px -24px oklch(0% 0 0 / 0.5);
}
.callcard::before {
  /* Brand-blue glow halo behind the card — depth */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 26%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: 0.85;
}
.callcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.callcard-head .label { color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.callcard-head .latency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
}
.callcard-head .latency .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.callcard-stages { display: flex; flex-direction: column; gap: 0; }
.stage {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.stage:last-child { border-bottom: none; }
.stage.active { opacity: 1; transform: translateY(0); }
.stage.done .marker { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stage.done .marker svg { display: block; }
.stage.done .marker .num { display: none; }
.stage .marker {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 14px;
  background: var(--bg-elev);
  transition: all 0.25s;
}
.stage .marker svg { width: 12px; height: 12px; display: none; }
.stage .label { font-size: 13px; color: var(--ink); }
.stage .label .sub { font-family: var(--font-sans); font-size: 12px; color: var(--ink-faint); display: block; margin-top: 2px; letter-spacing: -0.005em; }
.stage .timestamp { color: var(--ink-faint); font-size: 11px; padding-right: 4px; }

.stage.active.current .marker {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  animation: ring 1.5s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.callcard-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-faint);
}
.callcard-foot .crm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
}

/* Logos band */
.logos-band {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-band-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logos-row .crm-name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
  opacity: 0.85;
}

/* SHIFTS */
.shifts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shift-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.shift-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.shift-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--accent);
}
.shift-icon svg { width: 18px; height: 18px; }
.shift-card h3 { margin-bottom: 10px; }
.shift-card p { font-size: 14px; line-height: 1.55; }
.shift-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.shift-meta .v { color: var(--ink); }

/* Transcript section */
.transcript-section { background: var(--bg-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transcript-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.transcript-sticky {
  position: sticky;
  top: 100px;
}
.transcript-sticky .eyebrow { margin-bottom: 14px; }
.transcript-sticky h2 { margin-bottom: 16px; }
.transcript-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.transcript-meta .item {
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.transcript-meta .item .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-faint); letter-spacing: 0.04em; }
.transcript-meta .item .v { font-size: 18px; font-weight: 500; margin-top: 4px; color: var(--ink); }

.transcript-feed {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 540px;
  box-shadow: var(--shadow);
}
.transcript-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.bubble.visible { opacity: 1; transform: translateY(0); }
.bubble.agent {
  background: var(--ink);
  color: var(--bg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.lead {
  background: var(--bg-subtle);
  color: var(--ink);
  align-self: flex-end;
  border: 1px solid var(--line);
  border-bottom-right-radius: 4px;
}
.bubble .who {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 4px;
  display: block;
}

/* Stats band — promoted to the largest type on the page.
   Ambient horizontal gradient sweep + display-sized tabular numerals make
   this the anchoring proof moment between Transcript and Industries. */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 50%, color-mix(in oklch, var(--accent) 5%, transparent), transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  /* Hairline sweep across the top — implies forward motion */
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-size: clamp(72px, 9.5vw, 132px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--ink);
  font-feature-settings: 'tnum';
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .num .unit {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-style: italic;
}
.stat .label {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
  max-width: 22ch;
}
.stats-disclaimer {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.industry {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.industry::before {
  /* Accent-tinted halo on hover — restrained, no full color flood */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.industry:hover {
  border-color: color-mix(in oklch, var(--accent) 40%, var(--line-strong));
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px color-mix(in oklch, var(--accent) 20%, transparent), 0 1px 2px oklch(15% 0.02 250 / 0.04);
}
.industry:hover::before { opacity: 1; }
.industry > * { position: relative; z-index: 1; }
.industry-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.industry-icon svg { width: 20px; height: 20px; }
.industry h3 { font-size: 17px; margin-bottom: 6px; }
.industry p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.industry .stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.industry .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  white-space: nowrap;
}
.industry .badge.flagship {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

/* ROI calculator */
.roi {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  box-shadow: var(--shadow);
}
.roi-controls .roi-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.roi-controls label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.roi-controls label .val { color: var(--ink); font-size: 14px; }
.roi-controls input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line-strong);
  border-radius: 999px;
  outline: none;
}
.roi-controls input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--bg-elev);
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.roi-controls input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--bg-elev);
  cursor: pointer;
}
.roi-output {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roi-output .key {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.roi-output .big {
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 8px;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.roi-output .big .unit { font-size: 28px; color: var(--ink-faint); margin-left: 4px; }
.roi-output .sub { color: var(--ink-muted); font-size: 14px; }
.roi-output .breakdown {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.roi-output .breakdown .b-k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.roi-output .breakdown .b-v {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
  font-feature-settings: 'tnum';
}

/* Testimonial */
.testimonial blockquote {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
}
.testimonial blockquote .accent {
  color: var(--accent);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.testimonial blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 8vw, 120px);
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 8px;
}
.testimonial cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  padding: 120px 0;
}
[data-theme="dark"] .final-cta { background: oklch(8% 0.02 250); border-top: 1px solid var(--line); }
.final-cta .container { position: relative; z-index: 1; }
.final-cta-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(98% 0.005 240 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, oklch(98% 0.005 240 / 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 70%);
}
.final-cta h2 {
  color: var(--bg);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}
.final-cta p {
  color: oklch(85% 0.005 240);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
}
.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.final-cta .btn-primary { background: var(--bg); color: var(--ink); }
.final-cta .btn-primary:hover { background: oklch(95% 0.005 240); }
.final-cta .btn-ghost {
  background: transparent;
  color: var(--bg);
  border-color: oklch(98% 0.005 240 / 0.2);
}
.final-cta .btn-ghost:hover {
  background: oklch(98% 0.005 240 / 0.06);
  border-color: oklch(98% 0.005 240 / 0.4);
}

/* Footer */
footer {
  padding: 64px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-brand p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 28ch;
  line-height: 1.5;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-muted); transition: color 0.15s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ============================================================
   SUBPAGE STYLES (Auto Dealerships + How It Works)
   ============================================================ */
.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-hero .crumbs a { color: var(--ink-muted); transition: color 0.15s; }
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 20px;
  max-width: 18ch;
}
.page-hero .lead { font-size: 19px; max-width: 60ch; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 16px; }

/* Pipeline (How It Works) */
.pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pipeline-step {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pipeline-step .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.pipeline-step h3 { font-size: 26px; margin-bottom: 12px; letter-spacing: -0.02em; }
.pipeline-step p { font-size: 15px; line-height: 1.6; }
.pipeline-detail {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.pipeline-detail .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.pipeline-detail .row:last-child { border-bottom: none; }
.pipeline-detail .k { color: var(--ink-faint); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
.pipeline-detail .v { color: var(--ink); }
.pipeline-detail .v.accent { color: var(--accent); }

/* Auto-dealership specific */
.dealer-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.dealer-flow-card {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.dealer-flow-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.dealer-flow-card h4 { font-size: 17px; margin-bottom: 8px; }
.dealer-flow-card p { font-size: 14px; line-height: 1.5; }

/* Integration grid */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.integration-card {
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}
.integration-card:hover { border-color: var(--line-strong); color: var(--ink); }

/* Compliance band */
.compliance-band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.compliance-item .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.compliance-item h4 { font-size: 16px; margin-bottom: 6px; }
.compliance-item p { font-size: 13.5px; line-height: 1.5; }

@media (max-width: 980px) {
  .pipeline-step { grid-template-columns: 1fr; gap: 16px; }
  .dealer-flow { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .shifts-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .roi { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .transcript-wrap { grid-template-columns: 1fr; }
  .transcript-sticky { position: relative; top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  h1 { font-size: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none !important; }
}
