/*
  ART DIRECTION — LOCKED
  Name: Heritage Campaign
  Structure: Lovable Ascendant layout rhythm
  Type: Bebas Neue (display) · Cinzel (labels) · DM Sans (body)
  Color: Navy deep/mid · Crimson (action) · Gold (labels only) · Cream/White (content)
  Accents: Gold = labels/eyebrows · Crimson = CTAs + key metrics · Parchment on navy
  Imagery: Flag hero + emblem only (no candidate photos yet)
  Conversion: Donate UI present; processor deferred
*/
:root {
  /* Spacing scale (8px) */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 6.5rem;

  /* Color system — Heritage Campaign */
  --navy-deep: #0a1224;
  --navy: #121c36;
  --navy-mid: #1a2744;
  --crimson: #c41e3a;
  --crimson-hot: #e0243a;
  --gold: #c9a24a;
  --gold-soft: #d4b56a;
  --gold-deep: #8f6b1f;
  --parchment: #f5f1e8;
  --cream: #f7f3eb;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #5a6478;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --line-light: rgba(245, 241, 232, 0.2);

  --gradient-crimson: linear-gradient(135deg, #e0243a 0%, #a01528 100%);
  --gradient-hero: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0.9) 0%,
    rgba(10, 18, 36, 0.64) 45%,
    rgba(10, 18, 36, 0.95) 100%
  );
  --shadow-sm: 0 4px 18px rgba(10, 18, 36, 0.06);
  --shadow: 0 18px 48px rgba(10, 18, 36, 0.11);
  --shadow-lg: 0 28px 64px rgba(10, 18, 36, 0.16);

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-ui: "Cinzel", "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --max: 68rem;
  --max-wide: 80rem;
  --max-intro: 48rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --label-size: 0.78rem;
  --label-track: 0.22em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.shell-wide {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
}

.eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: var(--label-track);
  font-size: var(--label-size);
  font-weight: 700;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--crimson);
  flex: none;
}

.row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

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

.btn-primary {
  background-image: var(--gradient-crimson);
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(196, 30, 58, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border: 1.5px solid rgba(245, 241, 232, 0.4);
  padding: 1rem 2.25rem;
  font-size: 1.2rem;
}

.btn-ghost:hover {
  background: rgba(245, 241, 232, 0.08);
  border-color: rgba(245, 241, 232, 0.75);
}

.btn-donate {
  background-image: var(--gradient-crimson);
  color: #fff;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.btn-block {
  width: 100%;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 18, 36, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.9;
  font-size: 1.15rem;
  color: var(--parchment);
}

.brand-name.dark {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: rgba(245, 241, 232, 0.65);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(245, 241, 232, 0.25);
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--parchment);
}

/* HERO */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--parchment);
  min-height: min(92svh, 52rem);
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--gradient-hero);
}

.hero-inner {
  position: relative;
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
  padding: var(--s9) 0;
}

.hero-copy {
  max-width: 46rem;
  animation: rise 0.8s var(--ease) both;
}

.hero .eyebrow {
  color: var(--gold);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
}

.hero .dot {
  background: var(--crimson);
}

.hero-title {
  margin: var(--s5) 0 0;
  font-size: clamp(3.5rem, 12vw, 8rem);
  color: var(--parchment);
}

.hero-title span {
  color: var(--crimson-hot);
}

.hero-lede {
  margin: var(--s6) 0 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.82);
  font-weight: 400;
}

