/* V1 — Forest Editorial. Tokens follow docs/design-spec.md (forest mode). */
/* Tokens live in tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--leaf-500); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Subtle grain over everything: the "editorial print" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: .02em;
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.price { font-variant-numeric: tabular-nums; font-weight: 500; }
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.mask > span { display: block; }

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .01em;
  transition: background .28s var(--ease-out), color .28s var(--ease-out), transform .16s;
}
.pill:active { transform: scale(.97); }
.pill--solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pill--solid:hover { background: var(--leaf-300); border-color: var(--leaf-300); }
.pill--ghost:hover { background: var(--cream-100); color: var(--forest-950); border-color: var(--cream-100); }
.pill--block { width: 100%; }
.pill .price { font-style: normal; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--raised); border-color: var(--faint); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar__logo img { height: 42px; width: auto; }
.topbar__store {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.topbar__store.show { display: inline-flex; }
.topbar__store b { font-weight: 500; }
.topbar__store small { color: var(--muted); font-size: 13px; }
.topbar__spacer { flex: 1; }
.bag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--cream-100);
  color: var(--forest-950);
  font-weight: 500;
  font-size: 15px;
}
.bag-btn svg { width: 20px; height: 20px; }
.bag-btn__count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--forest-950);
  color: var(--cream-100);
  font-size: 12px;
  display: grid;
  place-items: center;
}
.bag-btn[data-empty="true"] .bag-btn__total { display: none; }

/* ---------- Views ---------- */
.view { min-height: calc(100vh - var(--header-h)); }

/* ---------- Hand-drawn annotations (signature) ---------- */
.annot {
  position: absolute;
  pointer-events: none;
  color: var(--cream-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 4.4cqw, 34px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  z-index: 3;
}
.annot__label { display: inline-block; }
.annot svg { position: absolute; overflow: visible; }
.annot path { fill: none; stroke: currentColor; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.annot--dark { color: var(--forest-950); }
.annot--leaf { color: var(--leaf-300); }

/* ---------- Home ---------- */
.hero {
  position: relative;
  padding: 28px var(--gutter) 8px;
  display: grid;
  gap: 22px;
}
.hero__title { font-size: clamp(76px, 22vw, 150px); }
.hero__title em { font-style: normal; color: var(--leaf-500); }
.hero__lede { margin: 0; max-width: 34ch; color: var(--muted); font-size: 17px; }
.hero__lede strong { color: var(--text); font-weight: 500; }
.hero__mediawrap { position: relative; container-type: inline-size; }
.feature__img, .sheet__hero, .loyalty-teaser { container-type: inline-size; }
.hero__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--moss-600);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__annots { position: absolute; inset: 0; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.marquee {
  margin: 28px 0 8px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0 8px;
}
.marquee__track { display: inline-flex; gap: 28px; will-change: transform; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-500); }

.section { padding: 32px var(--gutter); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__title { font-size: clamp(44px, 12vw, 72px); }

.stores { display: grid; gap: 12px; }
.store {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.store:hover { border-color: color-mix(in oklab, var(--leaf-500) 55%, transparent); background: var(--raised); }
.store__name { font-size: 46px; grid-column: 1; }
.store__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.store__meta span { display: inline-flex; align-items: center; gap: 6px; }
.store__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background .25s, color .25s, transform .35s var(--ease-out);
}
.store:hover .store__arrow { background: var(--leaf-500); color: var(--forest-950); transform: rotate(-35deg); }
.store__arrow svg { width: 22px; height: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-500); box-shadow: 0 0 0 4px color-mix(in oklab, var(--leaf-500) 22%, transparent); }
.dot--steady { background: var(--sun-400); box-shadow: 0 0 0 4px color-mix(in oklab, var(--sun-400) 22%, transparent); }
.dot--busy { background: var(--clay-500); box-shadow: 0 0 0 4px color-mix(in oklab, var(--clay-500) 22%, transparent); }

.loyalty-teaser {
  margin: 8px var(--gutter) 40px;
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--cream-100);
  color: var(--forest-950);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.loyalty-teaser .display { font-size: 48px; }
.loyalty-teaser p { margin: 0; max-width: 36ch; color: color-mix(in oklab, var(--forest-950) 72%, transparent); }
.loyalty-teaser .pill { justify-self: start; }
.stamp-row { display: flex; gap: 8px; }
.stamp-row i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in oklab, var(--forest-950) 40%, transparent);
  display: grid;
  place-items: center;
}
.stamp-row i.on { background: var(--moss-600); border: 0; }
.stamp-row i.on::after { content: ""; width: 14px; height: 8px; border: 2px solid var(--leaf-300); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.footer { padding: 32px var(--gutter) 48px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- Menu ---------- */
.menu-head { padding: 22px var(--gutter) 6px; display: grid; gap: 14px; }
.menu-head__title { font-size: clamp(64px, 18vw, 120px); }
.menu-head__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  transition: background .2s, border-color .2s, color .2s;
}
.chip svg { width: 16px; height: 16px; }
.chip--on { background: var(--cream-100); color: var(--forest-950); border-color: var(--cream-100); }
.chip--time b { font-weight: 500; }

.cat-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.cat-rail__scroll {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px var(--gutter);
}
.cat-rail__scroll::-webkit-scrollbar { display: none; }
.cat-rail__btn {
  position: relative;
  z-index: 1;
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s;
}
.cat-rail__btn.active { color: var(--forest-950); }
.cat-rail__ink {
  position: absolute;
  top: 10px;
  left: 0;
  height: 38px;
  border-radius: 999px;
  background: var(--leaf-500);
  z-index: 0;
}
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter) 0; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }

.cat { padding: 40px 0 8px; scroll-margin-top: calc(var(--header-h) + 60px); }
.cat__head { padding: 0 var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cat__title { font-size: clamp(52px, 14vw, 88px); }
.cat__count { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--leaf-500); }
.cat__lede { padding: 0 var(--gutter); margin: -8px 0 20px; color: var(--muted); max-width: 46ch; font-size: 15px; }

.feature {
  position: relative;
  margin: 0 var(--gutter) 16px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-100);
  color: var(--forest-950);
  display: grid;
  text-align: left;
  width: calc(100% - var(--gutter) * 2);
}
.feature__img { aspect-ratio: 1 / .82; overflow: hidden; position: relative; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.feature:hover .feature__img img { transform: scale(1.04) rotate(-1deg); }
.feature__body { padding: 4px 22px 22px; display: grid; gap: 8px; }
.feature__name { font-size: 46px; }
.feature__desc { margin: 0; font-size: 15px; color: color-mix(in oklab, var(--forest-950) 70%, transparent); }
.feature__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.feature .price { font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--gutter); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s, translate .35s var(--ease-out);
}
.card:hover { border-color: color-mix(in oklab, var(--leaf-500) 50%, transparent); translate: 0 -3px; }
.card__img { aspect-ratio: 1; background: var(--cream-100); overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 12px 12px 14px; display: grid; gap: 4px; flex: 1; }
.card__name { font-weight: 500; font-size: 15px; line-height: 1.25; }
.card__meta { font-size: 12px; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf-500);
  color: var(--forest-950);
  transition: transform .2s, background .2s;
}
.add:hover { background: var(--leaf-300); transform: rotate(90deg); }
.add svg { width: 18px; height: 18px; }
.feature .add { width: 48px; height: 48px; background: var(--forest-950); color: var(--cream-100); }

.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 6px; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 min(46%, 200px); scroll-snap-align: start; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--leaf-300);
}
.feature .tag { color: var(--moss-600); }
.flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 12px 0;
  border-radius: 999px;
  background: var(--forest-950);
  color: var(--cream-100);
}
.flag--new { background: var(--sun-400); color: var(--forest-950); }

.sold .card__img img, .sold .feature__img img { filter: grayscale(1) contrast(.9); opacity: .55; }
.sold .add { display: none; }
.sold-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.sold-stamp span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  color: var(--clay-500);
  border: 2.5px solid var(--clay-500);
  border-radius: 14px;
  padding: 6px 12px 2px;
  transform: rotate(-9deg);
  background: color-mix(in oklab, var(--cream-100) 82%, transparent);
}
.sold-stamp small { display: block; font-size: 18px; }

.empty { padding: 40px var(--gutter); color: var(--muted); }

/* Skeletons */
.skel { background: linear-gradient(100deg, var(--surface) 30%, var(--raised) 50%, var(--surface) 70%); background-size: 300% 100%; animation: skel 1.2s linear infinite; border-radius: var(--r-md); }
@keyframes skel { to { background-position: -100% 0; } }

