/* =====================================================================
   SAVE OAKLEYS FARM — campaign site styles
   Palette and type aligned with the main Oakleys Farm Group brand.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --meadow:        #1F4D34;
  --meadow-deep:   #163A27;
  --meadow-soft:   #D5E2D0;
  --bark:          #15110D;
  --oak-cream:     #F4ECE0;
  --linen:         #F7F2E8;
  --canvas:        #FAF7EE;
  --wheat:         #D9B679;
  --loam:          #6B5E54;
  --rust:          #B85C38;       /* warm CTA accent */
  --rust-deep:     #9A4A2C;
  --border:        #E8DFC8;
  --divider:       rgba(31,24,18,0.08);

  /* Type */
  --font-sans:  'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  32px;
  --sp-xl:  56px;
  --sp-2xl: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,18,14,0.06);
  --shadow-md: 0 6px 24px rgba(15,18,14,0.10);
  --shadow-lg: 0 18px 48px rgba(15,18,14,0.18);

  /* Layout */
  --header-h: 64px;
  --container-max: 1280px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bark);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--meadow); text-decoration: none; }
a:hover { text-decoration: underline; }
em { font-style: normal; font-family: var(--font-serif); font-weight: 400; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0 0 var(--sp-md); color: var(--bark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--sp-md); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--sp-lg); }
.container.narrow { max-width: 820px; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--meadow);
  margin: 0 0 var(--sp-md);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px; background: var(--meadow);
}
.eyebrow-light { color: var(--oak-cream); }
.eyebrow-light::before { background: var(--wheat); }

.section-head { margin-bottom: var(--sp-xl); }
.section-head.centred { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.centred .eyebrow { justify-content: center; }
.section-lead { font-size: 1.1rem; color: var(--loam); margin: 0; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--meadow);
  border-bottom: 1px solid var(--meadow-deep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--sp-md); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--oak-cream); }
.brand:hover { text-decoration: none; }
.brand-mark svg { display: block; }
.brand-name { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; line-height: 1; color: #ffffff; }
.brand-tag  { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,236,224,0.78); margin-top: 4px; font-weight: 600; }
/* Header CTA tuned for the green bar */
.header-cta {
  background: var(--wheat); color: var(--meadow-deep);
}
.header-cta:hover { background: #F0CC8E; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  border: 0; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary  { background: var(--meadow); color: var(--oak-cream); }
.btn-primary:hover { background: var(--meadow-deep); }
.btn-secondary { background: var(--bark); color: var(--oak-cream); }
.btn-secondary:hover { background: #000; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-deep); }
.btn-ghost-light {
  background: transparent; color: var(--oak-cream);
  border: 1.5px solid rgba(244,236,224,0.5);
}
.btn-ghost-light:hover { background: rgba(244,236,224,0.12); border-color: var(--oak-cream); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--meadow-deep);
  border: 1.5px solid var(--meadow);
}
.btn-ghost:hover { background: var(--meadow); color: var(--oak-cream); border-color: var(--meadow); }

.btn[disabled], .btn.is-loading { opacity: 0.65; pointer-events: none; }

/* ---------- 5. Hero (centred, image-led, no background photo) ---------- */
.hero {
  background: var(--canvas);
  padding: clamp(40px, 7vw, 80px) 0 clamp(48px, 8vw, 96px);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-image {
  width: 100%;
  max-width: 720px;
  margin: 0 auto var(--sp-xl);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-content .eyebrow { justify-content: center; }
.hero h1 {
  color: var(--bark);
  margin-bottom: var(--sp-lg);
}
.hero h1 em { color: var(--meadow); }
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--loam);
  max-width: 60ch;
  margin: 0 auto var(--sp-xl);
}
.hero-stats { margin: 0 auto var(--sp-xl); max-width: 520px; }
.hero-stat-row {
  display: flex; align-items: baseline; justify-content: center;
  gap: 12px; margin-bottom: 10px;
}
.hero-stat-num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--meadow);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-stat-label { color: var(--loam); font-weight: 500; }
.hero-progress {
  height: 10px; background: var(--meadow-soft);
  border-radius: var(--r-pill); overflow: hidden;
  max-width: 460px; margin: 0 auto;
}
.hero-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--meadow), #2C6B49);
  transition: width 0.6s ease;
}
.hero-progress-meta { font-size: 0.9rem; color: var(--loam); margin-top: 10px; }
.hero-progress-meta strong { color: var(--meadow); }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}

