/* ============================================================
   Let VH Vote — petition landing page
   Self-contained CSS (no external fonts or frameworks)
   ============================================================ */

:root {
  /* Palette */
  --navy-900: #0b2238;
  --navy-800: #102a43;
  --navy-700: #163a5f;
  --blue:     #2c6fbf;
  --gold:     #f4b740;
  --gold-600: #d99a1c;
  --orange:   #dd7a2b;
  --red:      #c0271f;
  --red-700:  #9b1c1c;
  --red-bg:   #fdf2f1;

  --ink:      #1b2430;
  --muted:    #51606e;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f4f6f9;
  --white:    #ffffff;

  --maxw: 1080px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 34, 56, .08);
  --shadow-md: 0 10px 30px rgba(11, 34, 56, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn-cta {
  background: var(--gold);
  color: var(--navy-900);
  font-size: clamp(1.05rem, 1rem + 1vw, 1.5rem);
  padding: 1.05rem 2rem;
  box-shadow: 0 8px 24px rgba(244, 183, 64, .38);
  text-align: center;
}
.btn-cta:hover { background: #ffc94d; box-shadow: 0 12px 30px rgba(244, 183, 64, .5); }
.btn-cta-icon { display: inline-flex; }

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
  padding: .5rem 1.1rem;
  font-size: .95rem;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  padding: .6rem 1.1rem;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-sm { font-size: .95rem; }
.btn-block { width: 100%; }

/* Compact gold header button (btn-cta is intentionally oversized for hero use). */
.header-cta {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  padding: .5rem 1.15rem;
  font-size: .95rem;
  box-shadow: 0 6px 18px rgba(244, 183, 64, .35);
}
.header-cta:hover { background: #ffc94d; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-vh { color: var(--gold); }

/* ----------------------------- Hero ----------------------------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--gold-600); }

.hero {
  background:
    radial-gradient(1200px 480px at 50% -10%, rgba(44, 111, 191, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 2rem + 6vw, 5.5rem) 0 clamp(2.5rem, 2rem + 5vw, 4.5rem);
  text-align: center;
}
.hero-inner { max-width: 760px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 5.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1rem + .6vw, 1.3rem);
  color: #d7e3f1;
  max-width: 620px;
  margin: 0 auto 1.4rem;
}
.hero-goal {
  display: inline-block;
  font-size: clamp(1rem, .92rem + .45vw, 1.18rem);
  color: #c3d3e6;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .72rem 1.5rem;
  margin-bottom: 2rem;
}
.hero-goal strong { color: var(--white); }

.hero-rally {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #e7eef6;
}
.hero-rally strong { color: var(--white); }

.cta-note {
  margin-top: .9rem;
  font-size: .95rem;
  color: #aebfd2;
}

/* ----------------------------- Warning ----------------------------- */
.warning {
  display: flex;
  gap: 1rem;
  text-align: left;
  background: var(--red-bg);
  border: 2px solid var(--red);
  border-left-width: 8px;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 2.25rem auto 0;
  max-width: 640px;
  box-shadow: var(--shadow-md);
  color: #43200f;
}
.warning-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.warning-title {
  font-weight: 800;
  color: var(--red-700);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .35rem;
  font-size: 1.02rem;
}
.warning-body p { font-size: 1rem; line-height: 1.55; }
.warning-body p + p { margin-top: .55rem; }

/* ----------------------------- Event callout (in hero) ----------------------------- */
.event {
  display: flex;
  gap: 1rem;
  text-align: left;
  background: rgba(244, 183, 64, .12);
  border: 1px solid rgba(244, 183, 64, .45);
  border-left: 8px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem auto 0;
  max-width: 640px;
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.event-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.event-body { flex: 1; min-width: 0; }
.event-body p { font-size: 1rem; line-height: 1.55; }
.event-body p + p { margin-top: .45rem; }
.event-title {
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.02rem;
  margin-bottom: .35rem;
}
.event-when { font-size: 1.1rem; color: var(--white); }
.event-when strong { color: var(--white); }
.event-where { color: #e7eef7; font-weight: 600; }
.event-detail { color: #c3d3e6; font-size: .96rem; }
.event-actions { margin-top: .8rem; }
.event .btn-outline { color: var(--gold); border-color: var(--gold); }
.event .btn-outline:hover { background: var(--gold); color: var(--navy-900); }

/* ----------------------------- Sections ----------------------------- */
.section { padding: clamp(2.75rem, 2rem + 5vw, 4.75rem) 0; }
/* Offset in-page anchor jumps (e.g. #signup) so the sticky 64px header doesn't clip the target. */
.section[id], main[id] { scroll-margin-top: 44px; }
.section-title {
  font-size: clamp(1.7rem, 1.3rem + 2.4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .75rem;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.4rem;
  font-size: 1.08rem;
}

/* ----------------------------- Steps ----------------------------- */
.steps-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* ----------------------------- Return instructions ----------------------------- */
.return-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.deadline-card { border-top-color: var(--red); }
.info-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .5rem;
}
.info-big { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); margin-bottom: .6rem; }
.info-address {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: .75rem;
}
.info-detail { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.info-detail:last-child { margin-bottom: 0; }
.dropbox + .dropbox { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.dropbox .info-address { margin-bottom: .35rem; }
.dropbox-note { font-size: .9rem; color: var(--muted); font-style: italic; margin: 0 0 .65rem; }

.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  background: #eef6ff;
  border: 1px solid #cfe2f7;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.callout-icon { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.callout p { font-size: 1.05rem; }
.walk-note { background: #fff8e8; border-color: #f1d79a; }
.walk-note .callout-icon { color: var(--gold-600); }
.callout-body { flex: 1; min-width: 0; }
.callout-action { margin-top: .9rem; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.callout-cite { display: block; margin-top: .45rem; font-size: .82rem; color: var(--muted); }

/* ----------------------------- The Math ----------------------------- */
.math-section { background: var(--navy-900); color: var(--white); }
.math-section .section-title { color: var(--white); }
.math-section .section-lead { color: #c3d3e6; }

/* What the City Did NOT Study — same dark theme as The Math so the
   .study-callout family below works without modification. The white
   .household-section between them provides visual separation. */
.study-section { background: var(--navy-900); color: var(--white); }
.study-section .section-title { color: var(--white); }
.study-section .section-lead { color: #c3d3e6; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}
.stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
  color: var(--white);
}
.stat-label { font-weight: 700; font-size: 1.02rem; margin-bottom: .2rem; }
.stat-sub { color: #a8bbd1; font-size: .9rem; }

.stat-primary { background: rgba(244, 183, 64, .14); border-color: rgba(244, 183, 64, .5); }
.stat-primary .stat-num { color: var(--gold); }
.stat-danger { background: rgba(192, 39, 31, .16); border-color: rgba(224, 96, 88, .55); }
.stat-danger .stat-num { color: #ff7a6e; }

.you-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
  background: linear-gradient(180deg, #ffd76a, var(--gold));
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem;
  margin: 0 auto 2.5rem;
  max-width: 640px;
  box-shadow: var(--shadow-md);
}
.you-callout-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 800;
}
.you-callout-big {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
}
.you-callout-sub { font-size: 1.05rem; font-weight: 600; max-width: 30ch; }

/* Interest, in plain terms */
.interest-block { max-width: 880px; margin: 0 auto 2.25rem; }
.interest-h {
  text-align: center;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.repay-bar {
  display: flex;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
}
.repay-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  padding: 0 .5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.repay-build { background: var(--blue); }
.repay-int   { background: var(--red); }
.repay-caption {
  text-align: center;
  color: #e7eef7;
  font-size: 1.08rem;
  margin: 1rem auto 2rem;
  max-width: 660px;
}
.repay-caption strong { color: var(--gold); }

.analogy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.analogy {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
}
.analogy-big {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: .5rem;
  line-height: 1.15;
}
.analogy p:last-child { color: #d7e3f1; font-size: .98rem; }
.analogy strong { color: var(--white); }

.explainer {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 1.1rem;
}
.explainer p { color: #d7e3f1; font-size: 1.08rem; }
.explainer strong { color: var(--white); }

/* "About the city's own study" callout (in The Math, dark navy background) */
.study-callout {
  max-width: 880px;
  margin: 2.75rem auto 2.25rem;
  background: rgba(244, 183, 64, .07);
  border: 1px solid rgba(244, 183, 64, .35);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem;
}
.study-h {
  text-align: center;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.study-block + .study-block { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.study-block-h {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.study-block-body { color: #d7e3f1; font-size: 1.02rem; line-height: 1.55; }
.study-block-body strong { color: var(--white); }
.study-block-body em { color: #ffd76a; font-style: italic; }

.study-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.study-side {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: center;
}
.study-now { background: rgba(192, 39, 31, .14); border-color: rgba(224, 96, 88, .45); }
.study-tag {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: #a8bbd1;
}
.study-now .study-tag { color: #ffb5ae; }
.study-big {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.study-now .study-big { color: #ff7a6e; }
.study-detail { font-size: .9rem; color: #c3d3e6; }

.study-q {
  text-align: center;
  color: #e7eef7;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 1.3rem auto .6rem;
}
.study-q strong { color: var(--gold); }
.study-cite {
  text-align: center;
  font-size: .82rem;
  color: #a8bbd1;
  max-width: 660px;
  margin: 0 auto;
}

.report-link-wrap {
  display: grid;
  justify-items: center;
  gap: .7rem;
  margin-top: 2.25rem;
  text-align: center;
}
.report-link-wrap .btn-outline { color: var(--gold); border-color: var(--gold); }
.report-link-wrap .btn-outline:hover { background: var(--gold); color: var(--navy-900); }
.report-cite { color: #a8bbd1; font-size: .85rem; max-width: 540px; }

/* ----------------------------- Household cost ----------------------------- */
.household-section { background: var(--white); border-top: 1px solid var(--line); }
.hh-feature { text-align: center; max-width: 620px; margin: 0 auto 2rem; }
.hh-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .5rem;
}
.hh-big {
  font-size: clamp(2.8rem, 2rem + 4vw, 4rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
}
.hh-big span { font-size: .4em; font-weight: 700; color: var(--muted); }
.hh-sub { color: var(--muted); font-size: 1.1rem; margin-top: .6rem; }

.hh-table {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.hh-table th, .hh-table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.hh-table th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.hh-table td + td, .hh-table th + th { text-align: right; }
.hh-table .hh-avg { background: #fff8e8; font-weight: 700; }
.hh-table .hh-avg span { font-weight: 400; color: var(--muted); font-size: .9em; }
.hh-note {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 1.25rem auto 0;
  max-width: 560px;
}

/* Cost-ramp bar chart */
.timeline-h {
  text-align: center;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  font-weight: 800;
  color: var(--navy-900);
  margin: 2.75rem auto 1.5rem;
  max-width: 640px;
}
.ramp { max-width: 600px; margin: 0 auto; }
.ramp-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: end;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--navy-900);
}
.ramp-col { text-align: center; }
.ramp-amt { display: block; font-weight: 800; font-size: 1.2rem; color: var(--blue); margin-bottom: .4rem; }
.ramp-amt small { font-weight: 600; color: var(--muted); font-size: .62em; }
.ramp-bar { background: var(--blue); border-radius: 7px 7px 0 0; min-height: 12px; }
.ramp-col.mid .ramp-amt { color: var(--orange); }
.ramp-col.mid .ramp-bar { background: var(--orange); }
.ramp-col.peak .ramp-amt { color: var(--red); }
.ramp-col.peak .ramp-bar { background: var(--red); }
.ramp-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: .7rem;
}
.ramp-lab { text-align: center; }
.ramp-year { display: block; font-weight: 800; color: var(--navy-900); font-size: .98rem; }
.ramp-stage {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--blue);
  margin-top: .12rem;
}
.ramp-lab.mid .ramp-stage { color: var(--orange); }
.ramp-lab.peak .ramp-stage { color: var(--red); }
.ramp-desc { display: block; font-size: .84rem; color: var(--muted); margin-top: .12rem; }

/* Cost calculator (slider) */
.calc { max-width: 620px; margin: 0 auto 1.25rem; }
.calc-slider { margin-bottom: 1.5rem; }
.calc-label { display: block; text-align: center; font-size: 1.15rem; margin-bottom: 1rem; color: var(--navy-900); }
.calc-label strong { color: var(--blue); }
#homeval {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 5px; margin: 0;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--red));
  outline: none; cursor: pointer;
}
#homeval::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff;
  box-shadow: 0 2px 7px rgba(11, 34, 56, .35); cursor: pointer;
}
#homeval::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); border: 3px solid #fff;
  box-shadow: 0 2px 7px rgba(11, 34, 56, .35); cursor: pointer;
}
#homeval:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.calc-track { position: relative; }
.calc-axis { position: relative; margin-top: .55rem; min-height: 3.2rem; }
.calc-end { position: absolute; top: .15rem; font-size: .8rem; color: var(--muted); }
.calc-end-min { left: 0; }
.calc-end-max { right: 0; }
.calc-avg {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--navy-900);
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.15;
  text-align: center;
}
.calc-avg-arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--navy-900);
}
.calc-avg-text { white-space: nowrap; }
.calc-avg:hover .calc-avg-text { text-decoration: underline; }
.calc-out { display: grid; gap: 1rem; }
.calc-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1rem; text-align: center; }
.calc-card-main { background: linear-gradient(180deg, #ffd76a, var(--gold)); border-color: var(--gold-600); }
.calc-cardlabel { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }
.calc-card-main .calc-cardlabel { color: #6b4e0e; }
.calc-num { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; color: var(--navy-900); line-height: 1; }
.calc-num small { font-size: .42em; font-weight: 700; color: var(--muted); }

.framing-note {
  max-width: 620px;
  margin: 0 auto 1.25rem;
  background: #fff5f5;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: .9rem 1.15rem;
  font-size: 1rem;
  color: #43200f;
}
.framing-note strong { color: var(--red-700); }

/* Commons rollover callout (Household section, light background) */
.rollover-note {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  background: #fff8e8;
  border-left: 4px solid var(--gold-600);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  color: #3a2b07;
}
.rollover-note-h {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85rem;
  color: var(--gold-600);
  margin-bottom: .55rem;
}
.rollover-note p { font-size: 1rem; line-height: 1.55; }
.rollover-note p + p { margin-top: .65rem; }
.rollover-note strong { color: var(--navy-900); }
.rollover-note em { color: #3a2b07; font-style: italic; }
.rollover-cite {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .8rem;
}

/* ----------------------------- Learn More ----------------------------- */
.learn-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 920px; margin: 0 auto; }
.learn-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.learn-h {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gold);
}
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.learn-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  align-items: start;
}
.learn-list a::before { content: "\2192"; color: var(--gold-600); font-weight: 800; }
.learn-list a:hover { text-decoration: underline; }

/* ----------------------------- Timeline ----------------------------- */
.timeline-section { background: var(--white); border-top: 1px solid var(--line); }
.tl-legend { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0 0 1.9rem; font-size: .85rem; font-weight: 700; }
.tl-key { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); }
.tl-key::before { content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none; }
.tl-key-city::before { background: var(--navy-700); }
.tl-key-res::before { background: var(--gold); }
.timeline { list-style: none; max-width: 680px; margin: 0 auto; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 1.7rem 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--white); background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.tl-item.city .tl-dot { background: var(--navy-700); box-shadow: 0 0 0 2px var(--navy-700); }
.tl-meta { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-bottom: .2rem; }
.tl-date { font-weight: 800; color: var(--navy-900); }
.tl-who { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .12rem .5rem; border-radius: 999px; }
.tl-item.city .tl-who { background: #e4ecf5; color: var(--navy-700); }
.tl-item.residents .tl-who { background: #fbe7c2; color: var(--gold-600); }
.tl-headline { font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.tl-desc { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.tl-desc a { color: var(--gold-600); font-weight: 700; }
.tl-desc a:hover { text-decoration: underline; }
/* "Now" beacon: the active (last) dot subtly grows and pings a fading gold ring. */
.tl-item.now .tl-dot { animation: tl-beacon 2.4s ease-out infinite; }
@keyframes tl-beacon {
  0%   { transform: scale(1);    box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(244, 183, 64, .55); }
  60%  { transform: scale(1.13); box-shadow: 0 0 0 2px var(--gold), 0 0 0 13px rgba(244, 183, 64, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(244, 183, 64, 0); }
}
@media (prefers-reduced-motion: reduce) { .tl-item.now .tl-dot { animation: none; } }

/* Link under What Happens Next to the full cost page */
.steps-more { text-align: center; margin-top: 2rem; color: var(--muted); font-size: 1.05rem; }
.steps-more a { color: var(--gold-600); font-weight: 700; }
.steps-more a:hover { text-decoration: underline; }

/* the-numbers.html intro / context band */
.numbers-intro { background: var(--bg-alt); border-top: 1px solid var(--line); }
.numbers-back { margin-top: 1.4rem; }

/* ----------------------------- Email signup ----------------------------- */
.signup-section { background: var(--navy-900); color: var(--white); text-align: center; border-top: 1px solid var(--line); }
.signup-inner { max-width: 620px; margin-inline: auto; }
.signup-title { font-size: clamp(1.8rem, 1.4rem + 2.4vw, 2.7rem); font-weight: 800; color: var(--white); margin-bottom: .6rem; }
.signup-lead { color: #c3d3e6; font-size: 1.1rem; margin-bottom: 1.6rem; }
/* Custom signup form posts to the /api/subscribe Cloudflare Worker. Sits directly on
   the navy band: white inputs for legibility, gold submit via .btn-cta. */
.signup-form { max-width: 460px; margin-inline: auto; text-align: left; }
.signup-field { margin-bottom: 1rem; }
.signup-form label { display: block; font-weight: 700; color: var(--white); margin-bottom: .35rem; }
.signup-form .opt { font-weight: 400; color: #9fb3c8; }
.signup-form input[type="email"],
.signup-form input[type="text"] {
  width: 100%; padding: .8rem 1rem; font-size: 1.05rem;
  border: 1px solid #2b4a6b; border-radius: 10px;
  background: var(--white); color: var(--ink);
}
.signup-form input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.signup-form .btn-block { margin-top: .4rem; }
.signup-msg { margin-top: .8rem; min-height: 1.2em; color: #e7eef6; text-align: center; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------- Final CTA ----------------------------- */
.final-cta { background: var(--bg-alt); text-align: center; border-top: 1px solid var(--line); }
.final-inner { max-width: 620px; margin-inline: auto; }
.final-cta h2 { font-size: clamp(1.8rem, 1.4rem + 2.4vw, 2.7rem); font-weight: 800; margin-bottom: .6rem; }
.final-cta > .container > p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.cta-note-light { color: var(--muted); }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #b6c6da;
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-brand { color: var(--white); font-weight: 800; margin-bottom: .5rem; }
.footer-note { font-size: .92rem; max-width: 560px; margin-inline: auto; }
.site-footer a { color: #d6e4f4; text-decoration: underline; }
.site-footer a:hover { color: var(--white); }
.footer-disclaimer { margin-top: .7rem; font-size: .82rem; opacity: .85; }
.footer-disclaimer strong { color: #cfddec; }

/* ----------------------------- Sticky mobile CTA ----------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: .7rem 14px calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 34, 56, .96);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.mobile-cta .btn-cta { padding: .9rem 1rem; font-size: 1.05rem; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .return-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analogy-grid { grid-template-columns: 1fr; }
  .study-compare { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  .header-cta { display: none; }      /* sticky bar covers mobile CTA */
  .mobile-cta { display: block; }
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }  /* keep footer clear of the sticky CTA bar */
}

@media (max-width: 440px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn-cta { width: 100%; }
  .warning, .event { flex-direction: column; gap: .6rem; }
  .hh-table { font-size: .9rem; }
  .hh-table th, .hh-table td { padding: .55rem .4rem; }
}

/* ----------------------------- Motion / a11y ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
