/* ═══════════════════════════════════════════════════════════════
   EPI Labs — product home visual system
   "Evidence instrument" — dark-first, file-centric, not SaaS purple.
   Loaded AFTER css/epi.css on production website/ home.
   ═══════════════════════════════════════════════════════════════ */

body.v2-home {
  --bg: #0B0D10;
  --bg-alt: #0F1218;
  --bg-card: #141820;
  --bg-dark: #080A0D;
  --bg-code: #0A0C10;

  --ink: #F2F4F7;
  --ink-soft: #C8CDD6;
  --ink-muted: #8B93A1;
  --ink-dim: #5C6573;

  --accent: #3DDC97;
  --accent-lt: #6EE7B0;
  --accent-glow: rgba(61, 220, 151, 0.12);
  --accent-line: rgba(61, 220, 151, 0.28);

  --signal: #5B8CFF;
  --signal-glow: rgba(91, 140, 255, 0.15);

  --verified: #3DDC97;
  --verified-bg: rgba(61, 220, 151, 0.1);
  --warn: #E6B84D;
  --warn-bg: rgba(230, 184, 77, 0.1);
  --tamper: #FF6B6B;
  --tamper-bg: rgba(255, 107, 107, 0.1);

  --border: rgba(255, 255, 255, 0.06);
  --border-str: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(61, 220, 151, 0.35);

  --radius: 14px;
  --radius-sm: 10px;
  --section-pad: clamp(64px, 9vw, 110px);

  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
}

/* light tokens applied below via [data-theme="light"] */

/* ── NAV ── */
body.v2-home #nav {
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
body.v2-home #nav.scrolled {
  background: rgba(11, 13, 16, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
body.v2-home .nav-links a {
  color: rgba(242, 244, 247, 0.55);
  font-size: 0.86rem;
}
body.v2-home .nav-links a:hover {
  color: var(--ink);
}
body.v2-home .nav-link-cta {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-line) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
}
body.v2-home .nav-link-cta:hover {
  background: var(--accent-glow) !important;
  color: var(--accent-lt) !important;
}
body.v2-home .nav-mob span {
  background: var(--ink);
}
body.v2-home .mob-menu {
  background: rgba(11, 13, 16, 0.98);
  top: 72px;
}
body.v2-home .mob-menu a {
  color: var(--ink);
  border-bottom-color: var(--border);
}

/* ── BUTTONS ── */
body.v2-home .btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}
body.v2-home .btn-primary {
  background: var(--accent);
  color: #04120C;
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.3), 0 8px 28px rgba(61, 220, 151, 0.18);
}
body.v2-home .btn-primary:hover {
  background: var(--accent-lt);
  color: #04120C;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.4), 0 12px 32px rgba(61, 220, 151, 0.22);
}
body.v2-home .btn-secondary {
  color: var(--ink);
  border: 1px solid var(--border-str);
  background: rgba(255, 255, 255, 0.03);
}
body.v2-home .btn-secondary:hover {
  border-color: var(--signal);
  background: var(--signal-glow);
  color: var(--ink);
}

/* ── HERO SPLIT ── */
body.v2-home .hero {
  min-height: auto;
  padding: 120px 24px 72px;
  text-align: left;
  justify-content: center;
  align-items: stretch;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 220, 151, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(91, 140, 255, 0.07) 0%, transparent 50%),
    var(--bg);
}
body.v2-home .hero-bg {
  display: none;
}
body.v2-home .hero-content.v2-hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  animation: none;
}
body.v2-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}
body.v2-home .hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
body.v2-home .hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
  text-align: left;
  animation: none;
}
body.v2-home .hero h1 em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 2px solid rgba(61, 220, 151, 0.35);
}
body.v2-home .epi-badge {
  color: var(--signal);
  background: var(--signal-glow);
  border-color: rgba(91, 140, 255, 0.35);
  border-radius: 6px;
  font-size: 0.42em;
  vertical-align: 0.2em;
}
body.v2-home .hero-sub {
  text-align: left;
  margin: 0 0 14px;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  animation: none;
}
body.v2-home .hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
  animation: none;
  gap: 12px;
}
body.v2-home .hero-meta {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 32rem;
}
body.v2-home .hero-meta a {
  color: var(--accent);
}
body.v2-home .scroll-ind {
  display: none;
}

