/* ── withmerkava.com — Graphite Dawn ported from Merkava dashboard ─────── */

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
html { overflow-x: clip; } /* progressive upgrade where supported */
body { min-height: 100vh; position: relative; }
img, svg, video, iframe { max-width: 100%; }

:root {
  /* Dawn tokens (default) */
  --bg-base: linear-gradient(135deg, #e6ecff 0%, #f5e9f2 45%, #fff0e3 100%);
  --bg-fallback: #f0e9f2; /* solid color used as background-color so the body still has a sensible bg if the gradient image fails (iOS Safari + radial-gradient + background-attachment can drop the image silently). Must coexist with --text-primary for contrast. */
  --bg-glow-a: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.25), transparent 55%);
  --bg-glow-b: radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.20), transparent 50%);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-elevated: rgba(255, 255, 255, 0.75);
  --surface-border: rgba(255, 255, 255, 0.60);
  --surface-border-strong: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #6366f1, #ec4899);
  --accent-solid: #6366f1;
  --accent-solid-rgb: 99, 102, 241;
  --success: #16a34a;
  --warning: #ca8a04;
  --error: #dc2626;
  --highlight-inner: rgba(255, 255, 255, 0.80);
  --shadow-outer: rgba(15, 23, 42, 0.15);

  /* Scale */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 32px; --space-8: 40px;
  --space-9: 56px; --space-10: 80px; --space-11: 112px; --space-12: 144px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;

  /* Type */
  --font-primary: -apple-system, "SF Pro Display", system-ui, "Inter", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, "JetBrains Mono", monospace;

  /* Layout */
  --page-max: 1200px;
}

[data-theme="graphite"] {
  --bg-base: radial-gradient(ellipse at 30% 10%, #1e293b, #030712 70%);
  --bg-fallback: #0b0f17; /* solid graphite fallback */
  --bg-glow-a: radial-gradient(circle at 75% 85%, rgba(56, 189, 248, 0.18), transparent 50%);
  --bg-glow-b: radial-gradient(circle at 15% 25%, rgba(168, 85, 247, 0.12), transparent 45%);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-elevated: rgba(255, 255, 255, 0.10);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #38bdf8, #a855f7);
  --accent-solid: #38bdf8;
  --accent-solid-rgb: 56, 189, 248;
  --success: #4ade80;
  --warning: #facc15;
  --error: #f87171;
  --highlight-inner: rgba(255, 255, 255, 0.10);
  --shadow-outer: rgba(0, 0, 0, 0.50);
}

/* ── Base body + background glows ─── */
body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  /* Solid fallback first; gradient image second. If the gradient drops
     (iOS Safari quirk with background-attachment + radial-gradient), the
     fallback color guarantees the page bg matches the active theme so
     text contrast holds. */
  background-color: var(--bg-fallback);
  background-image: var(--bg-base);
  background-attachment: fixed;
  transition: color 200ms ease, background-color 200ms ease, background-image 200ms ease;
  font-size: 16px;
  line-height: 1.6;
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: background 200ms ease;
}
body::before { background: var(--bg-glow-a); }
body::after  { background: var(--bg-glow-b); }

/* ── Typography scale ─── */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 7vw, 96px); line-height: 1.05; }
h2 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.08; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p  { margin: 0; }

/* Give section H2s breathing room below the kicker and above their body. */
section > .label-mono + h2,
section > .label-mono + h2.drives-section-title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.label-mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── Glass primitives ─── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 8px 24px -12px var(--shadow-outer);
}
.glass-elevated {
  background: var(--surface-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 12px 32px -12px var(--shadow-outer);
}

/* ── Layout ─── */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
}
section {
  padding: var(--space-12) 0;
  scroll-margin-top: var(--space-6);
}
@media (max-width: 900px) {
  section { padding: var(--space-9) 0; }   /* 56px */
}
@media (max-width: 600px) {
  section { padding: var(--space-8) 0; }   /* 40px */
}
/* Tightly-grouped sections (e.g. simulator + try-it + activation cards
   stacked under the hero). Override the standard section rhythm so the
   group reads as one block. */
section.section-tight { padding: var(--space-4) 0 0; }
@media (max-width: 600px) {
  section.section-tight { padding: var(--space-3) 0 0; }
}

/* Reveal-on-scroll for major sections — CSS-only, reduced-motion safe. */
@media (prefers-reduced-motion: no-preference) {
  section {
    opacity: 0;
    transform: translateY(16px);
    animation: section-reveal 620ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }
  /* Browsers without scroll-timeline support: show immediately. */
  @supports not (animation-timeline: view()) {
    section { opacity: 1; transform: none; animation: none; }
  }
  /* Hero is above the fold — don't hide it. */
  section.hero,
  section:first-of-type {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
@keyframes section-reveal {
  to { opacity: 1; transform: none; }
}

/* ── Nav ─── */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  max-width: var(--page-max);
  margin: var(--space-4) auto var(--space-5);
  position: sticky;
  top: var(--space-4);
  z-index: 50;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-brand-img {
  display: block;
  height: 28px;
  width: auto;
}
@media (max-width: 600px) {
  .nav-brand-img { height: 24px; }
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.theme-toggle {
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ── Hero ─── */
.hero {
  text-align: left;
  padding-top: var(--space-8);
}
.hero-eyebrow { display: block; margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-6); max-width: 18ch; }
.hero p.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: var(--space-7);
}
.hero-cta {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(var(--accent-solid-rgb), 0.4);
}
.btn-ghost {
  display: inline-block;
  background: none;
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid var(--surface-border);
}
.hero-stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── What-it-does block grid (3 or 4 column variants) ─── */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}
.layer-grid.layer-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.layer-grid.layer-grid-3 .layer { padding: var(--space-6); }
.layer {
  padding: var(--space-5);
  border-left: 2px solid var(--accent-solid);
}
.layer-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--accent-solid);
  margin-bottom: var(--space-2);
}
.layer h3 { margin-bottom: var(--space-3); }
.layer-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--surface-border-strong);
  border-radius: 999px;
  background: rgba(var(--accent-solid-rgb), 0.06);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a.chip:hover,
