/* ============================================================
   AI LAW — design tokens & component styles
   ============================================================ */

:root {
  --ink:    #0B0B0F;
  --panel:  #111116;
  --card:   #16161C;
  --line:   #23232C;
  --bone:   #F4F1EA;
  --mute:   #8A8A95;
  --gold:   #B8965A;
  --red:    #C75D5D;
  --amber:  #D9A23A;
  --green:  #6BB37E;

  --display: "Fraunces", ui-serif, Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 96px);
  --section-y: clamp(80px, 12vw, 160px);
  --section-mul: 1;
  --headline-scale: 1;
  --body-size: 16px;
  --radius: 6px;
  --marquee-speed: 60s;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--body-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { font-feature-settings: "ss01", "cv11"; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

/* ---- Type helpers ---- */
.display {
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
  line-height: 0.94;
  font-weight: 600;
}
.display em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.label-gold {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Film grain ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(.2,.6,.2,1), transform 700ms cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(11,11,15,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  display: grid; place-items: center;
  border-radius: 4px;
}
.brand-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  opacity: 0.6;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: rgba(244,241,234,0.75);
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--bone); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-signin {
  font-size: 14px;
  color: var(--mute);
  transition: color 180ms ease;
}
.nav-signin:hover { color: var(--bone); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 200ms cubic-bezier(.2,.6,.2,1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover { background: #ffffff; }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--bone); }
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-xl { padding: 16px 26px; font-size: 15px; }

.nav-signup {
  padding: 8px 14px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .nav-signup { display: none; }
}
@media (max-width: 880px) {
  .nav-links, .nav-signin { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px var(--pad-x) 80px clamp(20px, 3vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.hero-video-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,15,1) 0%, rgba(11,11,15,1) 32%, rgba(11,11,15,0.85) 42%, rgba(11,11,15,0.4) 55%, rgba(11,11,15,0) 70%),
    linear-gradient(180deg, rgba(11,11,15,0.4) 0%, rgba(11,11,15,0) 30%, rgba(11,11,15,0) 70%, rgba(11,11,15,0.5) 100%);
}
@media (max-width: 980px) {
  .hero-video { width: 100%; }
  .hero-video-mask {
    background:
      linear-gradient(180deg, rgba(11,11,15,0.85) 0%, rgba(11,11,15,0.6) 50%, rgba(11,11,15,0.85) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 600px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  box-shadow: 0 0 0 0 rgba(184,150,90,0.8);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,150,90,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(184,150,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,150,90,0); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.94;
  font-size: calc(clamp(56px, 8.5vw, 116px) * var(--headline-scale));
  margin: 28px 0 28px;
  font-variation-settings: "opsz" 144;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(244,241,234,0.7);
  max-width: 520px;
  margin: 0 0 36px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--mute);
}
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--mute);
  opacity: 0.55;
}

/* hero side - aspect placeholder card on small screens; on desktop the video shows through */
.hero-aside {
  display: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  padding: 18px 0;
  gap: 0;
  animation: scroll var(--marquee-speed) linear infinite;
}
.marquee-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.marquee-group span { padding: 0 28px; }
.marquee-group .lead { color: rgba(244,241,234,0.8); }
.marquee-group .slash { color: var(--mute); opacity: 0.3; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  padding: calc(var(--section-y) * var(--section-mul)) var(--pad-x);
  position: relative;
}
.section.tinted {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 72px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-size: calc(clamp(42px, 5.5vw, 72px) * var(--headline-scale));
  margin: 16px 0 20px;
}
.section-head h2 em { font-style: italic; font-weight: 300; }
.section-head p {
  color: rgba(244,241,234,0.65);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  max-width: 560px;
}

/* ============================================================
   01 — WHAT IT CATCHES (cards grid)
   ============================================================ */
.catch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .catch-grid { grid-template-columns: 1fr; } }

.catch-card {
  background: var(--ink);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
}
.sev-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sev-pill .sev-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.sev-red   { color: var(--red); }
.sev-red   .sev-dot { background: var(--red); }
.sev-amber { color: var(--amber); }
.sev-amber .sev-dot { background: var(--amber); }
.sev-green { color: var(--green); }
.sev-green .sev-dot { background: var(--green); }

.catch-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.catch-card .body {
  color: rgba(244,241,234,0.65);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 4px 0 0;
}
.excerpt {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(244,241,234,0.85);
}

/* ---- clause hover ---- */
.clause {
  position: relative;
  display: inline;
  cursor: help;
  background-image: linear-gradient(to top, rgba(184,150,90,0.30) 0%, rgba(184,150,90,0.30) 38%, transparent 38%);
  transition: background-image 180ms ease;
}
.clause:hover {
  background-image: linear-gradient(to top, rgba(184,150,90,0.55) 0%, rgba(184,150,90,0.55) 42%, transparent 42%);
}
.clause-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: min(420px, 80vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 8px 16px -8px rgba(0,0,0,0.5);
  font-family: var(--body);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244,241,234,0.85);
  font-weight: 300;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}
.clause:hover .clause-tooltip,
.clause:focus-within .clause-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.ai-read-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 500;
}

