/* =========================================================
   UNITED STATE OF NEGLECT — CLEAN SITE CSS
   ========================================================= */

/* =============== GLOBAL FONT ================= */
body,
.hud,
.city-list,
.city-item,
.landing-tagline,
.landing-title,
.landing-dek,
.landing-copy,
.landing-cta,
.session-summary-page,
.final-page,
.email-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

h1, h2 {
  font-family: "Presicav Heavy", sans-serif;
}

/* =============== GLOBAL BLACKOUT OVERLAY ================= */
#globalBlackout {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1;
}

#globalBlackout.is-on {
  opacity: 1;
}

/* =============== SHARED REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(.16,.84,.44,1),
    transform 900ms cubic-bezier(.16,.84,.44,1),
    filter 900ms cubic-bezier(.16,.84,.44,1);
  will-change: transform, opacity, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .6s; }
.delay-5 { transition-delay: .75s; }
.delay-6 { transition-delay: .9s; }
.delay-7 { transition-delay: 1.05s; }

/* =============== LANDING PAGE ================= */
.landing-wrapper {
  min-height: 200vh;
  background: transparent;
  color: #fff;
  position: relative;
  text-align: center;
  padding: 0 10px;
  overflow: clip;
}

.landing-inner {
  max-width: 940px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 5;
}

.landing-spacer {
  height: 95vh;
}

.landing-hero-mark {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6vh;
  pointer-events: none;
  opacity: 0;
  filter: blur(34px);
  transform: scale(1.04);
  transition:
    opacity 1400ms cubic-bezier(.16,.84,.44,1),
    filter 1700ms cubic-bezier(.16,.84,.44,1),
    transform 1700ms cubic-bezier(.16,.84,.44,1);
}

.landing-hero-mark img,
.landing-hero-mark .image-gallery,
.landing-hero-mark [data-elementresizer] {
  display: block;
  width: min(108vw, 1550px) !important;
  max-width: 1550px !important;
  height: auto !important;
  margin: 0 auto;
}

.landing-wrapper.show-title .landing-hero-mark {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.landing-content {
  position: relative;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
}

.landing-wrapper.js-on .landing-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(40px);
  filter: blur(8px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    filter 500ms ease;
}

.landing-wrapper.js-on .landing-content.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
}

.landing-step {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(.16,.84,.44,1),
    transform 900ms cubic-bezier(.16,.84,.44,1),
    filter 900ms cubic-bezier(.16,.84,.44,1);
  will-change: transform, opacity, filter;
}

.landing-content.is-visible .landing-step {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.landing-content.is-visible .landing-step-1 { transition-delay: .1s; }
.landing-content.is-visible .landing-step-2 { transition-delay: .35s; }
.landing-content.is-visible .landing-step-3 { transition-delay: .6s; }

#landingContent {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px 120px;
  text-align: center;
  position: relative;
}

#landingContent::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(900px, 90vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(120,20,20,0.18), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.landing-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.landing-headline {
  margin: 0 auto 26px;
  max-width: 20ch;
  font-size: clamp(46px, 4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.landing-dek {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255,255,255,0.94);
  letter-spacing: -0.015em;
}

.landing-subcopy {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255,255,255,0.76);
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 18px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #ef2a1d, #b10f0f);
  box-shadow:
    0 0 0 2px rgba(120, 0, 0, 0.55),
    0 14px 30px rgba(0,0,0,0.45);
}

.landing-cta:hover {
  background: linear-gradient(180deg, #ff3525, #c21111);
}

.scroll-arrow {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255, 0, 0, 0.55);
  background: rgba(68, 68, 68, 0.89);
  color: #f00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: arrowBounce 1.2s ease-in-out infinite;
  transition: opacity 200ms ease;
}

.scroll-arrow__chev {
  font-size: 26px;
  line-height: 1;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 900px) {
  .landing-hero-mark {
    padding-top: 10vh;
  }

  .landing-hero-mark img,
  .landing-hero-mark .image-gallery,
  .landing-hero-mark [data-elementresizer] {
    width: min(92vw, 900px) !important;
  }

  .landing-spacer {
    height: 88vh;
  }
}

