/* ══════════════════════════════════════════════════════════════════════
   VaniQAI — landing page
   Simple glass UI: dark base, soft static glow, frosted cards.
   Motion: the mirror (Without / With), gentle fade-ins, and chat replay.
   Every animation settles before text is read and never covers it.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0A0C10;
  --glass:     rgba(255, 255, 255, 0.045);
  --glass-2:   rgba(255, 255, 255, 0.075);
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.18);

  --ink:       #F2F4F8;
  --muted:     #A3ABBC;
  --muted-2:   #6F788A;

  --accent:      #5EF2C0;
  --accent-dim:  rgba(94, 242, 192, 0.12);
  --accent-line: rgba(94, 242, 192, 0.35);
  --warm:        #FFB37A;
  --bad:         #FF7A7A;

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  --r:    14px;
  --r-lg: 20px;
  --gut:  clamp(16px, 5vw, 48px);
  --blur: blur(14px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Static background glow that gives the glass something to blur. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 85% -5%, rgba(94, 242, 192, 0.14), transparent 70%),
    radial-gradient(36rem 28rem at -10% 35%, rgba(128, 78, 200, 0.14), transparent 70%),
    radial-gradient(34rem 26rem at 110% 85%, rgba(255, 179, 122, 0.08), transparent 70%);
}

h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 780px; }

.accent { color: var(--accent); }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #06231A; }
.btn-primary:hover { background: #86F6D1; }
.btn-ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--glass-2); }
.btn:focus-visible, .step-tab:focus-visible, summary:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.65);
  border-bottom: 1px solid var(--line);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px var(--gut);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1 var(--f-display);
  text-decoration: none;
}
.logo-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-inner { gap: 12px; }
  .nav-inner > .btn { margin-left: auto; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--glass);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gut) 16px;
    background: rgba(10, 12, 16, 0.95);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .logo { font-size: 17px; }
  .nav-inner > .btn { padding: 9px 12px; font-size: 13px; }
}

/* ── Shared section pieces ───────────────────────────────────────────── */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.head { max-width: 760px; margin-bottom: 40px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 19px; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin-top: 16px; max-width: 680px; }
.note { color: var(--muted-2); font-size: 14px; margin-top: 20px; }
.list-title { font-weight: 600; margin: 24px 0 12px; }

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 122, 0.35);
  background: rgba(255, 179, 122, 0.1);
  color: var(--warm);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 2px;
  white-space: nowrap;
}

.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.checks--row { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; }

.grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { padding: 24px; transition: border-color .2s, background-color .2s; }
.card:hover { border-color: var(--line-2); background: var(--glass-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font: 700 16px/1 var(--f-display);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 112px); text-align: center; }
.hero .wrap { max-width: 900px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); }
.hero .lede { margin: 24px auto 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 24px; }

