/* BrandSpot site — tokens copied from the BrandSpot Design System (v1, Verified Local). */
/* Layout: shopper finder = sidebar list + full-height map on desktop, map-over-list on phones. */
:root {
  --surface: #F5F7F4; --surface-card: #FFFFFF; --surface-band: #08494A; --hairline: #D9E4E1;
  --control-border: #6B8A87; --ink: #14232E; --ink-muted: #4A5A63; --teal: #0B6B6B; --teal-text: #0B6B6B;
  --on-teal: #FFFFFF; --on-band: #EEF3F1; --marigold: #FFB81C; --on-marigold: #14232E;
  --confirmed: #17804A; --on-confirmed: #FFFFFF; --error: #B3261E; --focus-ring: #0B6B6B;
  --shadow-card: 0 1px 2px rgba(20,35,46,.08), 0 4px 12px rgba(20,35,46,.06);
  --font-display: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-text: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-tile: 26px; --radius-pill: 999px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0E1A21; --surface-card: #16262F; --hairline: #2A4250; --control-border: #5E7D86; --ink: #EEF3F1;
    --ink-muted: #A9BCB8; --teal-text: #4CC2B8; --on-marigold: #0E1A21; --confirmed: #4ADE8C; --on-confirmed: #0E1A21;
    --error: #FF8A80; --focus-ring: #4CC2B8; --shadow-card: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0E1A21; --surface-card: #16262F; --hairline: #2A4250; --control-border: #5E7D86; --ink: #EEF3F1;
  --ink-muted: #A9BCB8; --teal-text: #4CC2B8; --on-marigold: #0E1A21; --confirmed: #4ADE8C; --on-confirmed: #0E1A21;
  --error: #FF8A80; --focus-ring: #4CC2B8; --shadow-card: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); padding: 10px var(--space-4); background: var(--surface-card); border-bottom: 1px solid var(--hairline); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.nav { display: flex; gap: var(--space-1); margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-md); }
.nav a[aria-current="page"] { color: var(--teal-text); }
.nav a:hover { background: var(--surface); }

/* Buttons, chips, inputs (Design System bs- components) */
.bs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 15px/1 var(--font-text); text-decoration: none; cursor: pointer; }
.bs-btn--primary { background: var(--teal); color: var(--on-teal); }
.bs-btn--accent { background: var(--marigold); color: var(--on-marigold); }
.bs-btn--outline { background: transparent; color: var(--ink); border-color: var(--control-border); }
.bs-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.bs-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bs-switch { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--control-border); background: var(--surface-card); color: var(--ink); font: 600 14px var(--font-text); cursor: pointer; }
.bs-switch svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bs-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 10px; border-radius: var(--radius-pill); font: 600 12.5px/16px var(--font-text); }
.bs-chip--weekend { background: var(--marigold); color: var(--on-marigold); }
.bs-chip--confirmed { background: var(--confirmed); color: var(--on-confirmed); }
.bs-chip--neutral { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
.bs-chip--source { background: transparent; color: var(--ink-muted); border: 1px solid var(--hairline); font-weight: 500; }
.bs-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.bs-input, .bs-select { min-height: 44px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--control-border); background: var(--surface-card); color: var(--ink); font: 16px var(--font-text); width: 100%; }
.bs-error { font-size: 13px; color: var(--error); font-weight: 500; }
.eyebrow { font: 700 12px/16px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); }
.caption { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; z-index: 50; }

