/* ═══════════════════════════════════════════════════════════════
   EPI Labs — VISIBLE Magic UI / Aceternity–style layer (vanilla)
   Intentionally loud so the homepage changes are obvious.
   Load last: epi.css → epi-v2.css → polish.css → wow.css
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO: aurora + grid + spotlight ── */
body.v2-home .hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 900px);
}
html:not([data-theme="light"]) body.v2-home .hero {
  background: #07090d !important;
}
body.v2-home .hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
body.v2-home .hero-fx .aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(61, 220, 151, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 80% 20%, rgba(91, 140, 255, 0.32) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 60% 80%, rgba(184, 41, 247, 0.18) 0%, transparent 55%);
  filter: blur(8px);
  animation: epi-aurora 12s ease-in-out infinite alternate;
}
@keyframes epi-aurora {
  0% { transform: translate(-2%, -1%) scale(1); opacity: 0.85; }
  100% { transform: translate(3%, 2%) scale(1.08); opacity: 1; }
}
body.v2-home .hero-fx .dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
body.v2-home .hero-fx .spotlight {
  position: absolute;
  width: 720px;
  height: 720px;
  left: var(--spot-x, 50%);
  top: var(--spot-y, 35%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 220, 151, 0.28) 0%, rgba(91, 140, 255, 0.12) 35%, transparent 65%);
  transition: left 0.15s linear, top 0.15s linear;
  mix-blend-mode: screen;
}
body.v2-home .hero-fx .meteors span {
  position: absolute;
  top: -10%;
  width: 2px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.75), transparent);
  border-radius: 2px;
  opacity: 0;
  animation: epi-meteor 5s linear infinite;
}
body.v2-home .hero-fx .meteors span:nth-child(1) { left: 12%; animation-delay: 0s; }
body.v2-home .hero-fx .meteors span:nth-child(2) { left: 35%; animation-delay: 1.4s; height: 70px; }
body.v2-home .hero-fx .meteors span:nth-child(3) { left: 58%; animation-delay: 2.6s; height: 110px; }
body.v2-home .hero-fx .meteors span:nth-child(4) { left: 78%; animation-delay: 0.8s; height: 60px; }
body.v2-home .hero-fx .meteors span:nth-child(5) { left: 90%; animation-delay: 3.5s; height: 80px; }
@keyframes epi-meteor {
  0% { transform: translateY(0) translateX(0) rotate(25deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(110vh) translateX(-180px) rotate(25deg); opacity: 0; }
}
body.v2-home .hero-fx .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(7, 9, 13, 0.75) 100%);
}
body.v2-home .hero > .hero-content {
  position: relative;
  z-index: 2;
}

/* Professional headline — solid ink, no animated gradient fill */
body.v2-home .hero h1 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  animation: none !important;
  font-weight: 650;
  letter-spacing: -0.035em;
}
body.v2-home .hero h1 em {
  background: none !important;
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
  font-style: normal;
  font-weight: 650;
  border-bottom: 2px solid var(--accent-line);
  text-shadow: none !important;
}
body.v2-home .hero h1 .epi-badge {
  -webkit-text-fill-color: var(--signal) !important;
  color: var(--signal) !important;
  background: var(--signal-glow) !important;
  box-shadow: none !important;
  border: 1px solid rgba(91, 140, 255, 0.28);
  font-weight: 600;
}

/* Eyebrow pulse */
body.v2-home .hero-eyebrow {
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.08);
  box-shadow: 0 0 24px rgba(61, 220, 151, 0.12);
}
body.v2-home .hero-eyebrow::before {
  animation: epi-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes epi-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
}

/* ── Working border beam (wrapper) ── */
body.v2-home .beam-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(90deg, #3ddc97, #5b8cff, #b829f7, #3ddc97);
  background-size: 300% 100%;
  animation: epi-beam-move 2.8s linear infinite;
  box-shadow: 0 0 28px rgba(61, 220, 151, 0.35), 0 0 48px rgba(91, 140, 255, 0.15);
}
body.v2-home .beam-wrap > .btn {
  border-radius: 10px;
  margin: 0;
}
@keyframes epi-beam-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Kill broken old beam pseudo */
body.v2-home .btn-primary.btn-lg::before,
body.v2-home .btn-primary.btn-beam::before {
  display: none !important;
}

