/* FreshFoodConnect — Modern, minimal, magical
   Brand: gold #fab43a, green #89cda9
   Base viewport: 375x667 (iPhone SE).
   Typography-led. Whitespace is a feature. */

/* -------- Tokens -------- */

:root {
  /* Brand (locked) — see DESIGN_SPEC.md */
  --ffc-gold: #fab43a;
  --ffc-gold-dark: #e0a134;
  --ffc-green: #89cda9;
  --ffc-green-dark: #6db88e;
  --ffc-green-deep: #2f6b4e; /* derived for AA-contrast text on white (~7.2:1) */
  --ffc-green-pale: #f4faf7;
  --ffc-black: #1a1a1a;
  --ffc-white: #ffffff;
  --ffc-gray: #6b7280;
  --ffc-gray-light: #f3f4f6;
  --ffc-red: #ef4444;
  --ffc-blue: #3b82f6;

  /* Derived neutrals (legacy aliases — to consolidate; see BACKLOG) */
  --ink: var(--ffc-black);
  --ink-soft: #2a2d32;
  --mute: var(--ffc-gray);
  --mute-soft: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f1f3f5;
  --paper: var(--ffc-white);
  --paper-warm: #fbfaf7;

  /* Elevation */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10), 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Type scale — DESIGN_SPEC.md prescribes xs/sm/base/lg/xl/2xl/3xl. The
     step/meta/body/title/hero set is the typography-led flow used by the
     marketing pages; both must coexist while consolidation is staged. */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 15px;         /* used by dashboard.css for compact secondary text */
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 40px;

  --fs-step: 13px;       /* eyebrow / labels */
  --fs-meta: 14px;       /* fine print */
  --fs-body: 17px;       /* body */
  --fs-title: 22px;      /* panel titles */
  /* 8vw on a 375px viewport ≈ 30px — "Free fresh produce," fits on one line with
     ~16px padding inside the content column. Scales up to 64px on wide screens. */
  --fs-hero: clamp(30px, 8vw, 64px);
  --fs-num: clamp(36px, 10vw, 72px);

  /* Rhythm — 8px grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 80px;
  --s-10: 96px;

  --radius: 10px;
  --radius-lg: 16px;

  --container: 600px;
  --container-wide: 1200px;
  --gutter: var(--s-5); /* 24px — consistent left/right padding everywhere */

  --ring: 0 0 0 3px rgba(250, 180, 58, 0.35);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--ffc-gold);
}

/* -------- Reset -------- */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--paper);
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------- Header -------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 var(--gutter);
}

.site-header__tagline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ffc-green-deep);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .site-header__tagline { font-size: var(--fs-body); }
}

/* Logo — left-aligned, compact on mobile, generous on desktop */
.hero__logo {
  display: block;
  margin-bottom: var(--s-4);
}

.hero__logo img {
  height: 72px;
  width: auto;
}

.site-header__link {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
  background: var(--ffc-green-deep);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}

.site-header__link:hover {
  background: #245a40;
}

/* -------- Main / Steps -------- */

main {
  padding: 0;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .step.active {
    animation: stepIn 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------- Hero: full-bleed garden image background -------- */

.hero {
  /* Mobile-first: clean white, no background image fighting for attention.
     No min-height on mobile — let the hero size to its content so the proof
     section follows immediately rather than after a viewport of dead space. */
  background: white;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--s-5) var(--gutter) var(--s-6);
  position: relative;
}

/* No overlay needed on mobile — white background. Desktop gets the photo. */
.hero::before { display: none; }

.hero__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* Warm page background */
body {
  background: #fafaf8;
}

/* Section backgrounds — full-width, no max-width on outer */
.proof {
  background: linear-gradient(135deg, #f4faf7 0%, #fef9ee 100%) !important;
}

.how {
  background: white !important;
}

.voice {
  /* City image as subtle background on the testimonial section */
  background: url('/img/city-produce.jpg') center/cover no-repeat !important;
  position: relative;
}

.voice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 250, 247, 0.88);
  pointer-events: none;
}