/* ============================================================
   02 — LIVE DEMO (mock app shell)
   ============================================================ */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } }

.demo-left { position: sticky; top: 100px; }
.demo-bullets {
  list-style: none;
  margin: 28px 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-bullets li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  color: rgba(244,241,234,0.85);
  font-weight: 300;
  line-height: 1.5;
}
.demo-bullets li::before {
  content: "→";
  color: var(--gold);
  flex-shrink: 0;
  font-family: var(--mono);
}

.app-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.8), 0 12px 32px -12px rgba(0,0,0,0.6);
}
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.dots { display: flex; gap: 6px; }
.dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--line);
}
.dots span:nth-child(1) { background: #2a2a32; }
.dots span:nth-child(2) { background: #2a2a32; }
.dots span:nth-child(3) { background: #2a2a32; }
.app-filename {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(244,241,234,0.7);
  flex: 1;
  text-align: center;
}
.app-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.app-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}
@media (max-width: 720px) { .app-body { grid-template-columns: 1fr; } }

.doc-pane, .findings-pane {
  height: 720px;
  overflow-y: auto;
  padding: 32px 30px;
}
.doc-pane {
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.95;
  color: rgba(244,241,234,0.78);
}
@media (max-width: 720px) {
  .doc-pane { border-right: none; border-bottom: 1px solid var(--line); height: 560px; }
  .findings-pane { height: 560px; }
  .doc-pane, .findings-pane { padding: 24px 22px; font-size: 14.5px; }
}

.doc-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bone);
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.doc-pane p { margin: 0 0 22px; }
.doc-pane .strong { color: var(--bone); }

.flag {
  border-left: 2px solid var(--line);
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 0 4px 4px 0;
}
.flag.red {
  border-left-color: var(--red);
  background: rgba(199,93,93,0.07);
}
.flag.amber {
  border-left-color: var(--amber);
  background: rgba(217,162,58,0.07);
}

/* findings */
.findings-pane { background: var(--ink); }
.findings-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.findings-top .title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}
.pill-row { display: flex; gap: 6px; }
.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
}
.pill.red   { background: rgba(199,93,93,0.15); color: var(--red); }
.pill.amber { background: rgba(217,162,58,0.15); color: var(--amber); }
.pill.green { background: rgba(107,179,126,0.15); color: var(--green); }