/* Evidence card */
.v2-file-card {
  position: relative;
  background: linear-gradient(165deg, #161B24 0%, #10141C 100%);
  border: 1px solid var(--border-str);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow:
    0 0 0 1px rgba(61, 220, 151, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  overflow: hidden;
}
.v2-file-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  pointer-events: none;
}
.v2-file-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}
.v2-file-name {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.v2-file-name span {
  color: var(--ink-dim);
  font-weight: 400;
}
.v2-seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #04120C;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(61, 220, 151, 0.35);
}
.v2-seal-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #04120C;
}
.v2-file-rows {
  position: relative;
  display: grid;
  gap: 10px;
}
.v2-file-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.v2-file-row .k {
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
  padding-top: 2px;
}
.v2-file-row .v {
  color: var(--ink-soft);
  word-break: break-all;
}
.v2-file-row .v.ok {
  color: var(--accent);
}
.v2-file-foot {
  position: relative;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--ink-dim);
  line-height: 1.5;
}
.v2-file-foot a {
  color: var(--signal);
}

/* ── SECTIONS ── */
body.v2-home section {
  padding: var(--section-pad) 0;
}
body.v2-home .section-alt {
  background: var(--bg-alt);
}
body.v2-home .section-label {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-family: var(--mono);
  font-size: 0.7rem;
}
body.v2-home .section-label::before {
  background: var(--accent);
  width: 14px;
}
body.v2-home .section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
body.v2-home .section-desc {
  font-size: 1.02rem;
  color: var(--ink-muted);
}

/* Thesis band */
body.v2-home .thesis {
  background: #080A0D;
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
body.v2-home .thesis-quote {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 550;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 40rem;
  margin: 0 auto;
}
body.v2-home .thesis-quote em {
  color: var(--accent);
  font-style: normal;
}
body.v2-home .thesis-attr {
  color: var(--ink-dim);
  margin-top: 20px;
  letter-spacing: 0.16em;
}

/* Diff cards */
.v2-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.v2-diff-card {
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.v2-diff-card.muted {
  opacity: 0.72;
}
.v2-diff-card.hl {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.08), 0 16px 40px rgba(0, 0, 0, 0.25);
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.08) 0%, var(--bg-card) 45%);
}
.v2-diff-card h3 {
  font-size: 0.95rem;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.v2-diff-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.v2-diff-card li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.v2-diff-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-dim);
}
.v2-diff-card.hl li::before {
  content: "✓";
  color: var(--accent);
  font-size: 0.75rem;
}

/* Verify instrument */
body.v2-home #verify {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(61, 220, 151, 0.06) 0%, transparent 60%),
    var(--bg);
}
body.v2-home .verify-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}
body.v2-home .drop-zone {
  border: 1px dashed rgba(61, 220, 151, 0.35);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 48px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
body.v2-home .drop-zone:hover,
body.v2-home .drop-zone.drag-over {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(61, 220, 151, 0.05);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.2), 0 20px 50px rgba(0, 0, 0, 0.3);
}
body.v2-home .drop-icon {
  font-size: 0;
  width: 48px;
  height: 56px;
  margin-bottom: 16px;
  border: 1.5px solid var(--border-str);
  border-radius: 6px 10px 6px 6px;
  background: linear-gradient(180deg, #1A2030 0%, #121722 100%);
  position: relative;
  display: block;
}
body.v2-home .drop-icon::after {
  content: ".epi";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.v2-home .drop-title {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}
body.v2-home .drop-hint {
  color: var(--ink-muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.5;
}
body.v2-home .checks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
body.v2-home .check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}
body.v2-home .check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-dim);
  flex-shrink: 0;
  box-shadow: none;
}
body.v2-home .check-item.pass {
  color: var(--ink-soft);
  border-color: rgba(61, 220, 151, 0.25);
  background: rgba(61, 220, 151, 0.06);
}
body.v2-home .check-item.pass .check-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(61, 220, 151, 0.6);
}