/* ── File card shine ── */
body.v2-home .v2-file-card {
  overflow: hidden;
  border: 1px solid rgba(61, 220, 151, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(61, 220, 151, 0.12) !important;
  animation: epi-card-float 6s ease-in-out infinite;
}
body.v2-home .v2-file-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: epi-shine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes epi-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes epi-shine {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
body.v2-home .v2-seal-pill {
  animation: epi-pill-glow 2s ease-in-out infinite !important;
  box-shadow: 0 0 16px rgba(61, 220, 151, 0.5);
}
@keyframes epi-pill-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(61, 220, 151, 0.35); }
  50% { box-shadow: 0 0 24px rgba(61, 220, 151, 0.75); }
}

/* ── Marquee strip ── */
body.v2-home .epi-marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
  padding: 14px 0;
  margin-top: -8px;
}
body.v2-home .epi-marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: epi-marquee 28s linear infinite;
}
body.v2-home .epi-marquee-track span {
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 244, 247, 0.45);
  white-space: nowrap;
}
body.v2-home .epi-marquee-track span strong {
  color: #3ddc97;
  font-weight: 600;
}
@keyframes epi-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
body.v2-home .epi-marquee:hover .epi-marquee-track {
  animation-play-state: paused;
}

/* ── Drop zone ambient ring ── */
body.v2-home .drop-zone {
  position: relative;
  border: 1px solid rgba(61, 220, 151, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.1), inset 0 0 40px rgba(61, 220, 151, 0.04);
}
body.v2-home .drop-zone::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(#141820, #141820) padding-box,
    linear-gradient(90deg, #3ddc97, #5b8cff, #3ddc97) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: epi-ring 2.5s linear infinite;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}
@keyframes epi-ring {
  0% { background-position: 0 0, 0% 50%; opacity: 0.45; }
  50% { opacity: 0.9; }
  100% { background-position: 0 0, 200% 50%; opacity: 0.45; }
}
body.v2-home .drop-zone.seal-ok {
  box-shadow: 0 0 0 2px #3ddc97, 0 0 40px rgba(61, 220, 151, 0.4) !important;
  animation: epi-seal-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes epi-seal-pop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ── Truth cards: glass bento ── */
body.v2-home .truth-card {
  background: linear-gradient(160deg, rgba(61, 220, 151, 0.08), transparent 50%),
    rgba(20, 24, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s, border-color 0.25s !important;
}
body.v2-home .truth-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(61, 220, 151, 0.45) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(61, 220, 151, 0.12);
}
body.v2-home .truth-icon {
  width: 48px !important;
  height: 48px !important;
  box-shadow: 0 0 24px currentColor;
}

/* ── Plans ── */
body.v2-home .v2-plan.featured {
  transform: scale(1.04);
  border: 1px solid rgba(61, 220, 151, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.2), 0 20px 50px rgba(61, 220, 151, 0.15) !important;
  background: linear-gradient(180deg, rgba(61, 220, 151, 0.1) 0%, rgba(20, 24, 32, 0.95) 40%) !important;
}
body.v2-home .v2-plan.featured .plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04120c;
  background: linear-gradient(90deg, #3ddc97, #6ee7b0);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(61, 220, 151, 0.4);
}
body.v2-home .v2-plan:hover {
  transform: translateY(-6px);
}

/* ── Section ambient ── */
body.v2-home #proof,
body.v2-home #truths {
  position: relative;
}
body.v2-home #proof::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 90vw);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(61, 220, 151, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body.v2-home #proof > .container {
  position: relative;
  z-index: 1;
}

/* ── Light mode: keep readable but still show effects ── */
html[data-theme="light"] body.v2-home .hero {
  background: #f4f6f8 !important;
}
html[data-theme="light"] body.v2-home .hero-fx .aurora {
  opacity: 0.55;
  filter: blur(20px);
}
html[data-theme="light"] body.v2-home .hero h1 {
  background: none !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  animation: none !important;
}
html[data-theme="light"] body.v2-home .hero h1 em {
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
  text-shadow: none !important;
}
html[data-theme="light"] body.v2-home .epi-marquee {
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] body.v2-home .epi-marquee-track span {
  color: rgba(15, 17, 21, 0.45);
}
html[data-theme="light"] body.v2-home .epi-marquee-track span strong {
  color: #0077b6;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  body.v2-home .hero-fx .aurora,
  body.v2-home .hero-fx .meteors span,
  body.v2-home .hero h1,
  body.v2-home .beam-wrap,
  body.v2-home .v2-file-card,
  body.v2-home .v2-file-card::after,
  body.v2-home .v2-seal-pill,
  body.v2-home .epi-marquee-track,
  body.v2-home .drop-zone::before,
  body.v2-home .hero-eyebrow::before {
    animation: none !important;
  }
  body.v2-home .hero-fx .spotlight {
    transition: none;
  }
}
/* ═══════════════════════════════════════════════════════════════
   SITEWIDE + ALL HOME SECTIONS + FIRST-CLASS LIGHT MODE
   ═══════════════════════════════════════════════════════════════ */

/* Dark hero only when not light */
html:not([data-theme="light"]) body.v2-home .hero {
  background: #07090d !important;
}
html[data-theme="light"] body.v2-home .hero {
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(13, 159, 110, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    #F4F2EC !important;
}

/* ── Page body ambient (all instrument pages) ── */
body.v2-home,
body.epi-instrument {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(61, 220, 151, 0.07), transparent 55%);
  background-attachment: fixed;
}
html[data-theme="light"] body.v2-home,
html[data-theme="light"] body.epi-instrument {
  --bg: #F4F2EC;
  --bg-alt: #EBE8E0;
  --bg-card: #FFFFFF;
  --bg-dark: #0F1218;
  --bg-code: #1A1F28;
  --ink: #0F1218;
  --ink-soft: #3A3F4A;
  --ink-muted: #5C6573;
  --ink-dim: #8B93A1;
  --accent: #0B8F62;
  --accent-lt: #0D9F6E;
  --accent-glow: rgba(11, 143, 98, 0.1);
  --accent-line: rgba(11, 143, 98, 0.32);
  --signal: #2563EB;
  --signal-glow: rgba(37, 99, 235, 0.1);
  --verified: #0B8F62;
  --verified-bg: rgba(11, 143, 98, 0.1);
  --warn: #A16207;
  --warn-bg: rgba(161, 98, 7, 0.1);
  --tamper: #DC2626;
  --tamper-bg: rgba(220, 38, 38, 0.08);
  --border: rgba(15, 18, 24, 0.08);
  --border-str: rgba(15, 18, 24, 0.12);
  --border-accent: rgba(11, 143, 98, 0.35);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(11, 143, 98, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(37, 99, 235, 0.05), transparent 50%);
  color: var(--ink-soft);
}

/* ── Proof section ── */
body.v2-home #proof .checks-list {
  background: rgba(20, 24, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] body.v2-home #proof .checks-list {
  background: #fff;
  border-color: var(--border-str);
  box-shadow: 0 8px 28px rgba(15, 18, 24, 0.06);
}
body.v2-home .v2-video-wrap {
  border-radius: 16px;
  border: 1px solid rgba(61, 220, 151, 0.25);
  padding: 12px;
  background: rgba(20, 24, 32, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(61, 220, 151, 0.08);
}
html[data-theme="light"] body.v2-home .v2-video-wrap {
  background: #fff;
  border-color: var(--border-str);
  box-shadow: 0 12px 36px rgba(15, 18, 24, 0.08);
}
body.v2-home .v2-video {
  border-radius: 12px;
  display: block;
  width: 100%;
}

/* ── Loop / command strip ── */
body.v2-home #loop {
  position: relative;
}
body.v2-home #loop::before {
  content: "";
  position: absolute;
  inset: 10% 10% auto;
  height: 200px;
  background: radial-gradient(ellipse, rgba(91, 140, 255, 0.1), transparent 70%);
  pointer-events: none;
}
body.v2-home .command-strip {
  position: relative;
  z-index: 1;
  border-radius: 16px !important;
  border: 1px solid rgba(61, 220, 151, 0.2) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
body.v2-home .command-strip li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.v2-home .command-strip li:hover {
  background: rgba(61, 220, 151, 0.06);
  transform: translateX(6px);
}
body.v2-home .command-strip .n {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(61, 220, 151, 0.4);
}
/* Light: keep terminal dark (code aesthetic) but lift page around it */
html[data-theme="light"] body.v2-home .command-strip,
html[data-theme="light"] .command-strip {
  background: #12151C !important;
  border-color: rgba(11, 143, 98, 0.35) !important;
  box-shadow: 0 16px 40px rgba(15, 18, 24, 0.12);
}
html[data-theme="light"] .command-strip .cmd { color: #E8ECF2; }
html[data-theme="light"] .command-strip .hint { color: #8B93A1; }

/* ── Plans section ambient ── */
body.v2-home #plans {
  position: relative;
}
body.v2-home #plans::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: min(700px, 80vw);
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(61, 220, 151, 0.1), transparent 70%);
  pointer-events: none;
}
body.v2-home .v2-plan {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 50%),
    rgba(20, 24, 32, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
}
html[data-theme="light"] body.v2-home .v2-plan {
  background: #fff !important;
  border-color: var(--border-str) !important;
  box-shadow: 0 8px 28px rgba(15, 18, 24, 0.06);
}
html[data-theme="light"] body.v2-home .v2-plan.featured {
  background: linear-gradient(180deg, rgba(11, 143, 98, 0.08) 0%, #fff 45%) !important;
  border-color: rgba(11, 143, 98, 0.45) !important;
  box-shadow: 0 12px 40px rgba(11, 143, 98, 0.12) !important;
}

/* ── Close CTA section ── */
body.v2-home #close {
  position: relative;
  overflow: hidden;
}
body.v2-home #close::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(61, 220, 151, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(91, 140, 255, 0.1), transparent 55%);
  pointer-events: none;
}
body.v2-home #close > .container {
  position: relative;
  z-index: 1;
  padding: 48px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 24, 32, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] body.v2-home #close > .container {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-str);
  box-shadow: 0 16px 48px rgba(15, 18, 24, 0.08);
}
html[data-theme="light"] body.v2-home #close::before {
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(11, 143, 98, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(37, 99, 235, 0.08), transparent 55%);
}