.finding {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.finding:last-child { border-bottom: none; }
.finding-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.finding-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.finding-row .dot.red   { background: var(--red); }
.finding-row .dot.amber { background: var(--amber); }
.finding-row .dot.green { background: var(--green); }
.finding-row .ttl {
  font-weight: 500;
  font-size: 15px;
  color: var(--bone);
  flex: 1;
}
.finding-row .ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}
.finding-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,241,234,0.7);
  font-weight: 300;
  padding-left: 18px;
}
details.replacement {
  margin-top: 10px;
  padding-left: 18px;
}
details.replacement summary {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
}
details.replacement summary::after {
  content: " +";
}
details.replacement[open] summary::after { content: " −"; }
details.replacement pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 10px 0 0;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(244,241,234,0.78);
  white-space: pre-wrap;
}
.green-hl {
  background: rgba(107,179,126,0.18);
  color: #cfe9d5;
  padding: 1px 4px;
  border-radius: 2px;
}

/* ---- Demo simulation states ---- */
#demo-cta {
  position: relative;
  overflow: hidden;
}
#demo-cta[disabled] {
  opacity: 0.85;
  cursor: progress;
}
#demo-cta .demo-cta-arrow { transition: transform 200ms ease; }
.app-shell.is-revised #demo-cta .demo-cta-arrow { transform: rotate(180deg); }

/* default = original visible */
.file-revised, .status-revised, .status-scan,
.title-revised, .pill-revised, .ttl-revised, .dot-revised,
.finding-body-revised, .swap-new {
  display: none;
}

.app-shell.is-scanning .status-original,
.app-shell.is-scanning .status-revised { display: none; }
.app-shell.is-scanning .status-scan { display: inline-flex; }
.app-shell.is-scanning .status-scan::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 0.7s ease-in-out infinite;
  margin-right: 6px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.app-status .status-scan { color: var(--gold); }
.app-status .status-scan::before { display: inline-block; }

/* revised state swaps */
.app-shell.is-revised .file-original,
.app-shell.is-revised .status-original,
.app-shell.is-revised .title-original,
.app-shell.is-revised .pill-original,
.app-shell.is-revised .ttl-original,
.app-shell.is-revised .dot-original,
.app-shell.is-revised .finding-body-original,
.app-shell.is-revised .swap-old { display: none; }

.app-shell.is-revised .file-revised,
.app-shell.is-revised .status-revised,
.app-shell.is-revised .title-revised,
.app-shell.is-revised .ttl-revised,
.app-shell.is-revised .finding-body-revised { display: inline; }
.app-shell.is-revised .pill-revised { display: inline-block; }
.app-shell.is-revised .dot-revised { display: inline-block; }

/* swap text */
.swap { position: relative; }
.swap-new {
  background: rgba(107,179,126,0.16);
  color: #cfe9d5;
  padding: 1px 4px;
  border-radius: 2px;
  font-style: normal;
}
.app-shell.is-revised .swap-new { display: inline; }

/* revised flag treatment */
.app-shell.is-revised .flag.red,
.app-shell.is-revised .flag.amber {
  border-left-color: var(--green);
  background: rgba(107,179,126,0.07);
}

/* scanning highlight - flags pulse one by one */
.flag.is-scanning {
  border-left-color: var(--gold) !important;
  background: rgba(184,150,90,0.12) !important;
  box-shadow: 0 0 0 1px rgba(184,150,90,0.3), 0 0 24px -4px rgba(184,150,90,0.4);
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}
.finding.is-scanning {
  background: rgba(184,150,90,0.07);
  transition: background 200ms ease;
}

/* status colors */
.app-shell.is-revised .app-status::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.app-shell.is-revised .app-status { color: var(--gold); }

/* ============================================================
   03 — FOR WHO (3 columns, no card bg)
   ============================================================ */
.for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
@media (max-width: 880px) { .for-grid { grid-template-columns: 1fr; gap: 48px; } }
.for-col h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 14px 0 18px;
  max-width: 12ch;
}
.for-col .body {
  color: rgba(244,241,234,0.65);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 22px;
}
.gold-link {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 180ms ease;
}
.gold-link:hover { gap: 12px; }

