/* POLL'D production styles
   Tokens: bg #080808 · panel #101211 · teal #0f7f7c · light teal #2fbdb4
   text #f2f5f4 · muted #9fb3b0 · white sections #ffffff / #101211 / #2c3432 */

:root {
  --bg: #080808;
  --panel: #101211;
  --teal: #0f7f7c;
  --teal-dark: #0a5c59;
  --light-teal: #2fbdb4;
  --text: #f2f5f4;
  --muted: #9fb3b0;
  --card-border: #14524f;
  --white-heading: #101211;
  --white-body: #2c3432;
  --white-helper: #5a6360;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  line-height: 1.08;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

a { color: var(--light-teal); }

.btn {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal); color: #ffffff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--light-teal); border-color: var(--teal); }
.btn-outline:hover { border-color: var(--light-teal); color: var(--light-teal); }

section { padding: 72px 0; }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid #1b2321;
  padding: 18px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.logo { text-decoration: none; color: #ffffff; display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: flex-start;
}
.logo-bubble { width: 0.82em; height: 0.78em; margin: 0 0.02em; }
.logo-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.187em;
  text-transform: lowercase;
  color: #ffffff;
  margin-top: 5px;
  margin-left: 0.14rem;
}
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.main-nav a:hover { color: var(--light-teal); }
.header-join { padding: 11px 24px; font-size: 1rem; }

/* ---------------- Hero ---------------- */

.hero { padding: 84px 0 56px; }
.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero-line {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 900px;
}
.hero-sub {
  font-size: 1.13rem;
  color: var(--text);
  margin: 0 0 26px;
  max-width: 900px;
}
.clarity {
  border-left: 4px solid var(--teal);
  padding: 6px 0 6px 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 860px;
  margin: 0 0 34px;
}
.clarity a { color: var(--light-teal); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------------- Featured video ---------------- */

.video-section { padding: 8px 0 64px; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.video-frame iframe {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 0;
  border-radius: 8px;
}
.video-placeholder {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #33504d;
  text-align: center;
  padding: 0 24px;
  margin: 0;
}

/* ---------------- The Board ---------------- */

.board { padding-top: 56px; }
.board-sub { font-size: 1.2rem; margin: 0 0 8px; max-width: 820px; }
.honesty { color: var(--muted); font-size: 0.92rem; margin: 0 0 34px; max-width: 820px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.poll-card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.state-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--light-teal);
  letter-spacing: 0.01em;
}
.chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--light-teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 5px 11px;
  margin-top: 4px;
  white-space: nowrap;
}
.bill-line {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text);
  margin: 2px 0 12px;
}
.rule { width: 56px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 18px; }
.question {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 20px;
}
.stands-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--light-teal);
  margin: 0 0 5px;
}
.stands { color: var(--muted); font-size: 0.98rem; margin: 0 0 22px; }

.vote-ui { margin-top: auto; }
.pin-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.pin-input {
  width: 100%;
  background: #0b0e0d;
  border: 1px solid #2a3431;
  border-radius: 9px;
  color: var(--text);
  font-size: 1rem;
  padding: 11px 14px;
  margin-bottom: 14px;
}
.pin-input::placeholder { color: #5f716d; }
.pin-input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.state-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}
.state-select {
  width: 100%;
  background: #0b0e0d;
  border: 1px solid #2a3431;
  border-radius: 9px;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 11px 14px;
  margin-bottom: 8px;
}
.state-select:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.state-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }
.vote-error { color: #e5a54b; font-weight: 600; font-size: 0.92rem; margin: 0 0 12px; }

.vote-buttons { display: flex; gap: 10px; }
.vote-btn {
  flex: 1;
  background: var(--teal);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 13px 0;
  cursor: pointer;
}
.vote-btn:hover { background: var(--teal-dark); }
.vote-btn:disabled { opacity: 0.55; cursor: wait; }

/* Results (only ever rendered after this visitor has voted) */
.results { margin-top: auto; }
.result-row { margin-bottom: 13px; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.98rem;
  margin-bottom: 5px;
}
.result-name { font-weight: 700; letter-spacing: 0.05em; }
.result-name .your-mark { color: var(--light-teal); font-weight: 700; font-size: 0.85rem; margin-left: 8px; }
.result-num { color: var(--muted); font-variant-numeric: tabular-nums; }
.result-bar { height: 9px; background: #1d2422; border-radius: 5px; overflow: hidden; }
.result-fill { height: 100%; background: var(--teal); border-radius: 5px; }
.result-row.yours .result-fill { background: var(--light-teal); }
.polld-line { color: var(--light-teal); font-weight: 600; margin: 16px 0 0; }
.tally-heading {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--light-teal);
  margin: 18px 0 2px;
}
.tally-heading:first-child { margin-top: 0; }
.tally-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 12px; }

/* ---------------- While You Weren't POLL'D ---------------- */

.werent-card {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px;
  max-width: 860px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--light-teal);
  margin: 0 0 12px;
}
.werent-text { font-size: 1.22rem; line-height: 1.5; margin: 0; }
.more-coming { color: var(--muted); margin: 20px 0 0; font-size: 1.05rem; }

/* ---------------- How It Works ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px;
}
.step h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text); }
.million-line { font-size: 1.25rem; font-weight: 600; margin: 0; max-width: 860px; }

/* ---------------- White sections ---------------- */

.suggest, .join-band { background: #ffffff; color: var(--white-body); }
.suggest h2, .join-band h2 { color: var(--white-heading); }
.suggest-intro { font-size: 1.12rem; max-width: 760px; margin: 0 0 30px; }

#suggest-form { max-width: 640px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--white-heading);
  margin-bottom: 8px;
}
.field textarea,
.field select,
.field input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #b9c2c0;
  border-radius: 9px;
  color: var(--white-heading);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
}
.field textarea:focus,
.field select:focus,
.field input:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.helper { color: var(--white-helper); font-size: 0.9rem; margin: 7px 0 0; }
.submit-btn { border: none; }
.form-error { color: #8a4b0f; margin: 14px 0 0; font-weight: 600; }
.suggest-success {
  background: #eef6f5;
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 24px 26px;
  max-width: 640px;
}
.suggest-success p { margin: 0; font-size: 1.08rem; color: var(--white-heading); }

.join-band { text-align: center; }
.join-band p { font-size: 1.15rem; margin: 0 0 24px; }
.join-band .small-print { color: var(--white-helper); font-size: 0.92rem; margin: 20px 0 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid #1b2321;
  padding: 38px 0 46px;
  text-align: center;
}
.footer-line { font-weight: 600; margin: 0 0 10px; }
.footer-line a { color: var(--light-teal); }
.footer-honesty { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .main-nav { margin-left: 0; }
}

@media (max-width: 640px) {
  .board-grid { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
  .hero { padding: 60px 0 44px; }
  .header-inner { gap: 16px; }
  .header-join { margin-left: auto; }
  .question { font-size: 1.3rem; }
  .card-top { flex-wrap: wrap; }
}