/* Terminal */
body.v2-home .terminal-frame {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
body.v2-home .terminal-body {
  min-height: 320px;
  max-height: 480px;
}

/* Steps / pillars denser */
body.v2-home .use-step {
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--ink-soft);
}
body.v2-home .use-step h3 {
  color: var(--ink);
}
body.v2-home .use-step p {
  color: var(--ink-muted);
}
body.v2-home .use-step .pillar-deco {
  background: var(--bg-dark);
  border-color: var(--border);
  color: var(--ink-soft);
}
body.v2-home .use-step-number {
  color: var(--accent);
  opacity: 0.2;
}
body.v2-home .use-step-badge {
  color: var(--ink-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}
body.v2-home .pillar {
  background: var(--bg-card);
  border-color: var(--border);
}
body.v2-home .pillar:hover {
  border-color: var(--border-accent);
}
body.v2-home .tt {
  background: var(--bg-card);
}
body.v2-home .tt th {
  background: rgba(61, 220, 151, 0.06);
  color: var(--ink-muted);
}
body.v2-home .tt td {
  color: var(--ink-soft);
}
body.v2-home .tt-tag--h {
  background: var(--verified-bg);
  color: var(--accent);
}
body.v2-home .uc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
body.v2-home .uc-card h3 {
  color: var(--ink);
}
body.v2-home .uc-card p {
  color: var(--ink-muted);
}
body.v2-home .int-card,
body.v2-home .contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
body.v2-home .cta-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(61, 220, 151, 0.1) 0%, transparent 60%),
    var(--bg-alt);
}
body.v2-home footer {
  border-top: 1px solid var(--border);
  background: #080A0D;
}
body.v2-home .footer-copy,
body.v2-home .footer-links a {
  color: var(--ink-dim);
}
body.v2-home .footer-links a:hover {
  color: var(--accent);
}

/* Trust compact */
body.v2-home #trust .trust-table {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  body.v2-home .hero-content.v2-hero-grid {
    grid-template-columns: 1fr;
  }
  body.v2-home .hero {
    text-align: left;
    padding-top: 100px;
  }
  body.v2-home .v2-diff-grid,
  body.v2-home .verify-grid {
    grid-template-columns: 1fr;
  }
  body.v2-home .pillars-grid {
    grid-template-columns: 1fr;
  }
}
/* ═══ v2 polish pass — multi-perspective ═══ */

/* Skip link (a11y) */
body.v2-home .v2-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--accent);
  color: #04120C;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
body.v2-home .v2-skip:focus {
  left: 0;
}

/* Focus rings */
body.v2-home a:focus-visible,
body.v2-home button:focus-visible,
body.v2-home .drop-zone:focus-visible,
body.v2-home .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.v2-home *,
  body.v2-home *::before,
  body.v2-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Logo sizing (color filter only in dark — see light overrides) */
body.v2-home .nav-logo img,
body.epi-instrument .nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}
body.v2-home .footer-logo,
body.epi-instrument .footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  margin: 0;
}
html[data-theme="dark"] body.v2-home .nav-logo img,
html[data-theme="dark"] body.v2-home .footer-logo,
html[data-theme="dark"] body.epi-instrument .nav-logo img,
html[data-theme="dark"] body.epi-instrument .footer-logo,
body.v2-home:not([data-theme="light"]) .nav-logo img,
body.epi-instrument:not([data-theme="light"]) .nav-logo img,
body.v2-home:not([data-theme="light"]) .footer-logo,
body.epi-instrument:not([data-theme="light"]) .footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
html[data-theme="light"] body.v2-home .nav-logo img,
html[data-theme="light"] body.v2-home .footer-logo,
html[data-theme="light"] body.epi-instrument .nav-logo img,
html[data-theme="light"] body.epi-instrument .footer-logo {
  filter: none;
  opacity: 1;
}
body.epi-instrument .nav-logo,
body.v2-home .nav-logo {
  display: flex;
  align-items: center;
}

/* Theme toggle */
.theme-toggle-nav,
#themeToggleNav,
[data-theme-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-str);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-toggle-nav:hover,
#themeToggleNav:hover,
[data-theme-toggle]:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Social proof strip */
.v2-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-start;
  margin-top: 22px;
}
.v2-proof span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 6px 10px;
  border-radius: 999px;
}
.v2-proof span strong {
  color: var(--accent);
  font-weight: 600;
}

/* Persona chips */
.v2-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.v2-persona {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid var(--border-str);
  background: transparent;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .15s, color .15s, background .15s;
}
.v2-persona:hover,
.v2-persona.is-active {
  color: var(--ink);
  border-color: var(--accent-line);
  background: var(--accent-glow);
}
.v2-persona-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  min-height: 2.6em;
  max-width: 34rem;
}

/* Install chip with copy */
.v2-install-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px 10px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-str);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #D0D5DD;
}
.v2-install-chip code {
  background: none;
  color: inherit;
  padding: 0;
}
.v2-install-chip button {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-str);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.v2-install-chip button:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