button.chip:hover {
  background: rgba(var(--accent-solid-rgb), 0.14);
  border-color: var(--accent-solid);
  color: var(--text-primary);
}
.services-strip {
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  overflow-x: auto;
}
.services-label {
  color: var(--accent-solid);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: var(--space-3);
}

/* ── Drive grid ─── */
.drive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
/* Drives section — three-discipline grouping (Build / Scale / Intelligence).
   Designed to read like three distinct propositions, not three tiny
   subheadings. Kicker (label-mono) sits above a large sentence-case
   headline, with a supporting sub-paragraph. Matches the weight of H2
   so the reader's eye registers each section as its own mini-page. */

.drives-section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.drives-section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-5);
}
.drives-section-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 72ch;
  margin: 0 0 var(--space-8);
}

.drive-section-heading {
  display: grid;
  gap: 8px;
  margin: var(--space-10) 0 var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--surface-border);
  position: relative;
}
.drive-section-heading:first-of-type {
  margin-top: var(--space-8);
}
.drive-section-kicker {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-solid);
  font-weight: 600;
}
.drive-section-heading .drive-section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0;
  font-family: inherit;
}
.drive-section-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 66ch;
  margin-top: 4px;
  font-weight: 400;
}
/* Drive cards — tighter body copy under the larger section header.
   The previous layout felt "upside down" with cards more prominent
   than their own section label; now the section leads. */
.drive-grid {
  margin-top: var(--space-3);
}
.drive-card .drive-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 6px;
}
.drive-card .drive-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.drive-card .drive-tag {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.drive-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.drive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px var(--shadow-outer);
}
.drive-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-solid);
}
.drive-name { font-size: 22px; font-weight: 600; }
.drive-tag {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}
.drive-body { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ── Status pills (Available / In progress / Coming soon) ─── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.status-pill-available {
  color: var(--success);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: color-mix(in srgb, var(--success) 28%, transparent);
}
.status-pill-in-progress {
  color: var(--warning);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: color-mix(in srgb, var(--warning) 32%, transparent);
}
.status-pill-coming-soon {
  color: var(--text-muted);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: var(--surface-border-strong);
}
.status-pill-live {
  color: var(--success);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}

/* ── Integration card — shares drive-card skeleton but logo-first ─── */
.integration-card {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.integration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px var(--shadow-outer);
}
.integration-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.integration-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-solid);
  flex-shrink: 0;
}
.integration-logo svg { width: 32px; height: 32px; display: block; }
.integration-logo-fallback {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-solid);
}
.integration-name { font-size: 20px; font-weight: 600; }
.integration-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-solid);
  text-transform: uppercase;
}
.integration-tag {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Filter tabs (All / Drives / Integrations) ─── */
.filter-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-top: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.filter-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab[aria-pressed="true"] {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
}

/* Filtered-out sections collapse entirely */
[data-filter-target].is-hidden { display: none !important; }

/* Integration hero layout (detail pages) */
.integration-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
}
.integration-hero-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.integration-hero .integration-logo {
  width: 72px;
  height: 72px;
}
.integration-hero .integration-logo svg { width: 44px; height: 44px; }
.integration-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 0; }
.integration-hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.55;
  margin: 0;
}

/* ── Beacon marquee ─── */
.marquee-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  margin-top: var(--space-7);
}
.marquee-hero img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -16px var(--shadow-outer);
}
.marquee-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.marquee-bullets li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--text-secondary);
}
.marquee-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: 700;
}

/* ── Showcase ─── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.showcase-tile {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease;
}
.showcase-tile:hover { transform: translateY(-2px); }
.showcase-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.showcase-name { font-weight: 600; font-size: 16px; }
.showcase-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── How it works (3-step) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.step { padding: var(--space-5); }
.step-n {
  font-family: var(--font-mono);
  font-size: 52px;
  color: var(--accent-solid);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* ── Why-now bullets ─── */
.why-now {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.why-bullet { display: flex; gap: var(--space-5); align-items: flex-start; }
.why-n {
  font-family: var(--font-mono);
  font-size: 48px;
  color: var(--accent-solid);
  flex-shrink: 0;
  min-width: 80px;
}
.why-body h3 { margin-bottom: var(--space-2); }
.why-body p { color: var(--text-secondary); }

/* ── FAQ ─── */
.faq-waitlist {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-7);
  margin-top: var(--space-6);
}
.faq-list { display: flex; flex-direction: column; gap: var(--space-4); }
details.faq {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
}
details.faq summary {
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent-solid);
  font-weight: 300;
}
details.faq[open] summary::after { content: '−'; }
details.faq p {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.waitlist-form {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: fit-content;
  position: sticky;
  top: var(--space-7);
}
.waitlist-form h3 { margin-bottom: var(--space-2); }
.waitlist-form label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}
.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--accent-solid);
}
.waitlist-form button[type="submit"] {
  margin-top: var(--space-3);
}
.waitlist-msg {
  font-size: 13px;
  margin-top: var(--space-3);
  min-height: 1.2em;
}
.waitlist-msg.ok  { color: var(--success); }
.waitlist-msg.err { color: var(--error); }