/* ============================================================
   04 — HOW IT WORKS (3 steps in single bordered grid)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel);
  padding: 56px 36px 48px;
  min-height: 280px;
}
.step-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.4;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.step p {
  color: rgba(244,241,234,0.65);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
  max-width: 32ch;
}

/* ============================================================
   05 — TRUST (2 col, 2x2 panels)
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .trust-grid { grid-template-columns: 1fr; gap: 48px; } }

.trust-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 640px) { .trust-quad { grid-template-columns: 1fr; } }
.trust-panel {
  background: var(--ink);
  padding: 32px 28px;
  min-height: 200px;
}
.trust-panel h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.trust-panel p {
  color: rgba(244,241,234,0.65);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

/* ============================================================
   06 — PRICING
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.price-card.featured {
  border-color: rgba(184,150,90,0.6);
  box-shadow: 0 0 0 1px rgba(184,150,90,0.25), 0 30px 80px -30px rgba(184,150,90,0.18);
}
.price-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.price-tier {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
}
.price-sub {
  color: var(--mute);
  font-size: 13px;
  font-weight: 300;
  margin: -10px 0 0;
}
.price-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-num small {
  font-family: var(--body);
  font-size: 14px;
  color: var(--mute);
  font-weight: 400;
}
.price-tagline {
  color: var(--mute);
  font-size: 13px;
  margin: -8px 0 0;
}
.price-cta { width: 100%; justify-content: center; }
.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(244,241,234,0.85);
  font-weight: 300;
  line-height: 1.5;
}
.price-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 500;
}

/* ---- Billing toggle ---- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -32px 0 40px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.billing-opt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 180ms ease, background 180ms ease;
}
.billing-opt:hover { color: var(--bone); }
.billing-opt.is-active {
  background: var(--bone);
  color: var(--ink);
}
.billing-save {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  background: var(--gold);
  color: var(--ink);
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.billing-opt:not(.is-active) .billing-save { display: none; }

/* default = yearly view */
.period-monthly { display: none; }
.price-grid.is-monthly .period-yearly { display: none; }
.price-grid.is-monthly .period-monthly { display: inline; }
.period-yearly, .period-monthly { display: inline; }
.price-grid:not(.is-monthly) .period-monthly { display: none; }
.price-grid:not(.is-monthly) .period-yearly { display: inline; }

/* ============================================================
   07 — FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 24px 4px;
  list-style: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .marker {
  font-family: var(--display);
  font-size: 24px;
  color: var(--gold);
  font-weight: 300;
  transition: transform 200ms ease;
}
.faq details[open] .marker { transform: rotate(45deg); }
.faq details[open] .marker::before { content: "+"; }
.faq .marker::before { content: "+"; }
.faq .answer {
  padding: 0 4px 28px;
  color: rgba(244,241,234,0.65);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 64ch;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing {
  text-align: center;
  padding: clamp(120px, 20vw, 240px) var(--pad-x);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(35,35,44,0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35,35,44,0.3) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.closing h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.94;
  font-size: clamp(52px, 8.5vw, 124px);
  margin: 0 0 40px;
}
.closing h2 em { font-style: italic; font-weight: 300; }
.closing-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.closing-mute {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.14em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 28px var(--pad-x);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-left .brand-mark { width: 24px; height: 24px; font-size: 14px; }
.footer-left .meta {
  font-size: 13px;
  color: rgba(138,138,149,0.6);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--mute);
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--bone); }

/* ============================================================
   SIGN UP
   ============================================================ */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .signup-grid { grid-template-columns: 1fr; gap: 48px; } }

.signup-perks {
  list-style: none;
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signup-perks li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: rgba(244,241,234,0.85);
  font-weight: 300;
  line-height: 1.55;
}
.signup-perks li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 500;
}