/* ── Sticky CTA ── */
body.v2-home .v2-sticky-cta {
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] body.v2-home .v2-sticky-cta {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-str);
  box-shadow: 0 12px 32px rgba(15, 18, 24, 0.1);
}

/* ── Sitewide cards / instrument pages ── */
body.epi-instrument .pricing-card,
body.epi-instrument .int-card,
body.epi-instrument .uc-card,
body.epi-instrument .truth-card,
body.v2-home .pricing-card {
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s, border-color 0.2s;
}
body.epi-instrument .pricing-card:hover,
body.epi-instrument .int-card:hover,
body.epi-instrument .uc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 24px rgba(61, 220, 151, 0.08);
}
html[data-theme="light"] body.epi-instrument .pricing-card:hover,
html[data-theme="light"] body.epi-instrument .int-card:hover,
html[data-theme="light"] body.epi-instrument .uc-card:hover {
  box-shadow: 0 14px 36px rgba(15, 18, 24, 0.1);
}

/* Soft primary CTA glow sitewide (no markup wrap required) */
body.v2-home .btn-primary,
body.epi-instrument .btn-primary {
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.25), 0 8px 24px rgba(61, 220, 151, 0.2);
}
html[data-theme="light"] body.v2-home .btn-primary,
html[data-theme="light"] body.epi-instrument .btn-primary {
  box-shadow: 0 0 0 1px rgba(11, 143, 98, 0.25), 0 8px 22px rgba(11, 143, 98, 0.18);
  color: #fff;
  background: var(--accent);
}