/* ── Legacy minimal footer (kept for non-updated pages) ─── */
footer:not(.site-footer) {
  padding: var(--space-7) var(--space-6);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-border);
  margin-top: var(--space-10);
}
footer:not(.site-footer) a { color: var(--text-muted); }

/* ── Mega-footer — context-rich SEO + GEO linking ─── */
.site-footer {
  margin-top: var(--space-10);
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-top: 1px solid var(--surface-border);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(var(--accent-solid-rgb), 0.02) 100%);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.site-footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  /* Product | Drives(Build+Scale) | Drives(Intel) | Solutions | Compare | Company
     Drive columns get ~30% more width because they hold name+descriptor rows. */
  grid-template-columns: 1fr 1.45fr 1.45fr 1fr 1fr 0.9fr;
  gap: var(--space-6);
}
.site-footer .footer-col { min-width: 0; }
.site-footer .footer-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}
.site-footer .footer-heading-tight {
  margin-top: var(--space-5);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
}
.site-footer li {
  margin: 0 0 6px;
  font-size: 13px;
}
.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 120ms ease;
}
.site-footer a:hover {
  color: var(--accent-solid);
}

/* Drive-list rows: Name · em-dash · description, columns aligned across every row */
.site-footer .footer-drive-list li a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.45;
}
.site-footer .footer-drive-list .fd-name {
  flex: 0 0 80px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-footer .footer-drive-list .fd-dash {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.site-footer .footer-drive-list .fd-desc {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  color: var(--text-muted);
}
.site-footer .footer-drive-list li a:hover .fd-name,
.site-footer .footer-drive-list li a:hover .fd-desc {
  color: var(--accent-solid);
}
.site-footer .footer-heading { white-space: nowrap; }
@media (max-width: 700px) {
  .site-footer .footer-drive-list .fd-name { flex-basis: 76px; }
  .site-footer .footer-heading { white-space: normal; }
}
.site-footer .footer-bottom {
  max-width: 1280px;
  margin: var(--space-8) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.site-footer .footer-bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-footer .footer-bottom-links span { color: var(--surface-border-strong, #d1d5db); }
.site-footer .footer-bottom a { color: var(--text-muted); }

@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Responsive ─── */
@media (max-width: 900px) {
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .drive-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .marquee-hero { grid-template-columns: 1fr; }
  .faq-waitlist { grid-template-columns: 1fr; }
  .waitlist-form { position: static; }
}
@media (max-width: 600px) {
  .layer-grid, .drive-grid, .showcase-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
  .hero { padding-top: var(--space-5); }
  .hero h1 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  .hero p.lead { font-size: 15px; line-height: 1.55; }
  .hero-stats { gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
  .hero-stat { font-size: 10.5px; }
  h2 { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; }
  .drives-section-title { font-size: clamp(26px, 7vw, 36px); }
  .drives-section-lede { font-size: 15px; }
  .label-mono { font-size: 10px; }
  .services-strip { font-size: 11px; line-height: 1.6; padding: var(--space-3) var(--space-4); }
  .services-strip .services-label { display: block; margin-bottom: 4px; margin-right: 0; }
  /* Stub-page heroes inherit the same scaling */
  .stub-hero { padding-top: var(--space-5); }
  .stub-hero h1 { font-size: clamp(30px, 8vw, 44px); max-width: 100%; }
  .pricing-hero { padding-top: var(--space-5); }
  .pricing-hero h1 { font-size: clamp(30px, 8vw, 44px); }
}

/* ── Exec card (home "Meet the execs" section) — mobile lockup ───
   The cards are inline-styled for desktop; on phones we override
   their internal flex rows so the LIVE pill stops floating off
   the right edge and the chip rail packs tightly. */
.exec-card { padding: var(--space-5); }
.exec-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.exec-card-fn {
  background: var(--accent-solid);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.exec-card-fn.is-dormant {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--surface-border-strong);
}
.exec-card-role {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.exec-card-status {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.exec-card-status.is-live { color: var(--success); }
.exec-card-status.is-beta,
.exec-card-status.is-dormant { color: var(--warning); }
.exec-card-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.exec-card-team-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.exec-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.exec-card-chips .chip { font-size: 11px; padding: 3px 9px; }
.exec-card-replaces {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.exec-card-replaces strong { color: var(--text-secondary); }
.exec-card-latest {
  background: rgba(0, 0, 0, 0.04);
  border-left: 2px solid var(--accent-solid);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: auto;
}
.exec-card-latest.is-warning { border-left-color: var(--warning); }
.exec-card-latest .latest-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.exec-card-latest .latest-label.is-warning { color: var(--warning); }
[data-theme="graphite"] .exec-card-latest { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 600px) {
  .exec-card { padding: var(--space-4); gap: var(--space-3); }
  .exec-card-head { gap: 6px; }
  .exec-card-fn { padding: 4px 10px; font-size: 11px; }
  .exec-card-role { font-size: 9px; }
  .exec-card-status { font-size: 9px; }
  .exec-card-tagline { font-size: 12.5px; margin-bottom: var(--space-3); }
  .exec-card-chips .chip { font-size: 10.5px; padding: 3px 8px; }
}

/* Shared section ledes / sub-paragraphs / footnotes */
.section-lede {
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  margin-top: var(--space-4);
}
.section-sub {
  max-width: 70ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-top: var(--space-3);
}
.section-footnote {
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: var(--space-4);
  font-style: italic;
}
@media (max-width: 600px) {
  .section-lede { font-size: 15px; line-height: 1.55; margin-top: var(--space-3); }
  .section-sub { font-size: 14px; }
  .section-footnote { font-size: 12px; }
}

/* Simulator pitch — dashed-border row above the fold */
.sim-pitch {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--surface-border-strong);
  border-radius: 10px;
  max-width: 92ch;
}
.sim-pitch-copy { flex: 1 1 240px; min-width: 0; }
.sim-pitch-text { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.sim-pitch-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sim-pitch-select {
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border-strong);
  border-radius: 6px;
  cursor: pointer;
}
.sim-pitch-play { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .sim-pitch { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .sim-pitch-text { font-size: 13.5px; }
  .sim-pitch-controls { width: 100%; justify-content: space-between; }
  .sim-pitch-play { flex: 1; }
}

/* Try-it / activation cards (live audit, sign-up flow) */
.try-it-card {
  padding: var(--space-6) var(--space-7);
  border-radius: 14px;
  border-left: 3px solid var(--success);
  max-width: 92ch;
}
.try-it-card--accent { border-left-color: var(--accent-solid); }
.try-it-eyebrows {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.try-it-title {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.try-it-lead {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  max-width: 70ch;
  font-size: 15px;
}
.try-it-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
  max-width: 60ch;
}
.try-it-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--surface-border-strong);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
}
.try-it-button { padding: 12px 22px; font-size: 14px; }
.try-it-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 20px;
}
.try-it-results { margin-top: 16px; }
.try-it-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.try-it-cta-row .label-mono { font-size: 11px; }
@media (max-width: 600px) {
  .try-it-card { padding: var(--space-5) var(--space-5); }
  .try-it-title { font-size: clamp(20px, 6vw, 26px); }
  .try-it-lead { font-size: 14px; }
  .try-it-button { width: 100%; }
  .try-it-cta-row .btn-primary { width: 100%; text-align: center; }
}

/* "Interrogable by design" callout below the exec grid */
.exec-callout {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  background: rgba(var(--accent-solid-rgb), 0.06);
  border-left: 3px solid var(--accent-solid);
  border-radius: 6px;
  max-width: 78ch;
}
.exec-callout p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  font-size: 15px;
}
.exec-callout-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 13px;
  color: var(--accent-solid);
  text-decoration: none;
}
.exec-callout-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .exec-callout { padding: var(--space-4) var(--space-5); }
  .exec-callout p { font-size: 14px; }
}

/* ─────────────────────────────────────────────────────────────────────
   MEGAMENU + MOBILE DRAWER
   ───────────────────────────────────────────────────────────────────── */

/* Anchor for absolutely-positioned megamenu panels */
.nav-root {
  position: sticky;
  top: var(--space-4);
  max-width: var(--page-max);
  margin: var(--space-4) auto var(--space-5);
  z-index: 50;
}

/* Ensure the base nav inside nav-root is not doubly sticky / margin'd */
.nav-root .nav {
  margin: 0;
  top: 0;
  position: relative;
}

/* Primary nav link (megamenu trigger) */
.nav-links .mm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-links .mm-trigger:hover,
.nav-links .mm-trigger[aria-expanded="true"] { color: var(--text-primary); }
.nav-links .mm-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
  opacity: 0.7;
}
.nav-links .mm-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}
.nav-links .mm-link { padding: 8px 4px; border-radius: var(--radius-sm); }

/* Right-side CTAs */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}
.nav-cta .btn-login {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-cta .btn-login:hover { color: var(--text-primary); }
.nav-cta .btn-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.nav-cta .btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -6px rgba(var(--accent-solid-rgb), 0.4);
}

/* Megamenu dropdown panel */
.megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0 auto;
  max-width: var(--page-max);
  padding: var(--space-7);
  background: var(--surface-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 var(--highlight-inner) inset,
    0 20px 48px -16px var(--shadow-outer);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
  z-index: 60;
}
.megamenu.megamenu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Graphite mode: the default --surface-elevated is only 10% white,
   which reads as muddy when the megamenu sits over a light hero or
   content section. Force a near-solid dark backing so text contrast
   holds no matter what scrolls underneath. */
[data-theme="graphite"] .megamenu {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 48px -16px rgba(0, 0, 0, 0.6);
}

.megamenu-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-7);
}
.megamenu-panel.mm-2col {
  grid-template-columns: repeat(2, 1fr);
}
.megamenu-panel.mm-1col {
  grid-template-columns: 1fr;
}
.megamenu-column { display: flex; flex-direction: column; gap: var(--space-3); }
.megamenu-colhead {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin-bottom: var(--space-2);
}