.signup-tos {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(244,241,234,0.7);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 4px;
}
.signup-tos input { margin-top: 3px; accent-color: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-body p {
  color: rgba(244,241,234,0.75);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  margin: 0 0 22px;
  max-width: 60ch;
}
.about-body .about-lead {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--bone);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  max-width: 28ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 32px;
}
@media (max-width: 640px) { .about-stats { grid-template-columns: 1fr; } }
.about-stats > div {
  background: var(--ink);
  padding: 24px 22px;
}
.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.contact-list > div { display: flex; flex-direction: column; gap: 6px; }
.contact-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--bone);
  transition: color 180ms ease;
  width: fit-content;
}
.contact-link:hover { color: var(--gold); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  transition: border-color 180ms ease, background 180ms ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink);
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238A8A95' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.contact-form button { align-self: flex-start; margin-top: 4px; }

/* italic em opt-out */
body.no-italic em { font-style: normal !important; font-weight: inherit !important; }

/* hero centered variant */
body.hero-center .hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
body.hero-center .hero-copy { text-align: center; max-width: 760px; margin: 0 auto; }
body.hero-center .hero h1 { max-width: none; }
body.hero-center .hero-ctas { justify-content: center; }
body.hero-center .trust-bar { justify-content: center; }

/* pricing flat */
body.pricing-flat .price-card { background: transparent; border-color: var(--line); box-shadow: none; }
body.pricing-flat .price-card.featured { box-shadow: none; }

/* section rules */
body.show-rule .section + .section { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .pulse-dot { animation: none; }
}


/* ============================================================
   AURORA — scroll-driven blue/indigo gradient field
   Sits behind everything below the hero; blobs drift, swell,
   and shift hue as the user scrolls. Variables are written by
   the inline scroll script in index.html.
   ============================================================ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--aurora-opacity, 0);
  /* slight smoothing so the fade-in at the hero edge isn't jagged */
  transition: opacity 220ms linear;
  contain: strict;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  will-change: transform, background-color;
  transition: background-color 320ms linear, transform 240ms linear;
}
.aurora-blob-1 {
  top: -18%;
  left: 18%;
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  background: hsla(var(--b1-h, 220), 80%, 40%, 0.42);
  transform: translate3d(var(--b1-x, 0), var(--b1-y, 0), 0) scale(var(--b1-s, 1));
}
.aurora-blob-2 {
  bottom: -14%;
  right: 16%;
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  background: hsla(var(--b2-h, 245), 75%, 38%, 0.42);
  transform: translate3d(var(--b2-x, 0), var(--b2-y, 0), 0) scale(var(--b2-s, 1));
}
.aurora-blob-3 {
  top: 32%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  margin-left: -35vw;
  margin-top: -35vw;
  background: hsla(var(--b3-h, 228), 90%, 55%, 0.22);
  transform: translate3d(var(--b3-x, 0), var(--b3-y, 0), 0) scale(var(--b3-s, 1));
}
.aurora-blob-4 {
  bottom: -10%;
  left: 38%;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  background: hsla(var(--b4-h, 255), 70%, 42%, 0.30);
  transform: translate3d(var(--b4-x, 0), var(--b4-y, 0), 0) scale(var(--b4-s, 1));
}

/* Lift content above the aurora, and let the dark section
   backgrounds become semi-transparent so the blue bleeds through.
   Hero, nav, footer stay above with their existing chrome intact. */
.nav,
.hero,
.footer { position: relative; z-index: 5; }

.section,
.marquee,
.closing { position: relative; z-index: 1; }

/* Default sections were transparent already — keep them so. */
/* Tinted sections used --panel as a solid; thin it out so blobs show. */
.section.tinted { background: rgba(17, 17, 22, 0.55); }
.marquee        { background: rgba(17, 17, 22, 0.65); }

/* The closing CTA sits over the aurora too — give it a faint floor
   so text remains legible against bright peaks. */
.closing { background: rgba(11, 11, 15, 0.35); }

/* Body bg already #0B0B0F; the aurora layers on top of that.
   Make sure html/body don't clip the fixed layer. */
html { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .aurora-blob { transition: none; }
}
