/* ============================================================
   TrueView — Elevated Civic Intelligence Platform
   Design: Goldman-caliber prestige, blue & red elevated
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --navy:          #0a1628;
  --navy-mid:      #122040;
  --navy-light:    #1c3260;
  --crimson:       #c0392b;
  --crimson-mid:   #a93226;
  --gold:          #c9a84c;
  --white:         #ffffff;
  --off-white:     #f7f8fa;
  --slate-100:     #eef1f6;
  --slate-200:     #d8dde8;
  --slate-400:     #8a93a8;
  --slate-600:     #4a5568;
  --slate-800:     #1a2235;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --section-pad: 5rem;
  --shadow-sm:   0 1px 4px rgba(10,22,40,0.08);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.12);
  --shadow-lg:   0 12px 40px rgba(10,22,40,0.18);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--off-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION — with mobile hamburger
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
}
.logo-true { color: #6fa3e8; }
.logo-view { color: #e87070; }

/* Desktop links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.navbar-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.navbar-links a:hover  { color: var(--white); background: rgba(255,255,255,0.08); }
.navbar-links a.active { color: var(--white); }
.navbar-cta {
  background: var(--crimson) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.navbar-cta:hover { background: var(--crimson-mid) !important; }

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  z-index: 201;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.08); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
  transform-origin: center;
}

/* X state when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 199;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-inner {
  padding: 1.5rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover  { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-drawer a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-drawer-icon { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.nav-drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.75rem 0;
}
.nav-drawer-cta {
  margin-top: 1.25rem;
  background: var(--crimson);
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  text-align: center;
  justify-content: center;
  padding: 1rem !important;
  border-bottom: none !important;
}
.nav-drawer-cta:hover { background: var(--crimson-mid) !important; }

/* Overlay backdrop */
.nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  top: 68px;
  background: rgba(0,0,0,0.5);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-primary { background: var(--crimson) !important; box-shadow: 0 2px 8px rgba(192,57,43,0.35) !important; }
.btn-primary:hover { background: var(--crimson-mid) !important; box-shadow: 0 4px 16px rgba(192,57,43,0.45) !important; }

.btn-personal { background: var(--navy) !important; color: white !important; box-shadow: 0 2px 10px rgba(15,23,42,0.35) !important; }
.btn-personal:hover { background: #020617 !important; box-shadow: 0 4px 18px rgba(15,23,42,0.45) !important; }

.btn-secondary {
  background: transparent !important;
  color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  box-shadow: none !important;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7) !important; background: rgba(255,255,255,0.06) !important; }

.btn-outline {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--slate-200) !important;
  box-shadow: none !important;
}
.btn-outline:hover { border-color: var(--navy) !important; background: var(--slate-100) !important; }

.btn-large { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-small  { padding: 0.55rem 1.1rem; font-size: 0.825rem; }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none !important; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 7rem 2.5rem 6rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(28,50,96,0.8) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(192,57,43,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent-blue { color: #6fa3e8; }
.hero h1 .accent-red  { color: #e87070; }
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  padding: 2rem 2.5rem;
}
.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: var(--section-pad) 2.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--slate-600);
  max-width: 560px;
  line-height: 1.75;
}
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), transparent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Feature Cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--crimson));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.feature-card p { font-size: 0.88rem; color: var(--slate-600); line-height: 1.65; }

/* ── Steps ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step-card { text-align: center; padding: 1rem; }
.step-number {
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.step-card p  { font-size: 0.875rem; color: var(--slate-600); }

/* ── Mission Banner ──────────────────────────────────────── */
.mission-banner {
  background: var(--navy);
  padding: 5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(192,57,43,0.18) 0%, transparent 70%);
}
.mission-banner-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 1.5rem;
}
.mission-quote::before { content: '\201C'; }
.mission-quote::after  { content: '\201D'; }
.mission-attr {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Page Hero (sub-pages) ───────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 2.5rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.page-hero p { color: rgba(255,255,255,0.55); font-size: 0.95rem; }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 2.5rem;
}
.filter-bar-inner {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.search-icon { color: var(--slate-400); }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: transparent;
}
.search-input::placeholder { color: var(--slate-400); }