/* ── Problem / compare table ─────────────────────────────────────────── */
.compare { overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row > * { padding: 18px 24px; }
.compare-row > :first-child { color: var(--muted); }
.compare-row > :last-child { border-left: 1px solid var(--line); background: rgba(94, 242, 192, 0.035); }
.compare-head { font-weight: 600; font-size: 14px; }
.compare-head > :first-child { color: var(--muted-2); }
@media (max-width: 640px) {
  .compare-row > * { padding: 14px 16px; font-size: 15px; }
}

/* ── 5 steps ─────────────────────────────────────────────────────────── */
.steps-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  scrollbar-width: none;
}
.steps-tabs::-webkit-scrollbar { display: none; }
.step-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 15px/1 var(--f-body);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.step-tab b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 12px;
}
.step-tab:hover { color: var(--ink); }
.step-tab.is-active { background: var(--accent-dim); color: var(--ink); }
.step-tab.is-active b { background: var(--accent); border-color: var(--accent); color: #06231A; }

/* Without JS every step is visible; ui.js adds .js and hides inactive ones. */
.steps { display: grid; gap: 16px; }
.js .step[hidden] { display: none; }
.step { padding: clamp(24px, 4vw, 40px); }
.step-kicker { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.step h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 24px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.points li { position: relative; padding-left: 18px; color: var(--muted); }
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.points b { color: var(--ink); }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

.tagline { text-align: center; margin-top: 40px; font-size: 18px; }
.tagline span { color: var(--muted); }

/* ── Rules ───────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.chat { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.chat-label { color: var(--muted-2); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; }
.bubble--customer { align-self: flex-end; background: var(--glass-2); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.bubble--agent { align-self: flex-start; background: var(--accent-dim); border: 1px solid var(--accent-line); border-bottom-left-radius: 4px; }
.chat-foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }

/* ── Safety flow ─────────────────────────────────────────────────────── */
.flow { display: flex; align-items: stretch; gap: 12px; }
.flow .glass { flex: 1; padding: 20px; text-align: center; font-weight: 600; border-radius: var(--r); }
.flow .flow-ok { border-color: var(--accent-line); background: var(--accent-dim); }
.flow-arrow { display: grid; place-items: center; color: var(--muted-2); font-size: 20px; }
@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dash { padding: clamp(20px, 3vw, 32px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: var(--r); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); }
.stat span { display: block; color: var(--muted); font-size: 13px; min-height: 2.6em; }
.stat strong { display: block; margin-top: 6px; font: 700 30px/1 var(--f-display); }
.dash-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.questions ol { list-style: decimal; padding-left: 20px; color: var(--muted); }
.questions li { margin-bottom: 8px; }
.questions .list-title { margin-top: 0; }
.sample { margin-top: 20px; color: var(--muted-2); font-size: 13px; font-style: italic; }
.callout { margin-top: 16px; padding: 18px 24px; color: var(--muted); border-radius: var(--r); }
.callout b { color: var(--ink); }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-lower { grid-template-columns: 1fr; gap: 8px; }
}

/* ── Features & chips ────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 22px 24px; }
.feature h3 { font-size: 17px; margin-bottom: 14px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
}
.chips .soon { margin-left: 4px; padding: 0 6px; font-size: 10px; }
.chips--lg li { padding: 10px 18px; font-size: 16px; color: var(--ink); background: var(--glass); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); }
.faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta { padding: clamp(28px, 5vw, 48px); text-align: center; border-color: var(--accent-line); }
.cta .lede { margin: 0 auto; color: var(--ink); font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; text-align: left; }
.cta-form label span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cta-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: 400 16px/1.2 var(--f-body);
  transition: border-color .2s;
}
.cta-form input::placeholder { color: var(--muted-2); }
.cta-form input:focus { outline: none; border-color: var(--accent); }
.cta-form input.is-bad { border-color: var(--bad); }
.cta-form .btn { grid-column: 1 / -1; margin-top: 6px; padding: 15px; }
.cta-note { margin-top: 16px; color: var(--muted-2); font-size: 14px; }
.cta-note.is-ok { color: var(--accent); }
.cta-note.is-bad { color: var(--bad); }
@media (max-width: 560px) { .cta-form { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.foot-copy { margin-left: auto; color: var(--muted-2); }
@media (max-width: 640px) { .foot-copy { margin-left: 0; } }

.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .lede { margin-left: auto; margin-right: auto; }
.flow small { display: block; margin-bottom: 6px; color: var(--muted-2); font-size: 12px; letter-spacing: .08em; }

/* ── The mirror ──────────────────────────────────────────────────────────
   A seam runs down the middle. Left is the way it is now, right is the
   reflection with VaniQAI. Each row opens outward from the seam as it
   scrolls into view; the seam fills with scroll progress. */
.mirror { position: relative; max-width: 960px; margin: 0 auto; }
.mirror-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mirror-labels > :first-child { text-align: right; }
.mirror-seam {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.mirror-seam i {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--accent), rgba(94, 242, 192, 0.3));
}
.mirror-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  padding: 28px 0;
}
.mirror-side { font: 600 clamp(18px, 2.2vw, 24px)/1.3 var(--f-display); }
.mirror-side small { display: none; }
.mirror-side--left { text-align: right; color: var(--muted-2); }
.mirror-side--right { color: var(--ink); }
.mirror-node {
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  z-index: 1;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.mirror-row.is-in .mirror-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); }

.js .mirror-side { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.js .mirror-side--left { transform: translateX(24px); }
.js .mirror-side--right { transform: translateX(-24px); transition-delay: .15s; }
.js .mirror-row.is-in .mirror-side { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .mirror-labels { display: none; }
  .mirror-seam { left: 6px; top: 0; }
  .mirror-row { grid-template-columns: 14px 1fr; grid-template-areas: "node left" "node right"; gap: 6px 18px; padding: 18px 0; }
  .mirror-node { grid-area: node; align-self: start; margin-top: 4px; }
  .mirror-side--left { grid-area: left; text-align: left; }
  .mirror-side--right { grid-area: right; }
  .mirror-side small { display: block; margin-bottom: 2px; font: 600 11px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
  .mirror-side--right small { color: var(--accent); }
  .js .mirror-side--left, .js .mirror-side--right { transform: translateY(10px); }
}

/* ── Gentle fade-ins (only when JS runs, so content is never lost) ───── */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js [data-reveal].is-in,
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group] > :nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group] > :nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group] > :nth-child(4) { transition-delay: .24s; }
.js [data-reveal-group] > :nth-child(5) { transition-delay: .32s; }
.js [data-reveal-group] > :nth-child(n+6) { transition-delay: .4s; }
/* Hover transitions should not inherit the reveal delay. */
.js [data-reveal-group].is-in > .card { transition: opacity .6s ease, transform .6s ease, border-color .2s, background-color .2s; }

/* Step panel fades in when a tab is picked. */
.step:not([hidden]) { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The bargaining chat replays one message at a time when it comes into view. */
.js .chat .bubble, .js .chat .chat-foot { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.js .chat .is-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > *, .js .mirror-side,
  .js .chat .bubble, .js .chat .chat-foot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .step:not([hidden]) { animation: none; }
}

/* Short one-line statements under a heading, meant to be quoted. */
.step-sub { margin: -12px 0 24px; color: var(--muted); font-size: 16px; max-width: 640px; }
.punch { margin-top: 16px; font: 600 clamp(18px, 2vw, 22px)/1.35 var(--f-display); color: var(--accent); }
.punch--center { text-align: center; margin-top: 32px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); }
.foot-privacy { flex-basis: 100%; order: 3; color: var(--muted-2); font-size: 12px; }