.megamenu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.megamenu-item:hover,
.megamenu-item:focus-visible {
  background: var(--surface);
  border-color: var(--surface-border);
}
.megamenu-item-title {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.megamenu-item-title::after {
  content: "→";
  color: var(--accent-solid);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.megamenu-item:hover .megamenu-item-title::after,
.megamenu-item:focus-visible .megamenu-item-title::after {
  opacity: 1;
  transform: translateX(0);
}
.megamenu-item-tag {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hamburger + drawer */
.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
}
.nav-hamburger svg { display: block; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms;
  z-index: 90;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 420px);
  background: var(--surface-elevated);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid var(--surface-border);
  box-shadow: -24px 0 48px -12px var(--shadow-outer);
  transform: translateX(100%);
  transition: transform 240ms ease-out;
  z-index: 100;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.mobile-drawer.drawer-open { transform: translateX(0); }
.mobile-drawer.drawer-open ~ .drawer-backdrop,
.drawer-backdrop.drawer-open { opacity: 1; visibility: visible; }

body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--surface-border);
}
.drawer-close {
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}

.drawer-nav { display: flex; flex-direction: column; gap: var(--space-2); }
.drawer-section {
  border-top: 1px solid var(--surface-border);
  padding-top: var(--space-3);
}
.drawer-section:first-child { border-top: 0; padding-top: 0; }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: none;
  border: 0;
  padding: 12px 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}