/* ── Drop zone ring: theme-aware (fix hardcoded #141820) ── */
body.v2-home .drop-zone::before {
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(90deg, var(--accent), var(--signal), var(--accent)) border-box !important;
}
html[data-theme="light"] body.v2-home .drop-zone {
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(15, 18, 24, 0.06);
}
html[data-theme="light"] body.v2-home .drop-zone.seal-ok {
  box-shadow: 0 0 0 2px var(--verified), 0 0 28px rgba(11, 143, 98, 0.25) !important;
}

/* ── Truth cards light ── */
html[data-theme="light"] body.v2-home .truth-card {
  background: #fff !important;
  border-color: var(--border-str) !important;
  box-shadow: 0 8px 28px rgba(15, 18, 24, 0.05);
}
html[data-theme="light"] body.v2-home .truth-card:hover {
  border-color: var(--accent-line) !important;
  box-shadow: 0 16px 40px rgba(15, 18, 24, 0.1);
}

/* ── File card light ── */
html[data-theme="light"] body.v2-home .v2-file-card {
  background: #fff !important;
  border-color: rgba(11, 143, 98, 0.35) !important;
  box-shadow: 0 16px 48px rgba(15, 18, 24, 0.1) !important;
  color: var(--ink);
}
html[data-theme="light"] body.v2-home .v2-file-row .k { color: var(--ink-muted); }
html[data-theme="light"] body.v2-home .v2-file-row .v { color: var(--ink); }
html[data-theme="light"] body.v2-home .v2-file-name { color: var(--ink); }
html[data-theme="light"] body.v2-home .hero-fx .meteors { opacity: 0.25; }
html[data-theme="light"] body.v2-home .hero-fx .dot-grid {
  background-image: radial-gradient(rgba(15, 18, 24, 0.12) 1px, transparent 1px);
  opacity: 0.7;
}
html[data-theme="light"] body.v2-home .hero-fx .spotlight {
  background: radial-gradient(circle, rgba(11, 143, 98, 0.18) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 65%);
  mix-blend-mode: multiply;
}
html[data-theme="light"] body.v2-home .hero-fx .vignette {
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(244, 242, 236, 0.85) 100%);
}
html[data-theme="light"] body.v2-home .beam-wrap {
  box-shadow: 0 0 24px rgba(11, 143, 98, 0.25);
}