/* File card float + seal pulse */
@keyframes v2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes v2-seal-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(61, 220, 151, 0.3); }
  50% { box-shadow: 0 0 28px rgba(61, 220, 151, 0.55); }
}
body.v2-home .v2-file-card {
  animation: v2-float 6s ease-in-out infinite;
}
body.v2-home .v2-seal-pill {
  animation: v2-seal-glow 2.8s ease-in-out infinite;
}
body.v2-home .v2-hero-visual {
  position: relative;
}
body.v2-home .v2-hero-visual::after {
  content: "";
  position: absolute;
  inset: 20% 10% -10%;
  background: radial-gradient(ellipse at center, rgba(61,220,151,0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Sticky bottom CTA for mobile conversion */
.v2-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11,13,16,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  gap: 10px;
}
.v2-sticky-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 14px;
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .v2-sticky-cta { display: flex; }
  body.v2-home { padding-bottom: 72px; }
  body.v2-home .hero-actions .btn-lg { width: 100%; justify-content: center; }
  body.v2-home .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Journey rail */
.v2-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.v2-rail-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: left;
}
.v2-rail-item .n {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.v2-rail-item h3 {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 650;
}
.v2-rail-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.v2-rail-item code {
  font-size: 0.78rem;
  color: var(--signal);
}

/* Pricing strip */
.v2-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.v2-plan {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v2-plan.featured {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px rgba(61,220,151,0.08);
}
.v2-plan h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}
.v2-plan .price {
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 700;
}
.v2-plan .price small {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.v2-plan p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}
.v2-plan .btn {
  margin-top: 8px;
  justify-content: center;
}

/* Compact standards chips */
.v2-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.v2-standards span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

/* Section rhythm */
body.v2-home .how-header { text-align: center; }
body.v2-home .how-header .section-desc { margin-left: auto; margin-right: auto; }

/* Hide dead pilot form junk feel */
body.v2-home #pilot {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
body.v2-home #pilot input,
body.v2-home #pilot select,
body.v2-home #pilot button {
  width: 100%;
}

@media (max-width: 900px) {
  .v2-rail, .v2-plans { grid-template-columns: 1fr; }
}

/* Selection */
body.v2-home ::selection {
  background: rgba(61, 220, 151, 0.28);
  color: #fff;
}

/* Scrollbar */
body.v2-home::-webkit-scrollbar { width: 10px; }
body.v2-home::-webkit-scrollbar-track { background: #0B0D10; }
body.v2-home::-webkit-scrollbar-thumb { background: #2A3140; border-radius: 8px; }

/* Section alt bands on product home */
body.v2-home .section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid transparent;
}
body.v2-home #paths {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
body.v2-home #plans {
  padding-top: clamp(64px, 9vw, 100px);
  padding-bottom: clamp(48px, 7vw, 80px);
  background:
    radial-gradient(ellipse 50% 40% at 80% 0%, rgba(91, 140, 255, 0.06) 0%, transparent 55%),
    var(--bg);
}
body.v2-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
body.v2-home #pilot .section-title {
  margin-bottom: 12px;
}
/* Drop zone keyboard focus */
body.v2-home .drop-zone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Product walkthrough video */
body.v2-home .v2-video-wrap {
  max-width: 960px;
  margin: 0 auto;
}
body.v2-home .v2-video {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-str);
  background: #000;
  box-shadow:
    0 0 0 1px rgba(61, 220, 151, 0.08),
    0 28px 64px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}
body.v2-home .v2-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
body.v2-home .v2-video-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
body.v2-home .v2-video-meta a:hover {
  color: var(--accent-lt);
  text-decoration: underline;
}
body.v2-home #walkthrough {
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(61, 220, 151, 0.07) 0%, transparent 55%),
    var(--bg);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   7-block instrument redesign — shared by body.v2-home
   and body.epi-instrument (pricing / docs / enterprise shells)
   ═══════════════════════════════════════════════════════════════ */