.accordion-trigger::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-solid);
  line-height: 1;
}
.accordion-trigger[aria-expanded="true"]::after { content: "−"; }

.accordion-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-1) 0 var(--space-3);
}
.accordion-panel[hidden] { display: none; }
.accordion-panel .mm-sub-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}
.accordion-panel a {
  display: block;
  padding: 8px 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.accordion-panel a:hover,
.accordion-panel a:focus-visible { color: var(--text-primary); }

.drawer-plain-link {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface-border);
}
.drawer-footer .btn-cta,
.drawer-footer .btn-login {
  display: block;
  text-align: center;
  width: 100%;
}
.drawer-footer .btn-cta {
  background: var(--accent-gradient);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.drawer-footer .btn-login {
  color: var(--text-secondary);
  padding: 10px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
}

/* Focus-visible ring */
a:focus-visible,
button:focus-visible,
[data-megamenu-trigger]:focus-visible,
.megamenu-item:focus-visible,
.accordion-trigger:focus-visible,
.drawer-close:focus-visible,
.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent-solid);
  outline-offset: 2px;
}

/* Hide hamburger on desktop, nav-links on mobile */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: inline-flex; }
  .megamenu { display: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────
   STUB PAGE LAYOUT (products/solutions/resources)
   ───────────────────────────────────────────────────────────────────── */

.stub-hero {
  text-align: left;
  padding-top: var(--space-8);
}
.stub-hero .label-mono { display: block; margin-bottom: var(--space-4); }
.stub-hero h1 { font-size: clamp(36px, 5.5vw, 72px); margin-bottom: var(--space-5); max-width: 20ch; }
.stub-hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.55;
  margin-bottom: var(--space-7);
}
.stub-hero .hero-cta { margin-bottom: var(--space-8); }

.stub-feature {
  padding: var(--space-7) var(--space-6);
}
.stub-feature h2 { margin-bottom: var(--space-6); }

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 70ch;
}
.feature-bullets li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.55;
}
.feature-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: 700;
}
.feature-bullets strong { color: var(--text-primary); }

.related-drives {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.related-drive-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 150ms ease;
}
.related-drive-card:hover { transform: translateY(-2px); }
.related-drive-name { font-size: 18px; font-weight: 600; }
.related-drive-tag { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 900px) {
  .related-drives { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────
   PRICING PAGE
   ───────────────────────────────────────────────────────────────────── */

.pricing-hero { text-align: center; padding-top: var(--space-8); }
.pricing-hero .label-mono { display: inline-block; margin-bottom: var(--space-4); }
.pricing-hero h1 { font-size: clamp(40px, 6vw, 80px); max-width: 20ch; margin: 0 auto var(--space-5); }
.pricing-hero p.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto var(--space-7);
  line-height: 1.55;
}

.pricing-table-wrap {
  margin-top: var(--space-8);
  overflow-x: auto;
  border-radius: var(--radius-lg);
}
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 960px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--surface-border);
  vertical-align: top;
}
.pricing-table thead th {
  background: var(--surface-elevated);
  font-size: 13px;
  font-weight: 600;
}
.pricing-table thead th.tier-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.pricing-table tbody th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}
.tier-name { font-size: 18px; font-weight: 700; margin-bottom: var(--space-1); }
.tier-price { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.tier-price .tier-price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.tier-cta {
  display: inline-block;
  margin-top: var(--space-2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
}
.tier-cta.tier-cta-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.pricing-section { margin-top: var(--space-10); }
.pricing-section h2 { margin-bottom: var(--space-5); }

.drive-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.drive-pricing-card {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drive-pricing-card .dpc-name { font-size: 16px; font-weight: 600; }
.drive-pricing-card .dpc-price { font-size: 22px; font-weight: 700; }
.drive-pricing-card .dpc-price-unit { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.drive-pricing-card .dpc-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.marketplace-card {
  margin-top: var(--space-6);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.marketplace-card h3 { margin-bottom: var(--space-3); }
.marketplace-card p { color: var(--text-secondary); max-width: 60ch; }

.pricing-note {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 72ch;
}

@media (max-width: 900px) {
  .drive-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .drive-pricing-grid { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────────────────────────────
   DRIVE DETAIL PAGE — expanded content blocks
   (hero pill, how-it-works steps, mockup, quote, variants, CTA card)
   ───────────────────────────────────────────────────────────────────── */

.hero-pill-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  align-items: center;
}

/* Step grid (how-it-works) */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.how-step {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.how-step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent-solid);
  text-transform: uppercase;
}
.how-step h3 { font-size: 18px; }
.how-step p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* Faux-screenshot mockup frame */
.mockup {
  margin-top: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px var(--shadow-outer);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-border-strong);
  background: var(--surface-elevated);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-border-strong);
}
.mockup-url {
  margin-left: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.mockup-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.mockup-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.mockup-row-2 { grid-template-columns: repeat(2, 1fr); }
.mockup-row-4 { grid-template-columns: repeat(4, 1fr); }
.mockup-tile {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}
.mockup-tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mockup-tile-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.mockup-tile-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
}
.mockup-tile-delta.neg { color: var(--error); }
.mockup-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-border-strong);
  position: relative;
  overflow: hidden;
}
.mockup-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fill, 50%);
  background: var(--accent-gradient);
  border-radius: 3px;
}
.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-list-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-sm);
}
.mockup-list-row .ml-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.mockup-list-row .ml-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mockup-list-row .ml-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.mockup-list-row .ml-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mockup-list-row .ml-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mockup-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-3);
  font-style: italic;
}

