/* Voiceprint landing — dark lab/instrument aesthetic */
/* ============================================================
   VOICEPRINT DESIGN SYSTEM — CANONICAL TOKENS (source of truth)
   This :root block is IDENTICAL in build/landing/assets/style.css
   and build/app/assets/styles.css. Documented in build/brand.md.
   Change a value here -> change it in BOTH files.
   ============================================================ */
:root {
  /* color */
  --bg: #0a0a0a;
  --accent: #00F0D4;
  --accent-dim: #0aa89a;
  --accent-hover: #5ffce9;
  --accent-ghost: rgba(0, 240, 212, 0.07);
  --accent-glow: rgba(0, 240, 212, 0.25);
  --text: #eceeed;
  --dim: #9da5a3;
  --dimmer: #5e6664;
  --trace: #00F0D4;             /* waveform / meter trace color */
  --wave-opacity: 0.12;         /* every waveform is ghosted to this */
  --card-bg: #101111;
  --card-border: #262626;
  --field-bg: #141516;
  --line: #262626;
  --danger: #ff6a55;
  /* shape */
  --radius: 4px;                /* cards, inputs, chips - buttons stay square */
  /* background grid */
  --grid-size: 48px;
  --grid-line: rgba(255, 255, 255, 0.03);
  /* type */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Legacy aliases (landing) — old names mapped onto canonical tokens. */
:root {
  --panel: var(--card-bg);
  --panel-2: #0e0f0f;
  --ink: var(--text);
  --mono: var(--font-mono);
  --sans: var(--font-body);
  --head: var(--font-display);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  z-index: 0;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap-narrow { max-width: 760px; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  display: flex;
  align-items: center;
}
.wordmark .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.18em;
  background: var(--accent);
  animation: caret-blink 1.1s steps(1, end) infinite;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.wordmark.small { font-size: 0.9rem; }
.topbar-label { display: none; }
@media (min-width: 760px) { .topbar-label { display: block; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--accent);
  color: #0a0a0a;
  border: 1px solid var(--accent);
  padding: 14px 28px;
  font-size: 1rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 0 24px var(--accent-glow); }
.btn-small { padding: 8px 16px; font-size: 0.8rem; }
.btn-wide { display: block; text-align: center; width: 100%; padding: 18px 28px; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow { color: var(--accent-dim); margin-bottom: 20px; }
h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.sub {
  font-size: 1.15rem;
  color: var(--dim);
  max-width: 34em;
  margin-bottom: 32px;
}
.cta-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-micro { text-transform: none; letter-spacing: 0.04em; }
.cta-secondary {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: filter 0.15s;
}
.cta-secondary:hover { filter: brightness(1.15); }
.mini-micro {
  margin-top: 7px;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: none;
  color: var(--dimmer);
}
.cta-micro.center { text-align: center; margin-top: 14px; }
.cta-micro.dim, .dim { color: var(--dimmer); }
.strike { text-decoration: line-through; color: var(--dimmer); }
.strike.big { font-size: 1.6rem; }

/* ---------- mock cards ---------- */
.hero-visual { display: flex; flex-direction: column; gap: 18px; }
.mock {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dimmer); flex: none; }
.dot-green { background: var(--accent); box-shadow: 0 0 8px rgba(0,240,212,0.6); }
.mock-q { font-weight: 600; margin-bottom: 12px; font-size: 0.95rem; }
.mock-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--dim);
  margin-bottom: 8px;
}
.mock-opt.selected { border-color: var(--accent); color: var(--ink); background: var(--accent-ghost); }
.opt-key {
  border: 1px solid var(--line);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.mock-opt.selected .opt-key { border-color: var(--accent); color: var(--accent); }
.file-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  text-transform: none;
  color: var(--ink);
}
.file-row .dim { color: var(--dimmer); }
.wave-strip { margin-top: 14px; }
.wave-strip svg { width: 100%; height: 40px; display: block; }
.wave-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linejoin: round;
  opacity: var(--wave-opacity);
}
.wave-label { margin-top: 8px; color: var(--dimmer); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { color: var(--accent-dim); margin-bottom: 18px; }
h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 26px;
  max-width: 22em;
}
h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.prose p { color: var(--dim); max-width: 40em; margin-bottom: 18px; }
.prose .kicker { color: var(--ink); font-weight: 600; font-size: 1.15rem; margin-top: 6px; }
.prose-solo { color: var(--dim); max-width: 36em; }