@media (max-width: 800px) {
  #landingContent {
    padding: 0 18px 90px;
  }

  .landing-kicker {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .landing-headline {
    max-width: 12ch;
    margin-bottom: 20px;
  }

  .landing-dek {
    line-height: 1.24;
    margin-bottom: 14px;
  }

  .landing-subcopy {
    margin-bottom: 26px;
  }

  .landing-cta {
    min-width: 210px;
    padding: 16px 28px;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .landing-hero-mark {
    padding-top: 14vh;
  }

  .landing-hero-mark img,
  .landing-hero-mark .image-gallery,
  .landing-hero-mark [data-elementresizer] {
    width: min(96vw, 760px) !important;
  }

  .landing-spacer {
    height: 82vh;
  }
}

/* =============== MOBILE WARNING ================= */
.mobile-warning {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-warning.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-warning-card {
  width: min(92vw, 420px);
  padding: 28px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,18,18,0.96), rgba(8,8,8,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  text-align: center;
  color: #fff;
}

.mobile-warning-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1;
}

.mobile-warning-card p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.mobile-warning-card button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  min-width: 180px;
  background: linear-gradient(180deg, #ef2a1d, #b10f0f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* =============== GAME WRAPPER ================= */
.game {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100vh;
  margin: 0 auto;
}

/* =============== LA INTRO SEQUENCE ================= */
.la-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.la-intro-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.la-intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(90, 20, 20, 0.18), transparent 30%),
    radial-gradient(circle at 20% 50%, rgba(20, 50, 120, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0.76), rgba(0,0,0,0.84));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.la-intro-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
  color: #f5f1eb;
  padding: 40px 32px;
}

.la-intro-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 220, 220, 0.72);
}

.la-intro-headline {
  margin: 0 0 26px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
  transition:
    opacity 800ms cubic-bezier(.16,.84,.44,1),
    transform 800ms cubic-bezier(.16,.84,.44,1),
    filter 900ms cubic-bezier(.16,.84,.44,1);
}

.la-intro-copy {
  max-width: 1100px;
  margin: 0 auto 34px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.3;
  color: rgba(255,255,255,0.94);
  opacity: 0;
  transform: translateY(20px);
  filter: blur(12px);
  transition:
    opacity 900ms cubic-bezier(.16,.84,.44,1),
    transform 900ms cubic-bezier(.16,.84,.44,1),
    filter 1000ms cubic-bezier(.16,.84,.44,1);
}

.la-intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 470px;
  max-width: 92vw;
  padding: 24px 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ea140f, #8e0707);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,70,70,0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 1000ms cubic-bezier(.16,.84,.44,1),
    transform 1000ms cubic-bezier(.16,.84,.44,1),
    filter 1000ms cubic-bezier(.16,.84,.44,1),
    transform 180ms ease,
    filter 180ms ease;
}

.la-intro-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.la-intro-overlay.visible .la-intro-headline {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.la-intro-overlay.visible .la-intro-copy {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 120ms;
}

.la-intro-overlay.visible .la-intro-cta {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 260ms;
}

.la-intro-glare {
  position: absolute;
  top: -10%;
  left: -30%;
  width: 22%;
  height: 130%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: rotate(14deg) translateX(0);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.04) 20%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.04) 80%,
    rgba(255,255,255,0) 100%
  );
  filter: blur(10px);
}

.la-intro-overlay.sweep .la-intro-glare {
  opacity: 1;
  animation: laGlareSweep 1100ms ease-in-out forwards;
}

@keyframes laGlareSweep {
  0% {
    transform: rotate(14deg) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: rotate(14deg) translateX(700%);
    opacity: 0;
  }
}

.la-intro-overlay.exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 800px) {
  .la-intro-inner {
    padding: 28px 18px;
  }

  .la-intro-copy {
    font-size: 18px;
    line-height: 1.35;
  }

  .la-intro-cta {
    min-width: auto;
    width: 100%;
    font-size: 15px;
    padding: 18px 22px;
  }
}

/* =============== LA HELP OVERLAY ================= */
.la-help-card-image,
.la-help-card-image .image-gallery,
.la-help-card-image img,
.la-help-card-image [data-elementresizer] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.la-help-card-image img {
  object-fit: contain;
}
.la-help-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99999;
}