.voice > * {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: var(--fs-step);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ffc-green-deep);
  margin-bottom: var(--s-5);
}

.hero__headline {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s-4);
  /* Defensive: even if the viewport is narrower than expected, break gracefully
     instead of clipping or forcing horizontal scroll. */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero__headline-kw {
  /* "produce" — preserve as a single token so it wraps as a word, not mid-letter */
  white-space: nowrap;
}

.hero__headline-accent {
  display: block;
  color: var(--ffc-green-deep);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.hero__sub {
  font-size: var(--fs-body);
  color: var(--mute);
  max-width: 34ch;
  margin-bottom: var(--s-4);
}

/* Mobile-only image band between subhead and form */
.hero__mobile-image {
  width: 100%;
  height: 180px;
  background: url('/img/hero-garden.jpg') center/cover no-repeat;
  background-color: #eef5ef;
  border-radius: var(--radius-lg);
  margin-bottom: var(--s-4);
}

@media (min-width: 1024px) {
  .hero__mobile-image { display: none; }
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 420px;
}

/* -------- Panels (flat cards, no shadow) -------- */

.panel {
  max-width: var(--container);
  margin: 0 0 var(--s-4);
  padding: var(--s-6) var(--gutter);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step:not(#step-hero) .panel:first-child {
  margin-top: var(--s-7);
}

.step:last-child .panel:last-child {
  margin-bottom: var(--s-7);
}

.panel__title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.panel__title--sm {
  font-size: calc(var(--fs-title) - 3px);
}

.panel__sub {
  font-size: var(--fs-body);
  color: var(--mute);
  margin-bottom: var(--s-5);
}

.panel__phone {
  color: var(--ink);
  font-weight: 600;
}

/* -------- Fields -------- */

.field {
  margin-bottom: var(--s-3);
}

.field__label {
  display: block;
  font-size: var(--fs-step);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--s-2);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, background 180ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.field__input::placeholder {
  color: var(--mute-soft);
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}

.field__input--code {
  text-align: center;
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
}

.field__hint {
  font-size: var(--fs-meta);
  color: var(--mute);
  margin-top: var(--s-3);
}

/* -------- Buttons -------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  min-height: 52px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--ink-soft);
}

.btn--primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn--green {
  background: var(--ffc-green-deep);
  color: var(--paper);
  border-color: var(--ffc-green-deep);
}

.btn--green:hover,
.btn--green:focus-visible {
  background: #245a40;
}

.btn--green:active:not(:disabled) {
  transform: scale(0.99);
}

.btn--secondary {
  background: var(--ffc-green);
  color: var(--ink);
  border-color: var(--ffc-green);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--ffc-green-dark);
  border-color: var(--ffc-green-dark);
  color: var(--paper);
}

.btn--secondary:active:not(:disabled) {
  transform: scale(0.99);
}

.link-btn {
  display: inline-block;
  margin-top: var(--s-4);
  padding: var(--s-2) 0;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  background: none;
  border: 0;
}

.link-btn:hover {
  color: var(--ink);
}

/* -------- Roles -------- */

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  gap: var(--s-1);
  padding: var(--s-4);
  min-height: 128px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 100ms ease;
  -webkit-tap-highlight-color: transparent;
}

.role-card:hover {
  border-color: var(--ink-soft);
}

.role-card:active {
  transform: scale(0.98);
}

.role-card.selected {
  border-color: var(--ffc-gold);
  background: #fffaf0;
}

@media (prefers-reduced-motion: no-preference) {
  .role-card.selected {
    animation: goldPulse 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}

@keyframes goldPulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 180, 58, 0.6); }
  60%  { box-shadow: 0 0 0 10px rgba(250, 180, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 180, 58, 0); }
}

.role-card.selected::after {
  content: "";
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ffc-gold);
  background-image:
    linear-gradient(45deg, transparent 44%, var(--ink) 45%, var(--ink) 55%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--ink) 45%, var(--ink) 55%, transparent 56%);
  background-size: 10px 2px, 6px 2px;
  background-position: 5px 10px, 4px 6px;
  background-repeat: no-repeat;
}

