:root {
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --ink: #15151F;
  --ink-2: #4A4A58;
  --ink-3: #6B6B78;
  --line: #EADFCB;
  --ketchup: #FF3B2F;
  --ketchup-d: #D92A1F;
  --mustard: #FFC21A;
  --basil: #13804A;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(21 21 31 / .06), 0 12px 32px rgb(21 21 31 / .10);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* awning scallops, reused as a divider */
  --awning: radial-gradient(circle at 50% 0, var(--ketchup) 23px, transparent 24px) 50% 12px / 48px 24px repeat-x,
            linear-gradient(var(--ketchup), var(--ketchup)) 0 0 / 100% 13px no-repeat;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ketchup); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 2000; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ketchup-d); margin-bottom: 12px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--basil); box-shadow: 0 0 0 0 rgb(19 128 74 / .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(19 128 74 / 0); } 100% { box-shadow: 0 0 0 0 rgb(19 128 74 / 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--mustard { background: var(--mustard); color: var(--ink); }
.btn--mustard:hover { background: #FFD24D; }

/* header */
.top { position: sticky; top: 0; z-index: 1100; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgb(21 21 31 / .06); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 32px; width: auto; }
.top nav { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 20px 0 48px; }
.hero__grid { display: grid; gap: 20px; }
h1 { font-size: clamp(34px, 9.4vw, 64px); font-weight: 800; }
.hl { white-space: nowrap; background: linear-gradient(transparent 62%, var(--mustard) 62%, var(--mustard) 92%, transparent 92%); }
.lead { font-size: 16px; color: var(--ink-2); margin-top: 12px; max-width: 34em; }
.lead__extra { display: none; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.badge { display: block; border-radius: 8px; transition: transform .15s; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 40px; width: auto; }
.soon { font: 800 11px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; background: var(--mustard); color: var(--ink); padding: 7px 9px; border-radius: 999px; transform: rotate(-4deg); }
.soon__long { display: none; }
.ticks { display: none; list-style: none; padding: 0; margin: 20px 0 0; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ticks li::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--basil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* map card: chips strip, map, footer strip. isolation keeps the map's z-indexes inside the card (under the sticky header) */
.mapcard { position: relative; isolation: isolate; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.mapcard__bar { padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line); }
.mapcard__map { height: 340px; background: #F2EEE6; }
.mapcard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
.locate__long { display: none; }
@media (min-width: 420px) { .locate__long { display: inline; } .locate__short { display: none; } }
.count { white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 32px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chips.at-end { -webkit-mask-image: none; mask-image: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; min-height: 36px; font: 600 14px/1 var(--body); cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: #D9CBB2; }
.chip .ico { width: 18px; height: 18px; margin-left: -3px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toast { position: absolute; z-index: 1000; left: 12px; right: 12px; bottom: 70px; margin: 0 auto; max-width: 420px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.mapfail { display: grid; place-items: center; height: 100%; padding: 24px; text-align: center; color: var(--ink-2); }

/* icons (food set, 24 px grid) */
.ico { width: 22px; height: 22px; }
.ico .a { fill: var(--mustard); }
.ico .d { fill: currentColor; stroke: none; }

/* markers: rotated teardrop, tip on the truck's coordinate (offset set in app.js) */
.pin { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--ink); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 14px rgb(21 21 31 / .3); transition: transform .15s, background .15s; }
.pin .ico { transform: rotate(45deg); }
.pin.is-closed { background: #E7E3DA; color: var(--ink-3); }
.pin.is-closed .ico .a { fill: #F6EBCB; }
.pin.is-active { background: var(--ketchup); transform: rotate(-45deg) scale(1.15); }
.pin-wrap { display: block; padding: 0; background: none; border: 0; cursor: pointer; }
.pin-wrap[hidden] { display: none; }
.pin-wrap:focus-visible { outline: none; }
.pin-wrap:focus-visible .pin { outline: 3px solid var(--ketchup); outline-offset: 2px; }
.me { width: 18px; height: 18px; border-radius: 50%; background: #2F6BFF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(47 107 255 / .25); }
.maplibregl-map { font: 14px/1.45 var(--body); }
.maplibregl-popup { z-index: 5; }
.maplibregl-popup-content { border-radius: 16px; padding: 14px 34px 14px 16px; box-shadow: var(--shadow); color: var(--ink); }
.maplibregl-popup-close-button { width: 30px; height: 30px; font-size: 20px; color: var(--ink-3); border-radius: 0 16px 0 10px; }
.pop b { font: 700 17px/1.2 var(--body); display: block; margin-bottom: 2px; }
.pop a { display: inline-block; margin-top: 6px; padding: 4px 0; font-weight: 700; color: var(--ketchup-d); }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgb(255 255 255 / .8) !important; border-radius: 8px 0 0 0; }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 36px; height: 36px; }
.maplibregl-cooperative-gesture-screen { font: 600 15px/1.4 var(--body); }

/* status pill */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--basil); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-closed { color: var(--ink-3); }

/* trucks */
.trucks { position: relative; padding: 76px 0 64px; background: #fff; border-bottom: 1px solid var(--line); }
.trucks::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: var(--awning); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 18px; margin-bottom: 24px; }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px 6px 6px; min-height: 40px; font: 600 15px/1 var(--body); cursor: pointer; }
.switch__track { width: 38px; height: 24px; border-radius: 999px; background: #E7E3DA; position: relative; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(21 21 31 / .25); transition: transform .15s; }
.switch[aria-checked="true"] { border-color: var(--basil); }
.switch[aria-checked="true"] .switch__track { background: var(--basil); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(14px); }
.cards { display: grid; gap: 16px; }
/* phones and tablets: swipeable slider. desktop: grid */
@media (max-width: 999px) {
  .cards { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; margin-inline: -16px; scroll-padding-inline: 16px; scrollbar-width: none; align-items: start; }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card.is-active { border-color: var(--ketchup); box-shadow: 0 0 0 3px rgb(255 59 47 / .25), var(--shadow); }
.card__top { display: flex; gap: 14px; align-items: center; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.avatar .ico { width: 30px; height: 30px; }
.card h3 { font: 700 19px/1.2 var(--body); letter-spacing: -0.01em; }
.meta { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.menu li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.menu li:last-child { border-bottom: 0; }
.menu b { font-weight: 700; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hours { font-size: 14px; color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 10px 0; font: 700 14px/1 var(--body); color: var(--ketchup-d); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.empty { padding: 24px; text-align: center; color: var(--ink-2); }

/* how */
.how { padding: 64px 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; align-items: center; }
.steps p { color: var(--ink-2); grid-column: 2; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mustard); font: 800 20px/1 var(--display); }

/* opt-in */
.optin { padding: 0 0 64px; }
.optin__in { background: var(--ink); color: #fff; border-radius: 28px; padding: 60px 22px 28px; display: grid; gap: 24px; position: relative; overflow: hidden; }
.optin__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: var(--awning); }
.optin__copy > p { color: #D9D9E3; margin-top: 12px; max-width: 32em; }
.optin__form { display: grid; gap: 10px; margin-top: 22px; max-width: 520px; }
.optin__form input { width: 100%; min-width: 0; border: 2px solid transparent; border-radius: 999px; padding: 15px 20px; font: 500 16px var(--body); color: var(--ink); background: #fff; }
.optin__form input[aria-invalid="true"] { border-color: var(--ketchup); }
.msg { min-height: 22px; font-size: 14px; font-weight: 600; color: #FFB4AE; }
.msg.is-ok { color: var(--mustard); }
.optin .fine { font-size: 13px; color: #A9A9B8; margin-top: 4px; max-width: 34em; }
.optin .fine b { color: #D9D9E3; }
.optin__phone { display: none; }

/* phone mockup of the app (decorative) */
.phone { width: 272px; padding: 11px; border-radius: 46px; background: #0B0B12; box-shadow: 0 0 0 2px #2A2A36, 0 30px 60px rgb(0 0 0 / .45); }
.phone__screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--cream); color: var(--ink); height: 520px; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font: 700 13px/1 var(--body); }
.phone__status i { width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.phone__status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.phone__search { display: flex; align-items: center; gap: 8px; margin: 8px 12px 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-3); }
.phone__search svg { width: 16px; height: 16px; color: var(--ink); }
.phone__map { position: relative; height: 400px; }
.phone__map img { width: 100%; height: 100%; object-fit: cover; }
.phone__map small { position: absolute; right: 8px; top: 6px; font-size: 8px; color: var(--ink-3); background: rgb(255 255 255 / .8); padding: 1px 4px; border-radius: 4px; }
.phone__map .pin { position: absolute; width: 34px; height: 34px; margin: -38px 0 0 -17px; border-width: 2.5px; }
.phone__map .pin .ico { width: 17px; height: 17px; }
.phone__sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 -4px 24px rgb(21 21 31 / .18); }
.phone__row { display: flex; gap: 8px; align-items: center; padding-right: 30px; white-space: nowrap; }
.phone__row > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.phone__row b { display: block; font: 700 15px/1.2 var(--body); }
.phone__row .status { font-size: 12px; }
.phone__mi { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.avatar--sm { width: 40px; height: 40px; border-radius: 12px; }
.avatar--sm .ico { width: 24px; height: 24px; }
.phone__menu { display: flex; justify-content: space-between; font-size: 13px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); }
.phone__menu b { color: var(--ink); }
.phone__follow { position: absolute; right: 12px; top: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #FFE9E7; color: var(--ketchup); }
.phone__follow svg { width: 16px; height: 16px; }

/* footer */
.foot { padding: 32px 0 40px; background: var(--ink); color: #BDBDCB; font-size: 14px; }
.foot__in { display: grid; gap: 14px; }
.foot img { height: 30px; width: auto; }
.foot__text p + p { color: #8E8E9E; margin-top: 2px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: #fff; }

@media (min-width: 560px) {
  .optin__form { grid-template-columns: 1fr auto; }
  .msg { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .hero { padding: 32px 0 64px; }
  .lead { font-size: 18px; margin-top: 16px; }
  .lead__extra { display: inline; }
  .stores { margin-top: 26px; }
  .badge img { height: 48px; }
  .stores { gap: 12px; }
  .soon__long { display: inline; }
  .ticks { display: flex; }
  .hero__grid { gap: 32px; }
  .mapcard__map { height: 420px; }
  .cards { grid-auto-columns: 46%; }
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}
@media (min-width: 1000px) {
  .top nav { display: flex; }
  .hero { padding: 44px 0 80px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  h1 { font-size: clamp(46px, 4.6vw, 64px); }
  .mapcard__map { height: 480px; }
  .chips { flex-wrap: wrap; overflow: visible; padding-right: 10px; -webkit-mask-image: none; mask-image: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps li { display: block; padding: 24px; }
  .steps .num { margin-bottom: 16px; }
  .steps p { margin-top: 8px; }
  .optin { padding-top: 40px; }
  .optin__in { grid-template-columns: 1fr 320px; padding: 84px 56px 56px; overflow: visible; }
  .optin__in::before { border-radius: 28px 28px 0 0; }
  .optin__phone { display: block; position: relative; margin: -150px 0 -24px; align-self: end; }
  .optin__phone .phone { transform: rotate(4deg); margin-left: auto; }
}