.la-help-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.la-help-inner {
  position: relative;
  width: min(92vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  pointer-events: auto;
}

.la-help-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.la-help-card-bg,
.la-help-card-image,
.la-help-card-image .image-gallery,
.la-help-card-image [data-elementresizer],
.la-help-card-bg .image-gallery,
.la-help-card-bg [data-elementresizer] {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
}

.la-help-card-image img,
.la-help-card-bg img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 620px;
  object-fit: contain;
}

.la-help-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 7% 14% 10%;
  color: #111;
}

.la-help-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.7vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111;
}

.la-help-card-content p {
  margin: 0 0 10px;
  max-width: 100%;
  font-size: clamp(13px, 1.55vw, 16px);
  line-height: 1.25;
  font-weight: 500;
  color: #111;
}

.la-help-card-content p:last-child {
  margin-top: 6px;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .la-help-overlay {
    padding: 16px;
  }

  .la-help-inner {
    width: min(94vw, 500px);
  }

  .la-help-card {
    aspect-ratio: 1.28 / 1;
  }

  .la-help-card-content {
    inset: 11% 11% 17%;
  }

  .la-help-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 8px;
  }

  .la-help-card-content p {
    font-size: clamp(13px, 3.2vw, 17px);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .help-close {
    right: -2px;
    top: 2px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* =============== HUD ================= */
.hud {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1320px);
  min-height: 96px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(72, 10, 10, 0.96), rgba(25, 6, 6, 0.97)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.015) 0,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 24px
    );
  border: 1px solid rgba(255, 90, 90, 0.22);
  display: flex;
  align-items: stretch;
  padding: 12px 16px;
  color: #f5f1eb;
  z-index: 5;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.hud::before {
  content: "PUBLIC FUNDS REALLOCATION SIM";
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 2px 8px;
  background: #120707;
  border: 1px solid rgba(255, 90, 90, 0.28);
  color: rgba(255, 214, 214, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hud-stars {
  width: 170px;
  min-height: 72px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(22, 34, 60, 0.95), rgba(10, 18, 36, 0.98));
  border: 1px solid rgba(120, 160, 255, 0.18);
  margin-right: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hud-stars::before {
  content: "★ ★ ★ ★ ★  ★ ★ ★ ★ ★";
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  letter-spacing: 4px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-metrics {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
}

.metric {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 8px 10px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.metric:first-child {
  border-left: none;
}

.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff5f0;
}

.metric-icon .icon-box {
  width: 38px;
  height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 220, 220, 0.78);
  line-height: 1.15;
}

.metric-sub {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255,255,255,0.68);
}

#budgetRemaining,
#budgetStart,
#potholeCount,
#potholeSpend,
#schoolCount,
#schoolSpend {
  font-variant-numeric: tabular-nums;
}

/* =============== CITY LIST ==================== */
.city-list {
  position: absolute;
  bottom: 40px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}

.city-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  cursor: default;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.city-item.active {
  background: rgba(31, 196, 91, 0.85);
  color: #ffffff;
}

.city-item .city-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
}

.city-item:not(.active) .city-dot {
  opacity: 0.5;
}

.city-item:hover {
  transform: translateX(2px);
  opacity: 1;
}

.city-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* =============== HOTSPOTS ===================== */
.hotspot {
  position: absolute;
  width: 65px;
  height: 65px;
  background: radial-gradient(
    rgba(255,255,255,0.95),
    rgba(170,200,255,0.45),
    rgba(120,160,255,0.25),
    transparent 70%
  );
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 45px rgba(150,180,255,0.85),
    0 0 95px rgba(150,180,255,0.65),
    0 0 160px rgba(150,180,255,0.35);
  animation: pulse 2s infinite ease-in-out;
  transform: translate(-50%, -50%);
}

.hotspot-housing.clicked,
.hotspot-alt.clicked,
.hotspot-alt2.clicked,
.hotspot-alt3.clicked {
  opacity: 0.35;
  filter: saturate(0.6) brightness(0.7);
  pointer-events: none;
}

.page-LA .hotspot-pothole { top: 80%; left: 53%; }
.page-LA .hotspot-school  { top: 43%; left: 80%; }
.page-LA .hotspot-housing { top: 62%; left: 30%; }
.page-LA .hotspot-alt     { top: 51%; left: 35%; }
.page-LA .hotspot-alt2    { top: 55%; left: 89%; }
.page-LA .hotspot-alt3    { top: 87%; left: 67%; }

