/* ============================================================
   TOPO — Hyperlocal delivery platform
   Stylesheet. Tokens derived from the TOPO Brand Book.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (from brand book) */
  --color-primary: #FE620F;          /* TOPO Velocity Orange */
  --color-primary-dark: #E1530A;
  --color-primary-tint: #FFF1E8;
  --color-secondary: #1F2933;        /* TOPO Trust Charcoal */
  --color-accent: #FBEF0D;           /* TOPO Love (complementary yellow) */

  /* Vertical accents (brand palette) */
  --color-groceries: #196598;        /* Trust blue */
  --color-groceries-tint: #E9F1F7;
  --color-naturals: #188F44;         /* Cool natural green */
  --color-naturals-tint: #E7F4EC;
  --color-restaurant: #FE620F;       /* Velocity orange */
  --color-restaurant-tint: #FFF1E8;
  --color-street: #EC2529;           /* Local red */
  --color-street-tint: #FDEAEA;

  /* Neutrals */
  --color-background: #FBFAF8;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F2EE;
  --color-text: #1F2933;
  --color-text-muted: #6A727C;
  --color-border: #E7E4DF;
  --color-border-strong: #D8D4CD;

  /* Typography */
  --font-heading: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(2.4rem, 6vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3.5rem;
  --space-2xl: 4.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(31, 41, 51, 0.06), 0 2px 6px rgba(31, 41, 51, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 41, 51, 0.14);

  --maxw: 1200px;
  --header-h: 92px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-sm); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section__head { max-width: 640px; margin-bottom: var(--space-lg); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}
.lead { font-size: var(--fs-lead); color: var(--color-text-muted); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-secondary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  min-height: 48px;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--color-secondary); border-color: var(--color-border-strong); }
.btn--ghost:hover { border-color: var(--color-secondary); background: var(--color-surface); }
.btn--light { background: #fff; color: var(--color-secondary); }
.btn--light:hover { background: var(--color-surface-alt); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.95rem; min-height: 44px; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--color-secondary); flex-shrink: 0; }
.brand__mark { height: 52px; width: auto; flex-shrink: 0; }
@media (max-width: 480px) { .brand__mark { height: 44px; } }
.brand__tag { display: none; }

.primary-nav ul { display: flex; align-items: center; gap: 0.15rem; }
.primary-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover { background: var(--color-surface-alt); color: var(--color-primary); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .primary-nav.is-open { max-height: 80vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-xs) var(--space-md) var(--space-md); }
  .primary-nav a { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--color-border); font-size: 1.05rem; white-space: normal; }
  .header__actions .btn--ghost { display: none; }
}

@media (max-width: 400px) {
  .header__actions { gap: 0.35rem; }
  .header__actions .btn--primary { padding: 0.65rem 0.75rem; font-size: 0.85rem; }
  .header__inner { gap: var(--space-xs); }
  .brand__mark { height: 30px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) var(--space-2xl); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
.hero__body { min-width: 0; }
.hero__title { font-size: var(--fs-display); font-weight: 700; margin-bottom: var(--space-md); overflow-wrap: break-word; }
@media (max-width: 360px) { .hero__title { hyphens: auto; } }
.hero__title .accent { color: var(--color-primary); }
.hero__lead { max-width: 46ch; margin-bottom: var(--space-md); }

.hero__cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-md); }

/* Hero highlight list (replaces the location/search finder) */
.hero__highlights { margin-top: var(--space-md); display: grid; gap: 0.65rem; }
.hero__highlights li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  color: var(--color-text);
}
.hero__highlights svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