/* ── Politicians Grid ────────────────────────────────────── */
.politicians-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.politician-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.politician-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.politician-card img {
  width: 100%; height: 220px;
  object-fit: cover; object-position: top;
  margin: 0; border-radius: 0; border: none;
  transition: transform 0.4s var(--ease);
}
.politician-card:hover img { transform: scale(1.03); }
.politician-info { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.politician-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.politician-position { font-size: 0.83rem; color: var(--slate-400); margin-bottom: 0.75rem; }
.politician-party {
  display: inline-flex;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.party-democratic  { background: #dbeafe; color: #1e3a8a; }
.party-republican  { background: #fee2e2; color: #991b1b; }
.party-independent { background: #ede9fe; color: #5b21b6; }
.chamber-governor  { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.politician-issues { margin-bottom: 1.5rem; flex: 1; }
.politician-issues strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.6rem;
}
.issue-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.issue-tag {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.77rem;
  font-weight: 500;
}
.politician-card .btn { width: 100%; justify-content: center; }

/* ── Candidate Detail ────────────────────────────────────── */
.candidate-header {
  max-width: 960px;
  margin: 0 auto 1.75rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.candidate-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 4px solid var(--slate-100);
  flex-shrink: 0;
  margin: 0;
}
.candidate-header-info { flex: 1; }
.candidate-header-info h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  text-align: left;
}
.candidate-header-info h2::after { display: none; }
.candidate-title { font-size: 0.95rem; color: var(--slate-400); margin-bottom: 0.75rem; }
.candidate-party-badge {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.candidate-section {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.candidate-section h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
}
.candidate-summary { font-size: 0.975rem; line-height: 1.8; color: var(--slate-600); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.info-item { padding: 1rem 1.25rem; background: var(--slate-100); border-radius: var(--radius-md); font-size: 0.875rem; }
.info-item strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.3rem;
}
.achievement-list, .goals-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.achievement-list li, .goals-list li {
  padding: 0.85rem 1.25rem;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--slate-600);
  border-left: 3px solid var(--navy);
  line-height: 1.6;
}
.achievement-list li::before { content: "✓  "; color: #16a34a; font-weight: 700; }
.goals-list li::before      { content: "→  "; color: var(--crimson); font-weight: 700; }
.candidate-actions {
  max-width: 960px;
  margin: 2rem auto 5rem;
  padding: 0 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Survey / Priorities ─────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 3.5rem 2.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.page-header h1 span.logo-true { color: #6fa3e8; }
.page-header h1 span.logo-view { color: #e87070; }
.page-header p { color: rgba(255,255,255,0.55); font-size: 1rem; font-weight: 300; }

.progress-container { max-width: 760px; margin: 2.5rem auto 0; padding: 0 2rem; }
.progress-bar { height: 5px; background: var(--slate-100); border-radius: 10px; overflow: hidden; margin-bottom: 0.6rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--crimson)); width: 0%; transition: width 0.6s var(--ease); }
.progress-text {
  text-align: center;
  color: var(--slate-400);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.survey-step { display: none; animation: fadeUp 0.4s var(--ease); }
.survey-step.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.category-header {
  max-width: 860px;
  margin: 2.5rem auto 2rem;
  padding: 2rem 2.5rem;
  background: var(--navy);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.category-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(192,57,43,0.25) 0%, transparent 60%);
}
.category-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 0.4rem;
}
.category-title::after { display: none; }
.category-description { font-size: 0.875rem; color: rgba(255,255,255,0.55); position: relative; z-index: 1; }

.issues-container { max-width: 860px; margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.issue-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.issue-card:hover { box-shadow: var(--shadow-md); }
.issue-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}
.issue-statement { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.6; }
.response-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.response-option { flex: 1; min-width: 130px; position: relative; cursor: pointer; }
.response-option input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.response-label {
  display: block;
  padding: 0.7rem 0.75rem;
  background: var(--slate-100);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: all 0.2s var(--ease);
  line-height: 1.35;
}
.response-option:hover .response-label { border-color: var(--navy); color: var(--navy); }
.response-option input[type="radio"]:checked + .response-label {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}

.navigation-buttons { max-width: 860px; margin: 2.5rem auto; padding: 0 2rem; display: flex; justify-content: space-between; gap: 1rem; }

/* Ranking */
.ranking-container { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.ranking-list { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-xl); padding: 1.25rem; box-shadow: var(--shadow-md); }
.ranking-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  cursor: move;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
}
.ranking-item:last-child { margin-bottom: 0; }
.ranking-item:hover { background: var(--white); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.ranking-item.dragging { opacity: 0.45; transform: scale(1.02); }
.ranking-number { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy); min-width: 28px; }
.ranking-handle { color: var(--slate-400); font-size: 1rem; cursor: grab; }
.ranking-name { flex: 1; font-size: 0.95rem; font-weight: 500; color: var(--slate-800); }

/* Results */
.results-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.result-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); }
.result-rank { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 1rem; }
.result-content { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.result-image { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--slate-100); flex-shrink: 0; margin: 0; }
.result-info { flex: 1; }
.result-info h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.3rem; }
.result-position { color: var(--slate-400); font-size: 0.83rem; margin-bottom: 0.5rem; }
.result-party { display: inline-flex; padding: 0.2rem 0.75rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.result-score { display: flex; align-items: center; }
.score-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.score-number { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.score-label  { font-size: 0.68rem; font-weight: 500; opacity: 0.65; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 5rem 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer-brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.86rem; line-height: 1.75; color: rgba(255,255,255,0.42); max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.65rem; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease);
}
.social-link:hover { border-color: rgba(255,255,255,0.4); color: var(--white); background: rgba(255,255,255,0.07); }
.footer-col-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.84rem; color: rgba(255,255,255,0.48); margin-bottom: 0.75rem; }
.footer-contact-icon { opacity: 0.55; line-height: 1.4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.77rem; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.notif-dot {
  width: 8px; height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* ── 960px: footer reflow ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

/* ── 768px: show hamburger, hide desktop links ── */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .nav-hamburger { display: flex; }
  .navbar-links  { display: none; }
  .nav-drawer    { display: block; }
  .nav-overlay.open { display: block; }

  /* Stats bar stacks */
  .stats-bar-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Dashboard grid: single column */
  .dash-grid {
    grid-template-columns: 1fr !important;
    margin-top: -1.5rem !important;
    padding: 0 1rem !important;
    gap: 1.25rem !important;
  }

  /* Match banner: stack vertically */
  .match-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.5rem !important;
    gap: 1rem !important;
  }
  .match-scores { gap: 1.25rem !important; }
  .match-score-pct { font-size: 1.75rem !important; }

  /* State selector: full width */
  .state-selector-wrap select { width: 100%; }

  /* Feed source toggle: full width buttons */
  .feed-source-toggle { width: 100%; }
  .feed-source-btn { flex: 1; text-align: center; }

  /* Feed tabs: scrollable row */
  .feed-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    gap: 0.4rem !important;
    scrollbar-width: none;
  }
  .feed-tabs::-webkit-scrollbar { display: none; }
  .feed-tab { flex-shrink: 0; }

  /* Top match row: stack */
  .top-match-row { flex-direction: column; text-align: center; }
  .top-match-avatar { margin: 0 auto; }
}

