/* ==========================================================
   NomNom guest menu: warm paper, the food in full colour.
   Each restaurant's colours are injected at runtime from its
   menu (--primary / --secondary); the page itself stays cream.
   Type: Gabarito (display) + Figtree (text).
   ========================================================== */
:root {
  /* Surfaces */
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f4ede3;
  --surface-3: #ebe2d5;
  --scrim: rgba(34, 24, 16, 0.42);
  --line: rgba(34, 28, 23, 0.1);
  --line-strong: rgba(34, 28, 23, 0.18);
  --glass: rgba(251, 246, 239, 0.86);

  /* Text */
  --text: #221c17;
  --muted: #655b51;
  --faint: #6f655b;
  --on-media: #fff;

  /* Restaurant colours (injected) */
  --primary: #d9a441;
  --secondary: #b2453a;
  --on-primary: #0b0b0b;
  --on-secondary: #fff;
  /* Text-safe shade of the restaurant colour for small labels on cream */
  --accent-ink: color-mix(in oklab, var(--primary) 44%, #221c17);
  --primary-soft: color-mix(in srgb, var(--primary) 16%, transparent);

  /* Status & diet marks */
  --danger: #c2410c;
  --veg: #1e8e3e;
  --nonveg: #c5221f;
  --egg: #c88a00;

  /* NomNom */
  --nn-orange: #ff6a00;

  /* Type */
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Gabarito', 'Figtree', system-ui, sans-serif;
  --fs-2xs: 11.5px;
  --fs-xs: 12.5px;
  --fs-sm: 13.5px;
  --fs-md: 15px;

  /* Spacing & shape */
  --gutter: 18px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sheet: 26px;
  --radius-pill: 999px;

  /* Elevation (warm, soft) */
  --shadow-1: 0 1px 2px rgba(60, 40, 20, 0.06), 0 6px 18px rgba(60, 40, 20, 0.07);
  --shadow-2: 0 18px 50px rgba(60, 40, 20, 0.18);
  --fade-media: linear-gradient(180deg, transparent 38%, rgba(20, 14, 10, 0.45) 64%, rgba(20, 14, 10, 0.85) 100%);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 150ms;
  --dur-2: 260ms;
  --dur-3: 420ms;
  --press-scale: 0.97;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--text); outline-offset: 2px; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; isolation: isolate; }
body.framed { background: var(--surface-3); }
body.framed #app { max-width: 420px; background: var(--bg); box-shadow: var(--shadow-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Masthead: the restaurant's name, set large ---------- */
.masthead { padding: calc(16px + var(--safe-top)) var(--gutter) 18px; }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.logo { width: 44px; height: 44px; border-radius: 12px; flex: none; object-fit: cover; box-shadow: var(--shadow-1); }
.monogram { display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font: 700 22px/1 var(--display); }
.mast-name { margin-top: 18px; font: 700 clamp(34px, 10.5vw, 46px)/0.98 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.mast-tag { margin-top: 10px; color: var(--muted); font-size: var(--fs-md); max-width: 36ch; }
.mast-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.table-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; color: var(--text);
}
.table-chip svg { width: 16px; height: 16px; color: var(--accent-ink); }
button.table-chip { cursor: pointer; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1); }
button.table-chip:active { transform: scale(var(--press-scale)); }

/* ---------- Search + quick filters (sticky) ---------- */
.toolbar { position: sticky; top: 0; z-index: 20; padding: 10px 14px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 2px 0 16px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(60, 40, 20, 0.05);
  transition: border-color var(--dur-1), box-shadow var(--dur-2) var(--ease-out);
}
.search:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px var(--primary-soft); }
.search > svg { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--text); font: 400 16px var(--sans); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.search-clear svg { width: 16px; height: 16px; }
.filter-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); transition: background var(--dur-1), color var(--dur-1); }
.filter-btn svg { width: 18px; height: 18px; }
.filter-btn.on { background: var(--text); color: var(--bg); }
.filter-btn .chip-count { position: absolute; top: -2px; right: -2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -14px 0; padding: 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.chip:active { transform: scale(var(--press-scale)); }
.chip svg { width: 14px; height: 14px; color: var(--accent-ink); }
.chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed='true'] svg { color: currentColor; }
.chip .vnv { width: 13px; height: 13px; }
.chip-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); display: inline-grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; }