/* ---------- 6. Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-canvas { background: var(--canvas); }
.section-cream  { background: var(--linen); }
.section-meadow {
  background: var(--meadow);
  color: var(--oak-cream);
  position: relative;
}
.on-meadow { color: var(--oak-cream); }
.on-meadow-muted { color: rgba(244,236,224, 0.82); max-width: 52ch; }

/* ---------- 7. Video ---------- */
.video-wrap {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- 8. Prose ---------- */
.prose p { font-size: 1.05rem; color: #2a241f; line-height: 1.75; }
.prose blockquote {
  margin: var(--sp-xl) 0; padding: var(--sp-lg);
  border-left: 4px solid var(--meadow);
  background: #fff; border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-sm);
}
.prose blockquote p { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.55; margin: 0; color: var(--bark); font-style: italic; }

.impact-h3 { margin-top: var(--sp-2xl); margin-bottom: var(--sp-lg); font-size: 1.35rem; }
.impact-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-md);
}
.impact-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.impact-list svg { width: 22px; height: 22px; color: var(--meadow); flex-shrink: 0; margin-top: 2px; }
.impact-list strong { display: block; margin-bottom: 4px; font-size: 0.98rem; }
.impact-list span { color: var(--loam); font-size: 0.9rem; line-height: 1.5; }

/* ---------- 9. Petition form + stats ---------- */
.sign-grid {
  display: grid; gap: var(--sp-xl);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.sign-form-col h2 { color: var(--oak-cream); margin-bottom: var(--sp-md); }

.petition-form {
  margin-top: var(--sp-lg);
  background: rgba(244,236,224,0.06);
  border: 1px solid rgba(244,236,224,0.16);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.form-row { display: grid; gap: var(--sp-md); }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.field { display: block; margin-bottom: var(--sp-md); }
.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--oak-cream); margin-bottom: 6px; }
.field-label .req { color: var(--wheat); margin-left: 2px; }
.field-label .opt { color: rgba(244,236,224, 0.6); font-weight: 400; font-size: 0.78rem; margin-left: 4px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(247, 242, 232, 0.98);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--bark);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--wheat);
  box-shadow: 0 0 0 4px rgba(217,182,121,0.25);
}
.field-hint { display: block; margin-top: 6px; color: rgba(244,236,224, 0.65); font-size: 0.78rem; line-height: 1.4; }

.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.check { display: flex; gap: 10px; align-items: flex-start; color: rgba(244,236,224, 0.82); font-size: 0.88rem; margin: var(--sp-md) 0 var(--sp-lg); cursor: pointer; line-height: 1.5; }
.check input { margin-top: 4px; accent-color: var(--wheat); flex-shrink: 0; }
.check a { color: var(--wheat); text-decoration: underline; }

.form-status { margin: var(--sp-md) 0 0; min-height: 24px; font-size: 0.92rem; }
.form-status.is-error   { color: #FFD2B0; }
.form-status.is-success { color: #C8E7BD; }

/* Stats card */
.stat-card {
  background: var(--oak-cream); color: var(--bark);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--header-h) + 16px);
}
.stat-card-eyebrow {
  margin: 0 0 var(--sp-md);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--meadow);
}
.stat-card-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-md); }
.num-big {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--meadow);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.num-small { color: var(--loam); font-weight: 500; }
.stat-progress { height: 10px; background: var(--meadow-soft); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 8px; }
.stat-progress-bar { height: 100%; background: linear-gradient(90deg, var(--meadow), #2C6B49); transition: width 0.6s ease; }
.stat-card-meta { font-size: 0.88rem; color: var(--loam); margin: 0 0 var(--sp-lg); }
.stat-card-meta strong { color: var(--meadow); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-mini { background: #fff; padding: 12px 8px; border-radius: var(--r-md); text-align: center; border: 1px solid var(--border); }
.stat-mini-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; color: var(--bark); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-mini-label { font-size: 0.72rem; color: var(--loam); margin-top: 4px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

/* Recent signers */
.recent-signers { margin-top: var(--sp-lg); background: rgba(244,236,224,0.06); border: 1px solid rgba(244,236,224,0.18); border-radius: var(--r-lg); padding: var(--sp-lg); }
.recent-eyebrow { margin: 0 0 var(--sp-md); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--wheat); }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { padding: 10px 0; border-bottom: 1px solid rgba(244,236,224,0.10); color: var(--oak-cream); font-size: 0.92rem; display: flex; justify-content: space-between; gap: var(--sp-sm); }
.recent-list li:last-child { border-bottom: 0; }
.recent-list .who { font-weight: 600; }
.recent-list .where { color: rgba(244,236,224, 0.6); font-size: 0.8rem; }
.recent-list .when { color: rgba(244,236,224, 0.5); font-size: 0.78rem; font-family: var(--font-sans); flex-shrink: 0; }
.recent-placeholder { color: rgba(244,236,224, 0.55) !important; font-style: italic; }

/* ---------- 10. Actions grid ---------- */
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.action-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-xl);
  display: flex; flex-direction: column; gap: var(--sp-sm);
}
.action-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--meadow-soft); color: var(--meadow-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-sm);
}
.action-icon svg { width: 22px; height: 22px; }
.action-card h3 { margin: 0; }
.action-card p { color: var(--loam); flex: 1; }
.action-card .btn { align-self: flex-start; }