/* ---------- Customizer sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 7, .62); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; }
.scrim.open { pointer-events: auto; }
.sheet {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--forest-900);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  visibility: hidden;
}
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__hero { position: relative; background: var(--cream-100); height: min(36vh, 300px); flex: none; overflow: hidden; }
.sheet__side { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sheet__hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 4; background: var(--forest-950); color: var(--cream-100); border-color: transparent; }
.sheet__grab { position: absolute; display: var(--grab, block); top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 4px; border-radius: 4px; background: color-mix(in oklab, var(--forest-950) 30%, transparent); z-index: 4; }
.sheet__body { padding: 20px var(--gutter) 8px; display: grid; gap: 10px; }
.sheet__name { font-size: 56px; }
.sheet__desc { margin: 0; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 500; }
.allergen-line { font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in oklab, var(--clay-500) 10%, transparent); border: 1px solid color-mix(in oklab, var(--clay-500) 30%, transparent); }
.allergen-line b { color: var(--cream-100); font-weight: 500; }

.group { padding: 22px var(--gutter) 6px; border-top: 1px solid var(--line); margin-top: 12px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.group__title { font-size: 34px; }
.group__rule { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}
.opt:last-child { border-bottom: 0; }
.opt__name { flex: 1; font-size: 15px; }
.opt__price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.opt__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  display: grid;
  place-items: center;
  flex: none;
  transition: background .2s, border-color .2s;
}
.opt__check svg { width: 14px; height: 14px; opacity: 0; color: var(--forest-950); }
.opt[aria-pressed="true"] .opt__check { background: var(--leaf-500); border-color: var(--leaf-500); }
.opt[aria-pressed="true"] .opt__check svg { opacity: 1; }
.opt--removal[aria-pressed="true"] .opt__name { text-decoration: line-through; text-decoration-color: var(--clay-500); text-decoration-thickness: 2px; color: var(--muted); }
.opt--removal[aria-pressed="true"] .opt__check { background: var(--clay-500); border-color: var(--clay-500); }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:hover { background: var(--raised); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper svg { width: 14px; height: 14px; }
.stepper output { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.opt .stepper { display: none; }
.opt[data-qty]:not([data-qty="0"]) .stepper { display: inline-flex; }
.opt[data-qty]:not([data-qty="0"]) .opt__check { display: none; }

.sheet__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--forest-900);
}
.sheet__foot .pill { flex: 1; }
.sheet__foot .stepper { height: 48px; }
.sheet__foot .stepper button { width: 40px; height: 40px; }

/* ---------- Bag drawer ---------- */
.drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--forest-900);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 48px; }
.drawer__list { flex: 1; overflow-y: auto; padding: 4px var(--gutter); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.line__img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--cream-100); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-weight: 500; }
.line__mods { font-size: 13px; color: var(--muted); }
.line__mods .minus { color: var(--clay-500); }
.line__right { display: grid; justify-items: end; gap: 8px; }
.drawer__foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.sum--total { color: var(--text); font-size: 18px; font-weight: 500; }
.points-hint { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--leaf-300); }
.points-hint svg { width: 18px; height: 18px; flex: none; }

/* ---------- Checkout ("paper receipt") ---------- */
.checkout { padding: 20px var(--gutter) 60px; display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; }
.checkout__title { font-size: clamp(64px, 18vw, 120px); }
.paper {
  background: var(--cream-100);
  color: var(--forest-950);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  position: relative;
  --muted: color-mix(in oklab, var(--forest-950) 62%, transparent);
  --line: color-mix(in oklab, var(--forest-950) 14%, transparent);
}
.paper + .paper { margin-top: -6px; }
.paper__title { font-size: 40px; margin-bottom: 14px; }
.paper__sub { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }
.slots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; }
.slots::-webkit-scrollbar { display: none; }
.slot {
  flex: none;
  min-width: 86px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}