.role-card__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: var(--s-3);
}

.role-card__label {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.role-card__role {
  font-size: var(--fs-step);
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.roles__safety {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-meta);
  color: var(--mute);
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  line-height: 1.5;
}

.roles__safety a {
  color: var(--ffc-green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaf-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 0 100% 0 100%;
  background: var(--ffc-green);
  transform: rotate(-20deg);
}

/* -------- Welcome -------- */

.welcome {
  text-align: left;
}

.welcome__check {
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--ffc-green);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.pantry {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--ffc-green-pale);
  border-radius: var(--radius);
}

.pantry__label {
  font-size: var(--fs-step);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ffc-green-deep);
  margin-bottom: var(--s-2);
}

.pantry__name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-1);
}

.pantry__details {
  font-size: var(--fs-meta);
  color: var(--mute);
}

.share-copied {
  margin-top: var(--s-3);
  font-size: var(--fs-meta);
  color: var(--ffc-green-deep);
  font-weight: 600;
}

/* -------- Donate -------- */

.donate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.donate-amt {
  min-height: 48px;
  padding: var(--s-2);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.donate-amt:hover {
  border-color: var(--ink-soft);
}

.donate-amt.selected {
  border-color: var(--ffc-green-dark);
  background: var(--ffc-green-pale);
}

/* -------- Below the fold -------- */

/* Proof — full-width background, constrained content */
.proof {
  /* No max-width — background goes edge-to-edge */
  padding: var(--s-9) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: flex-start;
}

.proof__line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.proof__num {
  font-size: var(--fs-num);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.proof__caption {
  margin-top: var(--s-2);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof__line:nth-child(2) .proof__num {
  color: var(--ffc-green-deep);
}

.proof__line:nth-child(3) .proof__num {
  color: var(--ffc-gold-dark);
}

/* How it works — full-width bg, content centered */
.how {
  padding: var(--s-8) var(--gutter);
}

.how__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  max-width: var(--container-wide);
  counter-reset: how;
}

.how__item {
  counter-increment: how;
  position: relative;
  padding-left: var(--s-6);
}

.how__item::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: var(--fs-step);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ffc-green-deep);
  font-variant-numeric: tabular-nums;
}

.how__title {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.how__text {
  font-size: var(--fs-body);
  color: var(--mute);
  line-height: 1.55;
  max-width: 42ch;
}

/* Single testimonial — city image shows through behind */
.voice {
  padding: var(--s-9) var(--gutter);
}

.voice__quote {
  position: relative;
  padding-left: var(--s-5);
  border-left: 3px solid var(--ffc-gold);
  max-width: 640px;
}

.voice__quote p {
  font-size: calc(var(--fs-body) + 3px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: var(--s-3);
}

.voice__quote p::before { content: "\201C"; }
.voice__quote p::after  { content: "\201D"; }

.voice__author {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* Food safety callout — full-width */
.safety {
  padding: var(--s-6) var(--gutter) var(--s-9);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  border-top: 1px solid var(--line);
}

.safety__leaf {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 0 100% 0 100%;
  background: var(--ffc-green);
  transform: rotate(-25deg);
}

.safety__text {
  font-size: var(--fs-meta);
  color: var(--mute);
  line-height: 1.6;
}

/* -------- Footer -------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding: var(--s-8) var(--gutter);
}

.site-footer__inner {
  max-width: var(--container-wide);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

.site-footer__col-head {
  font-size: var(--fs-step);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.site-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.site-footer__col-links a {
  font-size: var(--fs-meta);
  color: var(--mute);
  text-decoration: none;
}

.site-footer__col-links a:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__tag {
  font-size: var(--fs-step);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer__addr {
  font-size: var(--fs-meta);
  color: var(--mute);
  line-height: 1.7;
}

.site-footer__addr a {
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: var(--fs-meta);
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  padding: var(--s-1) 0;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.site-footer__links a:hover {
  border-bottom-color: var(--ink);
}

.site-footer__safety {
  font-size: var(--fs-meta);
  color: var(--mute);
  line-height: 1.6;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

/* -------- Map section -------- */

.map-section {
  padding: var(--s-8) var(--gutter);
  background: white;
  border-top: 1px solid var(--line);
}

.map-section__content {
  max-width: var(--container-wide);
  margin-bottom: var(--s-5);
}

.map-section__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.map-section__sub {
  color: var(--mute);
  font-size: var(--fs-body);
}

.ffc-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin-bottom: var(--s-5);
}

@media (min-width: 1024px) {
  .ffc-map { height: 480px; }
}

.ffc-pin { background: none !important; border: none !important; }

.map-cta {
  max-width: 640px;
  padding: var(--s-5);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.map-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.map-cta > p {
  color: var(--mute);
  font-size: var(--fs-meta);
  margin-bottom: var(--s-4);
}

.map-cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .map-cta__row { grid-template-columns: 1fr; }
}

.map-cta__input,
.map-cta__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: white;
  min-height: 44px;
  resize: vertical;
}

.map-cta__input:focus,
.map-cta__textarea:focus {
  outline: none;
  border-color: var(--ffc-green);
}

.map-cta__textarea {
  margin-bottom: 12px;
}

.map-cta__donate {
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--mute);
  margin-top: 12px;
}