body.epi-instrument {
  --bg: #0B0D10;
  --bg-alt: #0F1218;
  --bg-card: #141820;
  --bg-dark: #080A0D;
  --bg-code: #0A0C10;
  --ink: #F2F4F7;
  --ink-soft: #C8CDD6;
  --ink-muted: #8B93A1;
  --ink-dim: #5C6573;
  --accent: #3DDC97;
  --accent-lt: #6EE7B0;
  --accent-glow: rgba(61, 220, 151, 0.12);
  --accent-line: rgba(61, 220, 151, 0.28);
  --signal: #5B8CFF;
  --signal-glow: rgba(91, 140, 255, 0.15);
  --verified: #3DDC97;
  --verified-bg: rgba(61, 220, 151, 0.1);
  --warn: #E6B84D;
  --warn-bg: rgba(230, 184, 77, 0.1);
  --tamper: #FF6B6B;
  --tamper-bg: rgba(255, 107, 107, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-str: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(61, 220, 151, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  background: var(--bg);
  color: var(--ink-soft);
  min-height: 100vh;
}
body.epi-instrument #nav,
body.v2-home #nav {
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
body.epi-instrument .nav-links a { color: rgba(242, 244, 247, 0.55); }
body.epi-instrument .nav-links a:hover { color: var(--ink); }
body.epi-instrument .nav-link-cta {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-line) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
}
body.epi-instrument .mob-menu {
  background: rgba(11, 13, 16, 0.98);
  top: 72px;
}
body.epi-instrument .mob-menu a {
  color: var(--ink);
  border-bottom-color: var(--border);
}
body.epi-instrument .page-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
body.epi-instrument .page-main h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
body.epi-instrument .page-main h2 {
  color: var(--ink);
  font-size: 1.35rem;
  margin: 48px 0 12px;
}
body.epi-instrument .page-main p,
body.epi-instrument .page-main li {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}
body.epi-instrument .page-main code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 4px;
  color: #C8CDD5;
}
body.epi-instrument .page-main pre {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  overflow-x: auto;
}
body.epi-instrument .page-main pre code {
  padding: 0;
  background: transparent;
}
body.epi-instrument footer,
body.v2-home footer,
body.epi-instrument footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 48px;
  padding: 40px 24px;
}
body.epi-instrument .footer-copy,
body.epi-instrument .footer-links a,
body.v2-home .footer-copy,
body.v2-home .footer-links a { color: var(--ink-dim); }
body.epi-instrument .footer-links a:hover,
body.v2-home .footer-links a:hover { color: var(--accent); }
body.epi-instrument .footer-links,
body.v2-home .footer-links {
  flex-wrap: wrap;
  gap: 10px 18px;
}

/* Pricing cards on instrument pages */
body.epi-instrument .pricing-card,
body.epi-instrument .thesis-banner,
body.epi-instrument .service-card,
body.epi-instrument .coming-soon-card {
  background: var(--bg-card);
  border-color: var(--border-str);
  color: var(--ink-soft);
}
body.epi-instrument .pricing-card h3,
body.epi-instrument .pricing-card .price,
body.epi-instrument .service-card h4,
body.epi-instrument .faq-item h4 { color: var(--ink); }
body.epi-instrument .pricing-card .price-sub,
body.epi-instrument .pricing-card .features li,
body.epi-instrument .faq-item p { color: var(--ink-soft); }
body.epi-instrument .compare-table th {
  background: var(--bg-alt);
  color: var(--ink-muted);
}
body.epi-instrument .compare-table td {
  color: var(--ink-soft);
  border-bottom-color: var(--border);
}
body.epi-instrument .billing-toggle span { color: var(--ink-muted); }
body.epi-instrument .billing-toggle span.active { color: var(--ink); }

/* TruthTrio */
.truth-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.truth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  position: relative;
  overflow: hidden;
}
.truth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.truth-card--seal::before { background: var(--verified); }
.truth-card--identity::before { background: var(--warn); }
.truth-card--policy::before { background: var(--signal); }
.truth-card .truth-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.truth-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.truth-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.truth-card .truth-ex {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  line-height: 1.45;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.truth-card--seal .truth-ex { color: var(--verified); }
.truth-card--identity .truth-ex { color: var(--warn); }
.truth-card--policy .truth-ex { color: var(--signal); }

/* CommandStrip */
.command-strip {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-dark);
  border: 1px solid var(--border-str);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.command-strip ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.command-strip li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.command-strip li:last-child { border-bottom: none; }
.command-strip .n {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  padding-top: 4px;
}
.command-strip .cmd {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #D0D5DD;
  margin: 0 0 4px;
  word-break: break-all;
}
.command-strip .cmd span { color: var(--accent); }
.command-strip .hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  line-height: 1.45;
}
.command-strip-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.command-strip-foot a { color: var(--signal); font-weight: 600; }