.slot b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; }
.slot small { color: var(--muted); font-size: 12px; }
.slot[aria-pressed="true"] { background: var(--forest-950); color: var(--cream-100); border-color: var(--forest-950); }
.slot[aria-pressed="true"] small { color: var(--leaf-300); }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: default; }
.social { display: grid; gap: 8px; }
.social .pill { border-color: var(--line); color: var(--forest-950); font-style: normal; }
.social .pill--apple { background: var(--forest-950); color: var(--cream-100); border-color: var(--forest-950); }
.social svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 10px; }
.field label { font-size: 13px; color: var(--muted); }
.field input {
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--cream-50);
  color: var(--forest-950);
  font: inherit;
}
.field input:focus { outline: 2px solid var(--moss-600); outline-offset: 1px; }
.pay { display: grid; gap: 8px; }
.pay__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-align: left;
}
.pay__opt[aria-pressed="true"] { border: 2px solid var(--forest-950); padding: 0 15px; }
.pay__opt > span:not(.radio) { flex: 1; font-weight: 500; }
.pay__opt small { color: var(--muted); }
.pay__mark { height: 26px; min-width: 42px; padding: 0 8px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--forest-950); color: var(--cream-100); }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.pay__opt[aria-pressed="true"] .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--forest-950); }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.receipt-line small { display: block; color: var(--muted); font-size: 13px; }
.receipt-sep { border: 0; border-top: 1px dashed var(--line); margin: 10px 0; }
.receipt-total { font-size: 20px; font-weight: 500; }
.paper--loyalty { background: var(--moss-600); color: var(--cream-100); --muted: color-mix(in oklab, var(--cream-100) 70%, transparent); }
.progress { height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--cream-100) 18%, transparent); overflow: hidden; margin: 12px 0 8px; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--leaf-500); }
.co-pay { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.co-pay .pill { min-height: 56px; font-size: 19px; }

/* ---------- Tracking ---------- */
.track { padding: 20px var(--gutter) 60px; display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }
.track__main { display: grid; gap: 18px; }
.seg { position: relative; justify-self: center; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.seg__btn { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.seg__btn small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.seg__btn[aria-selected="true"] { color: var(--forest-950); }
.seg__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--cream-100); }

/* Live map — real Soho streets, brand-styled */
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--forest-900); border: 1px solid var(--line); }
.map__svg { width: 100%; height: 100%; display: block; }
.map__bg { fill: var(--forest-900); }
.map__parks { fill: color-mix(in oklab, var(--moss-600) 80%, var(--forest-900)); }
.map__bld { fill: color-mix(in oklab, var(--forest-800) 70%, var(--forest-950)); }
.map__minor, .map__ped, .map__major { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__minor { stroke: color-mix(in oklab, var(--cream-100) 9%, var(--forest-900)); stroke-width: 7; }
.map__ped { stroke: color-mix(in oklab, var(--cream-100) 7%, var(--forest-900)); stroke-width: 5; }
.map__major { stroke: color-mix(in oklab, var(--cream-100) 15%, var(--forest-900)); stroke-width: 12; }
.map__labels text { font: 500 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; fill: color-mix(in oklab, var(--cream-100) 38%, transparent); text-anchor: middle; }
.map__route-base { fill: none; stroke: color-mix(in oklab, var(--leaf-500) 35%, transparent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map[data-mode="collect"] .map__route-base { stroke: color-mix(in oklab, var(--sun-400) 45%, transparent); stroke-dasharray: 2 9; }
.map__route { fill: none; stroke: var(--leaf-500); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in oklab, var(--leaf-500) 60%, transparent)); }
.map[data-mode="collect"] .map__route { stroke: var(--sun-400); filter: none; }
.map__pin--store circle { fill: var(--cream-100); stroke: var(--forest-950); stroke-width: 3; }
.map__pin--store .chev path { fill: none; stroke: var(--forest-950); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.map__pin--dest path { fill: var(--clay-500); stroke: var(--forest-950); stroke-width: 2; }
.map__pin--dest circle { fill: var(--forest-950); }
.map__dot { fill: var(--leaf-500); stroke: var(--forest-950); stroke-width: 3; }
.map[data-mode="collect"] .map__dot { fill: var(--sun-400); }
.map__pulse { fill: color-mix(in oklab, var(--leaf-500) 45%, transparent); }
.map[data-mode="collect"] .map__pulse { fill: color-mix(in oklab, var(--sun-400) 45%, transparent); }
.map__bike { color: var(--forest-950); }
.map__card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--cream-100) 94%, transparent); color: var(--forest-950); backdrop-filter: blur(8px); }
.map__card b { display: block; font-weight: 500; font-variant-numeric: tabular-nums; }
.map__card small { color: color-mix(in oklab, var(--forest-950) 62%, transparent); font-size: 13px; }
.map__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--moss-600); color: var(--cream-100); font-weight: 600; font-size: 16px; }
.map__avatar--you { background: var(--sun-400); color: var(--forest-950); font-size: 13px; }
.map__credit { position: absolute; top: 10px; right: 12px; font-size: 10px; color: var(--faint); }
.track__label { text-align: center; }
.track__number { font-size: clamp(120px, 40vw, 220px); text-align: center; color: var(--cream-100); line-height: .8; }
.track__number span { display: inline-block; }
.track__status { text-align: center; font-size: 20px; }
.track__status b { color: var(--leaf-500); font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 22px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl__fill { position: absolute; left: 16px; top: 34px; width: 2px; height: 0; background: var(--leaf-500); }
.tl__dot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--faint); display: grid; place-items: center; background: var(--surface); position: relative; z-index: 1; }
.tl__dot svg { width: 16px; height: 16px; opacity: 0; }
.tl.done .tl__dot { background: var(--leaf-500); border-color: var(--leaf-500); color: var(--forest-950); }
.tl.done .tl__dot svg { opacity: 1; }
.tl.now .tl__dot { border-color: var(--leaf-500); box-shadow: 0 0 0 6px color-mix(in oklab, var(--leaf-500) 18%, transparent); animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px color-mix(in oklab, var(--leaf-500) 0%, transparent); } }
.tl__title { font-weight: 500; padding-top: 5px; }
.tl__sub { font-size: 14px; color: var(--muted); }
.tl__time { font-size: 13px; color: var(--muted); padding-top: 7px; font-variant-numeric: tabular-nums; }
.tl:not(.done):not(.now) .tl__title { color: var(--muted); }
.pickup-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r-lg); background: var(--cream-100); color: var(--forest-950); }
.pickup-card p { margin: 4px 0 0; font-size: 14px; color: color-mix(in oklab, var(--forest-950) 65%, transparent); }
.qr { width: 84px; height: 84px; background: var(--forest-950); border-radius: 12px; padding: 8px; }
.qr i { display: block; width: 100%; height: 100%; background-image: radial-gradient(var(--cream-100) 38%, transparent 40%); background-size: 8px 8px; }
.points-earned { text-align: center; padding: 24px; border-radius: var(--r-lg); border: 1px dashed color-mix(in oklab, var(--leaf-500) 50%, transparent); }
.points-earned .display { font-size: 72px; color: var(--leaf-500); }

