/* ============ VoteHost Elections — marketing site ============ */

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

:root {
  --ink: #1B1F2A;
  --ink-2: #2C3340;
  --muted: #6B7280;
  --muted-2: #97A0AE;
  --line: #E6E7EB;
  --line-soft: #EEEFF2;
  --line-strong: #D4D7DE;
  --danger: #D64545;
  --surface-3: #EEF0F3;
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --surface-2: #F4F4F6;
  --accent: #3F66D9;
  --accent-2: #5179E8;
  --accent-soft: #ECF0FE;
  --accent-ink: #213B86;
  --accent-dark: #2E4FB8;
  --ok: #1F8A5B;
  --warm: #D97757;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(17,20,28,0.04), 0 1px 1px rgba(17,20,28,0.02);
  --shadow-md: 0 6px 24px -8px rgba(31, 41, 80, 0.12), 0 2px 6px rgba(31, 41, 80, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(31, 41, 80, 0.22), 0 6px 16px rgba(31, 41, 80, 0.07);
  --container: 1180px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ============ Typography ============ */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(40px, 6.2vw, 84px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: 22px; letter-spacing: -0.015em; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0; color: var(--ink-2); }
.muted { color: var(--muted); }
.mono { font-family: 'Geist Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-soft); padding: 6px 11px; border-radius: 999px;
  white-space: nowrap; max-width: 100%; align-self: flex-start;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.eyebrow .dot.live { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,102,217,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(63,102,217,0); }
}

/* ============ Layout ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section.tight { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin-bottom: 56px; }
.section-head .num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.06em;
}
.section-head h2 + p { font-size: 18px; line-height: 1.55; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,251,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.nav-cta:hover { border-color: var(--ink); transform: translateY(-1px); }
.nav-cta svg { width: 15px; height: 15px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(27,31,42,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(27,31,42,0.5); }
.btn-secondary {
  background: #fff; color: var(--ink); border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(63,102,217,0.5); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Hero ============ */
.hero { position: relative; padding-top: 84px; padding-bottom: 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(27,31,42,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.hero-copy h1 { font-weight: 600; }
.hero-copy h1 .accent-word { color: var(--accent); }
.hero-copy h1 .underline {
  background-image: linear-gradient(transparent 78%, rgba(63,102,217,0.22) 78%);
  padding: 0 2px;
}
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 540px; }

/* Install command CTA */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.install-cmd {
  display: inline-flex; align-items: stretch;
  background: var(--ink); color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px -14px rgba(27,31,42,0.45);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1;
}
.install-cmd .prompt { color: var(--muted-2); padding: 14px 0 14px 18px; user-select: none; }
.install-cmd .cmd { padding: 14px 6px 14px 8px; white-space: nowrap; }
.install-cmd .copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 0; border-left: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0 16px;
  font-family: inherit; font-size: 13px;
  transition: background .15s ease;
  cursor: pointer;
}
.install-cmd .copy-btn:hover { background: rgba(255,255,255,0.12); }
.install-cmd .copy-btn svg { width: 13px; height: 13px; }
.install-cmd.copied .copy-btn { background: var(--ok); border-left-color: var(--ok); }

.hero-meta {
  display: flex; gap: 26px; padding-top: 8px;
  font-size: 13px; color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hero-meta div { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--ok); }

/* Hero visual */
.hero-visual { position: relative; min-height: 480px; }
.ballot-card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
  display: flex; flex-direction: column; gap: 18px;
  max-width: 420px; margin: 0 auto;
}
.ballot-card .head { display: flex; justify-content: space-between; align-items: center; }
.ballot-card .org { display: flex; flex-direction: column; gap: 2px; }
.ballot-card .org-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.ballot-card .org-sub { font-size: 11px; color: var(--muted); }
.ballot-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: #FEF7EE; color: var(--warm);
  padding: 4px 8px; border-radius: 999px;
}
.ballot-card .badge.live { background: var(--accent-soft); color: var(--accent-ink); }
.ballot-card .badge .dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; animation: pulse 1.8s infinite; }

.ballot-qhead { display: flex; align-items: center; gap: 9px; }
.ballot-question { font-size: 14px; font-weight: 600; color: var(--ink); }
.ballot-help { font-size: 11.5px; color: var(--muted); margin-top: -8px; }