.action-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 600;
  background: var(--linen); color: var(--bark);
  border: 1px solid var(--border);
  text-decoration: none;
}
.share-btn:hover { background: var(--meadow); color: var(--oak-cream); border-color: var(--meadow); text-decoration: none; }

/* ---------- 11. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid .gtile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--r-md); cursor: pointer;
  background: var(--meadow-soft);
  transition: transform 0.2s ease;
}
.gallery-grid .gtile:hover { transform: scale(1.015); }
.gallery-grid .gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid .gtile:hover img { transform: scale(1.06); }
.gallery-empty { color: var(--loam); font-style: italic; text-align: center; grid-column: 1 / -1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 14, 0.93);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-lg);
}
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: min(1100px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.lightbox-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox-caption { color: rgba(244,236,224, 0.85); font-size: 0.95rem; margin: 0; text-align: center; }
.lightbox-close, .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(244,236,224,0.10); border: 1.5px solid rgba(244,236,224,0.25);
  color: var(--oak-cream);
  border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; transform: none; font-size: 28px; line-height: 1; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(244,236,224,0.22); }
.lightbox-nav svg { width: 22px; height: 22px; }

/* ---------- 12. Live "just signed" popup ---------- */
.popup-host {
  position: fixed; bottom: 18px; left: 18px; z-index: 90;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 36px);
}
.popup {
  background: #fff; color: var(--bark);
  border-radius: var(--r-md); padding: 12px 16px 12px 14px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--meadow);
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
  max-width: 360px;
  transform: translateX(-110%); opacity: 0;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), opacity 0.3s ease;
}
.popup.is-in { transform: translateX(0); opacity: 1; }
.popup-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--meadow); color: var(--oak-cream);
  font-family: var(--font-serif); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.popup-text { font-size: 0.88rem; line-height: 1.4; }
