/* ── SECTION 8 — THE CTA ─────────────────────────────── */
/* "Put your city first." City vote. Email capture.       */
/* Brand-consistent. Consumer-centric. No fluff.          */

.s8 {
  min-height: 100vh;
  min-height: 100dvh;     /* iOS Safari: dvh excludes browser chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px;
  overflow-y: auto;       /* allows scroll within panel when content exceeds viewport */
  -webkit-overflow-scrolling: touch;
}

.s8-inner {
  max-width: 560px;
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
}

/* ── Headline ─────────────────────────────────────────── */

.s8-coming {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Vote leaderboard ─────────────────────────────────── */

.vote-bars {
  width: 100%;
  margin-bottom: 40px;
  text-align: left;
}

.vote-bar-row {
  display: grid;
  grid-template-columns: 22px 120px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.vote-bar-row:hover {
  border-bottom-color: var(--warm-border);
}

.vote-bar-row:active {
  opacity: 0.75;
}

/* Rank number */
.vote-rank {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--warm-border);
  letter-spacing: 0.04em;
  text-align: right;
  transition: color 0.25s ease;
}

.vote-bar-row:hover .vote-rank {
  color: var(--muted);
}

/* The #1 rank gets gold */
.vote-bar-row[data-rank="1"] .vote-rank {
  color: var(--turmeric);
}

/* City name */
.vote-city-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.vote-bar-row:hover .vote-city-name {
  color: var(--taupe);
}

/* Voted city glows gold */
.vote-bar-row.voted-row .vote-city-name {
  color: var(--turmeric);
}

/* Bar track */
.vote-bar-track {
  height: 4px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  background: var(--turmeric);
  border-radius: var(--r-pill);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.55;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* #1 bar is full-opacity */
.vote-bar-row[data-rank="1"] .vote-bar-fill {
  opacity: 1;
}

/* Voted row bar is full-opacity */
.vote-bar-row.voted-row .vote-bar-fill {
  opacity: 1;
}

/* Vote count */
.vote-count {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.vote-bar-row.voted-row .vote-count {
  color: var(--turmeric);
}

/* ── Post-vote confirmation + email ───────────────────── */

.vote-success {
  text-align: center;
  width: 100%;
}

/* The "Your vote is in." headline */
.vs-voted-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

/* The city + count line */
.vs-city-count {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.vs-city-count strong {
  font-weight: 600;
  color: var(--ink);
}

/* Fallback: if vs-message is set as plain text */
.vs-message:not(:empty) {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.25;
}

/* ── Email form ───────────────────────────────────────── */

.vs-email-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vs-email-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  width: 100%;
}

.vs-email-input {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 13px 16px;
  border: 1px solid var(--warm-border);
  border-radius: var(--r-md);
  background: var(--pure-white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.vs-email-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.vs-email-input:focus {
  border-color: var(--turmeric);
}

/* PRIMARY CTA — turmericGold per brand design system */
.vs-email-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 22px;
  background: var(--turmeric);
  color: var(--ink);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, opacity 0.2s;
}

.vs-email-btn:hover:not(:disabled) {
  background: #C49A3C;
}

.vs-email-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.vs-notify-line {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
  letter-spacing: 0.01em;
}

/* ── Post-launch ──────────────────────────────────────── */

.download-cta {
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Accessibility ────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
