/* =================================================================
   FAIR MAPS AMERICA — Civic Bold design system
   Vanilla CSS. Mobile-first. No build step.
   Palette: deep navy + bright gold + warm coral + teal spark
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy:        #0B1F3A;
  --navy-2:      #12305C;
  --navy-3:      #1C4A8A;
  --gold:        #FFC83D;
  --gold-deep:   #F4A91F;
  --coral:       #FF5E5B;
  --coral-deep:  #E8443F;
  --teal:        #18C2B2;
  --teal-deep:   #0E9A8C;

  /* Neutrals */
  --cream:       #FBF8F1;
  --paper:       #FFFFFF;
  --ink:         #0E1B2E;
  --ink-soft:    #3B4A60;
  --muted:       #6B7888;
  --line:        rgba(11, 31, 58, 0.10);
  --line-strong: rgba(11, 31, 58, 0.18);

  /* Gradients (hero gradient is defined in the block below) */
  --grad-gold:   linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  --grad-coral:  linear-gradient(135deg, #ff7a6e 0%, var(--coral) 55%, var(--coral-deep) 100%);
  --grad-teal:   linear-gradient(135deg, #36d6c6 0%, var(--teal) 60%, var(--teal-deep) 100%);
  --grad-bright: linear-gradient(100deg, var(--coral) 0%, var(--gold) 100%);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing / shape */
  --container: 1180px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(11, 31, 58, 0.08);
  --shadow:     0 14px 34px rgba(11, 31, 58, 0.12);
  --shadow-lg:  0 28px 60px rgba(11, 31, 58, 0.20);
  --shadow-gold: 0 14px 34px rgba(244, 169, 31, 0.35);
  --shadow-coral:0 14px 34px rgba(232, 68, 63, 0.32);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fix a typo-safe hero gradient (override the experimental token above) */
:root {
  --grad-hero:
    radial-gradient(1100px 650px at 10% -15%, #1c4682 0%, transparent 55%),
    radial-gradient(820px 560px at 98% 5%, #0f3a72 0%, transparent 52%),
    radial-gradient(700px 700px at 60% 120%, rgba(24,194,178,0.18) 0%, transparent 55%),
    linear-gradient(165deg, #0B1F3A 0%, #0c2a54 55%, #0B1F3A 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
p  { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-bright); }
.gold-text { color: var(--gold); }
.coral-text { color: var(--coral); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.bg-navy { background: var(--navy); color: #eaf1fb; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #b9c8dd; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  padding: 0.95rem 1.5rem; border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn-primary { background: var(--grad-coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn-gold { background: var(--grad-gold); color: var(--navy); box-shadow: var(--shadow-gold); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.28); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-deep); }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 0.9rem 0;
}
.header.scrolled {
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-sm);
  padding: 0.55rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--navy); letter-spacing: -0.02em; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.header:not(.scrolled) .brand { color: #fff; }
.header:not(.scrolled) .nav-links a { color: #eaf1fb; }
.nav-links { display: none; align-items: center; gap: 1.7rem; }
.nav-links a { font-weight: 600; font-size: 0.96rem; color: var(--ink-soft); position: relative; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad-bright); border-radius: 2px; transition: width 0.25s var(--ease); }
.nav-links a:hover { color: var(--coral-deep); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: none; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.12); }
.header.scrolled .burger { background: rgba(11,31,58,0.08); }
.burger span { width: 22px; height: 2.5px; border-radius: 3px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
.header.scrolled .burger span { background: var(--navy); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  background-image: var(--grad-hero);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 5rem 2rem 2rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  visibility: hidden;
}
body.menu-open .drawer { transform: translateX(0); visibility: visible; }
.drawer a { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; padding: 0.5rem 0; opacity: 0; transform: translateX(20px); }
body.menu-open .drawer a { animation: slideIn 0.5s var(--ease) forwards; }
.drawer a:nth-child(1){animation-delay:.08s}.drawer a:nth-child(2){animation-delay:.14s}.drawer a:nth-child(3){animation-delay:.20s}.drawer a:nth-child(4){animation-delay:.26s}.drawer a:nth-child(5){animation-delay:.32s}.drawer a:nth-child(6){animation-delay:.38s}.drawer a:nth-child(7){animation-delay:.44s}
.drawer .btn { margin-top: 1.2rem; align-self: flex-start; }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  padding: clamp(7.5rem, 16vw, 11rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: var(--navy); background-image: var(--grad-hero);
  overflow: hidden;
}
.hero::after { /* subtle map grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(900px 600px at 70% 30%, #000 0%, transparent 80%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(14px); opacity: 0.55; z-index: -1; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 320px; height: 320px; background: var(--grad-coral); top: -60px; right: -40px; }
.blob.b2 { width: 260px; height: 260px; background: var(--grad-teal); bottom: -80px; left: -50px; animation-delay: -5s; }
.blob.b3 { width: 180px; height: 180px; background: var(--grad-gold); top: 40%; right: 18%; opacity: 0.4; animation-delay: -9s; }
@keyframes float { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(20px,-26px) scale(1.06)} 66%{transform:translate(-16px,14px) scale(0.96)} }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  padding: 0.45rem 0.95rem; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(24,194,178,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(24,194,178,0.6)} 70%{box-shadow:0 0 0 12px rgba(24,194,178,0)} 100%{box-shadow:0 0 0 0 rgba(24,194,178,0)} }
.hero h1 { margin: 1.3rem 0 0; }
.hero h1 .hl { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c6d4e8; max-width: 560px; margin-top: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-trust { margin-top: 2rem; display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: #9fb2cc; }
.hero-trust .badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.07); padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.14); }

/* Hero art card */
.hero-art {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg); padding: 1.4rem; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.map-toggle { display: flex; gap: 0.4rem; background: rgba(0,0,0,0.25); padding: 0.3rem; border-radius: var(--radius-pill); margin-bottom: 1rem; }
.map-toggle button { flex: 1; padding: 0.55rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #c6d4e8; transition: 0.25s; }
.map-toggle button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.map-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a1a31; }
.map-stage svg { width: 100%; height: auto; display: block; }
.map-caption { display: flex; justify-content: space-between; align-items: center; margin-top: 0.9rem; font-size: 0.85rem; }
.map-caption .fair-score { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.district { transition: all 0.6s var(--ease); }

/* ---------- Countdown ---------- */
.countdowns { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.2rem; }
.cd-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; backdrop-filter: blur(8px);
}
.cd-card .cd-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb2cc; font-weight: 700; }
.cd-card .cd-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #fff; margin: 0.2rem 0 0.6rem; }
.cd-timer { display: flex; gap: 0.6rem; }
.cd-unit { text-align: center; }
.cd-unit b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.cd-unit span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb2cc; }
.cd-card.federal b { color: var(--gold); }
.cd-card.illinois b { color: var(--teal); }

/* ---------- Stats strip ---------- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); font-weight: 600; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; color: #fff; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; }
.ico.coral { background: var(--grad-coral); box-shadow: var(--shadow-coral); }
.ico.gold { background: var(--grad-gold); box-shadow: var(--shadow-gold); color: var(--navy); }
.ico.teal { background: var(--grad-teal); box-shadow: 0 14px 30px rgba(14,154,140,0.32); }
.ico.navy { background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.card .topbar { position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-bright); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.card:hover .topbar { transform: scaleX(1); }

/* Feature pill list */
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.5rem 0; color: var(--ink-soft); font-weight: 500; }
.checklist li svg { flex: none; margin-top: 3px; color: var(--teal-deep); }
.bg-navy .checklist li { color: #c6d4e8; }
.bg-navy .checklist li svg { color: var(--gold); }

/* ---------- Campaign split cards ---------- */
.campaign {
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); color: #fff;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.campaign.federal { background: linear-gradient(150deg, #12305C, #0B1F3A); }
.campaign.illinois { background: linear-gradient(150deg, #0E9A8C, #0b6b62); }
.campaign .tag { align-self: flex-start; background: rgba(255,255,255,0.16); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.campaign h3 { color: #fff; margin: 1rem 0 0.6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.campaign p { color: rgba(255,255,255,0.85); }
.campaign .year { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem,9vw,4.5rem); line-height: 1; margin: 0.6rem 0; }
.campaign.federal .year { color: var(--gold); }
.campaign.illinois .year { color: #bff7ef; }
.campaign .actions { margin-top: auto; padding-top: 1.4rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.campaign .deco { position: absolute; right: -30px; bottom: -30px; opacity: 0.18; pointer-events: none; }

/* ---------- Timeline / roadmap ---------- */
.timeline { position: relative; display: grid; gap: 1.1rem; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--coral), var(--gold), var(--teal)); border-radius: 3px; }
.tl-item { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.tl-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; color: #fff; background: var(--navy); border: 3px solid var(--cream); z-index: 1; box-shadow: var(--shadow-sm); }
.bg-navy .tl-dot { border-color: var(--navy); }
.tl-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.bg-navy .tl-body { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.tl-body h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.bg-navy .tl-body h4 { color: #fff; }
.tl-body p { font-size: 0.92rem; margin: 0; }
.tl-year { font-family: var(--font-display); font-weight: 800; color: var(--coral-deep); font-size: 0.85rem; letter-spacing: 0.04em; }
.bg-navy .tl-year { color: var(--gold); }

/* ---------- Coalition logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.9rem; }
.logo-chip {
  display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.logo-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.logo-chip .lico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; }
.logo-chip b { font-family: var(--font-display); font-size: 0.95rem; color: var(--navy); }
.logo-chip span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* ---------- Newsletter cards ---------- */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.news-head .ico { margin: 0; width: 48px; height: 48px; }
.news-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); }
.news-badge.lawmaker { background: rgba(18,48,92,0.10); color: var(--navy-2); }
.news-badge.public { background: rgba(232,68,63,0.10); color: var(--coral-deep); }
.preview {
  background: var(--cream); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.1rem; margin: 1rem 0; font-size: 0.88rem;
}
.preview .pv-sub { font-weight: 700; color: var(--navy); font-family: var(--font-display); }
.preview .pv-line { height: 8px; background: var(--line); border-radius: 4px; margin: 0.6rem 0; }
.preview .pv-line.short { width: 60%; }
.preview ul.mini li { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); padding: 0.2rem 0; }
.preview ul.mini li::before { content: "▸"; color: var(--coral); font-weight: 800; }

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 78px 1fr; gap: 1.1rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.event:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.ev-date { background: var(--grad-coral); color: #fff; border-radius: 14px; text-align: center; padding: 0.6rem 0.4rem; box-shadow: var(--shadow-coral); }
.ev-date .m { font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ev-date .d { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.ev-body h4 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.ev-body .meta { font-size: 0.86rem; color: var(--muted); font-weight: 600; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.ev-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-deep); }

/* ---------- Join / forms ---------- */
.join-wrap { display: grid; gap: 1.6rem; }
.join-tabs { display: flex; gap: 0.5rem; background: rgba(255,255,255,0.08); padding: 0.4rem; border-radius: var(--radius-pill); }
.join-tabs button { flex: 1; padding: 0.8rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: #c6d4e8; transition: 0.25s; }
.join-tabs button.active { color: var(--navy); background: #fff; box-shadow: var(--shadow); }
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--cream); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,94,91,0.15); }
.field .err { font-size: 0.78rem; color: var(--coral-deep); font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--coral); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check label {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; color: var(--ink-soft);
}
.chip-check input:checked + label { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-check input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }
.form-note a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; }
.form-success {
  display: none; text-align: center; padding: 1.5rem;
}
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
/* keep form-card text readable even when the card sits inside a .bg-navy section */
.form-card h3, .form-success h3 { color: var(--navy); }
.form-card p:not(.form-note), .form-success p { color: var(--ink-soft); }
.form-card .form-note { color: var(--muted); }
.form-success .check { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--grad-teal); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(14,154,140,0.4); }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Donate ---------- */
.tiers { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
.tier { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 1.2rem; text-align: center; transition: transform 0.3s var(--ease), background 0.3s; cursor: pointer; }
.tier:hover, .tier.featured { transform: translateY(-5px); background: rgba(255,255,255,0.12); }
.tier.featured { border-color: var(--gold); }
.tier .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--gold); }
.tier .what { font-size: 0.84rem; color: #c6d4e8; margin-top: 0.3rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-bright); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.4rem); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 1rem auto 1.8rem; }
.cta-band .btn-gold { background: #fff; color: var(--coral-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c8dd; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer a { color: #9fb2cc; font-size: 0.92rem; display: block; padding: 0.3rem 0; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer .socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer .socials a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; padding: 0; }
.footer .socials a:hover { background: var(--coral); color: #fff; }
.foot-note { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.82rem; color: #7e90ab; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; }
.nonpartisan { background: rgba(24,194,178,0.12); border: 1px solid rgba(24,194,178,0.3); color: #9bf0e4; padding: 0.9rem 1.1rem; border-radius: var(--radius); font-size: 0.86rem; margin-top: 1rem; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-coral); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-coral); opacity: 0; visibility: hidden; transform: translateY(14px); transition: 0.3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--navy); background-image: var(--grad-hero); color: #fff; padding: clamp(7rem, 14vw, 9.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-hero h1 { margin-top: 0.8rem; }
.page-hero p { color: #c6d4e8; max-width: 620px; margin-top: 1rem; font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: #9fb2cc; }
.breadcrumb a:hover { color: var(--gold); }

/* prose */
.prose { max-width: 760px; }
.prose h3 { margin: 2rem 0 0.7rem; color: var(--navy); }
.prose p { margin-bottom: 1rem; }
.prose ul.bullets { margin: 0 0 1rem; }
.prose ul.bullets li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--ink-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-bright); }

/* sample newsletter sheet */
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.sheet-head { padding: 1.4rem 1.6rem; color: #fff; }
.sheet-head.lawmaker { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.sheet-head.public { background: var(--grad-coral); }
.sheet-head .kicker { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; font-weight: 700; }
.sheet-head h3 { color: #fff; margin: 0.3rem 0 0; }
.sheet-head .issue { font-size: 0.84rem; opacity: 0.85; margin-top: 0.3rem; }
.sheet-body { padding: 1.6rem; }
.sheet-body h4 { color: var(--navy); margin: 1.3rem 0 0.5rem; font-size: 1.05rem; }
.sheet-body h4:first-child { margin-top: 0; }
.sheet-body p, .sheet-body li { font-size: 0.94rem; color: var(--ink-soft); }
.sheet-body ul.bullets { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; list-style: disc; }
.sheet-body ul.bullets li { margin-bottom: 0.35rem; }
.tldr { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; font-size: 0.92rem; }
.tldr b { color: var(--navy); }
.stat-inline { display: inline-block; background: rgba(232,68,63,0.1); color: var(--coral-deep); font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .countdowns { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.col-2 { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(4,1fr); }
  .logos { grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .countdowns { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