.popup-text strong { display: block; font-weight: 600; }
.popup-text span { color: var(--loam); font-size: 0.78rem; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--bark); color: var(--oak-cream); padding: var(--sp-xl) 0; margin-top: var(--sp-lg); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--sp-lg); flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand-name { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.footer-brand-tag { margin: 4px 0 0; font-size: 0.82rem; color: rgba(244,236,224, 0.65); }
.footer-meta { text-align: right; font-size: 0.85rem; color: rgba(244,236,224, 0.7); }
.footer-credit { margin: 0 0 4px; }
.footer-credit a { color: var(--wheat); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }
.footer-legal { margin: 0; color: rgba(244,236,224, 0.5); font-size: 0.8rem; }
.footer-legal a { color: rgba(244,236,224, 0.6); }

/* ---------- 14. Responsive ---------- */
@media (max-width: 960px) {
  .sign-grid { grid-template-columns: 1fr; }
  .stat-card { position: static; }
  .actions-grid { grid-template-columns: 1fr; }
  .impact-list { grid-template-columns: 1fr; }
  .footer-inner { text-align: left; }
  .footer-meta { text-align: left; }
}
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-md); }
  .header-cta span { display: inline; }
  .form-row-2 { grid-template-columns: 1fr; }
  .petition-form { padding: var(--sp-lg); }
  .stat-card, .recent-signers { padding: var(--sp-lg); }
  .hero { padding: 80px 0 96px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 12px; right: 12px; }
  .brand-tag { display: none; }
}
@media (max-width: 420px) {
  .header-cta { padding: 6px 12px; font-size: 0.78rem; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- 15. Tiny utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =====================================================================
   V2 additions — comments wall, endorsements, modal, share screen
   ===================================================================== */

/* ---------- Hero ref ribbon ---------- */
.hero-ref-meta {
  margin: var(--sp-md) auto 0;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--meadow-deep);
  background: var(--meadow-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(31,77,52,0.18);
}

/* ---------- Comments wall ---------- */
.comments-grid {
  columns: 3;
  column-gap: var(--sp-md);
}
.comments-loading {
  color: var(--loam); font-style: italic; text-align: center;
  padding: var(--sp-xl) 0;
}
.comment-card {
  break-inside: avoid;
  margin: 0 0 var(--sp-md);
  padding: var(--sp-lg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.comment-quote {
  margin: 0 0 var(--sp-md);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bark);
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--meadow);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-sm);
  font-size: 0.85rem;
}
.comment-name { font-weight: 600; color: var(--meadow); }
.comment-area {
  font-size: 0.78rem;
  color: var(--loam);
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 960px) { .comments-grid { columns: 2; } }
@media (max-width: 640px) { .comments-grid { columns: 1; } }

/* ---------- Endorsements ---------- */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}
.endorse-loading {
  color: var(--loam); font-style: italic; text-align: center;
  grid-column: 1 / -1;
  padding: var(--sp-xl) 0;
}
.endorse-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.endorse-type {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--meadow);
  background: var(--meadow-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.endorse-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.endorse-name a { color: var(--bark); }
.endorse-name a:hover { color: var(--meadow); }
.endorse-town {
  margin: 0;
  font-size: 0.88rem;
  color: var(--loam);
}
.endorse-quote {
  margin: 6px 0 0;
  padding: 10px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2a241f;
  border-top: 1px solid var(--divider);
}

.endorse-cta {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.endorse-cta h3 { margin: 0 0 var(--sp-sm); }
.endorse-cta p { color: var(--loam); margin: 0 auto var(--sp-md); max-width: 52ch; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 18, 14, 0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--canvas);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  max-width: 580px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 28px;
  color: var(--loam);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.modal-close:hover { background: var(--linen); color: var(--bark); }
.modal-card h3 {
  margin: 0 0 var(--sp-sm);
  font-size: 1.4rem;
  padding-right: 36px;
}
.modal-blurb {
  color: var(--loam);
  margin-bottom: var(--sp-lg);
}
.endorse-form .field-label { color: var(--bark); }
.endorse-form .field input,
.endorse-form .field select,
.endorse-form .field textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--bark);
}
.endorse-form .field input:focus,
.endorse-form .field select:focus,
.endorse-form .field textarea:focus {
  border-color: var(--meadow);
  box-shadow: 0 0 0 4px rgba(31,77,52,0.15);
}
.endorse-form .field-hint { color: var(--loam); }
.endorse-form .check { color: var(--bark); }
.endorse-form .check a { color: var(--meadow); }
.endorse-form .form-status.is-success { color: var(--meadow-deep); }
.endorse-form .form-status.is-error { color: var(--rust-deep); }
.endorse-form select.field,
.endorse-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--r-md);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---------- Post-signing (verify.php) page ---------- */
.verify-wrap, .success-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}
.success-wrap { max-width: 820px; }
.verify-mark {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--meadow-soft);
  color: var(--meadow);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.verify-mark svg { width: 40px; height: 40px; }