/* ---------- quotes ---------- */
.quotes-label { margin: 40px 0 18px; color: var(--dimmer); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.quote-grid blockquote {
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.step {
  border: 1px solid var(--card-border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num { color: var(--accent); margin-bottom: 14px; }
.step p { color: var(--dim); font-size: 0.95rem; }

/* ---------- what's inside ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.item {
  border: 1px solid var(--card-border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
}
.item-bonus { border-color: var(--accent-dim); }
.item-tag { color: var(--accent-dim); margin-bottom: 10px; }
.item-bonus .item-tag { color: var(--accent); }
.item p { color: var(--dim); font-size: 0.95rem; }
.anchor-note { margin-top: 36px; }
.anchor-note p { max-width: 46em; }

/* ---------- perception gap ---------- */
.gap-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.gap-row { padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.gap-row:last-child { border-bottom: none; }
.gap-name { color: var(--ink); margin-bottom: 8px; }
.gap-bar {
  display: grid;
  grid-template-columns: 76px 1fr 28px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.gap-bar .mono { color: var(--dimmer); font-size: 0.62rem; }
.bar { height: 8px; background: var(--field-bg); border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--dimmer); }
.bar .bar-accent { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.gap-flag { color: var(--accent); margin-top: 4px; }
.gap-flag.ok { color: var(--dimmer); }

/* ---------- fit ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}
.fit-col { border: 1px solid var(--card-border); background: var(--panel); border-radius: var(--radius); padding: 28px; }
.fit-head { color: var(--accent); margin-bottom: 18px; }
.fit-not .fit-head { color: var(--dimmer); }
.fit-col ul { list-style: none; }
.fit-col li {
  color: var(--dim);
  font-size: 0.96rem;
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.fit-col li:last-child { border-bottom: none; }
.fit-col li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}
.fit-not li::before { content: "\2013"; color: var(--dimmer); }

/* ---------- faq ---------- */
details {
  border: 1px solid var(--card-border);
  background: var(--panel);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.1rem;
}
details[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 22px 20px; }
.faq-body p { color: var(--dim); font-size: 0.97rem; margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- guarantee ---------- */
.guarantee-box { text-align: left; border-left: 3px solid var(--accent); padding-left: 32px; }
.guarantee-box .prose-solo { margin: 0; }

/* ---------- price card ---------- */
.price-card {
  border: 1px solid var(--card-border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.price-head { margin-bottom: 8px; }
.price-head .section-label { margin-bottom: 0; }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 10px 0 6px;
}
.price-micro { margin-bottom: 24px; color: var(--dimmer); }
.price-now {
  font-family: var(--head);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
}
.price-note { color: var(--dimmer); }
.recap { list-style: none; margin-bottom: 28px; }
.recap li {
  color: var(--dim);
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  font-size: 0.97rem;
}
.recap li:last-child { border-bottom: none; }
.recap li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

/* ---------- free mini / email capture ---------- */
#mini .prose-solo { margin-bottom: 30px; }
#mini .btn-primary { margin-top: 0; }
.capture-form {
  display: flex;
  gap: 10px;
  margin: 26px 0 18px;
  max-width: 520px;
}
.capture-form input[type="email"] {
  flex: 1;
  min-width: 0;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.capture-form input[type="email"]:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 0 16px var(--accent-ghost);
}
.capture-form input[type="email"]::placeholder { color: var(--dimmer); }
.capture-form .btn { cursor: pointer; border: 1px solid var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.footer-note { text-transform: none; letter-spacing: 0.05em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .gap-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .quote-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 60px 0; }
  .steps, .quote-grid, .inside-grid, .fit-grid { grid-template-columns: 1fr; }
  .btn-small { padding: 8px 12px; font-size: 0.72rem; }
  .price-card { padding: 28px 22px; }
  .capture-form { flex-direction: column; }
}
.footer-contact { text-decoration: none; color: var(--accent-dim); margin-right: 18px; }
.footer-contact:hover { color: var(--accent); }