/* Proof stack: verify then video */
.proof-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
body.v2-home #proof {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: clamp(64px, 9vw, 100px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
body.v2-home #truths {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 9vw, 100px) 24px;
}
body.v2-home #loop {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 9vw, 100px) 24px;
}
body.v2-home #close {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(61, 220, 151, 0.08) 0%, transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 9vw, 100px) 24px 80px;
  text-align: center;
}
body.v2-home #close .section-desc { margin: 0 auto 28px; }

/* Compact section headers on 7-block home */
body.v2-home .block-head {
  text-align: center;
  margin-bottom: 36px;
}
body.v2-home .block-head .section-desc {
  margin: 0 auto;
  max-width: 36rem;
}

@media (max-width: 900px) {
  .truth-trio { grid-template-columns: 1fr; }
  .command-strip li { grid-template-columns: 36px 1fr; padding: 14px; }
}
body.v2-home::-webkit-scrollbar-thumb:hover { background: #3D4658; }
/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — [data-theme="light"] on html/body
   ═══════════════════════════════════════════════════════════════ */
html[data-theme="light"] body.v2-home,
html[data-theme="light"] body.epi-instrument,
body.v2-home[data-theme="light"],
body.epi-instrument[data-theme="light"] {
  --bg: #FAFAF8;
  --bg-alt: #F5F5F2;
  --bg-card: #FFFFFF;
  --bg-dark: #0C0C0E;
  --bg-code: #0C0C0E;
  --ink: #111113;
  --ink-soft: #3A3A3E;
  --ink-muted: #6E6E73;
  --ink-dim: #9E9EA3;
  --accent: #1a7a4c;
  --accent-lt: #22965e;
  --accent-glow: rgba(26, 122, 76, 0.08);
  --accent-line: rgba(26, 122, 76, 0.28);
  --signal: #3B6FE0;
  --signal-glow: rgba(59, 111, 224, 0.1);
  --verified: #1A6840;
  --verified-bg: rgba(26, 104, 64, 0.08);
  --warn: #8B6914;
  --warn-bg: rgba(139, 105, 20, 0.08);
  --tamper: #B52626;
  --tamper-bg: rgba(181, 38, 38, 0.08);
  --border: rgba(22, 24, 26, 0.08);
  --border-str: rgba(22, 24, 26, 0.12);
  --border-accent: rgba(26, 122, 76, 0.3);
  background: var(--bg);
  color: var(--ink-soft);
}

html[data-theme="light"] body.v2-home #nav,
html[data-theme="light"] body.epi-instrument #nav,
body.v2-home[data-theme="light"] #nav,
body.epi-instrument[data-theme="light"] #nav {
  background: rgba(250, 250, 248, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
html[data-theme="light"] body.epi-instrument .nav-links a,
html[data-theme="light"] body.v2-home .nav-links a {
  color: rgba(17, 17, 19, 0.5);
}
html[data-theme="light"] body.epi-instrument .nav-links a:hover,
html[data-theme="light"] body.v2-home .nav-links a:hover {
  color: var(--ink);
}
html[data-theme="light"] body.epi-instrument .nav-link-cta,
html[data-theme="light"] body.v2-home .nav-link-cta {
  color: var(--accent) !important;
  border-color: var(--accent-line) !important;
  background: transparent !important;
}
html[data-theme="light"] body.epi-instrument .mob-menu,
html[data-theme="light"] body.v2-home .mob-menu {
  background: rgba(250, 250, 248, 0.98);
}
html[data-theme="light"] body.epi-instrument .mob-menu a,
html[data-theme="light"] body.v2-home .mob-menu a {
  color: var(--ink);
  border-bottom-color: var(--border);
}
html[data-theme="light"] body.epi-instrument footer,
html[data-theme="light"] body.v2-home footer {
  background: var(--bg-alt);
  border-top-color: var(--border);
}
html[data-theme="light"] .command-strip {
  background: #0C0C0E;
  border-color: rgba(0,0,0,0.12);
}
html[data-theme="light"] .command-strip .cmd { color: #D0D5DD; }
html[data-theme="light"] .v2-file-card {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
html[data-theme="light"] body.v2-home .hero {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(26, 122, 76, 0.06) 0%, transparent 55%),
    var(--bg);
}
html[data-theme="light"] .truth-card,
html[data-theme="light"] .v2-plan,
html[data-theme="light"] .int-card,
html[data-theme="light"] .uc-card,
html[data-theme="light"] .pricing-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