.verify-fail { background: #FBD8C5; color: var(--rust-deep); }
.verify-blurb { font-size: 1.1rem; color: var(--loam); margin-bottom: 32px; }
.success-lead {
  font-size: 1.1rem;
  color: var(--loam);
  margin: 0 auto var(--sp-2xl);
  max-width: 56ch;
}

.share-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl) var(--sp-xl);
  margin-bottom: var(--sp-xl);
  text-align: left;
  box-shadow: var(--shadow-md);
}
.share-head { text-align: center; margin-bottom: var(--sp-xl); }
.share-head .eyebrow { justify-content: center; }
.share-head h2 { margin-bottom: var(--sp-sm); }
.share-lead {
  color: var(--loam);
  margin: 0 auto;
  max-width: 52ch;
}
.ref-link-row {
  display: flex; gap: 10px;
  margin: 0 0 var(--sp-sm);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
}
.ref-link-row input {
  flex: 1;
  background: var(--linen);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.95rem;
  color: var(--bark);
  min-width: 0;
}
.ref-link-row .btn { white-space: nowrap; }
.ref-toast {
  min-height: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--meadow);
  opacity: 0;
  transition: opacity 0.2s ease;
  margin: 0 0 var(--sp-md);
}
.ref-toast.is-on { opacity: 1; }

.share-btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: var(--sp-lg) 0 var(--sp-lg);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.sharebig {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--bark);
  transition: transform 0.15s ease, opacity 0.18s ease;
}
.sharebig:hover { transform: translateY(-1px); opacity: 0.92; text-decoration: none; }
.sharebig svg { width: 18px; height: 18px; }
.sharebig-fb { background: #1877F2; }
.sharebig-x  { background: #000; }
.sharebig-wa { background: #25D366; }
.sharebig-em { background: var(--meadow); }
.sharebig-li { background: #0A66C2; }
.sharebig-ig { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%); }

.ref-stats {
  text-align: center;
  font-size: 1.05rem;
  margin: var(--sp-lg) 0 0;
}
.ref-stats strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--meadow);
  display: block;
  margin-bottom: 4px;
}
.ref-stats-note {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--loam);
}

.extra-block {
  text-align: center;
  margin: var(--sp-xl) 0;
}
.extra-block h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-lg);
}
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  text-align: left;
}
.extra-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--bark);
  text-decoration: none;
}
.extra-card:hover { border-color: var(--meadow); text-decoration: none; }
.extra-ico {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--meadow-soft);
  color: var(--meadow-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.extra-ico svg { width: 20px; height: 20px; }
.extra-card strong { font-size: 0.98rem; }
.extra-card span:not(.extra-ico) { color: var(--loam); font-size: 0.85rem; line-height: 1.4; }

.back-link {
  margin-top: var(--sp-xl);
  font-size: 0.92rem;
}
.back-link a { color: var(--loam); }

/* ---------- Responsive tweaks for V2 ---------- */
@media (max-width: 720px) {
  .extra-grid { grid-template-columns: 1fr; }
  .share-block { padding: var(--sp-lg); }
  .ref-link-row { flex-direction: column; }
  .ref-link-row .btn { width: 100%; }
  .share-btns { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   V3 additions — post-sign panel, hide-until-signed, ref ribbon fix
   ===================================================================== */

/* Critical: ensure [hidden] takes precedence over display rules below.
   This fixes the hero ref ribbon showing for visitors with no ?ref= URL. */
[hidden] { display: none !important; }

/* ---------- Hide-until-signed ---------- */
/* Sections marked .post-sign-hidden are visible only after the visitor signs.
   Toggled by adding .has-signed to <body> in JS. */
.post-sign-hidden { display: none; }
body.has-signed .post-sign-hidden { display: block; }

/* ---------- Post-sign panel (replaces the form) ---------- */
.post-sign-panel { color: var(--oak-cream); }
.post-sign-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--wheat);
  color: var(--meadow-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 var(--sp-md);
}
.post-sign-mark svg { width: 32px; height: 32px; }

.post-sign-share {
  background: rgba(244,236,224,0.08);
  border: 1px solid rgba(244,236,224,0.18);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  margin: var(--sp-lg) 0;
}
.post-sign-label {
  margin: 0 0 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--wheat);
}
.post-sign-link {
  display: flex; gap: 8px; margin-bottom: 6px;
}
.post-sign-link input {
  flex: 1; min-width: 0;
  background: rgba(247, 242, 232, 0.98);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--bark);
}
.post-sign-link button {
  background: var(--wheat); color: var(--meadow-deep);
  border: 0; border-radius: var(--r-md);
  padding: 0 18px;
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}
.post-sign-link button:hover { background: #F0CC8E; }
.post-sign-toast {
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--wheat);
  margin: 0 0 12px;
  opacity: 0; transition: opacity 0.2s ease;
}
.post-sign-toast.is-on { opacity: 1; }
.post-sign-buttons {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 540px) {
  .post-sign-buttons { grid-template-columns: repeat(4, 1fr); }
}