.site-footer { padding: var(--space-6) var(--space-4); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 13px; line-height: 19px; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phone header: one row */
@media (max-width: 600px) {
  .site-header { gap: var(--space-2); padding-inline: 12px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 18px; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { font-size: 14px; padding: 8px; white-space: nowrap; }
  .nav a.hide-sm { display: none; }
  .bs-switch { padding: 0 10px; }
  .bs-switch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Logo lockups swap with the theme */
.brand .logo { height: 47px; width: auto; display: block; margin-block: -6px; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .logo-light { display: none; } :root:not([data-theme="light"]) .brand .logo-dark { display: block; } }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (max-width: 600px) { .brand .logo { height: 40px; } }

/* ---------- Shared page layout (home, brands, about, contact, legal) ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: var(--space-4); }
.wrap--narrow { max-width: 760px; }
.section { padding-block: var(--space-12); }
.section--card { background: var(--surface-card); border-block: 1px solid var(--hairline); }
.band { background: var(--surface-band); color: var(--on-band); }
.band .eyebrow { color: var(--marigold); }
.band a:not(.bs-btn) { color: var(--on-band); }
.band .bs-btn--outline { color: var(--on-band); border-color: var(--on-band); }
.h1 { margin: 8px 0 12px; font: 800 44px/48px var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.h2 { margin: 0 0 8px; font: 800 30px/36px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.h3 { margin: 0 0 6px; font: 800 20px/26px var(--font-display); }
.lead { margin: 0 0 var(--space-6); color: var(--ink-muted); font-size: 17px; line-height: 27px; max-width: 40em; }
.band .lead { color: var(--on-band); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.panel-card { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-6); }
.panel-card p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.nav .short { display: none; }
@media (max-width: 760px) {
  .h1 { font-size: 34px; line-height: 38px; }
  .h2 { font-size: 26px; line-height: 31px; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-8); }
  .panel-card { padding: var(--space-4); }
}
@media (max-width: 600px) { .nav .full { display: none; } .nav .short { display: inline; } }

/* Prose (about, legal) */
.prose { font-size: 16px; line-height: 26px; }
.prose h2 { margin: var(--space-8) 0 var(--space-2); font: 800 22px/28px var(--font-display); }
.prose h3 { margin: var(--space-6) 0 var(--space-2); font: 700 17px/24px var(--font-display); }
.prose p, .prose ul { margin: 0 0 var(--space-3); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .ph { background: color-mix(in srgb, var(--marigold) 35%, transparent); padding: 0 4px; border-radius: 4px; }
.updated { color: var(--ink-muted); font-size: 14px; }

/* Forms on pages */
form.grid { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
form.grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field .hint { font-size: 13px; color: var(--ink-muted); }
.opt { font-weight: 500; color: var(--ink-muted); }
textarea.bs-input { min-height: 120px; padding-block: 10px; resize: vertical; line-height: 22px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.done { background: var(--surface-card); border: 1px solid var(--teal); border-radius: var(--radius-lg); padding: var(--space-6); }
.done h3 { margin: 0 0 6px; font: 800 20px/26px var(--font-display); }
.done p { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 760px) { form.grid { grid-template-columns: 1fr; padding: var(--space-4); } }

/* Weekly alert block (home + finder) */
.alerts { background: var(--surface-band); color: var(--on-band); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.alerts .eyebrow { color: var(--marigold); }
.alerts h2, .alerts h3 { margin: 0; font: 800 18px/23px var(--font-display); color: var(--on-band); }
.alerts p { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-band); }
.alerts form { display: flex; flex-direction: column; gap: var(--space-2); }
.alerts-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.alerts-row.with-zip { grid-template-columns: 1fr 92px auto; }
.alerts .bs-input { border-color: transparent; }
.alerts .fine { font-size: 12px; line-height: 17px; opacity: .9; }
.alerts a { color: var(--on-band); }
.alerts .bs-error { color: #FFD3CF; }
.alerts .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 18px; }
.alerts .consent[hidden] { display: none; }
.alerts .consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--marigold); }
.alerts .done-msg { font-size: 15px; line-height: 22px; }
@media (max-width: 420px) { .alerts-row.with-zip { grid-template-columns: 1fr 84px; } .alerts-row.with-zip .bs-btn { grid-column: 1 / -1; } }

/* Footer */
.site-footer { padding: var(--space-8) var(--space-4); border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 13px; line-height: 19px; background: var(--surface); }
.site-footer .foot { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.site-footer nav a { color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 0; }
.site-footer nav a:hover { color: var(--teal-text); text-decoration: underline; }
.site-footer p { margin: 0; }
