/* vote.slyderpro.com shared styles.
   Mirrors slyderpro.com: black canvas, Montserrat, electric blue pill buttons,
   purple and blue glow. Mobile first: most visitors arrive from a QR code. */

/* Self-hosted Montserrat (SIL OFL 1.1, see fonts/OFL.txt). Static weights, latin subset:
   no third party request on mobile data, identical rendering in every browser. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fff;
  --text-2: #c8c8d2;
  --muted: #8f8f9c;
  --blue: #0056fb;
  --blue-hover: #1d6bff;
  --link: #8bc5ff;
  --glow-purple: rgba(122, 44, 255, 0.55);
  --glow-blue: rgba(0, 86, 251, 0.45);
  --official: #d9822b;
  --success: #3ddc97;
  --danger: #ff7a7a;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 20px;
  --max: 560px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; } /* headings focused by script for screen readers */
.hidden { display: none !important; }
.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;
}

/* Ambient glow behind everything */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 38% at 92% 4%, var(--glow-purple), transparent 70%),
    radial-gradient(48% 32% at -6% 34%, var(--glow-blue), transparent 72%),
    #000;
  opacity: 0.5;
}

/* ---------------------------------------------------------------- frame */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
}
.wordmark { height: 18px; width: auto; }
.chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px; white-space: nowrap;
}
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 8px; }
.page-wide { --max: 720px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 4px 0 6px; }
.device {
  position: relative; width: min(64%, 260px); margin: 0 auto 6px;
}
.device::before {
  content: ""; position: absolute; inset: 8% -18% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(122, 44, 255, 0.65), rgba(0, 86, 251, 0.28) 55%, transparent 78%);
  filter: blur(28px);
}
.device img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}
.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--link);
}
h1 {
  margin: 0 0 14px; font-size: clamp(36px, 10vw, 52px); line-height: 1.04;
  font-weight: 700; letter-spacing: -0.015em;
}
.lead { margin: 0 0 18px; font-size: 17px; color: var(--text-2); max-width: 36ch; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-open { color: var(--success); background: rgba(61, 220, 151, 0.12); }
.badge-open .dot { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.badge-closed { color: var(--muted); background: rgba(255, 255, 255, 0.07); }
.badge-soon { color: var(--link); background: rgba(139, 197, 255, 0.12); }

/* ---------------------------------------------------------------- cards */
.card {
  margin-top: 18px; padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.card .sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--link);
  background: rgba(0, 86, 251, 0.16); border: 1px solid rgba(139, 197, 255, 0.28);
}
.steps strong { display: block; font-weight: 600; line-height: 1.35; padding-top: 5px; }
.steps p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }

/* A faithful mini preview of the option people must tap on the official form */
.official-preview {
  margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: #fff;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.official-preview small { color: #555; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.official-pill {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--official); color: var(--official); background: #fff;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  box-shadow: 0 0 0 4px rgba(217, 130, 43, 0.14);
}

/* ---------------------------------------------------------------- form */
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #0a0a0f; color: var(--text);
  font: inherit; font-size: 16px;
}
.input::placeholder { color: #5d5d68; }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(139, 197, 255, 0.2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.check {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 16px;
  font-size: 15px; color: var(--text-2); cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.error { margin: 10px 0 0; font-size: 14px; color: var(--danger); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 32px rgba(0, 86, 251, 0.38); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--link); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: grid; gap: 12px; margin-top: 18px; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 18px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 62%, rgba(0, 0, 0, 0));
}
.cta-bar .inner { max-width: var(--max); margin: 0 auto; }
.cta-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- thanks */
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--success); background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.3);
}
.success-icon svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- hub */
.campaigns { display: grid; gap: 14px; margin-top: 26px; }
.campaign-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.campaign-card:hover { text-decoration: none; border-color: rgba(139, 197, 255, 0.45); transform: translateY(-1px); }
.campaign-card h2 { margin: 12px 0 4px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.campaign-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.campaign-card .go {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff;
}
.campaign-card .go svg { width: 18px; height: 18px; }
.campaign-card.is-closed .go { background: rgba(255, 255, 255, 0.08); }
.empty { padding: 28px 22px; text-align: center; color: var(--text-2); }

/* ---------------------------------------------------------------- footer */
.footer {
  max-width: var(--max); margin: 44px auto 0; padding: 26px var(--gutter) 40px;
  border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--muted);
}
.has-cta .footer { padding-bottom: 170px; } /* room for the fixed Vote now bar */
.footer .wordmark { height: 15px; margin-bottom: 14px; opacity: 0.85; }
.footer p { margin: 0 0 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.footer nav a { color: var(--text-2); }

/* ---------------------------------------------------------------- age gate */
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: var(--gutter); background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gate-card {
  width: 100%; max-width: 420px; padding: 32px 24px 26px; border-radius: 22px;
  background: #fff; color: #111; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.gate-card .kicker { margin: 0 0 6px; font-size: 17px; color: #333; }
.gate-card h2 { margin: 0 0 10px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.gate-card p { margin: 0 0 22px; font-size: 15px; color: #333; }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate-actions .btn { height: 50px; font-size: 16px; }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.gate-card small { display: block; margin-top: 18px; font-size: 12px; color: #555; }
.gate-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.gate-card .btn:focus-visible { outline: 3px solid rgba(0, 86, 251, 0.3); outline-offset: 2px; border-radius: 999px; }

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .wordmark { height: 22px; }
  .hero { padding-top: 12px; }
}

/* ---------------------------------------------------------------- motion
   Entrance: .rise (pure CSS, staggered with --i). Scroll reveal: [data-reveal],
   enabled only when the inline head script adds .js-reveal, with a CSS failsafe so
   content never stays hidden if JavaScript fails. Everything stops under
   prefers-reduced-motion. Only opacity and transform are animated (GPU friendly). */
html { scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; }
.backdrop { inset: -12%; animation: drift 22s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes breathe { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
}
@keyframes highlight {
  0%, 100% { box-shadow: 0 0 0 4px rgba(217, 130, 43, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(217, 130, 43, 0.26); }
}
@keyframes shimmer {
  0% { transform: translateX(-130%) skewX(-20deg); }
  55%, 100% { transform: translateX(330%) skewX(-20deg); }
}
@keyframes slide-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes failsafe { to { opacity: 1; transform: none; } }

.rise { opacity: 0; animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
.device img { animation: float 6s ease-in-out infinite; will-change: transform; }
.device::before { animation: breathe 6s ease-in-out infinite; }
.badge-open .dot { box-shadow: none; animation: pulse-ring 2.2s ease-out infinite; }
.official-pill { animation: highlight 2.6s ease-in-out infinite; }

.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: shimmer 5s ease-in-out 1.8s infinite;
}
.btn:active { transform: scale(0.98); }
.cta-bar { animation: slide-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }

.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
  animation: failsafe 0s 8s forwards;
}
.js-reveal [data-reveal].revealed { opacity: 1; transform: none; }
.js-reveal [data-reveal] .steps li {
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 120ms + 150ms);
  animation: failsafe 0s 8s forwards;
}
.js-reveal [data-reveal].revealed .steps li { opacity: 1; transform: none; }

#thanks-view .card { animation: pop 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.success-icon { animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
.success-icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s ease-out 0.35s forwards; }
.gate { animation: fade 0.25s ease both; }
.gate-card { animation: pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both; }

@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 16px 40px rgba(0, 86, 251, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js-reveal [data-reveal], .js-reveal [data-reveal] .steps li { opacity: 1 !important; transform: none !important; }
  .success-icon path { stroke-dashoffset: 0; }
}