/* ===== Candidate option card — matches OptionCard.tsx ===== */
.candidate {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.candidate.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 6px 20px rgba(63,102,217,0.15); }
.candidate .opt-main { display: flex; align-items: center; gap: 13px; padding: 11px 14px; }
.candidate .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.candidate .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.candidate .name { font-size: 15px; font-weight: 600; color: var(--ink); }
.candidate .role { font-size: 12px; color: var(--muted); }
.candidate .opt-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.candidate .opt-bio {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; padding: 5px 11px;
  border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--line-strong); color: var(--ink-2);
}
.candidate .opt-bio svg { width: 11px; height: 11px; transition: transform .15s ease; }
.candidate.selected .opt-bio svg { transform: rotate(180deg); }
.candidate .opt-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.candidate.selected .opt-check { border-color: var(--accent); background: var(--accent); }
.candidate .opt-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.candidate.selected .opt-check svg { opacity: 1; }
.candidate .opt-biopanel {
  border-top: 1px solid var(--line);
  padding: 11px 14px 13px 71px;
  display: flex; flex-direction: column; gap: 4px;
}
.candidate .opt-biopanel p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.candidate .opt-biopanel a { font-size: 12px; color: var(--accent); font-weight: 500; }

/* Numbered question badge — solid accent square */
.q-badge {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 7px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.req { color: var(--danger); font-weight: 600; }

.ballot-submit {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: #fff;
  padding: 13px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.ballot-submit .arrow { font-size: 16px; }

/* Floating toast notifications around ballot */
.hero-toast {
  position: absolute; z-index: 2;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink);
}
.hero-toast .icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-toast .icon.success { background: #E8F5EE; color: var(--ok); }
.hero-toast .icon.indigo { background: var(--accent-soft); color: var(--accent); }
.hero-toast .label { font-weight: 600; line-height: 1.2; }
.hero-toast .sub { font-size: 11px; color: var(--muted); line-height: 1.2; margin-top: 1px; }

.hero-toast.t1 { top: 6%; left: -8%; animation: float1 8s ease-in-out infinite; }
.hero-toast.t2 { bottom: 14%; right: -6%; animation: float2 9s ease-in-out infinite; }
.hero-toast.t3 { top: 38%; right: -10%; transform: rotate(3deg); animation: float3 7.5s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* ============ Feature grid ============ */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.feature {
  background: #fff;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: background .2s ease;
}
.feature:hover { background: #FCFCFD; }
.feature .icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 8px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.feature.big { grid-column: span 2; min-height: 280px; padding: 36px; background: var(--ink); color: #fff; }
.feature.big h3 { color: #fff; font-size: 22px; }
.feature.big p { color: rgba(255,255,255,0.7); font-size: 15px; }
.feature.big .icon { color: var(--accent-2); }
.feature.accent { background: var(--accent-soft); }
.feature.accent .icon { color: var(--accent); }
.feature.accent:hover { background: #E2E9FD; }

/* ============ How it works ============ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative;
}
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
}
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  border-radius: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px; font-weight: 600;
}
.step h3 { font-size: 19px; }
.step p { font-size: 14px; color: var(--ink-2); }
.step .step-visual {
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--ink);
  min-height: 90px;
  display: flex; flex-direction: column; gap: 6px;
}
.step .step-visual .line { display: flex; align-items: center; gap: 8px; }
.step .step-visual .line.dim { color: var(--muted); }
.step .step-visual .line .pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; font-size: 11px;
  white-space: nowrap;
}
.step .step-visual .check { color: var(--ok); }

/* ============ Question types ============ */
.qtypes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.qtype {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
}
.qtype .qtype-head { display: flex; align-items: center; justify-content: space-between; }
.qtype .qtype-tag {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--accent); font-weight: 500;
  white-space: nowrap;
}
.qtype h3 { font-size: 15px; font-weight: 600; }
.qtype p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.qtype .demo { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: flex-end; }

.q-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft); border-radius: 8px;
  font-size: 12px; color: var(--ink);
  background: var(--surface-2);
}
.q-row .marker {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.q-row .marker.box { border-radius: 4px; }
.q-row.checked .marker { border-color: var(--accent); background: var(--accent); }
.q-row.checked .marker svg { width: 9px; height: 9px; color: #fff; }
.q-row .rank {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.q-row .rank.r2 { background: var(--accent-2); }
.q-row .rank.r3 { background: #93A8E8; }
.q-row .rank.empty { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.q-row .grip { color: var(--muted-2); font-size: 12px; margin-left: auto; letter-spacing: -0.05em; }
.q-row .writein {
  flex: 1; font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--ink);
}
.q-row .writein .caret {
  display: inline-block; width: 2px; height: 12px; background: var(--accent);
  animation: blink 1s steps(2) infinite; vertical-align: -2px; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ Install section ============ */
.install-section { background: var(--ink); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.install-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.install-section .section-head h2 { color: #fff; }
.install-section .section-head p { color: rgba(255,255,255,0.65); }
.install-section .num { color: rgba(255,255,255,0.4); }

.terminal {
  background: #10131B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.terminal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-head .dots { display: flex; gap: 6px; }
.terminal-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-head .dot.r { background: #FF5F57; }
.terminal-head .dot.y { background: #FEBC2E; }
.terminal-head .dot.g { background: #28C840; }
.terminal-head .label { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.terminal-head .copy-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.65); font-size: 12px;
  background: none; border: 0; padding: 0;
  cursor: pointer;
  transition: color .15s ease;
}
.terminal-head .copy-link:hover { color: #fff; }
.terminal-head .copy-link svg { width: 13px; height: 13px; }
.terminal-head .copy-link.copied { color: var(--ok); }

.terminal-body {
  padding: 22px 22px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  line-height: 1.65;
  color: #E6E8EE;
}
.terminal-body .prompt { color: #6B7280; user-select: none; }
.terminal-body .comment { color: #6B7280; }
.terminal-body .accent-c { color: #A6C2FF; }
.terminal-body .ok { color: #67D29A; }

.install-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 36px; max-width: 760px;
}
.install-meta-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.install-meta-item .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); font-weight: 600; }
.install-meta-item .v { font-size: 14px; color: #fff; font-weight: 500; }

/* ============ Tunnel options ============ */
.tunnels-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tunnel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.tunnel:hover { border-color: var(--ink); transform: translateY(-2px); }
.tunnel-icon {
  width: 44px; height: 44px;
  background: var(--surface-2); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.tunnel h3 { font-size: 17px; }
.tunnel p { font-size: 13.5px; color: var(--ink-2); }
.tunnel .specs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto; padding-top: 12px;
}
.tunnel .specs .chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
}
.tunnel .specs .chip.ok { background: #E8F5EE; color: var(--ok); }
.tunnel .recommended {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 4px 8px; border-radius: 999px;
}

/* ============ Preview / screenshots ============ */
.preview-section { padding: 112px 0; background: linear-gradient(180deg, var(--bg) 0%, #F2F4F8 100%); }
.preview-grid { display: grid; grid-template-columns: 0.92fr 1.12fr; gap: 28px; align-items: stretch; }
.preview-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.preview-card .browser {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.preview-card .browser .dots { display: flex; gap: 5px; }
.preview-card .browser .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-card .browser .url {
  flex: 1; font-family: 'Geist Mono', monospace; font-size: 11px;
  background: var(--surface-2); padding: 5px 10px; border-radius: 6px; color: var(--muted);
  margin-left: 12px;
}

/* Admin results dashboard mock — matches ResultsDashboard.tsx */
.admin-mock { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
/* Dark participation strip */
.part-strip {
  background: var(--ink); color: #fff;
  border-radius: 16px; padding: 18px 20px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px; align-items: center;
}
.part-strip .ps-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.7; margin-bottom: 6px; }
.part-strip .ps-big { display: flex; align-items: baseline; gap: 8px; }
.part-strip .ps-big .num { font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.part-strip .ps-big .num .pc { font-size: 21px; }
.part-strip .ps-big .frac { font-size: 12px; opacity: 0.7; white-space: nowrap; }
.part-strip .ps-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.15); overflow: hidden; margin-top: 11px; }
.part-strip .ps-bar i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.part-strip .ps-col { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 18px; }
.part-strip .ps-val { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.part-strip .ps-live { display: flex; align-items: center; gap: 7px; font-size: 12px; opacity: 0.9; }
.part-strip .ps-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ECB8A; flex-shrink: 0; animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Per-question result card */
.res-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.res-card .res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.res-card .res-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.res-card .res-type { flex-shrink: 0; white-space: nowrap; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.res-card .res-rows { display: flex; flex-direction: column; gap: 13px; }
.res-row .res-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.res-row .res-name { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; color: var(--ink); }
.res-row .lead-badge { flex-shrink: 0; font-size: 9.5px; font-weight: 600; color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 4px; letter-spacing: 0.04em; }
.res-row .res-count { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.res-row .res-count .pct { color: var(--muted); }
.res-row .res-track { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.res-row .res-track i { display: block; height: 100%; border-radius: 999px; background: #97A8DB; transition: width 1.2s ease; }
.res-row.lead .res-track i { background: var(--accent); }
.res-row.lead .res-name { font-weight: 600; }

/* Voter ballot mock — two-pane layout matching the real ballot */
.voter-mock { display: flex; min-height: 392px; }
.voter-rail { width: 156px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 16px 13px; display: flex; flex-direction: column; background: #fff; }
.voter-rail .vr-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.voter-rail .vr-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.voter-rail .vr-mark svg { width: 13px; height: 13px; }
.voter-rail .vr-brand span { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.voter-rail .vr-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.voter-rail .vr-step { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.voter-rail .vr-step.active { background: var(--accent-soft); }
.voter-rail .vr-step .s-num { width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--surface-3); color: var(--muted); margin-top: 1px; }
.voter-rail .vr-step .s-num svg { width: 10px; height: 10px; }
.voter-rail .vr-step.done .s-num { background: var(--ok); color: #fff; }
.voter-rail .vr-enc { margin-top: auto; padding-top: 16px; }
.voter-rail .vr-enc .enc-t { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.voter-rail .vr-enc .enc-t svg { width: 11px; height: 11px; }
.voter-rail .vr-enc p { font-size: 10.5px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.voter-pane { flex: 1; min-width: 0; padding: 20px 22px; }
.voter-pane .v-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.voter-pane .v-h { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.12; }
.voter-pane .v-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }
.voter-pane .v-qhead { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; }
.voter-pane .v-qtitle { font-size: 15px; font-weight: 600; color: var(--ink); }
.voter-pane .v-help { font-size: 12px; color: var(--muted); margin: 7px 0 13px; }
.voter-pane .v-options { display: flex; flex-direction: column; gap: 9px; }

/* ============ Use cases ============ */
.usecases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.usecase {
  padding: 22px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 6px;
}
.usecase .badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); margin-bottom: 4px;
}
.usecase h4 { font-size: 16px; }
.usecase p { font-size: 13px; color: var(--muted); }

/* ============ CTA strip ============ */
.cta-strip {
  background: var(--accent); color: #fff;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  position: relative;
}
.cta-strip h2 { color: #fff; font-size: clamp(28px, 3.8vw, 44px); max-width: 600px; }
.cta-strip p { color: rgba(255,255,255,0.8); font-size: 16px; margin-top: 8px; max-width: 540px; }
.cta-strip .btn-primary { background: #fff; color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--surface-2); }
.cta-strip .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-strip .btn-secondary:hover { border-color: #fff; }

/* ============ Footer ============ */
footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 64px 0 36px; }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.7); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { min-height: 400px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature.big { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .qtypes-grid { grid-template-columns: repeat(2, 1fr); }
  .tunnels-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .install-meta { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .install-cmd { font-size: 12.5px; }
  .install-cmd .cmd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
}
@media (max-width: 540px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature.big { grid-column: span 1; }
  .qtypes-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .install-cmd { width: 100%; }
  .install-cmd .cmd { max-width: none; }
  .hero-toast.t1 { left: -2%; }
  .hero-toast.t2 { right: -2%; }
  .hero-toast.t3 { right: 2%; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
}

/* Collapse the voter ballot's step rail on phones so the option rows
   (avatar + name + Details + check) have room and don't overlap. */
@media (max-width: 640px) {
  .voter-rail { display: none; }
  .voter-pane { padding: 18px 18px; }
  .voter-mock { min-height: 0; }
  .candidate .opt-main { gap: 10px; padding: 11px 12px; }
  .candidate .opt-bio { padding: 5px 9px; }
}