.page-TX .hotspot-pothole { top: 68%; left: 70%; }
.page-TX .hotspot-school  { top: 54%; left: 80%; }
.page-TX .hotspot-housing { top: 42%; left: 18%; }
.page-TX .hotspot-alt     { top: 51%; left: 35%; }
.page-TX .hotspot-alt2    { top: 55%; left: 89%; }
.page-TX .hotspot-alt3    { top: 40%; left: 40%; }

.page-NY .hotspot-pothole { top: 68%; left: 50%; }
.page-NY .hotspot-school  { top: 35%; left: 20%; }
.page-NY .hotspot-housing { top: 52%; left: 5%; }
.page-NY .hotspot-alt    { top: 75%; left: 89%; }
.page-NY .hotspot-alt2    { top: 40%; left: 40%; }

.page-GA .hotspot-pothole { top: 68%; left: 50%; }
.page-GA .hotspot-school  { top: 48%; left: 72%; }
.page-GA .hotspot-housing { top: 62%; left: 35%; }

.page-WY .hotspot-pothole { top: 86%; left: 60%; }
.page-WY .hotspot-school  { top: 70%; left: 65%; }
.page-WY .hotspot-housing { top: 52%; left: 35%; }
.page-WY .hotspot-alt { top: 52%; left: 85%; }


.page-OK .hotspot-pothole { top: 68%; left: 50%; }
.page-OK .hotspot-school  { top: 48%; left: 72%; }
.page-OK .hotspot-housing { top: 62%; left: 35%; }

.hotspot-pothole { top: 69%; left: 52%; }
.hotspot-school  { top: 43%; left: 80%; }
.hotspot-housing { top: 62%; left: 30%; }

@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -50%) scale(1.25); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* =============== SESSION MONEY SPLASH ================= */
.money-rain-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.money-emoji {
  position: absolute;
  left: 50%;
  top: -30px;
  font-size: 28px;
  will-change: transform, opacity;
  animation: moneySplash var(--dur, 1.5s) ease-out forwards;
}

@keyframes moneySplash {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform:
      translate3d(var(--drift-x, 0px), 115vh, 0)
      rotate(var(--rot, 180deg))
      scale(1);
    opacity: 0;
  }
}

/* =============== TOOLTIP ====================== */
.tooltip {
  position: fixed;
  max-width: 320px;
  background:
    linear-gradient(180deg, rgba(248,244,236,0.97), rgba(235,229,220,0.96));
  border-radius: 6px;
  border: 1px solid rgba(20,20,20,0.12);
  padding: 14px 16px 14px;
  font-size: 15px;
  line-height: 1.45;
  color: #171717;
  box-shadow:
    0 18px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 999;
  text-align: left;
}

.tooltip::before {
  content: attr(data-tooltip-label);
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b1d1d;
}

.tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -110%);
}

.tooltip strong {
  color: #0a8b3a;
}

.tooltip .negative {
  color: #c52b28;
  font-weight: 700;
}

.tooltip-tail {
  position: fixed;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid rgba(235,229,220,0.96);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.tooltip-tail.visible {
  opacity: 1;
}

/* =============== SESSION TRIGGER BUTTON ================= */
.session-trigger-button {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #d51919;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

/* =============== FLAG BACKGROUND ================= */
.gradient-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #030407;
}

.flag-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 58%, rgba(0,0,0,0.72) 100%);
}

.flag-layer,
.flag-stars,
.flag-grain {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 220ms ease-out;
}