/* ---------- Section heads ---------- */
.feed { padding: 6px 0 8px; }
.eyebrow { font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--accent-ink); font-weight: 700; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 30px var(--gutter) 14px; }
.sec-head h2 { font: 700 27px/1.05 var(--display); letter-spacing: -0.02em; margin-top: 3px; text-wrap: balance; }
.sec-meta { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.menu-sec .sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- Media basics ---------- */
.media, .row-media, .top-media, .sheet-media { position: relative; overflow: hidden; background: var(--surface-2); }
.media > img, .media > video, .row-media > img, .row-media > video, .top-media > img, .top-media > video, .sheet-media > img, .sheet-media > video { position: absolute; inset: 0; }
.media > video, .row-media > video, .top-media > video, .sheet-media > video { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.media > img, .row-media > img, .top-media > img, .sheet-media > img { opacity: 0; transition: opacity var(--dur-2) var(--ease-out), transform 600ms var(--ease-out); }
.media > img.ld, .row-media > img.ld, .top-media > img.ld, .sheet-media > img.ld { opacity: 1; }
.media:has(> img:not(.ld)), .row-media:has(> img:not(.ld)), .top-media:has(> img:not(.ld)), .sheet-media:has(> img:not(.ld)) {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.playing > video { opacity: 1 !important; }
.no-photo { display: grid; place-items: center; background: var(--surface-2); }
.no-photo span { font: 700 40px var(--display); color: var(--accent-ink); opacity: 0.6; }
.vspin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.buffering .vspin { opacity: 1; animation: spin 0.8s linear infinite; }
.is-soldout img { filter: grayscale(1) opacity(0.7); }
.is-soldout h3, .is-soldout .price { opacity: 0.55; }
.soldout-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-size: var(--fs-2xs); font-weight: 700; white-space: nowrap; }

/* ---------- Featured rows: swipeable tall cards ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 290px); gap: 12px;
  overflow-x: auto; padding: 0 var(--gutter) 4px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail-count { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-bottom: 4px; white-space: nowrap; }
.rail-count b { color: var(--text); }
.rail-track { position: relative; height: 3px; margin: 14px var(--gutter) 0; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.rail-track span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--text); transition: transform 120ms linear; }

.feature { cursor: pointer; scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.feature:active { transform: scale(var(--press-scale)); }
.feature.story-card { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: var(--shadow-1); }
.feature.story-card .media { position: absolute; inset: 0; }
.feature.story-card .media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--fade-media); pointer-events: none; }
.feature-body.overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--on-media); }
.feature h3 { font: 700 21px/1.1 var(--display); letter-spacing: -0.015em; display: flex; align-items: flex-start; gap: 8px; text-wrap: balance; }
.feature h3 .vnv { margin-top: 4px; }
.story-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story-foot .price { color: #fff; font-size: 16px; }
.story-foot .pill, .hero-foot .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.story-foot .pill svg, .hero-foot .pill svg { color: #fff; }
.story-foot .add { margin-left: auto; }
.badges-inline { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Best sellers: a numbered top five ---------- */
.top-list { list-style: none; margin: 0 var(--gutter); }
.top-li { display: grid; grid-template-columns: 30px 64px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.top-li:first-child { border-top: 0; }
.top-n { font: 800 34px/1 var(--display); color: var(--accent-ink); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.top-media { width: 64px; height: 64px; border-radius: 12px; }
.top-li.has-clip .top-media::after { content: ''; position: absolute; right: 6px; bottom: 6px; z-index: 2; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); }
.top-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.top-name { display: flex; align-items: flex-start; gap: 7px; font: 700 16.5px/1.25 var(--display); }
.top-name .vnv { margin-top: 3px; width: 13px; height: 13px; }
.top-meta { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; }
.top-go { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.top-go svg { width: 18px; height: 18px; }

/* ---------- The full menu: collapsible sections, one open at a time ---------- */
.menu-sec { margin-top: 10px; border-top: 8px solid var(--surface-2); }
.group { margin-top: 6px; }
.group-title { display: flex; align-items: center; gap: 12px; padding: 16px var(--gutter) 10px; font: 700 var(--fs-xs) var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cat { scroll-margin-top: var(--toolbar-h, 118px); margin: 0 var(--gutter) 8px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.cat.open { box-shadow: var(--shadow-1); }
.cat-h { font: inherit; }
.cat.open .cat-h { position: sticky; top: var(--toolbar-h, 118px); z-index: 10; }
.cat-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; min-height: 76px; text-align: left; color: var(--text); border-radius: var(--radius-lg); background: var(--surface); transition: background var(--dur-1); }
.cat.open .cat-head { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line); }
.cat-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-title { font: 700 19px/1.15 var(--display); letter-spacing: -0.01em; }
.cat-meta { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-clips { color: var(--accent-ink); font-weight: 700; }
/* A peek of the food in the section: three photos, overlapping; they fan out when it opens */
.cat-peek { display: flex; flex: none; }
.cat-peek img:first-child { margin-left: 0; }
.cat-peek img { width: 38px; height: 38px; border-radius: 50%; margin-left: -12px; border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(60, 40, 20, 0.18); transition: transform var(--dur-3) var(--ease-out); }
.cat-head[aria-expanded='true'] .cat-peek img:nth-child(1) { transform: translateX(-6px); }
.cat-head[aria-expanded='true'] .cat-peek img:nth-child(3) { transform: translateX(6px); }
.chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: background var(--dur-2), color var(--dur-2); }
.chev svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.cat-head[aria-expanded='true'] .chev { background: var(--text); color: var(--bg); }
.cat-head[aria-expanded='true'] .chev svg { transform: rotate(180deg); }
.results, .cat-body { display: flex; flex-direction: column; }
.cat-body { padding: 4px 0 6px; }

/* Rows: text left, photo right */
.row { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background var(--dur-1); }
.cat-body > .row:first-child, .cat-body > .feature + .row { border-top: 0; }
.row-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-badge { font-size: var(--fs-2xs); color: var(--accent-ink); font-weight: 700; letter-spacing: 0.04em; }
.row h3 { font: 700 16.5px/1.25 var(--display); display: flex; align-items: flex-start; gap: 7px; }
.row h3 .vnv { margin-top: 3px; width: 13px; height: 13px; }
.name-btn { text-align: left; font: inherit; color: inherit; padding: 0; }
.desc { color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.row-foot .price { margin-right: 4px; }
.row-media { width: 104px; height: 104px; border-radius: var(--radius); flex: none; }
.row-side { display: flex; flex-direction: column; align-items: center; }
.row-side .add { margin-top: -18px; position: relative; z-index: 3; box-shadow: var(--shadow-1); }
.row.no-media { grid-template-columns: 1fr; }
.row.no-media:has(.row-side) { grid-template-columns: 1fr auto; }
.row.no-media .row-side .add { margin-top: 0; }

/* Items with a clip: a wide card in the section, name and price on the video */
.feature.wide { margin: 8px 10px; border-radius: var(--radius); background: var(--surface-2); }
.wide-media { position: relative; }
.feature.wide .media { aspect-ratio: 16 / 9; }
/* Upright clips (shot on a phone) get an upright card instead of being cut to 16:9 */
.feature.wide .media.tall { aspect-ratio: 4 / 5; }
/* Upright clips fill their frame (a little is trimmed top and bottom), so there are never side bars */
.upright > video { object-fit: cover; }
.wide-media .media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(20, 14, 10, 0.8) 100%); pointer-events: none; }
.wide-media .badges { top: 10px; left: 10px; }
.wide-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 14px 12px; color: #fff; }
.feature.wide .wide-title h3 { font: 700 21px/1.12 var(--display); }
.wide-title .price { color: #fff; font-size: 17px; }
.feature.wide .feature-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.feature.wide .desc { -webkit-line-clamp: 1; }

.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.price { font-weight: 700; font-size: var(--fs-md); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill svg { width: 12px; height: 12px; color: var(--accent-ink); }
.pill.spice, .pill.spice svg { color: var(--danger); gap: 1px; }
.badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: 78%; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 700; color: #221c17; background: rgba(255, 255, 255, 0.94); }
.badge.primary { background: var(--primary); color: var(--on-primary); }
.badge.secondary { background: var(--secondary); color: var(--on-secondary); }
.glass { background: rgba(255, 255, 255, 0.94); color: #221c17; border: 1px solid rgba(34, 28, 23, 0.1); }

/* Veg / non-veg mark */
.vnv { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; display: inline-grid; place-items: center; flex: none; background: #fff; }
.vnv::after { content: ''; width: 45%; height: 45%; border-radius: 50%; background: currentColor; }
.vnv.veg { color: var(--veg); }
.vnv.nonveg { color: var(--nonveg); }
.vnv.egg { color: var(--egg); }

/* ---------- Add to order ---------- */
.add { display: inline-flex; align-items: center; height: 38px; border-radius: var(--radius-pill); overflow: hidden; flex: none; background: var(--surface); border: 1.5px solid var(--text); color: var(--text); font-weight: 700; font-size: var(--fs-sm); transition: background var(--dur-1), color var(--dur-1); }
.add button { height: 100%; min-width: 38px; padding: 0 10px; color: inherit; font: inherit; transition: transform var(--dur-2) var(--ease-out); }
.add button:active { transform: scale(0.9); }
.add .add-first { padding: 0 20px; }
.add.has { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.add.has span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.feature .pills .add { margin-left: auto; }
.add.big { height: 54px; width: 100%; border-radius: var(--radius); font-size: var(--fs-md); justify-content: space-between; border: 0; }
.add.big .add-first { width: 100%; background: var(--primary); color: var(--on-primary); }
.add.big button { min-width: 56px; font-size: 20px; }
.feature-body.overlay .add, .hero-foot .add { border-color: #fff; }
.feature-body.overlay .add.has, .hero-foot .add.has { border-color: var(--primary); }

/* ---------- Spotlight (owner switch) ---------- */
.hero { padding: 4px var(--gutter) 0; }
.hero-card { position: relative; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.hero-media { aspect-ratio: 4 / 5; max-height: 70dvh; width: 100%; }
.hero-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--fade-media); pointer-events: none; }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.hero-body .eyebrow { color: #fff; }
.hero-title { font: 700 32px/1.02 var(--display); letter-spacing: -0.02em; display: flex; align-items: flex-start; gap: 10px; text-wrap: balance; }
.hero-title .vnv { margin-top: 8px; }
.hero-desc { opacity: 0.92; font-size: var(--fs-md); line-height: 1.45; max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hero-foot .price { color: #fff; font-size: 20px; margin-right: 6px; }
.hero-foot .add { margin-left: auto; height: 44px; }

/* ---------- Hover (pointer devices): a lift and a slow zoom, nothing else ---------- */
@media (hover: hover) and (pointer: fine) {
  .feature:hover, .hero-card:hover, .social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .feature:hover .media > img, .hero-card:hover .media > img, .row:hover .row-media > img, .top-li:hover .top-media > img { transform: scale(1.03); }
  .cat-head:hover, .row:hover { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
  .top-li:hover .top-go { color: var(--text); }
  .chip:hover, .table-chip:hover { border-color: var(--text); }
}

/* ---------- Floating Menu button + section list ---------- */
.menu-fab {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-2);
  transform: translate(-50%, 90px); opacity: 0; pointer-events: none; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2);
}
.menu-fab.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.menu-fab svg { width: 18px; height: 18px; }
.catsheet { padding-top: 26px; }
.catlist-group { margin-top: 18px; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.catlist { list-style: none; margin-top: 6px; }
.catlist button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 13px 2px; border-bottom: 1px solid var(--line); font: 600 17px var(--display); text-align: left; color: var(--text); }
.catlist button small { color: var(--faint); font: 500 var(--fs-sm) var(--sans); font-variant-numeric: tabular-nums; }
.catlist button[aria-current='true'] { color: var(--accent-ink); }

/* ---------- Search results ---------- */
.results-head { padding: 16px var(--gutter) 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.results-count { font-size: 14px; color: var(--muted); }
.results-count strong { color: var(--text); }
.understood { flex-basis: 100%; order: 3; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--faint); }
.understood span { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); font-weight: 600; }
.link-btn { margin-left: auto; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm); font-weight: 700; padding: 10px 0; min-height: 44px; }
.results-cat { position: sticky; top: var(--toolbar-h, 118px); z-index: 10; background: var(--bg); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 14px var(--gutter) 8px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 36px var(--gutter); }
.empty-sub { font-size: var(--fs-sm); color: var(--faint); margin-top: 14px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }

/* ---------- Footer: reviews, Instagram, NomNom ---------- */
.foot { padding: 36px var(--gutter) calc(48px + var(--safe-bottom)); text-align: center; }
.social { text-align: left; padding: 22px 16px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.social h2 { font: 700 23px/1.1 var(--display); letter-spacing: -0.015em; }
.social p { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.social-actions { display: grid; gap: 10px; margin-top: 16px; }
.social-btn { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); text-decoration: none; color: var(--text); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.social-btn:active { transform: scale(var(--press-scale)); }
.social-btn img { width: 26px; height: 26px; flex: none; object-fit: contain; }
.social-btn span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.social-btn b { font-size: var(--fs-md); }
.social-btn small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; }
.social-btn > svg { width: 18px; height: 18px; color: var(--muted); }
.foot-note { margin-top: 22px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.made-by { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; min-height: 44px; color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.08em; text-decoration: none; }
.made-by img { width: 64px; height: auto; transition: transform var(--dur-2) var(--ease-out); }
.made-by:active img { transform: scale(var(--press-scale)); }

/* ---------- Bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-2); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; max-height: 94dvh; background: var(--surface); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden; transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out); }
body.framed .sheet-panel { max-width: 420px; }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet.dragging .sheet-panel { transition: none; }
.sheet-grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; display: grid; place-items: center; touch-action: none; }
.sheet-grab span { width: 42px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(28px + var(--safe-bottom)); }
.sheet[data-kind='filters'] .sheet-scroll { padding-bottom: 0; }
.sheet:not([data-kind='dish']) .sheet-close { background: var(--surface-2); border-color: transparent; }
.sheet:not([data-kind='dish']) .sheet-grab span { background: var(--surface-3); box-shadow: none; }

.sheet-media { width: 100%; aspect-ratio: 4 / 5; max-height: 74dvh; background: #1d1813; }
/* The dish page shows the whole photo or clip, never cut: it sits on a soft blurred copy of itself */
.sheet-media > img.sheet-fit { object-fit: contain; }
/* Clips always fill the dish page frame: no side bars on tall phone videos */
.sheet-media > video { object-fit: cover; }
.sheet-media.fill > img.sheet-fit, .sheet-media.fill > video { object-fit: cover; }
.sheet-media > .sheet-bg { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); filter: blur(22px) saturate(1.2) brightness(0.8); transform: none; }
.sheet-media > .sheet-bg.ld { opacity: 1; }
.sheet-media .badges { top: 16px; }
.sheet-media .soldout-tag { top: auto; bottom: 16px; left: 16px; transform: none; }
.sheet-body { padding: 18px 20px 4px; }
.sheet-body h2 { font: 700 30px/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.sheet-body .title-row { margin-top: 6px; }
.sheet-body .price { font-size: 20px; padding-top: 5px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; }
.fact svg { width: 14px; height: 14px; color: var(--accent-ink); }
.fact .vnv { width: 13px; height: 13px; }
.spice-flames, .fact .spice-flames svg { display: inline-flex; color: var(--danger); }
.lead { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.sheet-body h4 { margin-top: 26px; font: 700 var(--fs-xs) var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.story { color: var(--muted); margin-top: 8px; }
blockquote { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); font: 500 17px/1.5 var(--display); }
blockquote cite { display: block; margin-top: 10px; font: 600 var(--fs-xs) var(--sans); font-style: normal; color: var(--muted); }
.pairings { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.pair-li { display: flex; align-items: center; gap: 10px; }
.pair-li .pair { flex: 1; min-width: 0; }
.pair { display: flex; gap: 12px; align-items: center; padding: 8px; width: 100%; text-align: left; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: transform var(--dur-2) var(--ease-out); }
button.pair:active { transform: scale(var(--press-scale)); }
.pair img { width: 54px; height: 54px; border-radius: var(--radius-sm); flex: none; }
.pair-text { min-width: 0; flex: 1; }
.pair-text > span { display: block; }
.pair-kind { font-size: var(--fs-2xs); color: var(--muted); font-weight: 700; letter-spacing: 0.06em; }
.pair-name { font: 700 15px/1.3 var(--display); }
.pair-note { font-size: var(--fs-sm); color: var(--muted); }
.allergens { margin-top: 22px; font-size: var(--fs-xs); color: var(--faint); }
.sheet-add { position: sticky; bottom: 0; padding: 12px 20px calc(12px + var(--safe-bottom)); background: linear-gradient(transparent, var(--surface) 35%); }

/* Filters */
.filters { padding-top: 26px; }
.filters fieldset { border: 0; margin-top: 20px; }
.filters legend { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; width: 100%; }
.filters legend output { margin-left: auto; color: var(--text); letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input[type=range] { width: 100%; accent-color: var(--text); height: 32px; }
.switch { display: flex; align-items: center; gap: 12px; font-size: var(--fs-md); cursor: pointer; min-height: 44px; }
.switch input { width: 44px; height: 26px; accent-color: var(--text); }
.hint { font-size: var(--fs-xs); color: var(--faint); margin-top: 6px; }
.filter-actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px; margin: 24px -20px 0; padding: 14px 20px calc(14px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.filter-actions .link-btn { margin-left: 0; }
.filter-actions .btn { margin: 0 0 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-weight: 700; transition: transform var(--dur-2) var(--ease-out); }
.btn:active { transform: scale(var(--press-scale)); }
.btn svg { width: 16px; height: 16px; }
.btn.sm { min-height: 44px; height: 44px; padding: 0 14px; font-size: var(--fs-sm); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.place { width: 100%; height: 54px; margin-top: 4px; font-size: 16px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
.btn.place:disabled { opacity: 0.6; }

/* ---------- Desktop gate ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); }
.gate-card { max-width: 380px; }
.gate .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; font-size: 30px; }
.gate h1 { font: 700 38px/1.02 var(--display); letter-spacing: -0.025em; margin-top: 18px; }
.gate p { color: var(--text); margin-top: 10px; }
.qr { background: #fff; padding: 14px; border-radius: 22px; width: 228px; height: 228px; margin: 26px auto 10px; box-shadow: var(--shadow-1); }
.qr img { border-radius: 6px; }
.gate small { display: block; color: var(--faint); font-size: var(--fs-xs); }

/* ---------- Table ordering ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; padding: 10px 14px calc(10px + var(--safe-bottom)); pointer-events: none; }
body.framed .cartbar { max-width: 420px; margin: 0 auto; }
.cartbar button { pointer-events: auto; width: 100%; max-width: 520px; margin: 0 auto; height: 58px; border-radius: var(--radius-lg); padding: 0 16px; display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); font-weight: 700; font-size: var(--fs-md); box-shadow: var(--shadow-2); animation: cb-in var(--dur-3) var(--ease-out); transition: transform var(--dur-2) var(--ease-out); }
.cartbar button:active { transform: scale(var(--press-scale)); }
.cb-count { min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.cb-label { flex: 1; text-align: left; }
.cb-go { display: inline-flex; align-items: center; gap: 6px; }
.cb-go svg { width: 16px; height: 16px; }
@keyframes cb-in { from { transform: translateY(80px); } }
body.has-cart .menu-fab { bottom: calc(86px + var(--safe-bottom)); }
body.has-cart .foot { padding-bottom: calc(112px + var(--safe-bottom)); }

.cart h2, .order-status h2, .wifi h2, .catsheet h2, .sheet-body.filters h2 { font: 700 27px/1.1 var(--display); letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-xs); }
.cart-lines { list-style: none; margin-top: 14px; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto 76px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cl-name { display: flex; align-items: flex-start; gap: 8px; font: 700 15.5px/1.3 var(--display); }
.cl-name .vnv { margin-top: 3px; width: 13px; height: 13px; }
.cl-price { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; padding: 14px 0; font-size: 16px; }
.cart-total strong { font-size: 19px; }
.cart-field { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.cart-field small { color: var(--faint); font-weight: 400; }
.cart-field textarea, .cart-field input { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); font: 400 16px var(--sans); padding: 11px 12px; resize: vertical; outline: none; transition: border-color var(--dur-1), box-shadow var(--dur-2); }
.cart-field textarea:focus-visible, .cart-field input:focus-visible { border-color: var(--text); box-shadow: 0 0 0 4px var(--primary-soft); }
.cart-table { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.cart-table svg { width: 16px; height: 16px; }
.cart-err { color: var(--danger); font-size: var(--fs-sm); min-height: 18px; margin-top: 10px; }
.cart-foot { font-size: var(--fs-xs); color: var(--faint); text-align: center; margin-top: 10px; line-height: 1.5; }

.order-status { padding-bottom: 10px; }
.order-status h2 { margin-top: 6px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 18px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--faint); position: relative; }
.steps li::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); }
.steps li svg { position: absolute; top: 5px; width: 16px; height: 16px; color: var(--on-primary); }
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.done::before { background: var(--primary); border-color: var(--primary); }
.order-status .btn { width: 100%; margin-top: 14px; border-radius: var(--radius); }

.wifi dl { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.wifi dl > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.wifi dt { font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; grid-column: 1; }
.wifi dd { font-size: 17px; font-weight: 700; word-break: break-all; grid-column: 1; }
.wifi dl .btn { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; background: var(--surface); }

/* ---------- Accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .chip, .pill, .add, .btn, .cartbar button, .menu-fab, .sheet-panel, .feature, .search, .cat, .social-btn { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid Highlight; }
}
.sheet-media.no-photo { background: var(--surface-2); }

/* NomNom landing (menu.heynomnom.in with no restaurant) */
.landing { place-items: start center; padding-top: max(40px, var(--safe-top)); }
.landing .gate-card { max-width: 420px; }
.land-logo { display: block; margin: 0 auto; width: 128px; height: auto; }
.landing h1 { font-size: 34px; }
.land-note { font-size: var(--fs-sm); color: var(--muted) !important; }
.land-form { margin-top: 26px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); text-align: left; display: grid; gap: 12px; }
.land-form h2 { font: 700 19px/1.2 var(--display); margin-bottom: 2px; }
.land-form label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 600; }
.land-form input { min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.land-form input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.land-form .btn { margin-top: 6px; width: 100%; }
.land-form small a, .land-links a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.land-err { color: var(--danger) !important; font-size: var(--fs-sm); margin: 0 !important; }
.land-links { margin: 22px 0 32px !important; font-size: var(--fs-sm); }