/* ---------- Toast + fly ---------- */
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 104px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--cream-100);
  color: var(--forest-950);
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
}
.fly { position: fixed; z-index: 95; border-radius: 50%; overflow: hidden; pointer-events: none; background: var(--cream-100); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .topbar__store.show { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stores { grid-template-columns: repeat(2, 1fr); }
  .row .card { flex-basis: 220px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding-top: 32px; column-gap: 56px; max-width: 1440px; margin: 0 auto; }
  .hero__text { display: grid; gap: 28px; }
  .hero__title { font-size: clamp(120px, 11.5vw, 210px); }
  .hero__lede { font-size: 19px; }
  .hero__mediawrap { width: min(100%, calc(100vh - 140px)); justify-self: end; }
  .hero__media { border-radius: 999px 999px var(--r-lg) var(--r-lg); }
  .section, .loyalty-teaser, .footer { max-width: 1440px; margin-left: auto; margin-right: auto; }
  .loyalty-teaser { margin-bottom: 56px; padding: 40px; }
  .loyalty-teaser .display { font-size: 72px; }
  .menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; max-width: 1440px; margin: 0 auto; padding-right: var(--gutter); }
  .menu-aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; margin-top: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; overflow: hidden; }
  .menu-aside .drawer__head { padding: 14px 20px; }
  .menu-aside .drawer__list { padding: 4px 20px; }
  .menu-aside .drawer__foot { padding: 16px 20px; }
  .feature { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .feature__img { aspect-ratio: 1; }
  .feature__body { padding: 32px; }
  .feature__name { font-size: 64px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(980px, 92vw); max-height: 88vh; border-radius: var(--r-lg); flex-direction: row; }
  .sheet__hero { width: 46%; height: auto; --grab: none; }
  .checkout { grid-template-columns: 1.3fr 1fr; align-items: start; column-gap: 24px; }
  .checkout__title, .checkout__back { grid-column: 1 / -1; }
  .checkout__main { display: grid; gap: 18px; }
  .checkout__side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
  .co-pay { position: static; background: none; padding: 0; }
  .track { max-width: 1280px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; gap: 40px; }
  .track__map { position: sticky; top: calc(var(--header-h) + 20px); }
  .track__map .map { aspect-ratio: auto; height: calc(100vh - var(--header-h) - 60px); min-height: 520px; }
}
@media (max-width: 1023px) {
  .menu-aside { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Allergens — always visible as text (UK FSA distance-selling rules) */
.allergens { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); }
.allergens b { font-weight: 600; color: color-mix(in oklab, var(--clay-500) 80%, var(--cream-100)); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; margin-right: 2px; }
.feature .allergens { font-size: 13px; color: color-mix(in oklab, var(--forest-950) 62%, transparent); }
.feature .allergens b { color: #A3401A; }
.line .allergens { margin-top: 2px; }
