/* ==========================================================================
   Guess Your Party — design tokens (dark theme)
   Palette:
     --bg         #05070D  page background, near-black navy
     --bg-elev    #0B0F1C  nav / footer surface
     --paper      #141B2C  card / input surface
     --ink        #F4F5F9  primary text on dark
     --slate      #93A0B8  secondary / muted text
     --red        #E3384A  "Republican Alignment" accent
     --blue       #3E63DD  "Democratic Alignment" accent
     --gold       #D4AF37  civic accent (progress, marks)
     --purple     #7C6FF0  fourth accent (community / people)
   Type:
     Display  — "Fraunces"       (ballot / document authority)
     Body/UI  — "Inter"          (clean, small-size legibility)
     Data     — "IBM Plex Mono"  (tallies, percentages, stats)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #05070D;
  --bg-elev: #0B0F1C;
  --paper: #141B2C;
  --paper-2: #182034;
  --ink: #F4F5F9;
  --navy: #F4F5F9;          /* alias kept for legacy component rules — now means "ink" */
  --navy-70: rgba(244, 245, 249, 0.72);
  --on-accent: #FFFFFF;
  --red: #E3384A;
  --red-dim: rgba(227, 56, 74, 0.16);
  --blue: #3E63DD;
  --blue-dim: rgba(62, 99, 221, 0.16);
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.16);
  --purple: #7C6FF0;
  --parchment: var(--bg);   /* alias kept for legacy component rules */
  --slate: #93A0B8;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --max-w: 560px;
  --max-w-wide: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

p { line-height: 1.55; color: var(--navy-70); margin: 0 0 1em; }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

button, input, select { font-family: inherit; font-size: inherit; }

/* Layout shell shared by every page's core flow (mobile-first quiz column) */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

main { flex: 1; display: flex; flex-direction: column; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}