.hero-actions {
  margin-top: var(--s7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* TICKER — larger type to match Lovable visual weight */
.ticker {
  overflow: hidden;
  background: var(--crimson);
  padding: 1rem 0;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
  white-space: nowrap;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.ticker-group i {
  font-style: normal;
  font-size: 0.9em;
  opacity: 0.55;
  flex-shrink: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* SECTIONS */
.section {
  padding: var(--s9) 0;
}

.section.cream {
  background: var(--cream);
}

.section.white {
  background: var(--white);
}

.section.navy {
  background: var(--navy);
  color: var(--parchment);
}

.section-intro {
  max-width: var(--max-intro);
}

.section-kicker {
  color: var(--gold-deep);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
}

.section.cream .dot,
.section.white .dot {
  background: var(--crimson);
}

.section.navy .section-kicker,
.section.navy .eyebrow {
  color: var(--gold);
  font-size: var(--label-size);
}

.section.navy .dot {
  background: var(--gold);
}

.section-title {
  margin: 1.15rem 0 0;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 0.94;
  color: inherit;
}

.section.cream .section-title,
.section.white .section-title {
  color: var(--ink);
}

.section-lede {
  margin: 1.35rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
}

.section.navy .section-lede {
  color: rgba(245, 241, 232, 0.72);
}

.source {
  margin: var(--s5) 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46rem;
}

/* STATS */
.stat-grid {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.stat-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--s6) var(--s5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stat-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--crimson);
}

.stat-grid p {
  margin: var(--s4) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* CHART */
.chart-card {
  margin-top: var(--s6);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.chart-tabs button {
  flex: 1;
  min-width: 10rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.chart-tabs button:last-child {
  border-right: 0;
}

.chart-tabs button.is-active {
  background: var(--navy-deep);
  color: var(--parchment);
}

.chart-body {
  padding: var(--s6);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 15rem;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.bar-col i {
  display: block;
  width: 100%;
  max-width: 3.5rem;
  border-radius: 3px 3px 0 0;
  background: var(--gradient-crimson);
  min-height: 6px;
  transition: height 0.75s var(--ease);
}

.bar-col strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1;
}

.bar-col span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.chart-caption {
  margin: var(--s5) 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* GROWTH */
.split {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: var(--s7);
  align-items: end;
}

.mini-stats {
  display: grid;
  gap: var(--s3);
}

.mini-stats div {
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid var(--line-light);
  padding: var(--s5);
}

.mini-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--crimson-hot);
  line-height: 1;
}

.mini-stats span {
  color: rgba(245, 241, 232, 0.6);
  font-size: 0.92rem;
}

.headline-grid {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.headline-grid article {
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid var(--line-light);
  padding: var(--s5);
  min-height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.headline-grid article:hover {
  border-color: rgba(201, 162, 74, 0.45);
  background: rgba(245, 241, 232, 0.06);
}

.headline-grid span {
  font-family: var(--font-ui);
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.headline-grid h3 {
  margin: 0.8rem 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.1;
}

.headline-grid p {
  margin: 0;
  color: rgba(245, 241, 232, 0.65);
  font-size: 0.95rem;
}

/* CITIES */
.invasion-layout {
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--s4);
}

.city-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.city-btn {
  border: 1px solid var(--line);
  background: var(--white);
  text-align: left;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  transition: 0.15s ease;
}

.city-btn:hover,
.city-btn.is-active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--parchment);
}

.city-btn em {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  font-weight: 700;
}

.city-btn.is-active em,
.city-btn:hover em {
  color: var(--gold);
}

.city-panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--s6);
}

.city-top {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}

.city-panel h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.threat {
  text-align: right;
}

.threat .eyebrow {
  color: var(--gold-deep);
}

.threat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--crimson); /* key metric */
  line-height: 1;
}

.slider-card .source {
  color: var(--muted);
}

/* Accent rules (locked):
   - Gold/gold-deep = labels & eyebrows only
   - Crimson = CTAs, ticker, hero brand span, key metrics
   - Parchment = body on navy, countdown numerals
*/

.city-stats {
  margin: var(--s5) 0 var(--s4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.city-stats div {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.9rem;
}

.city-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--crimson);
}

.city-stats span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

#cityBlurb {
  color: var(--muted);
  margin: 0 0 var(--s4);
}

.city-bars {
  display: grid;
  gap: 0.7rem;
}

.city-bar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  gap: 0.65rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.city-bar-track {
  height: 0.45rem;
  background: #ebe6db;
  overflow: hidden;
}

.city-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy-mid), var(--crimson-hot));
  transition: width 0.7s var(--ease);
}

/* H1B */
.h1b-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s7);
  align-items: start;
}

.strike-list {
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.strike-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
}

.strike-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--crimson);
}

.strike-list strong {
  color: var(--ink);
}

.slider-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--s6);
}

.slider-card h3 {
  margin: 0 0 var(--s5);
  font-size: 1.65rem;
  color: var(--ink);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.slider-label strong {
  color: var(--ink);
  font-size: 0.9rem;
}

#h1bSlider {
  width: 100%;
  accent-color: var(--crimson);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.3rem;
}

.slider-results {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.slider-results div {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: var(--s4);
}

.slider-results strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--crimson);
  line-height: 1;
}

.slider-results span {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* PLANKS */
.planks {
  margin-top: var(--s7);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.plank + .plank {
  border-top: 1px solid var(--line);
}

.plank-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s4);
  align-items: center;
  text-align: left;
  padding: 1.25rem 1.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.plank-btn:hover {
  background: rgba(10, 18, 36, 0.02);
}

.plank-btn .num {
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  color: var(--gold-deep); /* label, not action */
  font-size: 0.8rem;
  font-weight: 700;
}

.plank-btn .title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.plank-btn .plus {
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}

.plank.is-open .plus {
  transform: rotate(45deg);
}

.plank-body {
  display: none;
  padding: 0 1.4rem 1.35rem 4rem;
  color: var(--muted);
  max-width: 46rem;
}

.plank.is-open .plank-body {
  display: block;
}

/* CANDIDATE */
.candidate-section {
  background: var(--navy);
  border-block: 1px solid var(--navy-deep);
  padding: var(--s9) 0;
  color: var(--parchment);
}

.candidate-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s7);
  align-items: center;
}

