:root {
  --yellow:    #F5C842;
  --orange:    #E8541A;
  --dark:      #1A1A18;
  --dark-soft: #252521;
  --cream:     #F7F3EC;
  --mid:       #6B6B60;
  --white:     #FFFFFF;
  --green:     #2D6A4F;
  --gray:      #8A8A82;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER BANNER ── */
.urgent-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.urgent-banner.passed { background: var(--green); }
.urgent-banner.signed { background: #1f4f3a; }
.urgent-banner.dead   { background: var(--gray); }
.urgent-banner.neutral { background: var(--dark); color: var(--yellow); }

.urgent-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

nav {
  background: var(--dark);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  color: var(--yellow);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--yellow); }

.nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange) !important; color: var(--white) !important; }

/* ── HERO (bill page) ── */
.hero {
  background: var(--dark);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-text {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  width: fit-content;
}

.hero-eyebrow.passed  { background: var(--green); }
.hero-eyebrow.signed  { background: #1f4f3a; }
.hero-eyebrow.dead    { background: var(--gray); }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--yellow);
  font-style: italic;
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 4px;
  width: fit-content;
  transition: transform 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.hero-visual {
  position: relative;
  background: var(--dark-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-date-card {
  background: var(--yellow);
  color: var(--dark);
  border-radius: 8px;
  padding: 28px 32px;
  position: relative;
  z-index: 2;
  text-align: center;
  width: 260px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.hero-date-card .month {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.hero-date-card .day {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--dark);
}

.hero-date-card .label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 8px;
  line-height: 1.4;
}

.hero-date-card .time-note {
  margin-top: 16px;
  background: var(--dark);
  color: var(--yellow);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── HOMEPAGE HERO ── */
.home-hero {
  background: var(--dark);
  color: var(--white);
  padding: 120px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -0.02em;
}

.home-hero h1 em { color: var(--yellow); font-style: italic; }

.home-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.home-hero .btn-primary { margin: 0 auto; }

/* ── BILL CARD (homepage / index) ── */
.bills-section {
  background: var(--white);
  padding: 80px 0;
}

.bill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.bill-card {
  display: block;
  background: var(--cream);
  border: 1.5px solid #E0DDD6;
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.bill-card:hover {
  border-color: var(--orange);
  transform: translateX(4px);
}

.bill-card-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  background: var(--orange);
  color: var(--white);
}

.bill-card-status.passed  { background: var(--green); }
.bill-card-status.signed  { background: #1f4f3a; }
.bill-card-status.dead    { background: var(--gray); }

.bill-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.bill-card p {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── SECTION COMMON ── */
section { padding: 80px 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* ── WHAT'S THE BILL ── */
.bill-section {
  background: var(--white);
  border-top: 4px solid var(--yellow);
}

.bill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.bill-intro p {
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.bill-intro a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.bill-intro a:hover { text-decoration: underline; }

.supporters {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--mid);
}

.supporters strong { color: var(--dark); }

.provisions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.provision-card {
  background: var(--cream);
  border-left: 3px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
}

.provision-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.provision-card p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ── BILL-SPECIFIC FEATURE SECTION (e.g., School Streets) ── */
.feature-section {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.feature-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 14vw;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.feature-text .section-title { color: var(--white); }
.feature-text .section-title em {
  color: var(--yellow);
  font-style: italic;
}

.feature-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.975rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.feature-text a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

.feature-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.rule-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.rule-text h5 {
  color: var(--yellow);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rule-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 !important;
}

.callout-note {
  margin-top: 28px;
  background: rgba(245, 200, 66, 0.12);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.callout-note strong { color: var(--yellow); }

/* ── HOW TO TESTIFY ── */
.testify-section { background: var(--cream); }

.testify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.testify-steps { counter-reset: steps; }

.step {
  counter-increment: steps;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  position: relative;
}

.step::before {
  content: counter(steps);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body h4 {
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
}

.step-body code {
  background: var(--dark);
  color: var(--yellow);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 700;
}

.testify-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-card {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 28px;
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.option-card:hover { border-color: var(--yellow); }

.option-card.best {
  border-color: var(--orange);
  position: relative;
}

.best-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.option-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.option-card p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 16px;
}

.option-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  transition: gap 0.15s;
}

.option-card .btn-link:hover { gap: 10px; }

.timing-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  padding: 32px 36px;
  margin-top: 40px;
}

.timing-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--yellow);
}

.timing-box p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ── CTA FOOTER ── */
.cta-section {
  background: var(--yellow);
  padding: 80px 0;
  text-align: center;
}

.cta-section .section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 700px;
  margin: 0 auto 28px;
}

.cta-section p {
  color: rgba(26,26,24,0.7);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 4px;
  transition: transform 0.15s, background 0.15s;
}

.btn-dark:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-outline-dark:hover { background: rgba(26,26,24,0.1); }

/* ── DRAFT TESTIMONY ── */
.draft-section {
  background: var(--white);
  border-top: 4px solid var(--green);
}

.draft-intro {
  max-width: 680px;
  margin-bottom: 40px;
}

.draft-intro p {
  color: var(--mid);
  font-size: 0.975rem;
  line-height: 1.75;
}

.draft-intro .section-title { color: var(--dark); }
.draft-intro .divider { background: var(--green); }

.draft-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: 2px solid #E0DDD6;
  flex-wrap: wrap;
}

.draft-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mid);
  padding: 10px 20px 12px;
  position: relative;
  bottom: -2px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.draft-tab:hover { color: var(--dark); }

.draft-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.draft-panels { margin-top: 28px; }

.draft-panel { display: none; }
.draft-panel.active { display: block; }

.draft-context {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #EDF4F0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--green);
  line-height: 1.55;
}

.draft-context strong { color: #1f4f3a; }

.draft-box {
  position: relative;
  background: var(--cream);
  border: 1.5px solid #D8D4CC;
  border-radius: 8px;
  overflow: hidden;
}

.draft-box textarea {
  width: 100%;
  min-height: 260px;
  padding: 24px 28px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--dark);
  resize: vertical;
}

.draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #D8D4CC;
  background: rgba(255,255,255,0.6);
}

.draft-hint {
  font-size: 0.78rem;
  color: var(--mid);
}

.draft-hint em {
  background: var(--yellow);
  color: var(--dark);
  font-style: normal;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.72rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.1s;
}

.copy-btn:hover { background: var(--green); transform: translateY(-1px); }
.copy-btn.copied { background: var(--green); }

.draft-note {
  margin-top: 16px;
  font-size: 0.825rem;
  color: var(--mid);
  line-height: 1.6;
}

.draft-note a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

/* ── FAQ ── */
.faq-section {
  background: var(--cream);
  border-top: 4px solid var(--orange);
}

.faq-intro { max-width: 680px; margin-bottom: 40px; }
.faq-intro .divider { background: var(--orange); }
.faq-intro p {
  color: var(--mid);
  font-size: 0.975rem;
  line-height: 1.75;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  border: 1.5px solid #E0DDD6;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq-item[open] { border-color: var(--orange); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--orange); }

.faq-body {
  padding: 0 22px 22px;
  color: var(--mid);
  font-size: 0.925rem;
  line-height: 1.7;
}

.faq-body p { margin-bottom: 10px; }
.faq-body p:last-child { margin-bottom: 0; }

.faq-body a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.faq-body a:hover { text-decoration: underline; }

/* ── PROSE (about, retro, markdown bodies) ── */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

.prose p { margin-bottom: 16px; color: var(--mid); }

.prose ul, .prose ol { margin: 0 0 16px 1.4em; }
.prose li { margin-bottom: 6px; color: var(--mid); }

.prose a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.prose a:hover { text-decoration: underline; }

.prose hr {
  border: none;
  border-top: 1px solid #D8D4CC;
  margin: 32px 0;
}

/* ── FOOTER ── */
footer {
  background: var(--dark-soft);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 28px 40px;
  font-size: 0.825rem;
  line-height: 1.6;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

footer a:hover { color: var(--yellow); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--yellow);
  margin: 20px 0 32px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow { animation-delay: 0.1s; }
.hero h1      { animation-delay: 0.2s; }
.hero-sub     { animation-delay: 0.3s; }
.btn-primary  { animation-delay: 0.4s; }
.btn-secondary { animation-delay: 0.45s; }

.hero-date-card { animation: fadeUp 0.7s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-text { padding: 60px 28px; }
  .bill-grid, .feature-inner, .testify-grid { grid-template-columns: 1fr; gap: 40px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  section { padding: 60px 0; }
}