/* Post variant cards (Herald) */
.post-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.post-variant {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.post-variant-platform {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.post-variant-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-line;
}
@media (max-width: 900px) {
  .post-variants { grid-template-columns: 1fr; }
  .mockup-row, .mockup-row-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Inline CTA card (bottom of detail pages) */
.cta-card {
  margin-top: var(--space-8);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cta-card h3 { font-size: 22px; margin-bottom: 6px; }
.cta-card p { color: var(--text-secondary); max-width: 52ch; font-size: 14px; }
.cta-card .cta-card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Quote block (solutions pages) */
.quote-card {
  margin-top: var(--space-7);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  max-width: 78ch;
}
.quote-card blockquote {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.quote-card blockquote::before {
  content: "\201C";
  font-family: Georgia, serif;
  color: var(--accent-solid);
  font-size: 48px;
  line-height: 0;
  margin-right: 6px;
  vertical-align: -20px;
}
.quote-attr {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-muted);
}
.quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.quote-attr strong { color: var(--text-primary); font-weight: 600; }

/* Pricing guidance strip (solutions) */
.price-strip {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.price-strip .ps-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-strip .ps-figure {
  font-size: 20px;
  font-weight: 700;
}
.price-strip .ps-note {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}

/* Changelog entries */
.changelog-month {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--surface-border-strong);
}
.changelog-entry {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  margin-bottom: var(--space-4);
}
.changelog-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.changelog-entry-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.changelog-entry h3 {
  font-size: 18px;
  line-height: 1.35;
  flex: 1;
  min-width: 60%;
}
.changelog-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.changelog-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid var(--surface-border-strong);
  color: var(--text-secondary);
}
.changelog-badge.cb-feature { color: var(--success); border-color: color-mix(in srgb, var(--success) 28%, transparent); }
.changelog-badge.cb-fix { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 32%, transparent); }
.changelog-badge.cb-drive { color: var(--accent-solid); border-color: color-mix(in srgb, var(--accent-solid) 38%, transparent); }
.changelog-badge.cb-integration { color: var(--text-secondary); }
.changelog-entry p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.changelog-entry ul {
  margin: var(--space-3) 0 0 0;
  padding-left: var(--space-5);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.changelog-entry ul li { margin-bottom: 4px; }

/* Developer portal page */
.dev-hero-chips {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.dev-code {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="graphite"] .dev-code { background: rgba(0, 0, 0, 0.45); }

/* Solutions page stack list */
.stack-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  max-width: 80ch;
}
.stack-list .stack-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  display: flex;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease;
}
.stack-list .stack-item:hover { transform: translateY(-2px); }
.stack-list .stack-item .si-n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-solid);
  flex-shrink: 0;
  width: 22px;
}
.stack-list .stack-item .si-title { font-weight: 600; color: var(--text-primary); font-size: 14px; }
.stack-list .stack-item .si-tag { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 700px) {
  .stack-list { grid-template-columns: 1fr; }
}

/* === Conversion redesign 2026-04-29 — hero split + live rail === */

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
  padding: 48px 0 64px;
}
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
}

.hero-pitch { display: flex; flex-direction: column; justify-content: center; }
.hero-pitch-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero-pitch-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.hero-pitch-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 460px;
}
.hero-pitch-footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.hero-rail {
  background: var(--surface-elev);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.hero-rail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}
.hero-rail-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
}
.hero-rail-status-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: heroRailPulse 2.4s ease-in-out infinite;
}
@keyframes heroRailPulse { 0%,100% {opacity: 1;} 50% {opacity: 0.5;} }
.hero-rail-status-meta { color: var(--text-muted); }

.hero-rail-headline {
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--text-primary);
}
.hero-rail-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.hero-rail-sub a { color: var(--accent-solid); text-decoration: none; }
.hero-rail-sub a:hover { text-decoration: underline; }

.hero-rail-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.hero-rail-entry {
  background: rgba(63, 185, 80, 0.06);
  border-left: 2px solid var(--success);
  border-radius: 4px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease, transform 360ms ease;
}
.hero-rail-entry.is-visible { opacity: 1; transform: translateY(0); }
.hero-rail-entry.is-visitor { background: rgba(79, 70, 229, 0.10); border-left-color: var(--accent-solid); }
.hero-rail-entry.is-muted { background: var(--surface-elev); border-left-color: var(--text-muted); }

