/* ============================================================
   Testriva theme tokens - deep blue / slate on a light canvas
   (Stripe / Notion clean). Single theme.
   ============================================================ */
:root {
  --radius: 14px;
  --max: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ---- VAULT theme (default) ---- */
  --bg: #f5f7fb;
  --bg-2: #e9eef6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --bar-bg: rgba(255, 255, 255, 0.78);
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --ink: #0f1d33;
  --prose: #38485d;
  --muted: #5c6b80;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-ink: #ffffff;
  --accent-rgb: 29, 78, 216;
  --hl-bg: #ffe6bd;
  --hl-ink: #8a4b06;
  --green: #047857;
  --green-rgb: 4, 120, 87;
  --amber: #b45309;
  --amber-rgb: 180, 83, 9;
  --chip-bg: rgba(15, 23, 42, 0.06);
  --glow: rgba(29, 78, 216, 0.16);
  --mesh-1: rgba(29, 78, 216, 0.26);
  --mesh-2: rgba(180, 83, 9, 0.10);
  --mesh-3: rgba(2, 132, 199, 0.19);
  --mesh-4: rgba(29, 78, 216, 0.13);
  --hero-grid: rgba(15, 23, 42, 0.05);
  --grid-line: rgba(15, 23, 42, 0.055);
  --step-grad: linear-gradient(150deg, #3b6ef5, #1d4ed8);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 30px -18px rgba(15, 23, 42, 0.20);
  --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 22px 44px -20px rgba(15, 23, 42, 0.28);
  --error: #b42318; --error-bg: #fef3f2; --error-line: #fecdca;
  --ok: #067647; --ok-bg: #ecfdf3; --ok-line: #abefc6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

/* engineered blueprint grid spanning the whole page (rigor / measurement),
   masked so it reads strongest up top and fades into the content below */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(130% 85% at 50% -8%, #000 0%, rgba(0,0,0,0.55) 42%, transparent 78%);
  mask-image: radial-gradient(130% 85% at 50% -8%, #000 0%, rgba(0,0,0,0.55) 42%, transparent 78%);
}

/* animated aurora wash behind all content (theme-aware, GPU-composited).
   Visible soft brand-light that slowly drifts + breathes. */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 40% at 18% 10%, var(--mesh-1), transparent 66%),
    radial-gradient(34% 34% at 84% 4%, var(--mesh-3), transparent 70%),
    radial-gradient(46% 44% at 80% 82%, var(--mesh-2), transparent 72%),
    radial-gradient(42% 42% at 12% 90%, var(--mesh-4), transparent 72%);
  filter: blur(42px) saturate(118%);
  animation: aurora 28s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0%   { transform: translate3d(-1.6%, 0, 0) scale(1.02) rotate(0deg); }
  50%  { transform: translate3d(1.6%, -1.4%, 0) scale(1.08) rotate(1.4deg); }
  100% { transform: translate3d(2%, 1.2%, 0) scale(1.05) rotate(-1.1deg); }
}

/* ---------- live "perception data" backdrop (market-research motif) ----------
   An animated bar chart (survey responses streaming in) + drifting data points,
   anchored behind the hero. Scrolls away with the page; masked to fade downward. */
.fx {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 780px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 94%);
}
.fx-chart {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 360px;
  display: flex;
  align-items: stretch;
  gap: 13px;
  padding: 0 16px;
  opacity: 0.6;
}
.fx-bar {
  flex: 1 1 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.05));
  transform: scaleY(var(--h1, 0.5));
  transform-origin: bottom;
  animation: barpulse 5.5s var(--ease) infinite alternate;
  will-change: transform;
}
.fx-bar:nth-child(7n) { background: linear-gradient(180deg, rgba(var(--amber-rgb), 0.5), rgba(var(--amber-rgb), 0.05)); }
.fx-bar:nth-child(3n) { animation-duration: 6.8s; }
.fx-bar:nth-child(5n) { animation-duration: 4.6s; }
@keyframes barpulse {
  from { transform: scaleY(var(--h1, 0.4)); }
  to   { transform: scaleY(var(--h2, 0.72)); }
}
.fx-dots { position: absolute; inset: 0; }
.fx-dots i {
  position: absolute;
  bottom: 5%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.09);
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}
.fx-dots i:nth-child(4n) { background: rgba(var(--amber-rgb), 0.55); box-shadow: 0 0 0 5px rgba(var(--amber-rgb), 0.09); }
.fx-dots i:nth-child(3n) { width: 6px; height: 6px; }
@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  14%  { opacity: 0.9; }
  78%  { opacity: 0.9; }
  100% { transform: translateY(-380px) scale(1); opacity: 0; }
}