/* ── 640px: tighten spacing everywhere ── */
@media (max-width: 640px) {
  :root { --section-pad: 3rem; }

  /* Navbar */
  .navbar-inner { padding: 0 1rem; }
  .navbar-logo  { font-size: 1.35rem; }

  /* Hero */
  .hero { padding: 4.5rem 1.5rem 4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Dashboard hero */
  .dash-hero { padding: 2.5rem 1.25rem 4rem !important; }
  .dash-hero h1 { font-size: 1.7rem !important; }

  /* Dashboard cards */
  .d-card-body { padding: 1.25rem !important; }
  .feed-item { padding: 1rem 1.25rem !important; }
  .feed-header { padding: 1.25rem 1.25rem 0 !important; }

  /* Match banner scores: horizontal scroll if needed */
  .match-scores {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .match-scores::-webkit-scrollbar { display: none; }

  /* Priority rows */
  .priority-row { padding: 0.5rem 0; }

  /* Spectrum */
  .spectrum-wrap { margin: 0.5rem 0 0.3rem; }

  /* Country vs You bars — cap width so they don't overflow */
  .cvs-bar { max-width: 100% !important; }
  .cvs-bars { overflow: hidden; }

  /* Consistency items */
  .consistency-item { padding: 0.65rem; gap: 0.65rem; }

  /* Follow chips */
  .follow-chip { font-size: 0.62rem !important; padding: 0.28rem 0.65rem !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer { padding: 3rem 1.5rem 2rem; }

  /* Politicians */
  .politicians-grid { padding: 0 1rem 3rem; grid-template-columns: 1fr; }

  /* Survey */
  .response-options { flex-direction: column; }
  .response-option { min-width: 100%; }
  .issues-container, .ranking-container, .results-container { padding: 0 1rem; }
  .navigation-buttons { padding: 0 1rem; }
  .section { padding: 3rem 1.25rem; }
  .filter-bar { padding: 0 1rem; }

  /* Results */
  .result-content { flex-direction: column; text-align: center; }
  .result-image { margin: 0 auto; }

  /* Candidate detail */
  .candidate-header { flex-direction: column; text-align: center; padding: 1.5rem; }
  .candidate-header-info h2 { text-align: center; }
  .candidate-section { padding: 1.5rem; }
  .candidate-actions { padding: 0 1rem; flex-direction: column; }
  .candidate-actions .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero { padding: 2.5rem 1.25rem 2rem; margin-bottom: 2rem; }
  .page-hero-inner { flex-direction: column; }

  /* CTA section in dashboard */
  .dash-cta { padding: 2rem 1.25rem; }
  .dash-cta-row { flex-direction: column; align-items: stretch; }
  .dash-cta-row .btn { width: 100%; justify-content: center; }
}

/* ── 400px: very small phones ── */
@media (max-width: 400px) {
  .navbar-logo { font-size: 1.2rem; }
  .dash-hero h1 { font-size: 1.5rem !important; }
  .match-score-pct { font-size: 1.5rem !important; }
  .top-match-score { font-size: 2rem !important; }
  .d-card-title { font-size: 0.95rem !important; }
}