.hero-rail-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-rail-entry-exec {
  background: var(--accent-solid);
  color: white;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
}
.hero-rail-entry-time { color: var(--text-muted); }
.hero-rail-entry-status {
  margin-left: auto;
  color: var(--success);
  font-weight: 600;
}
.hero-rail-entry-body {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.hero-rail-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.hero-rail-footer strong { color: var(--text-secondary); }

/* === Conversion redesign — anatomy + execs grid + closing CTA === */

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 760px) { .anatomy-grid { grid-template-columns: 1fr; } }
.anatomy-card {
  background: var(--surface-elev);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent-solid);
  border-radius: 6px;
  padding: 18px 20px;
}
.anatomy-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-solid);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.anatomy-card-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.execs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 1080px) { .execs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .execs-grid { grid-template-columns: 1fr; } }
.exec-card {
  background: var(--surface-elev);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 14px;
}
.exec-card-featured {
  background: rgba(79, 70, 229, 0.10);
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}
.exec-card-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.exec-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.exec-card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-solid);
}
.execs-grid-footer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.execs-grid-footer a { color: var(--accent-solid); text-decoration: none; }

.closing-cta-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(79, 70, 229, 0.04));
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin-top: 28px;
}
.closing-cta-card-headline {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.closing-cta-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* === Live LATEST line in execs grid === */
.exec-card-latest-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.08em; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--surface-border); text-transform: uppercase; }
.exec-card-latest-text  { font-size: 11.5px; color: var(--text-secondary); line-height: 1.45; margin-top: 4px; }
.exec-card-latest-label:empty, .exec-card-latest-text:empty { display: none; }

/* === Megamenu callout banner (ICP-2 portfolio CTA) === */
.megamenu-callout { background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(79, 70, 229, 0.02)); border: 1px solid rgba(79, 70, 229, 0.25); border-radius: 8px; margin-top: 8px; padding: 10px 14px; display: block; }
.megamenu-callout:hover { background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(79, 70, 229, 0.04)); border-color: rgba(79, 70, 229, 0.45); }
.megamenu-callout .megamenu-item-title { color: var(--text-primary); font-weight: 600; }
.megamenu-callout .megamenu-item-tag { color: var(--accent-solid); }

/* === Hero rail "NEW" indicator === */
.hero-rail-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-solid);
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 240ms ease, transform 240ms ease;
}
.hero-rail-new-badge.is-visible { opacity: 1; transform: scale(1); }
.hero-rail-new-badge.is-fading  { opacity: 0; transform: scale(0.92); transition-duration: 600ms; }

.hero-rail-entry.is-new {
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--accent-solid);
  animation: heroRailNewFlash 1400ms ease-out;
}
@keyframes heroRailNewFlash {
  0%   { background: rgba(79, 70, 229, 0.22); }
  100% { background: rgba(79, 70, 229, 0.08); }
}

/* ============================================================
   Stack Calculator — /calculator
   ============================================================ */

/* Status pill variants used by the calculator (parallel to .status-pill-live et al) */
.status-pill-replaces {
  color: var(--success);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.status-pill-partial {
  color: var(--warning);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: color-mix(in srgb, var(--warning) 32%, transparent);
}
.status-pill-keep {
  color: var(--text-muted);
  background: rgba(var(--accent-solid-rgb), 0.01);
  border-color: var(--surface-border-strong);
}

/* Page hero */
.calc-hero {
  padding-top: 64px;
  padding-bottom: 32px;
  max-width: 1100px;
}
.calc-hero h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.calc-hero .lead {
  margin-top: 18px;
  max-width: 70ch;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Layout — picker on left, sticky tally + email on right */
.calc-shell { padding-bottom: 48px; }
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .calc-layout { grid-template-columns: 1fr; }
}
.calc-main { min-width: 0; }
.calc-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 960px) {
  .calc-sidebar { position: static; }
}

/* Tabs */
.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--surface-border);
}
.calc-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: -1px;
}
.calc-tab.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-solid);
}
.calc-tab:hover { color: var(--text-primary); }

/* Picker — Exec groups */
.calc-exec-group { margin-bottom: 28px; }
.calc-exec-grouphead { margin-bottom: 12px; }

