/* Farmers Bag site styles. Light theme only. Mobile first.
   Contrast notes: butter and icon sage are below 4.5:1 as text on cream, so they are
   used only as backgrounds and accents. Clay passes 4.5:1 on cream and white. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_600SemiBold.woff2") format("woff2"), url("/fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_700Bold.woff2") format("woff2"), url("/fonts/Fraunces_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --cream: #FBF9F4;
  --ink: #1E2A22;
  --green: #2F6B45;
  --forest: #0B3D2A;
  --clay: #B4531F;
  --muted: #4D5A50;
  --line: #D1D4C5;
  --sage: #E8EDDE;
  --butter: #F2D995;
  --icon-sage: #5E8C6E;
  --cat-produce: #3E7D52;
  --cat-eggs: #C08A2E;
  --cat-meat: #9C4A3C;
  --cat-honey: #B9862C;
  --cat-flowers: #A4548A;
  --cat-cottage: #7A6242;
  --paper: #FFFFFF;
  --sage-deep: #DDE5CF;
  --mark-leaf: #8DB26D;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  --radius: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
h3 { font-weight: 600; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--cream); }
main:focus { outline: none; }

/* ---------- type helpers ---------- */
.eyebrow { font: 700 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.eyebrow-light { color: var(--butter); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lede { margin-top: 14px; font-size: 1.12rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(47, 107, 69, .3); }
.text-link:hover { text-decoration-color: currentColor; }
.text-link-light { color: var(--cream); text-decoration-color: rgba(251, 249, 244, .45); }
.text-link-light:hover { color: var(--butter); }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 2px solid var(--green); border-radius: 10px; background: var(--green); color: var(--cream); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-butter { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.btn-butter:hover { background: #F7E5AE; border-color: #F7E5AE; color: var(--ink); }
.btn-large { min-height: 54px; padding: 14px 24px; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.app-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.app-badge img { height: 44px; width: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .97); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; font: 700 1.35rem/1 var(--serif); white-space: nowrap; }
.brand:hover { color: var(--forest); }
.brand-mark { width: 28px; height: 31px; color: var(--green); }
.brand-light, .brand-light:hover { color: var(--cream); }
.brand-light .brand-mark { color: var(--cream); }
.primary-nav { display: none; }
.header-cta { margin-left: auto; }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; box-shadow: 0 16px 30px -20px rgba(11, 61, 42, .35); }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: block; padding: 16px 2px; font: 600 1.35rem/1.2 var(--serif); color: var(--forest); text-decoration: none; }
.mobile-menu .btn { margin-top: 20px; }
@media (max-width: 379px) { .header-cta { display: none; } .menu-toggle { margin-left: auto; } }
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .primary-nav { display: block; margin-left: auto; }
  .primary-nav ul { display: flex; gap: 4px; }
  .primary-nav a { display: block; padding: 10px 12px; color: var(--muted); font-weight: 600; text-decoration: none; border-radius: 8px; }
  .primary-nav a:hover, .primary-nav a[aria-current] { color: var(--forest); background: var(--sage); }
  .header-cta { margin-left: 8px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: .92rem; font-weight: 600; margin-bottom: 20px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(180, 83, 31, .18); flex: none; }
.hero h1 { font-size: clamp(2.6rem, 1.5rem + 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; color: var(--forest); }
.hero h1 .accent { color: var(--clay); }
.hero h1 .line { display: block; }
.hero-lede { margin-top: 20px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--muted); }
.hero-copy .app-badge { margin-top: 18px; }
.hero-illustration { background: var(--sage); border-radius: 28px; padding: clamp(16px, 3vw, 32px); }
.illo { width: 100%; height: auto; display: block; }
.illo-label { font: 600 15px/1 var(--sans); fill: var(--ink); }
.illo-tag-text { font: 700 15px/1 var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  .illo-paths path { animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (max-width: 599px) { .hero-actions .btn { flex: 1 1 100%; } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }

/* ---------- finder ---------- */
.finder-section { padding: clamp(48px, 7vw, 88px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.finder-fallback { padding: 20px 22px; border-radius: var(--radius); background: var(--sage); }
.finder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.finder > *, .finder-panel > * { min-width: 0; }
.finder-panel { min-width: 0; display: contents; }
.finder-controls { order: 1; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.field-label { display: block; font-weight: 700; font-size: .95rem; margin: 2px 2px 8px; }
.search-field { position: relative; display: flex; align-items: center; height: 56px; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.search-field:focus-within { border-color: var(--green); }
.search-field > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px 0 44px; font-size: 1.05rem; border-radius: 12px; }
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: #6B766D; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.locate-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-right: 7px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--sage); color: var(--forest); font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.locate-btn:hover { background: var(--sage-deep); }
.locate-btn .icon { width: 16px; height: 16px; }
.locate-btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 359px) { .locate-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.filter-row .btn { grid-column: 1 / -1; min-height: 52px; }
.select-wrap { position: relative; display: grid; }
.select-wrap label { position: absolute; left: 12px; top: 7px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.select-wrap select { appearance: none; height: 52px; padding: 18px 32px 4px 11px; border: 2px solid var(--line); border-radius: 10px; background-color: var(--paper); font-weight: 600; font-size: .95rem; min-width: 0; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px top 24px, right 11px top 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.select-wrap select:focus-visible { outline: none; border-color: var(--green); }
.combobox { position: relative; }
.suggestions { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); z-index: 20; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 36px -18px rgba(11, 61, 42, .35); max-height: 320px; overflow-y: auto; }
.suggestions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggestions li span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.suggestions li mark { background: none; color: var(--green); font-weight: 700; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--sage); }
.finder-status-row { order: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.finder[data-state="idle"] .finder-status-row:has(.finder-status:empty) { display: none; }
.finder-status { font-weight: 700; color: var(--forest); }
.finder-status .muted { font-weight: 400; color: var(--muted); }
.map-toggle { flex: none; white-space: nowrap; min-height: 40px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 700; font-size: .9rem; cursor: pointer; }
.finder[data-state="idle"] .map-toggle { display: none; }
.place-choices { order: 3; display: flex; flex-wrap: wrap; gap: 8px; }
.place-choices:empty { display: none; }
.place-choices button { min-height: 40px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--paper); font-weight: 700; cursor: pointer; }
.place-choices button:hover { border-color: var(--green); }
.place-choices button span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.finder-map { order: 4; min-width: 0; }
.finder.map-hidden .finder-map { display: none; }
.finder-start { order: 5; padding: 22px; border-radius: var(--radius); background: var(--sage); }
.finder-start h3 { font-size: 1.4rem; color: var(--forest); }
.finder-start > p { margin: 6px 0 16px; color: var(--muted); }
.state-shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-bottom: 16px; }
.state-shortcuts a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; font-size: clamp(.92rem, .8rem + .6vw, 1rem); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.state-shortcuts a span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.state-shortcuts a:hover { color: var(--green); }
.finder[data-state="results"] .finder-start, .finder[data-state="loading"] .finder-start, .finder[data-state="empty"] .finder-start, .finder[data-state="error"] .finder-start { display: none; }
.finder[data-state="idle"] .finder-map { order: 6; }
.finder-results { order: 5; }
.result-list { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.result:hover { border-color: var(--icon-sage); }
.result.is-active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.result-tile { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--cream); font: 700 1rem/1 var(--sans); }
.result.is-active .result-tile { background: var(--clay); }
.result-body { min-width: 0; }
.result h3 { font-size: 1.15rem; margin: 6px 0 2px; overflow-wrap: anywhere; }
.result-addr { color: var(--muted); font-size: .95rem; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.result-distance { font-weight: 700; font-size: .9rem; color: var(--clay); font-variant-numeric: tabular-nums; }
.result-meta a.directions { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 12px; border-radius: 8px; background: var(--green); color: var(--cream); font-weight: 700; font-size: .9rem; text-decoration: none; }
.result-meta a.directions:hover { background: var(--forest); }
.result-meta a.directions .icon { width: 16px; height: 16px; }
.result-meta .city-link { font-weight: 700; font-size: .9rem; }
.result-meta button.show-on-map { min-height: 40px; padding: 8px 2px; border: 0; background: none; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.result-more { display: flex; justify-content: center; margin-top: 14px; }
.result-more:has(> [hidden]:only-child) { margin: 0; }
.skeleton { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.skeleton i { display: block; border-radius: 6px; background: linear-gradient(90deg, #ECEFE4 25%, #F6F7F1 50%, #ECEFE4 75%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton i:first-child { height: 40px; border-radius: 50%; }
.skeleton .sk-lines { display: grid; gap: 8px; }
.skeleton .sk-lines i:nth-child(1) { height: 18px; width: 70%; }
.skeleton .sk-lines i:nth-child(2) { height: 13px; width: 90%; }
.skeleton .sk-lines i:nth-child(3) { height: 34px; width: 36%; }
@keyframes shimmer { to { background-position: -150% 0; } }
.finder-empty { padding: 22px; border-radius: var(--radius); border: 2px dashed var(--line); }
.finder-empty h3 { font-size: 1.35rem; color: var(--forest); }
.finder-empty > p { margin-top: 6px; color: var(--muted); }
.empty-actions { display: grid; gap: 8px; margin-top: 14px; }
.empty-actions a { font-weight: 700; }
.map-frame { position: relative; background: #F3F5EC; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-stage { position: relative; aspect-ratio: 980 / 620; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.finder:not([data-state="idle"]) .map-stage { aspect-ratio: 1 / 1; }
.map-stage.is-dragging { cursor: grabbing; }
#result-map { width: 100%; height: 100%; display: block; }
#result-map .all-dots { fill: none; stroke: var(--green); stroke-linecap: round; opacity: .55; }
#result-map .result-dots { fill: none; stroke: var(--forest); stroke-linecap: round; opacity: .4; }
#result-map .place-name { fill: #4D5A50; stroke: #F3F5EC; paint-order: stroke; font-family: var(--sans); font-weight: 600; }
#result-map .user-dot { fill: #2F6FDB; stroke: #FFFFFF; }
#result-map .user-halo { fill: rgba(47, 111, 219, .16); }
#result-map .pin { cursor: pointer; }
#result-map .pin circle { fill: var(--green); stroke: var(--cream); }
#result-map .pin text { fill: var(--cream); font-family: var(--sans); font-weight: 700; text-anchor: middle; pointer-events: none; }
#result-map .pin:hover circle, #result-map .pin.is-active circle { fill: var(--clay); }
#result-map .leader { stroke: var(--forest); opacity: .6; }
.map-loading { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sweep 1.4s linear infinite; pointer-events: none; }
.map-loading.is-done { display: none; }
@keyframes sweep { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.map-tools { position: absolute; right: 12px; top: 12px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.map-tools button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--forest); cursor: pointer; }
.map-tools button + button { border-top: 1px solid var(--line); }
.map-tools button:hover { background: var(--sage); }
.map-caption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 80px); font-size: .85rem; color: var(--muted); background: rgba(255, 255, 255, .94); padding: 6px 10px; border-radius: 8px; pointer-events: none; }
.map-popup { position: absolute; z-index: 5; width: 260px; max-width: calc(100% - 24px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 36px -18px rgba(11, 61, 42, .45); transform: translate(-50%, calc(-100% - 20px)); }
.map-popup::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.map-popup.below { transform: translate(-50%, 20px); }
.map-popup.below::after { top: -7px; bottom: auto; transform: translateX(-50%) rotate(225deg); }
.map-popup h3 { font-size: 1.05rem; margin: 0 26px 4px 0; }
.map-popup p { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.map-popup .popup-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.map-popup .popup-actions a { font-weight: 700; font-size: .9rem; }
.map-popup .popup-close { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.directory-note { margin-top: 18px; font-size: .9rem; color: var(--muted); max-width: 72ch; }
@media (max-width: 599px) { .map-caption { display: none; } }
@media (min-width: 600px) { .filter-row { grid-template-columns: 1fr 1fr auto; } .filter-row .btn { grid-column: auto; } }
@media (min-width: 960px) {
  .finder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
  .finder-panel { display: block; }
  .finder-panel > * + * { margin-top: 16px; }
  .finder-map { position: sticky; top: calc(var(--header-h) + 16px); grid-column: 2; grid-row: 1; }
  .map-stage, .finder:not([data-state="idle"]) .map-stage { aspect-ratio: auto; height: min(620px, calc(100svh - var(--header-h) - 64px)); min-height: 420px; }
  .map-toggle { display: none; }
}

/* ---------- how it works ---------- */
.how { padding: clamp(56px, 8vw, 104px) 0; }
.steps { display: grid; gap: 28px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 24px; }
.step-visual { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--sage); margin-bottom: 18px; }
.step-visual svg, .step-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-visual-2 { background: #F4EBDD; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--cream); font: 700 1.05rem/1 var(--serif); margin: 0 8px 10px; }
.step h3 { font-size: 1.45rem; margin: 0 8px 8px; color: var(--forest); }
.step p:not(.step-num) { margin: 0 8px; color: var(--muted); }
.how-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; font-weight: 600; color: var(--forest); text-align: center; }
.how-note .icon { color: var(--clay); flex: none; }
@media (max-width: 599px) { .how-note { justify-content: flex-start; text-align: left; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- categories ---------- */
.categories { padding: 0 0 clamp(56px, 8vw, 104px); }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.category { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--sage); }
.category img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.category:hover img { transform: scale(1.03); }
.cat-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.category-label { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .92rem; }
.category-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--cat-produce)); }
.cat-produce { --dot: var(--cat-produce); }
.cat-eggs { --dot: var(--cat-eggs); }
.cat-honey { --dot: var(--cat-honey); }
.cat-flowers { --dot: var(--cat-flowers); }
.cat-meat { --dot: var(--cat-meat); background: var(--cat-meat); }
.cat-cottage { --dot: var(--cat-cottage); background: var(--cat-cottage); }
.cat-art { display: grid; place-items: center; }
.cat-art svg { width: 70%; height: auto; }
@media (max-width: 899px) { .cat-cottage { grid-column: 1 / -1; aspect-ratio: 2 / 1; } .cat-cottage svg { width: 46%; } }
.photo-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .category { aspect-ratio: auto; }
  .cat-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- farmers ---------- */
.farmers { background: var(--forest); color: var(--cream); padding: clamp(56px, 8vw, 104px) 0; }
.farmers h2 { color: var(--cream); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.farmers h3 { color: var(--cream); }
.farmers-grid { display: grid; gap: 40px; }
.farmers-lede { margin-top: 16px; font-size: 1.15rem; color: #DCE5DA; max-width: 36em; }
.benefits { display: grid; gap: 4px; margin-top: 28px; }
.benefits li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(251, 249, 244, .18); }
.benefits .icon { width: 24px; height: 24px; color: var(--butter); margin-top: 2px; }
.benefits h3 { font-size: 1.25rem; }
.benefits p { margin-top: 4px; color: #DCE5DA; }
.farmers-photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #174A33; }
.farmers-photo img { width: 100%; height: 100%; object-fit: cover; }
.free-ticket { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 10px; background: var(--butter); color: var(--ink); }
.free-ticket span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.free-ticket strong { font: 700 1.5rem/1.1 var(--serif); }
.join { margin-top: 20px; padding: 22px; border-radius: 20px; background: rgba(251, 249, 244, .07); border: 1px solid rgba(251, 249, 244, .16); }
.join h3 { font-size: 1.4rem; }
.join-steps { display: grid; gap: 12px; margin: 16px 0 22px; }
.join-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; }
.join-steps .step-num { margin: 0; background: var(--butter); color: var(--ink); }
.join-steps p { color: #DCE5DA; }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (max-width: 599px) { .join-actions .btn { width: 100%; } }
@media (min-width: 960px) { .farmers-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 104px) 0; }
.faq-grid { display: grid; gap: 12px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font: 600 1.2rem/1.35 var(--serif); color: var(--forest); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 2px; background: var(--green); transition: transform .25s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-body { padding: 0 0 22px; color: var(--muted); overflow: hidden; }
.faq-body p + p { margin-top: 10px; }
.faq-body a { font-weight: 700; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding: 56px 0 28px; --mark-leaf: #F2D995; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--butter); }
.footer-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(251, 249, 244, .18); }
.footer-brand p { margin: 14px 0 16px; color: #DCE5DA; max-width: 30ch; }
.footer-col h2 { font: 700 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--butter); margin-bottom: 12px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col address { font-style: normal; margin-top: 12px; color: #DCE5DA; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-size: .92rem; color: #DCE5DA; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- directory pages (state and city) ---------- */
.page-head { padding: clamp(24px, 5vw, 48px) 0 clamp(24px, 4vw, 36px); background: var(--sage); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { font-weight: 600; }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); color: var(--forest); max-width: 20ch; }
.page-head .answer { margin-top: 14px; max-width: 62ch; font-size: 1.1rem; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.dir-layout { display: grid; gap: 32px; padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 88px); }
.dir-main { min-width: 0; }
.dir-main h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--forest); margin: 36px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dir-main h2:first-child { margin-top: 0; }
.dir-main h2 .count { font: 600 .95rem/1 var(--sans); color: var(--muted); }
.dir-main h2 a { color: var(--forest); text-decoration-thickness: 2px; text-decoration-color: rgba(47, 107, 69, .35); }
.market-list { display: grid; gap: 10px; }
.market-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.market-card h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.market-card p { color: var(--muted); font-size: .96rem; margin-top: 2px; }
.market-card .distance { display: inline-block; margin-top: 6px; color: var(--clay); font-weight: 700; font-size: .9rem; }
.market-card .directions { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 8px; background: var(--green); color: var(--cream); font-weight: 700; font-size: .92rem; text-decoration: none; }
.market-card .directions:hover { background: var(--forest); color: var(--cream); }
.market-card .directions .icon { width: 16px; height: 16px; }
.list-note { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 20px; }
.city-links li { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.city-links a { display: block; padding: 11px 0; font-weight: 600; color: var(--forest); text-decoration: none; }
.city-links a:hover { text-decoration: underline; }
.city-links span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.dir-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; max-width: 76ch; }
.app-card { background: var(--forest); color: var(--cream); border-radius: 20px; padding: 24px; }
.app-card h2 { color: var(--cream); font-size: 1.6rem; margin: 0; }
.app-card p { color: #DCE5DA; margin-top: 10px; }
.app-card .mini-illo { width: 120px; height: auto; margin-bottom: 14px; }
.app-card .btn { margin-top: 18px; }
.app-card .app-badge { margin-top: 16px; }
.app-card .farmer-line { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(251, 249, 244, .18); font-size: .95rem; }
.app-card .farmer-line a { color: var(--butter); font-weight: 700; }
/* City pages carry the app card twice: inline after the first list on phones, in the sidebar on desktop. */
.app-card-inline { margin-top: 28px; }
@media (max-width: 999px) { .dir-layout:has(.app-card-inline) .dir-aside { display: none; } }
@media (min-width: 1000px) { .app-card-inline { display: none; } }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.state-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--forest); font-weight: 700; text-decoration: none; }
.state-grid a:hover { border-color: var(--green); }
.state-grid span { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .market-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .dir-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
  .dir-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- legal pages (wrapper only; body text comes from docs/legal) ---------- */
.legal-page .doc { width: min(780px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.legal-page .doc h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); color: var(--forest); margin-bottom: 14px; }
.legal-page .doc h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); color: var(--forest); margin: 40px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-page .doc h3 { font: 700 1.05rem/1.4 var(--sans); margin: 22px 0 6px; }
.legal-page .doc p, .legal-page .doc li { color: #2F3A32; }
.legal-page .doc p + p { margin-top: 12px; }
.legal-page .doc ul, .legal-page .doc ol { list-style: disc; padding-left: 1.3em; margin: 10px 0; }
.legal-page .doc ol { list-style: decimal; }
.legal-page .doc li + li { margin-top: 6px; }
.legal-page .doc .eyebrow { margin-bottom: 8px; }
.legal-page .doc .dates { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.legal-page .doc .note { background: #FBF1D3; border-left: 4px solid var(--clay); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.legal-page .doc .summary { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 22px 0; }
.legal-page .doc .summary > :first-child { margin-top: 0; }
.legal-page .doc details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 20px 0; }
.legal-page .doc details summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--forest); }
.legal-page .doc .ph { background: #FBF1D3; border-radius: 4px; padding: 0 4px; }
.legal-page .doc .table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal-page .doc table { border-collapse: collapse; width: 100%; font-size: .94rem; }
.legal-page .doc th, .legal-page .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-page .doc th { background: var(--sage); }
@media (min-width: 640px) { .legal-page .doc .toc ol, .legal-page .doc .toc ul { columns: 2; column-gap: 32px; } }

/* ---------- 404 ---------- */
.not-found { padding: clamp(56px, 10vw, 120px) 0; display: grid; gap: 18px; justify-items: start; }
.not-found h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem); color: var(--forest); }
.not-found p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.legal-footnote { color: var(--muted); font-size: .92rem; padding-bottom: 32px; }