h1, h2, h3, h4, .brand, .display, .display-sm {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
a { color: var(--ink); text-decoration: none; }
.muted { color: var(--muted); }
.center { text-align: center; }
.bolt { color: var(--accent); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.topbar.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); border-bottom-color: var(--line-strong); }
.bar-inner { max-width: var(--max); margin: 0 auto; padding: 0.85rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-links { display: flex; gap: 1.3rem; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-auth { display: flex; align-items: center; gap: 0.7rem; }
.nav-auth .who { color: var(--muted); font-size: 0.82rem; }
/* header log in / log out: clean text link, not a boxed button */
.nav-auth .btn-ghost {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
}
.nav-auth .btn-ghost:hover { color: var(--ink); background: rgba(var(--accent-rgb), 0.09); }

/* ---------- buttons ---------- */
.btn, button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn-accent, button[type="submit"] {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), 0.8);
}
.btn-accent:hover, button[type="submit"]:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-accent .bolt, button[type="submit"] .bolt { color: var(--accent-ink); }
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn-accent:hover::after { left: 150%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), 0.07); border-color: var(--accent); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.82rem; border-radius: 8px; }

/* ---------- layout ---------- */
main { min-height: 60vh; }
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem; }
.section-title { font-size: 1.95rem; font-weight: 700; margin: 0 0 2rem; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; max-width: 840px; margin: 0 auto; padding: 5.5rem 1.5rem 3.5rem; text-align: center; }
.hero > * { position: relative; z-index: 1; animation: rise 0.7s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.09s; }
.hero .lede { animation-delay: 0.17s; }
.hero .cta-row { animation-delay: 0.25s; }
.hero .reassure { animation-delay: 0.33s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.glow {
  position: absolute;
  inset: -12% 0 auto 0;
  height: 480px;
  z-index: 0;
  background: radial-gradient(58% 58% at 50% 0%, var(--glow), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.display { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 800; margin: 1.1rem 0 1.2rem; }
.display-sm { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 0 0 1.5rem; }
.hl { background: var(--hl-bg); color: var(--hl-ink); padding: 0 0.18em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.reassure { margin-top: 1.7rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- cards ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.1), transparent 60%);
}
.card > * { position: relative; }
.card:not(.form):hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--card-shadow-hover); }
.card:not(.form):hover::before { opacity: 1; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.12rem; }

.grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
/* connector track running behind the badge row; cards hide it, so it
   peeks through the gaps like a stepper between the numbered nodes */
.steps::before {
  content: "";
  position: absolute;
  top: 3rem;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.45) 16%, rgba(var(--accent-rgb), 0.45) 84%, transparent);
}
.step {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 1.7rem 1.55rem 1.85rem;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
/* top accent bar that lights up on hover */
.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0) 72%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.step:hover::after { opacity: 1; }
.step-num {
  position: relative;
  width: 2.65rem; height: 2.65rem;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--step-grad);
  color: var(--accent-ink);
  font-weight: 800; font-size: 1.12rem;
  font-family: "Bricolage Grotesque", sans-serif;
  margin-bottom: 1.15rem;
  box-shadow: 0 12px 24px -12px rgba(var(--accent-rgb), 0.95), 0 0 0 6px rgba(var(--accent-rgb), 0.10);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:hover .step-num {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 16px 30px -12px rgba(var(--accent-rgb), 1), 0 0 0 7px rgba(var(--accent-rgb), 0.14);
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.16rem; }

.callout { text-align: center; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); padding: 2.6rem; }
.callout h2 { font-size: 1.6rem; margin: 0 0 0.6rem; }
.callout p { max-width: 560px; margin: 0 auto 1.4rem; }
.final-cta { text-align: center; padding-bottom: 5rem; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 1.2rem; box-shadow: var(--card-shadow); transition: border-color 0.2s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 700; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 0.9rem; }

/* ---------- gap (sellers) ---------- */
.gap { display: flex; align-items: stretch; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.gap-card { width: 300px; text-align: center; }
.gap-label { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.76rem; color: var(--muted); margin: 0 0 0.6rem; }
.gap-quote { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; font-weight: 700; margin: 0; }
.gap-real { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3), var(--card-shadow); }
.gap-real .gap-quote { color: var(--accent); }
.gap-vs { align-self: center; color: var(--muted); font-style: italic; font-weight: 600; }