.map-cta__donate a {
  color: var(--ffc-green-deep);
  font-weight: 600;
}

.site-footer__social {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-3) 0;
}

.site-footer__social a {
  color: var(--mute);
  transition: color 0.15s;
}

.site-footer__social a:hover {
  color: var(--ink);
}

.site-footer__copy {
  font-size: var(--fs-meta);
  color: var(--mute);
}

/* -------- Scroll reveal (opt-in via JS adding .is-inview) -------- */

.proof,
.how,
.voice,
.safety {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .proof,
  .how,
  .voice,
  .safety {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
      transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .is-inview {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -------- Loading -------- */

.loading {
  opacity: 0.65;
  pointer-events: none;
}

/* -------- Tablet -------- */

@media (min-width: 640px) {
  :root { --gutter: var(--s-6); } /* 32px at tablet */

  .hero {
    padding: var(--s-9) var(--gutter);
  }

  .panel {
    padding: var(--s-7) var(--gutter);
  }

  .roles {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof,
  .how,
  .voice,
  .safety {
  }

  .site-footer {
    padding: var(--s-9) var(--gutter);
  }
}

/* -------- Desktop -------- */

@media (min-width: 1024px) {
  :root { --gutter: var(--s-7); } /* 48px at desktop */

  .hero {
    /* Desktop: bring back the garden photo background. min-height keeps the
       hero immersive at desktop sizes; mobile intentionally omits this. */
    background: url('/img/hero-garden.jpg') center/cover no-repeat;
    background-color: #2d4a3a;
    min-height: calc(100vh - 48px);
    min-height: calc(100dvh - 48px);
    padding: var(--s-10) var(--gutter);
    align-items: center;
  }

  .hero::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.90) 40%,
      rgba(255,255,255,0.15) 70%,
      transparent 100%
    );
    pointer-events: none;
  }

  .hero__logo img { height: 120px; }

  .hero__card {
    max-width: 520px;
  }

  .hero__sub {
    font-size: calc(var(--fs-body) + 2px);
  }

  .proof {
    flex-direction: row;
    justify-content: space-between;
  }

  .how__list {
    flex-direction: row;
    gap: var(--s-6);
  }

  .how__list {
    flex-direction: row;
    gap: var(--s-6);
  }

  .how__item {
    flex: 1;
  }

  /* --gutter handles all horizontal padding at desktop via :root override */

  .voice__quote p {
    font-size: calc(var(--fs-body) + 7px);
  }

  .photo-band {
    max-height: 400px;
  }
}