.candidate-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.candidate-emblem {
  width: min(100%, 17rem);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.candidate-photo,
.candidate-badge {
  display: none;
}

.candidate-kicker {
  color: var(--gold);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
}

.candidate-name {
  margin: var(--s4) 0 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  color: var(--parchment);
  line-height: 0.94;
}

.candidate-body {
  margin: var(--s5) 0 0;
  max-width: 40rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.76);
}

.candidate-body + .candidate-body {
  margin-top: var(--s4);
}

.candidate-body strong {
  color: var(--parchment);
}

.candidate-clock {
  margin-top: var(--s7);
}

.candidate-clock-label {
  color: rgba(245, 241, 232, 0.5);
}

.countdown {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.countdown div {
  border: 1px solid var(--line-light);
  background: rgba(245, 241, 232, 0.04);
  padding: 1rem 0.4rem;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--parchment);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  font-weight: 700;
}

/* JOIN */
.join-section {
  background: var(--navy-deep);
  padding: var(--s9) 0;
  color: var(--parchment);
}

.join-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s8);
  align-items: start;
}

.join-intro {
  max-width: 34rem;
}

.join-title {
  margin: var(--s4) 0 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  color: var(--parchment);
  line-height: 0.94;
}

.join-lede {
  margin: var(--s5) 0 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.7);
}

.join-form {
  margin-top: var(--s7);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .join-form {
    flex-direction: row;
  }

  .join-form input[name="email"] {
    flex: 1;
  }

  .join-form input[name="zip"] {
    width: 7rem;
    flex: none;
  }
}

.join-form input {
  width: 100%;
  border: 1px solid rgba(245, 241, 232, 0.28);
  background: rgba(245, 241, 232, 0.05);
  color: var(--parchment);
  padding: 0.95rem 1rem;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.join-form input:focus {
  border-color: var(--gold);
}

.join-form input::placeholder {
  color: rgba(245, 241, 232, 0.42);
}

.join-form .btn-primary {
  flex: none;
  padding-inline: 1.75rem;
}

.form-ok {
  margin-top: 0.75rem;
  color: #5be0a5;
  font-weight: 600;
}

.action-tiles {
  margin-top: var(--s7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
}

.action-tiles article {
  background: var(--navy-deep);
  padding: var(--s5);
}

.action-tiles h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--parchment);
}

.action-tiles p {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.58);
}

.donate-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid transparent;
  outline: 3px solid rgba(245, 241, 232, 0.12);
  box-shadow: var(--shadow-lg);
  padding: var(--s6);
}

.donate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.donate-kicker {
  color: var(--gold-deep);
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
}

.pill {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.donate-title {
  margin: 0.7rem 0 0;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  color: var(--navy-deep);
}

.amounts {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.amounts button {
  border: 1.5px solid var(--navy-deep);
  background: transparent;
  color: var(--navy-deep);
  padding: 0.8rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.15s ease;
}

.amounts button.is-active,
.amounts button:hover {
  background: var(--navy-deep);
  color: var(--parchment);
}

#otherAmt {
  margin-top: 0.5rem;
  width: 100%;
  border: 1.5px solid var(--navy-deep);
  background: transparent;
  color: var(--navy-deep);
  padding: 0.85rem 1rem;
  outline: none;
  font-family: var(--font-body);
}

#otherAmt:focus {
  border-color: var(--crimson);
}

#otherAmt::placeholder {
  color: var(--muted);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: var(--s4);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--crimson);
  margin-top: 0.1rem;
  flex: none;
}

.donate-card .btn-primary {
  margin-top: var(--s5);
  width: 100%;
}

.donate-note {
  margin: var(--s4) 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: var(--s8) 0 var(--s7);
}

.stripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--crimson) 0 32%,
    var(--white) 32% 36%,
    var(--navy-deep) 36% 68%,
    var(--white) 68% 72%,
    var(--gold) 72% 100%
  );
}

.footer-row {
  margin-top: var(--s7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s5);
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-row nav a {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.footer-row nav a:hover {
  color: var(--gold-deep);
}

.footer-legal {
  margin: var(--s6) 0 0;
  max-width: 44rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--navy-deep);
  color: var(--parchment);
  border: 1px solid var(--gold);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  font-family: var(--font-body);
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 18, 36, 0.98);
    border-bottom: 1px solid rgba(245, 241, 232, 0.1);
    padding: 0.4rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .stat-grid,
  .headline-grid,
  .split,
  .invasion-layout,
  .h1b-layout,
  .candidate-grid,
  .join-grid,
  .action-tiles,
  .city-stats {
    grid-template-columns: 1fr;
  }

  .city-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .city-btn {
    min-width: 9.5rem;
  }

  .plank-body {
    padding-left: 1.4rem;
  }

  .join-form {
    flex-direction: column;
  }

  .join-form input[name="zip"] {
    width: 100%;
  }

  .candidate-photo {
    max-width: none;
    margin-inline: 0;
  }

  .candidate-emblem {
    width: min(100%, 14rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Keep campaign ticker moving like Lovable */
  .ticker-track {
    animation: ticker 38s linear infinite !important;
  }
}