.flag-navy {
  background:
    radial-gradient(ellipse at 22% 58%,
      rgba(16, 26, 92, 0.72) 0%,
      rgba(8, 18, 58, 0.68) 22%,
      rgba(4, 8, 24, 0.52) 50%,
      transparent 76%);
  filter: blur(56px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.flag-red {
  background:
    radial-gradient(ellipse at 72% 56%,
      rgba(255, 220, 214, 0.42) 0%,
      rgba(255, 112, 96, 0.42) 18%,
      rgba(217, 16, 16, 0.78) 40%,
      rgba(133, 11, 11, 0.43) 62%,
      transparent 84%);
  filter: blur(62px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.flag-cyan {
  background:
    radial-gradient(ellipse at 46% 72%,
      rgba(245, 250, 255, 0.22) 0%,
      rgba(48, 50, 255, 0.87) 22%,
      rgba(60, 15, 244, 0.08) 38%,
      transparent 70%);
  filter: blur(64px);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.flag-stars {
  filter: blur(18px);
  opacity: 0.34;
  mix-blend-mode: screen;
}

.flag-star {
  position: absolute;
  background: rgba(245, 250, 255, 0.85);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.star-1 {
  width: 22vw;
  height: 22vw;
  max-width: 300px;
  max-height: 300px;
  min-width: 140px;
  min-height: 140px;
  left: 2%;
  top: 6%;
  transform: rotate(-10deg);
}

.star-2 {
  width: 14vw;
  height: 14vw;
  max-width: 180px;
  max-height: 180px;
  min-width: 90px;
  min-height: 90px;
  right: 8%;
  top: 12%;
  transform: rotate(14deg);
}

.star-3 {
  width: 16vw;
  height: 16vw;
  max-width: 220px;
  max-height: 220px;
  min-width: 110px;
  min-height: 110px;
  right: 10%;
  bottom: 12%;
  transform: rotate(-18deg);
}

.star-4 {
  width: 14vw;
  height: 14vw;
  max-width: 180px;
  max-height: 180px;
  min-width: 90px;
  min-height: 90px;
  left: 8%;
  bottom: 8%;
  transform: rotate(8deg);
}

.flag-grain {
  inset: -10%;
  opacity: 0.16;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(rgba(255,255,255,0.75) 0.7px, transparent 0.9px),
    radial-gradient(rgba(204, 2, 2, 0.73) 0.7px, transparent 0.9px),
    radial-gradient(rgba(2, 0, 252, 0.93) 0.7px, transparent 0.9px);
  background-size: 4px 4px, 8px 8px, 10px 10px;
  background-position: 0 0, 2px 3px, 5px 1px;
  filter: contrast(130%);
}

.gradient-page > *:not(.flag-bg) {
  position: relative;
  z-index: 3;
}

/* =============== SESSION PAGE ================= */
.session-summary-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #f4efe8;
  padding: 72px 24px 88px;
  text-align: center;
}

.session-inner {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 0 auto;
}

.session-kicker {
  margin: 0 0 12px;
  color: rgba(255, 220, 220, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.session-summary-page h1 {
  margin: 0 0 18px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: #fff7f2;
}

.session-summary-intro {
  max-width: 680px;
  margin: 0 auto 34px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.84);
}

.session-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.session-card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 22px;
  text-align: left;
  background: rgba(10, 10, 10, 0.48);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 22px 22px 0 0;
}

.session-card-label {
  margin-bottom: 12px;
  color: rgba(255, 220, 220, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.1;
  color: #fff7f2;
  letter-spacing: -0.02em;
}

.session-card p {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255,255,255,0.84);
}

.session-card strong {
  color: #ffffff;
}

.session-total {
  margin-top: 36px;
}

.session-total-label {
  margin-bottom: 10px;
  color: rgba(255, 220, 220, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#session-total-spent {
  font-size: clamp(54px, 8vw, 88px);
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.05em;
}

.session-actions {
  margin-top: 28px;
}

.session-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d81e1e, #8f1515);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  transition: transform 180ms ease, filter 180ms ease;
}

.session-next:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* =============== FINAL PAGE ================= */
.final-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f4efe8;
  padding: 72px 24px 88px;
}

.final-inner,
.final-shell {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.final-kicker {
  margin: 0 0 14px;
  color: rgba(255, 220, 220, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.final-headline {
  margin: 0 auto 22px;
  max-width: 50ch;
  color: #fffaf5;
  font-size: clamp(42px, 2vw, 75px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.final-copy {
  max-width: 640px;
  margin: 0 auto 30px;
  color: rgba(244, 239, 232, 0.88);
  font-size: 20px;
  line-height: 1.55;
}

.final-total-card,
.final-comparison-card,
.final-panel {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.48);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}

.final-total-card::before,
.final-comparison-card::before,
.final-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px 20px 0 0;
}

.final-total-label,
.final-comparison-label,
.final-label {
  margin-bottom: 10px;
  color: rgba(255, 220, 220, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-total-number,
#final-total-spent {
  color: #ffffff;
  font-size: clamp(54px, 8vw, 88px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.final-comparison-copy,
.final-remaining-copy,
.final-closing {
  color: rgba(244, 239, 232, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.final-remaining-copy {
  margin-top: 10px;
}

.final-page strong,
#final-start-budget,
#final-percent-spent,
#final-budget-remaining {
  color: #ffffff;
}

.final-actions {
  margin-top: 28px;
  text-align: center;
}

.final-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d81e1e, #8f1515);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  transition: transform 180ms ease, filter 180ms ease;
}

.final-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* =============== FINAL PAGE DATA VISUAL ================= */
.final-visual-card {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.48);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.final-visual-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.final-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-donut {
  --p: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    conic-gradient(
      #ef2a1d 0 calc(var(--p) * 1%),
      rgba(255,255,255,0.12) calc(var(--p) * 1%) 100%
    );
  position: relative;
  box-shadow:
    0 0 24px rgba(239, 42, 29, 0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}

.final-donut::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: rgba(8,8,8,0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.final-donut-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.final-donut-percent {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.final-donut-label {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

.final-bar-wrap {
  width: 100%;
}

.final-bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 1.25;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

.final-bar-label-row-bottom {
  margin-top: 10px;
  margin-bottom: 0;
}

.final-bar-label-row span:last-child {
  color: #fff;
  font-weight: 700;
}

.final-bar {
  width: 100%;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.final-bar-civic {
  width: 0%;
  background: linear-gradient(90deg, #ef2a1d, #ff6a4f);
  transition: width 1400ms cubic-bezier(.16,.84,.44,1);
}

.final-bar-deploy {
  width: 100%;
  background: rgba(255,255,255,0.14);
  transition: width 1400ms cubic-bezier(.16,.84,.44,1);
}

@media (max-width: 720px) {
  .final-visual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .final-donut {
    width: 160px;
    height: 160px;
  }
}

/* =============== EMAIL PAGE ================= */
.email-page {
  min-height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.email-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.email-kicker {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}

.email-page h1 {
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
  margin: 0 0 20px;
  color: #fff7f2;
}

.email-copy {
  font-size: 20px;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.86);
}

/* email button */

.email-btn{
  background:#e21d1d;
  color:white;
  border:none;

  padding:16px 34px;

  border-radius:999px;

  font-weight:700;
  font-size:16px;
  letter-spacing:.05em;

  cursor:pointer;

  transition:all .2s ease;
}

.email-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 25px rgba(0,0,0,.35);
}



/* senator lookup container */

.lookup-container{
  display:flex;
  align-items:center;
  gap:10px;

  padding:6px;

  border-radius:999px;

  background:rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);

  border:1px solid rgba(255,255,255,.35);

  margin-top:16px;
}



/* zip input */

.lookup-input{
  border:none;
  outline:none;

  padding:12px 16px;

  border-radius:999px;

  background:rgba(255,255,255,.35);
  color:#000;

  font-size:15px;

  width:160px;
}

.lookup-input::placeholder{
  color:#555;
}



/* find button */

.lookup-btn{
  border:none;

  padding:12px 18px;

  border-radius:999px;

  background:black;
  color:white;

  font-weight:600;
  font-size:14px;

  cursor:pointer;
}

.lookup-btn:hover{
  transform:translateY(-1px);
}

/* =============== RESPONSIVE ================= */
@media (max-width: 800px) {
  .session-summary-grid {
    grid-template-columns: 1fr;
  }

  .session-card {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .final-page,
  .session-summary-page {
    padding-top: 56px;
  }

  .final-copy,
  .final-closing,
  .final-comparison-copy,
  .final-remaining-copy,
  .session-summary-intro,
  .session-card p,
  .email-copy {
    font-size: 17px;
  }

  .final-total-card,
  .final-comparison-card,
  .final-panel,
  .session-card {
    padding: 20px 18px 22px;
    border-radius: 16px;
  }
}

.city-link,
.hotspot,
.landing-cta,
.scroll-arrow,
.help-close,
.mobile-warning-card button,
.session-trigger-button {
  touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
  .landing-step,
  .landing-content.is-visible .landing-step,
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .scroll-arrow {
    animation: none;
  }

  .liquid-red,
  .liquid-blue,
  .liquid-white {
    animation: none;
    transition: none;
  }
}