/* Hero visual — stacked color-coded tiles instead of a stock photo block */
.hero__visual { position: relative; }
.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-sm);
  aspect-ratio: 1 / 1;
}
.hero-tile {
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.hero-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tile__cap {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  background: linear-gradient(to top, rgba(20,24,28,0.82) 0%, rgba(20,24,28,0.45) 55%, transparent 100%);
}
.hero-tile h3 { color: #fff; font-size: 1.1rem; margin: 0 0 0.1rem; }
.hero-tile span { font-size: var(--fs-sm); opacity: 0.92; }
.hero-tile--groceries { background: var(--color-groceries); }
.hero-tile--naturals { background: var(--color-naturals); }
.hero-tile--restaurant { background: var(--color-restaurant); }
.hero-tile--street { background: var(--color-street); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero__visual { order: -1; max-width: 460px; }
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
  padding-top: var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.trust-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
.trust-strip span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Four worlds ---------- */
.worlds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.world-card {
  --accent: var(--color-primary);
  --tint: var(--color-primary-tint);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.world-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--accent);
}
.world-card:hover, .world-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.world-card__badge {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  background: var(--tint);
  overflow: hidden;
  margin: var(--space-xs) 0 var(--space-sm);
}
.world-card__badge img { width: 100%; height: 100%; object-fit: cover; }
.world-card h3 { margin-bottom: 0.35rem; }
.world-card p { color: var(--color-text-muted); font-size: var(--fs-sm); flex: 1; }
.world-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.world-card__link::after { content: ""; }
.world-card--groceries { --accent: var(--color-groceries); --tint: var(--color-groceries-tint); }
.world-card--naturals { --accent: var(--color-naturals); --tint: var(--color-naturals-tint); }
.world-card--restaurant { --accent: var(--color-restaurant); --tint: var(--color-restaurant-tint); }
.world-card--street { --accent: var(--color-street); --tint: var(--color-street-tint); }
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .worlds { grid-template-columns: 1fr; }
}

/* ---------- Feature sections (alternating) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__body .eyebrow { color: var(--feat-accent, var(--color-primary)); }
.feature__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--space-md) 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--feat-accent, var(--color-primary)); }

.feature__media {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  background: var(--feat-tint, var(--color-primary-tint));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  text-align: center;
  color: var(--feat-accent, var(--color-primary));
  padding: var(--space-md);
}
.media-placeholder .emoji { font-size: clamp(3rem, 8vw, 5rem); }
.media-placeholder small { display: block; color: var(--color-text-muted); font-size: 0.75rem; margin-top: 0.5rem; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: var(--space-lg); }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Discovery cards (restaurant + street) ---------- */
.card-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}
.discovery-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.discovery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.discovery-card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
}
.discovery-card__media img { width: 100%; height: 100%; object-fit: cover; }
.discovery-card__badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--badge-bg, var(--color-primary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}
.discovery-card__body { padding: var(--space-sm) var(--space-md) var(--space-md); }
.discovery-card__body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.discovery-card__meta { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: 0.6rem; }
.discovery-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
}
.rating { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: var(--color-text); }
.rating .star { color: var(--color-naturals); }
.demo-note { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-md); font-style: italic; }

.section--street { background: var(--color-secondary); color: #fff; border-radius: var(--radius-xl); }
.section--street h2, .section--street h3 { color: #fff; }
.section--street .lead { color: rgba(255,255,255,0.72); }
.section--street .eyebrow { color: var(--color-accent); }
.section--street .discovery-card { background: #29343F; border-color: #3A4650; }
.section--street .discovery-card__body h3 { color: #fff; }
.section--street .discovery-card__media { background: #313D48; }
.section--street .discovery-card__foot { border-color: #3A4650; }
.section--street .rating { color: #fff; }
.section--street .demo-note { color: rgba(255,255,255,0.6); }

/* ---------- Why TOPO ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.benefit {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.benefit__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: grid; place-items: center;
  margin-bottom: var(--space-sm);
}
.benefit h3 { font-size: 1.05rem; }
.benefit p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- How it works (real sequence → numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); counter-reset: step; }
.step { position: relative; padding-top: var(--space-md); }
.step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.75rem;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.25;
}
.step h3 { margin: 0.25rem 0 0.35rem; }
.step p { color: var(--color-text-muted); margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.6rem; right: calc(var(--space-lg) / -2);
  width: var(--space-lg);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 12px);
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-md); }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- App download ---------- */
.app-download {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  overflow: hidden;
}
.app-download__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
}
.app-download h2 { color: #fff; }
.app-download p { color: rgba(255,255,255,0.9); }
.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-md); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: var(--color-secondary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 56px;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 0.65rem; color: var(--color-text-muted); font-family: var(--font-body); }
.store-badge strong { font-size: 1rem; font-weight: 600; }

.qr-pair {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}
.qr-module {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  color: var(--color-text);
  text-align: center;
  width: 170px;
  box-shadow: var(--shadow-lg);
}
.qr-module img { width: 140px; height: 140px; margin: 0 auto var(--space-xs); border-radius: var(--radius-sm); }
.qr-module p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
.qr-module strong { color: var(--color-text); }

@media (max-width: 820px) {
  .app-download__grid { grid-template-columns: 1fr; padding: var(--space-lg); text-align: center; }
  .store-badges { justify-content: center; }
  .app-download__media { display: flex; justify-content: center; }
}

/* ---------- App preview (phone mockups) ---------- */
.preview { text-align: center; }
.phone-rail {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}
.phone {
  width: 176px;
  aspect-ratio: 9 / 19;
  background: var(--color-secondary);
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 22px;
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 0.75rem 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(20,24,28,0.8), transparent);
}
.phone:nth-child(even) { transform: translateY(16px); }
@media (max-width: 480px) { .phone:nth-child(even) { transform: none; } }

/* ---------- Partner / Deliver split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.split-card {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.split-card--partner { background: var(--color-primary-tint); border-color: transparent; }
.split-card--deliver { background: var(--color-groceries-tint); border-color: transparent; }
.split-card h3 { font-size: var(--fs-h3); }
.split-card p { color: var(--color-text-muted); flex: 1; }
.split-card ul.merchant-types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-sm); }
.split-card ul.merchant-types li {
  font-size: var(--fs-sm);
  background: rgba(255,255,255,0.7);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ---------- Final CTA band ---------- */
.final-cta {
  text-align: center;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-md);
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.75); max-width: 46ch; margin-inline: auto; }
.final-cta .final-cta__verticals {
  display: inline-flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin: var(--space-sm) 0 var(--space-md);
}
.final-cta__verticals span {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-family: var(--font-heading);
}
.v-groceries { background: var(--color-groceries); }
.v-naturals { background: var(--color-naturals); }
.v-restaurant { background: var(--color-restaurant); }
.v-street { background: var(--color-street); }
.final-cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-surface-alt); border-top: 1px solid var(--color-border); padding-block: var(--space-xl) var(--space-lg); margin-top: var(--space-lg); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__brand .brand__mark { height: 56px; width: auto; margin-bottom: var(--space-sm); }
.footer__brand p { color: var(--color-text-muted); font-size: var(--fs-sm); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.footer__col li { margin-bottom: 0.5rem; }
.footer__col a { color: var(--color-text-muted); font-size: var(--fs-sm); transition: color 0.15s ease; }
.footer__col a:hover { color: var(--color-primary); }
.footer__social { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  color: var(--color-text);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.footer__social a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-secondary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  z-index: 300;
  transition: transform 0.3s ease;
  max-width: 90vw;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* Utility */
.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;
}

/* ============================================================
   SUBPAGES (privacy, partner, about, city landing)
   ============================================================ */

/* Page hero / banner */
.page-hero {
  background: var(--color-secondary);
  color: #fff;
  padding-block: var(--space-xl);
}
.page-hero--accent { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--space-xs); overflow-wrap: break-word; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--color-accent); }
.page-hero--accent .eyebrow { color: #fff; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-sm); padding-block: var(--space-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--color-border-strong); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* Legal / prose document layout */
.doc { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-xl); align-items: start; }
.doc__toc {
  position: sticky;
  top: calc(var(--header-h) + var(--space-md));
  align-self: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  max-height: calc(100vh - var(--header-h) - var(--space-lg));
  overflow: auto;
}
.doc__toc h2 { font-size: 0.95rem; margin-bottom: var(--space-sm); }
.doc__toc ol { counter-reset: toc; display: grid; gap: 0.35rem; }
.doc__toc a { color: var(--color-text-muted); font-size: var(--fs-sm); display: block; padding: 0.15rem 0; }
.doc__toc a:hover { color: var(--color-primary); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--space-md); }
.prose p, .prose li { color: var(--color-text); }
.prose p { margin-bottom: var(--space-sm); }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--space-sm); display: grid; gap: 0.35rem; }
.prose ul li { padding-left: 0.2rem; }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }

.doc-note {
  background: var(--color-primary-tint);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-sm);
}
.doc-note strong { color: var(--color-primary-dark); }

.doc-meta { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.doc-meta span { display: inline-block; margin-right: var(--space-md); }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: var(--space-lg); }
  .doc__toc { position: static; max-height: none; }
}

/* Partner: merchant option cards */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.partner-type {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border-top: 5px solid var(--pt-accent, var(--color-primary));
}
.partner-type h3 { font-size: 1.15rem; }
.partner-type p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.partner-type ul { display: grid; gap: 0.4rem; margin: var(--space-sm) 0; }
.partner-type ul li { display: flex; gap: 0.5rem; font-size: var(--fs-sm); }
.partner-type ul li::before { content: "✓"; color: var(--pt-accent, var(--color-primary)); font-weight: 700; }
.pt--restaurant { --pt-accent: var(--color-restaurant); }
.pt--grocery { --pt-accent: var(--color-groceries); }
.pt--naturals { --pt-accent: var(--color-naturals); }
.pt--street { --pt-accent: var(--color-street); }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }

/* Partner: simple form */
.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}
.form-row { display: grid; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.form-row.form-row--2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}
.field small { color: var(--color-text-muted); font-size: 0.78rem; }
@media (max-width: 560px) { .form-row.form-row--2 { grid-template-columns: 1fr; } }

/* About: values + stats */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.value-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--color-surface); }
.value-card h3 { font-size: 1.05rem; }
.value-card p { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } }

.mission-band {
  background: var(--color-primary-tint);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}
.mission-band h2 { max-width: 24ch; }
.mission-band p { color: var(--color-text); max-width: 60ch; }

/* City landing: local sections */
.city-stats { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.city-stat strong { display: block; font-family: var(--font-heading); font-size: 1.75rem; color: var(--color-primary); line-height: 1; overflow-wrap: break-word; }
.city-stat { min-width: 0; }
.city-stat span { color: var(--color-text-muted); font-size: var(--fs-sm); }
.locality-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.locality-chips a {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.locality-chips a:hover { border-color: var(--color-primary); color: var(--color-primary); }