.post-sign-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: var(--sp-md);
}
.post-sign-action {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(244,236,224,0.06);
  border: 1px solid rgba(244,236,224,0.18);
  border-radius: var(--r-md);
  padding: 16px;
  color: var(--oak-cream);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.post-sign-action:hover {
  background: rgba(244,236,224,0.14);
  border-color: rgba(244,236,224,0.4);
  text-decoration: none;
  transform: translateY(-1px);
}
.post-sign-action-primary {
  background: var(--wheat);
  border-color: var(--wheat);
  color: var(--meadow-deep);
}
.post-sign-action-primary:hover {
  background: #F0CC8E;
  border-color: #F0CC8E;
  color: var(--meadow-deep);
}
.post-sign-action-primary .post-sign-action-ico {
  background: rgba(31,77,52,0.18);
  color: var(--meadow-deep);
}
.post-sign-action-primary strong,
.post-sign-action-primary span span { color: var(--meadow-deep); }
.post-sign-action-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(244,236,224,0.16);
  color: var(--oak-cream);
  display: flex; align-items: center; justify-content: center;
}
.post-sign-action-ico svg { width: 20px; height: 20px; }
.post-sign-action-body strong {
  display: block; margin-bottom: 3px;
  color: var(--oak-cream);
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700;
}
.post-sign-action-body span {
  display: block;
  color: rgba(244,236,224, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* =====================================================================
   V5 additions — petition map
   ===================================================================== */
.map-wrap {
  background: var(--linen);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
}
.petition-map {
  height: 480px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--oak-cream);
}
@media (max-width: 768px) {
  .petition-map { height: 360px; }
}
.map-meta {
  margin: var(--sp-sm) 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--loam);
}
.map-meta strong { color: var(--meadow); }
/* Leaflet's default attribution / popup tweaks for our palette */
.leaflet-container { font-family: var(--font-sans); }
.leaflet-popup-content { font-family: var(--font-sans); margin: 10px 14px; }
.leaflet-popup-content strong { color: var(--meadow); font-family: var(--font-serif); font-size: 1.05rem; }

/* =====================================================================
   V7 additions — tabbed content, confirmation card, comment consent
   ===================================================================== */

/* ---------- Comment-consent checkbox (sub-style under the comment field) ---------- */
.check-sub {
  margin-top: -8px;
  margin-bottom: var(--sp-md);
  padding: 10px 12px;
  background: rgba(31,77,52,0.04);
  border-left: 3px solid var(--meadow);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.88rem;
  color: var(--loam);
}
.section-meadow .check-sub {
  background: rgba(244,236,224,0.06);
  border-left-color: var(--wheat);
  color: rgba(244,236,224,0.85);
}
.section-meadow .check-sub input { accent-color: var(--wheat); }

/* ---------- BIG email-confirmation card (post-submit) ---------- */
.confirm-email-card {
  background: linear-gradient(180deg, var(--wheat) 0%, #F0CC8E 100%);
  color: var(--meadow-deep);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.confirm-email-icon {
  display: inline-flex;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--meadow-deep);
  color: var(--wheat);
  align-items: center; justify-content: center;
  margin: 0 auto var(--sp-md);
  animation: confirmPulse 2.4s ease-in-out infinite;
}
.confirm-email-icon svg { width: 44px; height: 44px; }
@keyframes confirmPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31,77,52,0.4); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(31,77,52,0); }
}
.confirm-email-eyebrow {
  margin: 0 0 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--meadow-deep); opacity: 0.7;
}
.confirm-email-title {
  margin: 0 0 var(--sp-md);
  color: var(--meadow-deep);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}
.confirm-email-lead {
  margin: 0 auto var(--sp-lg);
  max-width: 50ch;
  color: var(--meadow-deep);
  font-size: 1.05rem;
  line-height: 1.55;
}
.confirm-email-lead strong { color: var(--meadow-deep); }
.confirm-email-lead strong:first-child { background: rgba(255,255,255,0.5); padding: 1px 6px; border-radius: 4px; }