/* Nav light polish */
html[data-theme="light"] body.v2-home #nav,
html[data-theme="light"] body.epi-instrument #nav {
  background: rgba(244, 242, 236, 0.88) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
html[data-theme="light"] body.epi-instrument .site-footer,
html[data-theme="light"] body.v2-home .site-footer,
html[data-theme="light"] body.epi-instrument footer,
html[data-theme="light"] body.v2-home footer {
  background: var(--bg-alt) !important;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
}

/* Verify page mode buttons light */
html[data-theme="light"] body.epi-instrument .mode-btn {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 18, 24, 0.04);
}
html[data-theme="light"] body.epi-instrument .mode-btn.active {
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(11, 143, 98, 0.12);
}

/* Section titles readable in light */
html[data-theme="light"] body.v2-home .section-title,
html[data-theme="light"] body.epi-instrument .section-title,
html[data-theme="light"] body.v2-home h1,
html[data-theme="light"] body.epi-instrument h1 {
  color: var(--ink);
}

/* Account / legal content panels */
body.epi-instrument main,
body.epi-instrument .container > section {
  position: relative;
}
html[data-theme="light"] body.epi-instrument {
  color: var(--ink-soft);
}

/* Code chips */
html[data-theme="light"] body.v2-home .v2-install-chip {
  background: #fff;
  border: 1px solid var(--border-str);
  box-shadow: 0 4px 16px rgba(15, 18, 24, 0.05);
}
html[data-theme="light"] body.v2-home .v2-install-chip code {
  color: var(--ink);
}