/* Tool grid */
.calc-tool-grid {
  display: grid;
  /* Desktop: 4-up minimum at 1100px; Mobile: 2-up at 360px+ */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.calc-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(var(--accent-solid-rgb), 0.01);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
  min-height: 0;
}
.calc-tool-card:hover {
  border-color: var(--surface-border-strong);
}
.calc-tool-card.is-picked {
  border-color: var(--accent-solid);
  background: rgba(var(--accent-solid-rgb), 0.06);
}
.calc-tool-card input[type="checkbox"] {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent-solid);
}
.calc-tool-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin: 0;
  padding-right: 22px;
  line-height: 1.25;
}
.calc-tool-meta {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
}
.calc-tool-price-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: auto; /* pin price row to bottom of card so heights align nicely */
}
.calc-tool-price-prefix,
.calc-tool-price-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.calc-tool-price {
  width: 56px;
  padding: 3px 5px;
  border: 1px solid var(--surface-border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}
.calc-tool-price:focus {
  outline: none;
  border-color: var(--accent-solid);
}
.calc-tool-pricenote {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* Mobile: 2-up grid, no priceNote (saves vertical space) */
@media (max-width: 600px) {
  .calc-tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .calc-tool-card { padding: 9px 9px 9px 10px; }
  .calc-tool-pricenote { display: none; }
  .calc-tool-name { font-size: 12.5px; padding-right: 20px; }
  .calc-tool-meta { font-size: 9px; }
}

/* Others rows */
.calc-others-shell {
  margin-top: 36px;
  padding: 20px;
  border: 1px dashed var(--surface-border-strong);
  border-radius: 10px;
}
.calc-others-label { display: block; margin-bottom: 4px; }
.calc-others-help {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  max-width: 60ch;
}
.calc-others-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.calc-other-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-other-name {
  flex: 1 1 220px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
}
.calc-other-price {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}
.calc-other-remove {
  background: transparent;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.calc-other-remove:hover {
  color: var(--text-primary);
  border-color: var(--surface-border-strong);
}
.calc-other-add {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* By-job tab */
.calc-job-help {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px 0;
}
.calc-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.calc-job-card {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: rgba(var(--accent-solid-rgb), 0.01);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 120ms ease, background 120ms ease;
}
.calc-job-card:hover {
  border-color: var(--accent-solid);
  background: rgba(var(--accent-solid-rgb), 0.06);
}
.calc-job-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.calc-job-sub {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
}

/* Tally rail */
.calc-tally-rail {
  padding: 18px;
  border-radius: 12px;
}
.calc-tally-eyebrow { display: block; margin-bottom: 10px; }
.calc-tally-empty { color: var(--text-muted); font-size: 12px; }
.calc-tally-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-border);
}
.calc-tally-row:last-of-type { border-bottom: 0; }
.calc-tally-num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}
.calc-tally-savings .calc-tally-num {
  color: var(--success);
  font-size: 22px;
}
.calc-tally-cta {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

/* Email box */
.calc-email-box { padding: 18px; border-radius: 12px; }
.calc-email-eyebrow { display: block; margin-bottom: 8px; }
.calc-email-lede {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}
.calc-email-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.calc-email-input:focus {
  outline: none;
  border-color: var(--accent-solid);
}
.calc-email-submit {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.calc-email-msg {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.calc-email-msg.is-err { color: var(--warning); }
.calc-email-success {
  color: var(--success);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Result section */
.calc-result-section {
  padding-top: 24px;
  padding-bottom: 80px;
}
.calc-result-empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--surface-border);
  border-radius: 12px;
  color: var(--text-muted);
}
.calc-result-headline {
  padding: 32px;
  margin-bottom: 32px;
  border-radius: 14px;
}
.calc-result-eyebrow { display: block; margin-bottom: 8px; }
.calc-result-h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px 0;
}
.calc-result-h3 {
  font-size: 22px;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}
.calc-result-numgrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
}
.calc-result-numrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 18px;
}
.calc-result-numrow > span:first-child { color: var(--text-secondary); }
.calc-result-numrow > span:last-child { color: var(--text-primary); font-weight: 600; }
.calc-result-savings {
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
  margin-top: 8px;
}
.calc-result-savings > span:last-child {
  color: var(--success);
  font-size: 28px;
}
.calc-result-execnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 8px;
}
.calc-result-actions {
  margin-top: 20px;
}

/* Replacement map */
.calc-result-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.calc-exec-section {
  padding: 20px;
  border-radius: 12px;
}
.calc-exec-section.calc-exec-skip {
  padding: 12px 20px;
  background: rgba(var(--accent-solid-rgb), 0.01);
  border: 1px dashed var(--surface-border);
}
.calc-exec-skip-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: 12px;
}
.calc-exec-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.calc-exec-price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-solid);
  font-weight: 600;
}
.calc-exec-soon {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.calc-exec-savings {
  margin-bottom: 12px;
  color: var(--text-muted);
}
.calc-exec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.calc-exec-table tr { border-top: 1px solid var(--surface-border); }
.calc-exec-table tr:first-child { border-top: 0; }
.calc-exec-table td {
  padding: 10px 8px 10px 0;
  vertical-align: middle;
}
.calc-exec-tool {
  font-weight: 500;
  color: var(--text-primary);
}
.calc-exec-toolprice {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}
.calc-exec-drives {
  font-size: 12px;
  color: var(--text-muted);
}
.calc-exec-note-row td { border-top: 0 !important; padding: 0 8px 12px 0 !important; }
.calc-exec-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

/* Keep bucket */
.calc-result-keep {
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
}
.calc-result-keep-lede {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}
.calc-keep-total td {
  border-top: 2px solid var(--surface-border-strong) !important;
  padding-top: 12px !important;
}

/* Result footer */
.calc-result-footer {
  text-align: left;
}
.calc-trust {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 16px;
}
.calc-result-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.calc-feedback {
  font-size: 11px;
  color: var(--text-muted);
}
.calc-feedback a { color: var(--accent-solid); }

/* Pricing-page teaser banner */
.pricing-calc-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin: 24px 0 28px 0;
  border-radius: 10px;
  flex-wrap: wrap;
}
.pricing-calc-teaser-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing-calc-teaser-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-solid);
}
.pricing-calc-teaser-headline {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.pricing-calc-teaser-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-solid);
  text-decoration: none;
  white-space: nowrap;
}
.pricing-calc-teaser-cta:hover { text-decoration: underline; }