.confirm-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.open-mail-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--meadow-deep);
  color: var(--wheat);
  padding: 12px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.15s;
}
.open-mail-btn:hover {
  background: #0F2D1C;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.open-mail-btn svg { width: 18px; height: 18px; }
.open-mail-btn-sub {
  background: rgba(31,77,52,0.12);
  color: var(--meadow-deep);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 10px 14px;
}
.open-mail-btn-sub:hover { background: rgba(31,77,52,0.22); color: var(--meadow-deep); }
.confirm-email-help {
  margin: var(--sp-md) 0 0;
  font-size: 0.88rem;
  color: rgba(21,17,13,0.7);
}
.link-button {
  background: none; border: 0; padding: 0;
  color: var(--meadow-deep);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.link-button:hover { color: var(--bark); }

.post-sign-divider {
  display: flex; align-items: center;
  margin: var(--sp-xl) 0 var(--sp-md);
  color: rgba(244,236,224,0.7);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.post-sign-divider::before,
.post-sign-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(244,236,224,0.18);
}
.post-sign-divider span { padding: 0 14px; }

/* ---------- Tabbed content area (replaces 3 separate sections) ---------- */
.tabs-bar {
  display: flex;
  gap: 4px;
  margin: 0 0 var(--sp-lg);
  padding: 4px;
  background: rgba(21,17,13,0.04);
  border-radius: var(--r-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  color: var(--loam);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  min-width: 140px;
}
.tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.tab:hover { color: var(--bark); background: rgba(21,17,13,0.04); }
.tab.is-on {
  background: #fff;
  color: var(--meadow-deep);
  box-shadow: var(--shadow-sm);
}
.tab-count {
  display: inline-block;
  background: var(--meadow-soft);
  color: var(--meadow-deep);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}
.tab-count:empty { display: none; }
.tab.is-on .tab-count { background: var(--meadow); color: var(--oak-cream); }

.tab-panel { animation: tabFadeIn 0.2s ease-out; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .tabs-bar { gap: 2px; padding: 3px; }
  .tab { padding: 11px 12px; font-size: 0.88rem; min-width: 110px; }
  .tab span:not(.tab-count) {
    /* Keep label text but allow it to truncate gracefully */
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ---------- Verify page: multi-platform email picker ---------- */
.extra-lead {
  margin: -8px 0 var(--sp-md);
  color: var(--loam);
  font-size: 0.95rem;
  line-height: 1.55;
}
.mail-picker {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .mail-picker { grid-template-columns: 1fr 1fr; } }
.mail-pick {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--bark);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.mail-pick:hover {
  border-color: var(--meadow);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.mail-pick svg { width: 28px; height: 28px; color: var(--meadow); grid-row: span 2; }
.mail-pick-name { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.mail-pick-sub { font-size: 0.82rem; color: var(--loam); line-height: 1.1; }
.mail-pick-default { background: var(--meadow-soft); border-color: var(--meadow); }
.mail-pick-default svg { color: var(--meadow-deep); }

.extra-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .extra-grid-2 { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   V7.1 — Redesigned petition section (hero counter, form card, mega CTA)
   ===================================================================== */

/* The hero counter strip — focal point of the petition section */
.sign-hero {
  text-align: center;
  max-width: 920px;
  margin: 0 auto var(--sp-xl);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid rgba(244,236,224,0.16);
}

/* Live pulse indicator pill */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(244,236,224,0.1);
  border: 1px solid rgba(244,236,224,0.2);
  border-radius: var(--r-pill);
  color: var(--oak-cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-md);
}
.live-pill #bigToday { color: var(--wheat); font-weight: 700; }
.live-dot {
  width: 9px; height: 9px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: liveDot 1.8s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

/* The big number itself */
.sign-hero-h {
  margin: 0 0 var(--sp-md);
  color: var(--oak-cream);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
}
.sign-hero-num {
  display: block;
  color: var(--wheat);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 1;
  margin: 6px 0 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sign-hero-suffix {
  display: block;
  color: var(--oak-cream);
  opacity: 0.92;
}

/* Progress bar in the hero */
.sign-hero-progress-wrap {
  max-width: 540px;
  margin: 0 auto;
}
.sign-hero-progress {
  height: 14px;
  background: rgba(244,236,224,0.16);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.sign-hero-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wheat) 0%, #F0CC8E 100%);
  border-radius: var(--r-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.sign-hero-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.sign-hero-goal {
  margin: 12px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.9rem;
  color: rgba(244,236,224,0.78);
}
.sign-hero-pct strong { color: var(--wheat); font-weight: 700; }
.sign-hero-urg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--wheat);
}
.sign-hero-urg svg { width: 14px; height: 14px; }

/* The form is now a proper elevated card on the meadow bg */
.form-card {
  background: var(--linen);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  color: var(--bark);
  box-shadow: var(--shadow-lg);
}
.form-card-head { margin-bottom: var(--sp-lg); }
.form-card-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 12px;
  padding: 5px 12px;
  background: var(--meadow-soft);
  color: var(--meadow-deep);
  border-radius: var(--r-pill);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.form-card-eyebrow svg { width: 13px; height: 13px; }
.form-card-h {
  margin: 0 0 8px;
  color: var(--bark);
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  line-height: 1.2;
}
.form-card-sub {
  margin: 0 0 var(--sp-md);
  color: var(--loam);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Form-card-scoped form fields override defaults so they sit well on linen */
.form-card .field input,
.form-card .field textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--bark);
}
.form-card .field input:focus,
.form-card .field textarea:focus {
  border-color: var(--meadow);
  outline: 3px solid rgba(31,77,52,0.15);
}
.form-card .field-label { color: var(--bark); }
.form-card .field-hint { color: var(--loam); }
.form-card .check-sub { background: rgba(31,77,52,0.05); border-left-color: var(--meadow); color: var(--bark); }
.form-card .check-sub input { accent-color: var(--meadow); }
.form-card .check span { color: var(--bark); }
.form-card .check a { color: var(--meadow); font-weight: 600; }

/* MEGA submit button — full-width, gradient, with arrow */
.btn-mega {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--rust) 0%, #963F22 100%);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-top: var(--sp-md);
  box-shadow: 0 4px 12px rgba(184, 92, 56, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.btn-mega:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 92, 56, 0.4);
}
.btn-mega:active { transform: translateY(0); }
.btn-mega:disabled {
  background: linear-gradient(135deg, #888 0%, #666 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-mega-arrow {
  width: 22px; height: 22px;
  transition: transform 0.2s;
}
.btn-mega:hover .btn-mega-arrow { transform: translateX(4px); }

/* Simplified mini stats card (sidebar) */
.ministats-card {
  background: rgba(244,236,224,0.06);
  border: 1px solid rgba(244,236,224,0.16);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.ministats-eyebrow {
  margin: 0 0 12px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--wheat);
}
.ministats-grid {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.ministat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(244,236,224,0.06);
  border-radius: var(--r-md);
}
.ministat-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(217,182,121,0.18);
  color: var(--wheat);
  display: flex; align-items: center; justify-content: center;
}
.ministat-ico svg { width: 18px; height: 18px; }
.ministat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--oak-cream);
  font-variant-numeric: tabular-nums;
}
.ministat-label {
  font-size: 12px;
  color: rgba(244,236,224, 0.7);
  margin-top: 2px;
}

/* Recent signers — add icon to eyebrow */
.recent-eyebrow {
  display: flex; align-items: center; gap: 8px;
}
.recent-eyebrow svg {
  width: 14px; height: 14px;
}

/* Mobile: stack hero stuff a little tighter */
@media (max-width: 600px) {
  .sign-hero { margin-bottom: var(--sp-lg); }
  .sign-hero-h { font-size: 1.2rem; }
  .live-pill { font-size: 0.8rem; padding: 6px 12px; }
  .form-card { padding: 22px 18px; }
  .btn-mega { font-size: 1rem; padding: 16px 20px; }
}

/* =====================================================================
   V8 — PNG logos in header / footer / hero
   ===================================================================== */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.brand-tag-stand {
  display: inline-block;
  margin-left: 14px;
  padding: 4px 10px;
  background: rgba(244,236,224,0.12);
  color: rgba(244,236,224,0.85);
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; }
  .brand-tag-stand { display: none; }
}

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 6px;
}

/* Hero headline with logo replacing the brand name */
.hero-h-with-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--sp-lg);
}
.hero-h-text {
  color: var(--bark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-logo {
  display: block;
  height: auto;
  width: 100%;
  max-width: 460px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .hero-h-with-logo { gap: 8px; }
  .hero-logo { max-width: 340px; }
}