.step-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Thin tri-color rule used as a page accent, echoes the ballot-meter */
.tri-rule {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, var(--gold) 33%, var(--gold) 67%, var(--blue) 67%, var(--blue) 100%);
  margin: 24px 0 28px;
}

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(5, 7, 13, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav--overlay .nav-links a { color: rgba(255, 255, 255, 0.85); }
.site-nav--overlay .nav-links a:hover { color: #fff; }
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.nav-logo { width: 28px; height: 28px; flex: none; }
.nav-brand .wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}
.nav-brand .wordmark b { color: var(--red); font-weight: 700; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.site-nav .nav-cta {
  flex: none;
  padding: 10px 20px;
  font-size: 13.5px;
  width: auto;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary {
  background: var(--red);
  color: var(--on-accent);
  box-shadow: var(--shadow);
  width: 100%;
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(227,56,74,0.30); background: #EF4657; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  width: 100%;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-link {
  background: none;
  border: none;
  color: var(--slate);
  font-size: 14px;
  text-decoration: underline;
  padding: 8px;
}

/* ---------- Landing page ---------- */
/* ---------- Video hero ---------- */
.hero-video {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 80vh;
  height: 80dvh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 640px;
}

.hero-video-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

.hero-video-title {
  font-size: clamp(40px, 12vw, 68px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-video-title span {
  color: var(--red);
  display: block;
}

.hero-video-tagline {
  font-size: clamp(16px, 3.6vw, 20px);
  line-height: 1.5;
  color: #E7E9F2;
  margin: 0 0 30px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.btn-hero {
  display: inline-block;
  font-size: 18px;
  padding: 16px 40px;
  margin-bottom: 18px;
}

.hero-video-footer {
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.hero-video-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.hero-video-footer a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.hero-secondary {
  padding: 48px 0 8px;
}

.hero {
  padding: 6vh 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(38px, 11vw, 52px);
  margin-bottom: 14px;
}

.hero .lede {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}

.hero .sub {
  font-size: 16px;
  color: var(--navy-70);
  margin-bottom: 30px;
  max-width: 46ch;
}

.stat-strip {
  display: flex;
  gap: 22px;
  margin: 6px 0 34px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip div { flex: 1; }
.stat-strip .num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.stat-strip .lab {
  font-size: 12px;
  color: var(--slate);
}

.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

.tiny-note {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  margin-top: 4px;
}

/* ---------- Feature icon grid (Fair & Balanced / See Your Alignment / etc.) ---------- */
.feature-section { padding: 8px 0 44px; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 1.5px solid currentColor;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card.c-red .feature-icon { color: var(--red); }
.feature-card.c-blue .feature-icon { color: var(--blue); }
.feature-card.c-ink .feature-icon { color: var(--ink); }
.feature-card.c-purple .feature-icon { color: var(--purple); }
.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-card p { font-size: 13.5px; margin: 0; }

@media (min-width: 620px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- About / How it works sections ---------- */
.content-section { padding: 8px 0 44px; scroll-margin-top: 90px; }
.content-section h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.how-step .n {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  width: 30px; height: 30px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.how-step h4 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.how-step p { font-size: 13.5px; margin: 0; }

/* ---------- Site footer ---------- */
.site-footer-full {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 32px 20px 24px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 30px; height: 30px; flex: none; }
.footer-brand-text { font-size: 13px; color: var(--slate); line-height: 1.4; }
.footer-brand-text a { color: var(--red); font-weight: 700; text-decoration: none; }
.footer-brand-text a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a {
  font-size: 12.5px;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--slate);
}
.footer-tagline {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* legacy simple footer (kept for any page that hasn't adopted footer-full) */
footer.site-footer {
  padding: 22px 0 30px;
  font-size: 12.5px;
  color: var(--slate);
  text-align: center;
}
footer.site-footer a { color: var(--gold); text-decoration: underline; }

/* ---------- Form page ---------- */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .optional {
  color: var(--slate);
  font-weight: 400;
}
.field input, .field select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
}
.field.error input, .field.error select { border-color: var(--red); }
.field .err-msg {
  display: none;
  color: var(--red);
  font-size: 12.5px;
  margin-top: 6px;
}
.field.error .err-msg { display: block; }
.field-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--slate);
  cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.privacy-note {
  font-size: 12.5px;
  color: var(--slate);
  margin: 6px 0 24px;
  line-height: 1.5;
}

/* ---------- Quiz ---------- */
.progress-track {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
  border-radius: 6px;
  transition: width .35s ease;
  width: 0%;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--slate);
  margin-bottom: 30px;
}

.quiz-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46vh;
}

.q-category {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.q-text {
  font-size: clamp(23px, 6.5vw, 30px);
  margin-bottom: 40px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.ans-btn {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.ans-btn:active { transform: scale(0.985); }
.ans-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ans-btn .k { color: var(--slate); font-size: 13px; font-weight: 500; font-family: 'IBM Plex Mono', monospace; }

.ans-btn[data-a="yes"]:hover, .ans-btn[data-a="yes"].picked { border-color: var(--blue); background: var(--blue-dim); }
.ans-btn[data-a="no"]:hover, .ans-btn[data-a="no"].picked { border-color: var(--red); background: var(--red-dim); }
.ans-btn[data-a="unsure"]:hover, .ans-btn[data-a="unsure"].picked { border-color: var(--gold); background: var(--gold-dim); }

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 26px;
}

/* ---------- Results ---------- */
.result-lead {
  text-align: center;
  padding: 4px 0 8px;
}
.result-lead .eyebrow { justify-content: center; text-align: center; }
.result-lead h1 { font-size: clamp(28px, 8vw, 36px); margin-bottom: 6px; }

/* Signature element: the Ballot Meter */
.ballot-meter {
  margin: 26px 0 8px;
}
.meter-track {
  position: relative;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow);
}
.meter-seg { height: 100%; }
.meter-seg.r { background: var(--red); }
.meter-seg.m { background: var(--gold); }
.meter-seg.d { background: var(--blue); }
.meter-pin {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 62px;
  background: var(--ink);
  border-radius: 3px;
  transform: translateX(-50%);
}
.meter-pin::after {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: var(--ink);
  border: 2px solid var(--bg);
  border-radius: 50%;
  transform: translateX(-50%);
}
.meter-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--slate);
  margin-top: 10px;
}

.score-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 26px 0 8px;
}
.score-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.score-card .pct {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 22px;
}
.score-card .lab {
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.score-card.r .pct { color: var(--red); }
.score-card.d .pct { color: var(--blue); }
.score-card.m .pct { color: var(--gold); }

.section-block {
  margin: 34px 0;
}
.section-block h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

.driver-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.driver-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
}
.driver-list li.r { border-left-color: var(--red); }
.driver-list li.d { border-left-color: var(--blue); }
.driver-list li .tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  color: var(--slate);
}

.platform-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 4px;
}

.impact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.impact-table th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--slate);
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
}
.impact-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--navy-70);
}
.impact-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.tradeoff-grid {
  display: grid;
  gap: 12px;
}
.tradeoff-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.tradeoff-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.tradeoff-card .benefit { color: var(--blue); }
.tradeoff-card .tradeoff { color: var(--red); }
.tradeoff-card p { font-size: 13.5px; margin-bottom: 6px; }
.q-explain { color: var(--slate); font-style: italic; }

.breakdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.breakdown-toggle:hover { border-color: var(--line-strong); }
.breakdown-toggle .chevron { transition: transform 0.15s ease; color: var(--slate); }
.breakdown-toggle.open .chevron { transform: rotate(180deg); }

.breakdown-panel { margin-top: 12px; }
.breakdown-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.breakdown-head .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate);
}
.breakdown-answer {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.breakdown-q {
  font-weight: 600;
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 6px;
}
.breakdown-impact {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 8px;
  margin-bottom: 0;
}

.disclaimer {
  font-size: 12.5px;
  color: var(--slate);
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 30px 0;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 20px;
}

/* ---------- Community page ---------- */
.poll-row {
  margin-bottom: 22px;
}
.poll-row .q {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bar-label {
  width: 88px;
  flex: none;
  font-size: 12px;
  color: var(--slate);
  font-family: 'IBM Plex Mono', monospace;
}
.bar-track {
  flex: 1;
  height: 14px;
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 8px; }
.bar-fill.r { background: var(--red); }
.bar-fill.d { background: var(--blue); }
.bar-fill.m { background: var(--gold); }
.bar-pct {
  width: 40px;
  flex: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-align: right;
  color: var(--ink);
}

.embed-slot {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  color: var(--slate);
  font-size: 13px;
  margin: 30px 0;
}
.embed-slot code {
  display: block;
  margin-top: 10px;
  background: var(--bg);
  color: #B9C6E8;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  overflow-x: auto;
  text-align: left;
  border: 1px solid var(--line);
}

.sample-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--gold-dim);
  color: var(--gold);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

@media (min-width: 640px) {
  .hero h1 { font-size: 56px; }
  .form-card { padding: 30px 30px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