/* ---------- legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal h1 { font-size: 2.2rem; margin-bottom: 0.4rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--prose); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0.3rem 0; }
.legal a { color: var(--accent); }
.legal .note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 0.8rem 1rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- app forms ---------- */
.form { max-width: 560px; }
.form label { display: block; margin: 1rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--prose); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
/* two-up rows: grid keeps both columns top-aligned regardless of label length */
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; align-items: start; margin-top: 1rem; }
.form .row label { margin-top: 0; }
.form fieldset { border: 1px solid var(--line); border-radius: 9px; margin: 1rem 0 0; padding: 0.7rem 1rem; }
.form legend { font-size: 0.9rem; color: var(--muted); padding: 0 0.4rem; }
/* consent: checkbox + a single text block (links flow inline, no stray column) */
label.check { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.4rem; font-size: 0.9rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
label.check input { width: auto; flex: none; margin: 0.15rem 0 0; }
label.check > span { flex: 1; }
label.check a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.form h2 { font-size: 1.05rem; margin: 1.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form h2 + .muted { margin-top: 0.4rem; }
.inline-form { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.inline-form select { padding: 0.55rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; color: var(--ink); background: var(--surface); }

/* ---------- auth (login / signup) ---------- */
.auth { max-width: 500px; margin: 0 auto; padding: 4.5rem 1.5rem 5.5rem; }
.auth-narrow { max-width: 430px; }
.auth-head { text-align: center; margin-bottom: 1.9rem; }
.auth-head h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin: 0 0 0.6rem; }
.auth-head .muted { font-size: 1.02rem; max-width: 30rem; margin: 0 auto; }
.auth-card { max-width: none; width: 100%; padding: 1.9rem; }
.auth-card label:first-of-type { margin-top: 0; }
.auth-card button[type="submit"] { width: 100%; justify-content: center; margin-top: 1.1rem; padding: 0.85rem; font-size: 1rem; }
.auth-card .check { margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted); }
.auth-alt { text-align: center; margin: 1.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.auth-alt a { color: var(--accent); font-weight: 600; }

/* ---------- report grid (sellers) ---------- */
.report-grid { grid-template-columns: repeat(3, 1fr); }
.report-card { display: flex; flex-direction: column; }
.card-ic {
  display: inline-grid; place-items: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 13px;
  background: rgba(var(--accent-rgb), 0.10);
  font-size: 1.35rem;
  margin-bottom: 0.95rem;
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 30, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade 0.2s var(--ease); }
.modal-card {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 40px 80px -30px rgba(8, 15, 30, 0.55);
  animation: pop 0.22s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-card h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.modal-sub { margin: 0 0 1.1rem; font-size: 0.96rem; }
.modal-x { position: absolute; top: 0.85rem; right: 0.85rem; width: 2rem; height: 2rem; padding: 0; display: grid; place-items: center; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.45rem; line-height: 1; }
.modal-x:hover { background: var(--chip-bg); color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ---------- lead form chips ---------- */
.field-label { margin: 1.4rem 0 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--prose); }
.field-hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
/* chip inputs are visually hidden; .form input{display:block} would otherwise show them */
.lead-form .chip-grid input, .lead-form .pill-grid input { display: none; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 0.55rem; }
.logo-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.logo-chip img { display: block; flex: none; }
.logo-chip .logo-fallback { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--chip-bg); color: var(--muted); font-weight: 700; }
.logo-chip:hover { border-color: var(--accent); }
.logo-chip:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); box-shadow: 0 0 0 1px var(--accent) inset; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cat-chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem; font-weight: 600; color: var(--prose);
  background: var(--surface);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.cat-chip:hover { border-color: var(--accent); color: var(--ink); }
.cat-chip:has(input:checked) { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* honeypot: off-screen, never shown to humans, ignored by AT */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .lead-note { margin-top: 1.4rem; }
.lead-form button[type="submit"] { width: 100%; justify-content: center; margin-top: 1.4rem; }
.modal-fine { margin: 0.8rem 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* ---------- operator app shell ---------- */
.op-page { max-width: var(--max); margin: 0 auto; padding: 2.8rem 1.5rem 4rem; }
.op-page.op-narrow { max-width: 640px; }
.op-page > .head-row { margin-bottom: 1.5rem; }
.op-page > h1 { margin: 0 0 1.2rem; }
.empty-state { text-align: center; padding: 2.6rem; }

/* ---------- seller leads ---------- */
.leads-list { display: grid; gap: 0.9rem; }
.lead-card { padding: 1.3rem 1.45rem; }
.lead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lead-email { font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.lead-email:hover { color: var(--accent); }
.lead-name { color: var(--muted); margin-left: 0.55rem; font-size: 0.92rem; }
.lead-date { color: var(--muted); font-size: 0.84rem; white-space: nowrap; }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.95rem; }
.badge-cat { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.mp-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.26rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--prose);
  background: var(--surface-2);
}
.mp-chip img { display: block; }
.lead-note-text { margin: 0.95rem 0 0; color: var(--prose); border-left: 3px solid var(--line-strong); padding-left: 0.85rem; }
.lead-tech { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.05rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--muted); }
.lead-tech code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; color: var(--prose); }
.lead-ua { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- tables ---------- */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; margin: 1rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.table th, .table td { text-align: left; padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.table th { background: var(--bg-2); color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }
.table a { color: var(--accent); }
.table form { margin: 0; }

/* ---------- badges + flash ---------- */
.badge { display: inline-block; padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--chip-bg); color: var(--muted); }
.badge-shipped { background: rgba(var(--amber-rgb), 0.16); color: var(--amber); }
.badge-completed, .badge-active { background: rgba(var(--green-rgb), 0.16); color: var(--green); }
.badge-assigned, .badge-draft, .badge-closed { background: var(--chip-bg); color: var(--muted); }

.flash { max-width: var(--max); margin: 1rem auto 0; padding: 0.7rem 1rem; border-radius: 9px; font-size: 0.92rem; }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-line); }
.flash-success { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }

/* ---------- report ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric .big { font-size: 2.3rem; font-weight: 800; color: var(--accent); margin: 0.2rem 0; font-family: "Bricolage Grotesque", sans-serif; }
.bar-row { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.bar-row:last-child { border-bottom: none; }
.bar-row .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin: 0.3rem 0; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 3rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .brand { margin-bottom: 0.6rem; display: inline-flex; }
.footer-brand .muted { max-width: 260px; font-size: 0.92rem; }
.copyright { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 0 0 0.8rem; }
.footer-col a { display: block; color: var(--ink); font-size: 0.92rem; margin: 0.45rem 0; }
.footer-col a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  /* keep nav reachable (incl. operator Campaigns/Leads): wrap links to a 2nd row */
  .bar-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .nav-auth { order: 2; margin-left: auto; }
  .nav-links { order: 3; flex: 0 0 100%; justify-content: center; gap: 1.25rem; }
  .nav-links:empty { display: none; }
}
@media (max-width: 560px) {
  .grid-cards, .grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-auth .who { display: none; }
  .modal-card { padding: 1.6rem 1.3rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .hero > * { animation: none; }
  body::before { animation: none; }
  .fx-bar { animation: none; }
  .fx-dots { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-accent::after { display: none; }
  .modal-backdrop, .modal-card { animation: none; }
  .card:not(.form):hover, .step:hover .step-num, .btn-accent:hover,
  button[type="submit"]:hover, .card:hover { transform: none; }
}

/* ============================================================
   Content engine: articles, hubs, reviews (specs/blog-blueprint.md)
   Reuses the brand tokens above; deep blue / slate, Notion-clean prose.
   ============================================================ */
.content-wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 1.4rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--prose); }

/* article header */
.content-head { margin-bottom: 1.8rem; }
.content-title { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; margin: 0.6rem 0 0.8rem; }
.content-byline { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* table of contents */
.toc-card { margin-bottom: 2rem; padding: 1.1rem 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.toc-title { margin: 0 0 0.6rem; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc-card ol { list-style: none; margin: 0; padding: 0; }
.toc-card li { margin: 0.3rem 0; }
.toc-card li.toc-l3 { padding-left: 1rem; }
.toc-card a { color: var(--prose); font-size: 0.92rem; }
.toc-card a:hover { color: var(--accent); }

/* prose (rendered markdown body) */
.prose { color: var(--prose); font-size: 1.06rem; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.4rem 0 0.9rem; font-size: 1.6rem; color: var(--ink); scroll-margin-top: 5rem; }
.prose h3 { margin: 1.8rem 0 0.7rem; font-size: 1.25rem; color: var(--ink); scroll-margin-top: 5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin: 0.4rem 0; }
.prose strong { color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }

/* key-takeaways / AI-citable answer callouts (markdown blockquotes) */
.prose blockquote { margin: 1.6rem 0; padding: 1.1rem 1.3rem; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; color: var(--prose); }
.prose blockquote > *:last-child { margin-bottom: 0; }
.prose blockquote p:first-child strong { color: var(--accent); }

/* tables */
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.96rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.prose th, .prose td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.prose tr:last-child td { border-bottom: none; }

/* inline + fenced code */
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--chip-bg); padding: 0.12em 0.4em; border-radius: 6px; }
.prose pre { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--ink); color: #e7edf6; border-radius: 12px; overflow-x: auto; }
.prose pre code { padding: 0; background: none; font-size: 0.86rem; }

/* downstream sections: children, faq, related, cta */
.content-section { margin-top: 3rem; }
.content-section > h2 { margin: 0 0 1.2rem; font-size: 1.5rem; }
.content-section .faq { max-width: none; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.related-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.3rem; }
.related-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.related-card:hover .related-title { color: var(--accent); }
.related-desc { font-size: 0.9rem; line-height: 1.5; }

.content-cta { margin-top: 3rem; padding: 2.4rem; text-align: center; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); }
.content-cta h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
.content-cta p { max-width: 540px; margin: 0 auto 1.4rem; }
.content-cta .cta-row { justify-content: center; }