/* ═══ Light mode polish pass (professional paper UI) ═══ */
html[data-theme="light"] body.v2-home .v2-file-row {
  background: #F4F2EC !important;
  border-color: rgba(15, 18, 24, 0.08) !important;
}
html[data-theme="light"] body.v2-home .v2-file-foot,
html[data-theme="light"] body.v2-home .v2-file-foot a {
  color: var(--ink-muted);
}
html[data-theme="light"] body.v2-home .hero-fx .aurora {
  opacity: 0.35 !important;
  filter: blur(28px) !important;
}
html[data-theme="light"] body.v2-home .hero-fx .meteors {
  display: none !important;
}
html[data-theme="light"] body.v2-home .hero-sub {
  color: var(--ink-soft);
}
html[data-theme="light"] body.v2-home .v2-proof span {
  background: #fff;
  border-color: var(--border-str);
  color: var(--ink-muted);
}
html[data-theme="light"] body.v2-home .v2-proof span strong {
  color: var(--accent);
}
html[data-theme="light"] body.v2-home .drop-zone {
  background: #fff !important;
  color: var(--ink);
}
html[data-theme="light"] body.v2-home .drop-title,
html[data-theme="light"] body.v2-home .drop-hint {
  color: var(--ink-soft);
}
html[data-theme="light"] body.v2-home .check-item {
  color: var(--ink-soft);
}
html[data-theme="light"] body.v2-home .v2-plan {
  background: #fff;
  border-color: var(--border-str);
  box-shadow: 0 4px 20px rgba(15, 18, 24, 0.04);
}
html[data-theme="light"] body.v2-home .v2-plan h3,
html[data-theme="light"] body.v2-home .v2-plan .price {
  color: var(--ink);
}
html[data-theme="light"] body.v2-home .v2-plan p {
  color: var(--ink-muted);
}
html[data-theme="light"] body.v2-home .v2-plan.featured {
  background: #fff !important;
  border-color: var(--accent-line) !important;
  box-shadow: 0 8px 32px rgba(11, 143, 98, 0.1) !important;
}
html[data-theme="light"] body.v2-home .truth-kicker,
html[data-theme="light"] body.v2-home .section-label {
  color: var(--accent);
}
html[data-theme="light"] body.v2-home .section-desc,
html[data-theme="light"] body.epi-instrument .section-desc {
  color: var(--ink-muted);
}
html[data-theme="light"] body.v2-home .command-strip {
  /* keep terminal dark for code authenticity */
  background: #0F1218 !important;
  border-color: rgba(15, 18, 24, 0.12);
}
html[data-theme="light"] body.v2-home .btn-secondary {
  color: var(--ink);
  border-color: var(--border-str);
  background: #fff;
}
html[data-theme="light"] body.v2-home .btn-primary,
html[data-theme="light"] body.epi-instrument .btn-primary {
  color: #fff !important;
  background: var(--accent) !important;
}
html[data-theme="light"] body.epi-instrument .pricing-card,
html[data-theme="light"] body.epi-instrument .acct-card,
html[data-theme="light"] body.epi-instrument .ent-card,
html[data-theme="light"] body.epi-instrument .service-card {
  background: #fff;
  border-color: var(--border-str);
  color: var(--ink-soft);
}
html[data-theme="light"] body.epi-instrument .pricing-card h3,
html[data-theme="light"] body.epi-instrument .pricing-card .price,
html[data-theme="light"] body.epi-instrument h1,
html[data-theme="light"] body.epi-instrument h2,
html[data-theme="light"] body.epi-instrument h4 {
  color: var(--ink);
}
html[data-theme="light"] .mob-menu a,
html[data-theme="light"] .mob-menu button.mob-theme-btn {
  color: var(--ink) !important;
  border-bottom-color: var(--border);
}
html[data-theme="light"] body.v2-home .v2-sticky-cta {
  background: rgba(255, 255, 255, 0.94) !important;
  border-top: 1px solid var(--border-str);
}
html[data-theme="light"] body.v2-home .v2-sticky-cta .btn-secondary {
  background: #fff;
  color: var(--ink);
}
html[data-theme="light"] body.v2-home .nav-mob span,
html[data-theme="light"] body.epi-instrument .nav-mob span {
  background: var(--ink) !important;
}
/* Logo: no invert in light */
html[data-theme="light"] body.v2-home .nav-logo img,
html[data-theme="light"] body.epi-instrument .nav-logo img,
html[data-theme="light"] body.v2-home .footer-logo,
html[data-theme="light"] body.epi-instrument .footer-logo {
  filter: none !important;
  opacity: 1 !important;
}
