/*
  Forest Deck site styles.

  Palette: deep forest greens + sage-tinted neutrals, one accent (the logo's lime).
  Theme follows the visitor's system setting. Admin (<html class="light-only">) stays light.

  Shape system:
    interactive controls (buttons, chips, search, steppers) = full pill
    media, tiles, panels and sheets = --r-lg (22px)
    form inputs and small surfaces = --r-sm (12px)

  Z-index scale: chips 30, header 40, cart bar 50, toast 60.
*/

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #edf1ea;
  --bg-2: #e2e8de;
  --surface: #f7f9f5;
  --ink: #101a13;
  --muted: #4b5a50;
  --line: #d0d9cc;
  --accent: #a9cf54;
  --accent-hover: #bbdc6c;
  --accent-ink: #14210c;
  --accent-text: #4a7410;
  --accent-soft: #dfecc1;
  --bar: #13241a;
  --bar-ink: #eef3ea;
  --scrim: 10 20 13;
  --shadow: 0 18px 50px -18px rgb(16 36 22 / 0.35);
  --danger: #b3261e;
  --wa: #1c8a4b;
  --wa-hover: #177a41;

  --r-lg: 22px;
  --r-sm: 12px;
  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Names the admin panel still uses. */
  --forest: #13241a;
  --forest-2: #1d3325;
  --leaf: var(--accent);
  --leaf-deep: var(--accent-text);
  --cream: var(--bg-2);
  --paper: var(--surface);
  --radius: var(--r-sm);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light-only) {
    color-scheme: dark;
    --bg: #0b130e;
    --bg-2: #111c15;
    --surface: #16231b;
    --ink: #e7ede3;
    --muted: #9dab9f;
    --line: #26352b;
    --accent-text: #b8da6f;
    --accent-soft: #24361c;
    --bar: #1e3024;
    --bar-ink: #eef3ea;
    --shadow: 0 18px 50px -12px rgb(0 0 0 / 0.6);
    --danger: #ff8a80;
    --wa: #1f9e55;
    --wa-hover: #22ad5d;
    --leaf: var(--accent);
    --leaf-deep: var(--accent-text);
    --cream: var(--bg-2);
    --paper: var(--surface);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #f4f6f1; }
.brand span { font-family: var(--display); font-weight: 300; font-size: 1.3rem; letter-spacing: 0.14em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav .call { margin-left: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav .call:hover { background: var(--accent-hover); color: var(--accent-ink); }
@media (max-width: 600px) {
  .brand span { display: none; }
  .nav a { padding: 8px 11px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font-weight: 600; text-decoration: none; font-size: 1rem; line-height: 1.2;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn .i { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid color-mix(in srgb, currentColor 45%, transparent); }
.btn-ghost:hover { border-color: currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- home: hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; min-height: min(calc(100dvh - 68px), 860px); padding: 40px 0 56px;
}
.hero-copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 30ch; margin: 22px 0 32px; }
.hero-media { position: relative; height: 100%; min-height: 460px; max-height: 760px; }
.hero-media > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.hero-inset {
  position: absolute; left: clamp(-64px, -4vw, -24px); bottom: 36px; width: clamp(130px, 14vw, 190px);
  aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px;
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 16px 0 48px; gap: 28px; }
  .hero-media { order: -1; min-height: 0; height: auto; }
  .hero-media > img:first-child { aspect-ratio: 4 / 3; height: auto; }
  .hero-inset { display: none; }
  .hero p { margin: 16px 0 24px; }
}

/* ---------- home: sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; letter-spacing: -0.03em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 18px 0 0; }
.veg-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); margin-bottom: 16px; }
.veg-mark { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid #1f9a47; border-radius: 3px; flex: none; }
.veg-mark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9a47; }

/* Kitchens bento: one text tile + three photo tiles */
.bento {
  display: grid; gap: 14px; margin-top: 48px;
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(250px, 1fr));
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-lg); overflow: hidden; padding: 26px; text-decoration: none; isolation: isolate;
}
.tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; }
.tile p { margin: 8px 0 0; max-width: 34ch; font-size: 0.97rem; }
.tile .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 0.95rem; }
.tile .go .i { transition: transform 0.3s var(--ease); }
.tile:hover .go .i { transform: translateX(4px); }
.tile-lead { grid-column: 1 / 6; grid-row: 1 / 3; background: var(--accent); color: var(--accent-ink); justify-content: space-between; }
.tile-lead h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; }
.tile-lead p { font-size: 1.05rem; color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.tile-lead ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tile-lead li { padding: 6px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--accent-ink) 30%, transparent); font-size: 0.9rem; font-weight: 500; }
.tile-photo { color: #f3f6ef; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--scrim) / 0) 35%, rgb(var(--scrim) / 0.85)); }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo p { color: rgb(243 246 239 / 0.85); }
.tile-italian { grid-column: 6 / 10; grid-row: 1 / 3; }
.tile-chinese { grid-column: 10 / 13; grid-row: 1; }
.tile-drinks { grid-column: 10 / 13; grid-row: 2; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .tile-lead { grid-column: 1 / -1; grid-row: auto; gap: 28px; }
  .tile-italian { grid-column: 1; grid-row: span 2; min-height: 420px; }
  .tile-chinese, .tile-drinks { grid-column: 2; grid-row: auto; min-height: 200px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-italian, .tile-chinese, .tile-drinks { grid-column: 1; grid-row: auto; min-height: 300px; }
}

/* Full-bleed rooftop band */
.band { position: relative; min-height: clamp(460px, 78vh, 760px); display: grid; align-items: end; overflow: hidden; color: #f3f6ef; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(var(--scrim) / 0.05) 30%, rgb(var(--scrim) / 0.82)); }
.band .wrap { padding: 0 0 clamp(40px, 7vw, 88px); }
.band h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -0.03em; max-width: 16ch; }
.band p { max-width: 46ch; margin: 16px 0 0; font-size: 1.1rem; color: rgb(243 246 239 / 0.85); }

/* How ordering works */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.how-intro { position: sticky; top: 108px; }
.how-intro .actions { margin-top: 28px; }
.how-intro img { margin-top: 40px; border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.how-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.how-steps .ic {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.how-steps .ic .i { width: 26px; height: 26px; }
.how-steps h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -0.02em; padding-top: 8px; }
.how-steps p { margin: 10px 0 0; color: var(--muted); max-width: 42ch; font-size: 1.05rem; }
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; }
  .how-intro { position: static; }
  .how-intro img { margin-top: 32px; }
}

/* Visit panel */
.visit { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 6px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.visit h2 { max-width: 10ch; }
.visit .actions { margin-top: 32px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; align-content: start; margin: 0; }
.info-grid > div { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; }
.info-grid .i { width: 22px; height: 22px; color: var(--accent-text); grid-row: span 2; margin-top: 1px; }
.info-grid dt { font-size: 0.85rem; color: var(--muted); }
.info-grid dd { margin: 0; font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.info-grid a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size 0.3s var(--ease); }
.info-grid a:hover { background-size: 100% 100%; color: var(--accent-ink); }
@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.93rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer .brand span { font-size: 1.05rem; color: var(--ink); display: inline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- menu page ---------- */
.menu-head { padding: clamp(36px, 6vw, 72px) 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 48px; align-items: end; }
.menu-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 400; letter-spacing: -0.04em; }
.menu-head p { margin: 14px 0 0; color: var(--muted); display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .menu-head { grid-template-columns: 1fr; } }

.search { position: relative; }
.search input {
  width: 100%; padding: 15px 18px 15px 48px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.search .i { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); width: 20px; height: 20px; }

.chips {
  position: sticky; top: 68px; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-size: 0.9rem; white-space: nowrap; cursor: pointer; color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-body { padding: 8px 0 160px; }
.group-title { font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--accent-text); margin: 48px 0 0; letter-spacing: 0; }
.cat {
  scroll-margin-top: 140px; padding-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px 48px; align-items: start;
}
.cat > h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; position: sticky; top: 148px; }
.cat .note { grid-column: 1; color: var(--muted); font-size: 0.92rem; margin: -8px 0 0; }
.cat .items { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 900px) {
  .cat { grid-template-columns: 1fr; gap: 10px; }
  .cat > h2 { position: static; }
  .cat .note { margin: 0; }
  .cat .items { grid-column: 1; grid-row: auto; margin-top: 8px; }
}

.items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .items { grid-template-columns: 1fr; gap: 10px; } }
.item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; gap: 12px 16px;
  padding: 18px 18px 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.2s;
}
.item:hover { border-color: color-mix(in srgb, var(--accent-text) 45%, var(--line)); }
.item > div:first-child { grid-column: 1 / -1; display: contents; }
.item h3 { grid-column: 1 / -1; font-family: var(--body); font-size: 1.04rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.item .desc { grid-column: 1 / -1; margin: -6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.item .price { grid-column: 1; align-self: center; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.item .ctl { grid-column: 2; align-self: center; }
.item.off { opacity: 0.55; }
.tag { display: inline-block; font-family: var(--body); font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); margin-left: 8px; vertical-align: 2px; white-space: nowrap; }

.add-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 96px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--accent-text); background: transparent; color: var(--accent-text);
  font-weight: 600; cursor: pointer; font-size: 0.92rem; line-height: 1.1;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.add-btn:active { transform: scale(0.96); }
.add-btn small { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.85; }
.stepper {
  display: inline-flex; align-items: center; height: 42px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); overflow: hidden; animation: pop 0.35s var(--ease);
}
.stepper button { width: 38px; height: 100%; border: 0; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: rgb(0 0 0 / 0.08); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.unavail { font-size: 0.82rem; color: var(--muted); text-align: right; }
.empty-search { text-align: center; color: var(--muted); padding: 72px 0; grid-column: 1 / -1; }
@keyframes pop { from { transform: scale(0.9); } to { transform: scale(1); } }

/* Skeleton shown while the menu loads */
.skel { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 48px; padding-top: 56px; }
.skel .items { grid-column: 2; }
.skel-bar, .skel-tile { background: var(--bg-2); border-radius: var(--r-lg); }
.skel-bar { height: 34px; width: 70%; border-radius: 999px; }
.skel-tile { height: 132px; }
@media (max-width: 900px) { .skel { grid-template-columns: 1fr; gap: 16px; } .skel .items { grid-column: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .skel-bar, .skel-tile { animation: breathe 1.4s ease-in-out infinite alternate; }
}
@keyframes breathe { to { opacity: 0.5; } }

/* cart bar */
.cart-bar {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 50;
  width: min(560px, 100% - 24px); display: none; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bar); color: var(--bar-ink); border-radius: 999px; padding: 10px 10px 10px 26px;
  box-shadow: var(--shadow); border: 1px solid rgb(255 255 255 / 0.08); cursor: pointer; text-align: left;
}
.cart-bar.show { display: flex; animation: rise-in 0.45s var(--ease); }
.cart-bar .sum small { display: block; opacity: 0.7; font-size: 0.8rem; }
.cart-bar .sum b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cart-bar .go { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 12px 20px; border-radius: 999px; }
@keyframes rise-in { from { translate: -50% 24px; opacity: 0; } }

/* dialogs / sheets */
dialog.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: min(560px, 100%); max-width: 100%; max-height: 92dvh;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); color: var(--ink);
}
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: var(--r-lg); } }
dialog.sheet[open] { animation: sheet-in 0.4s var(--ease); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
dialog.sheet::backdrop { background: rgb(8 16 11 / 0.6); backdrop-filter: blur(3px); }
.sheet-head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-head h2 { font-size: 1.8rem; font-weight: 400; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-2); cursor: pointer; font-size: 1.25rem; display: grid; place-items: center; }
.x:hover { background: var(--line); }
.sheet-body { padding: 8px 22px 22px; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-line .n { font-weight: 600; font-size: 0.95rem; }
.cart-line .o { color: var(--muted); font-size: 0.82rem; }
.cart-line .amt { min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line .stepper { height: 34px; animation: none; }
.cart-line .stepper button { width: 32px; }
.bill { margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.bill div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.bill .total { color: var(--ink); font-weight: 700; font-size: 1.25rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.fine { color: var(--muted); font-size: 0.82rem; }
.opt-list { display: grid; gap: 8px; margin: 12px 0 18px; }
.opt-list label { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; cursor: pointer; }
.opt-list label:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.opt-list input { accent-color: var(--accent-text); }

.form { display: grid; gap: 14px; margin-top: 20px; }
.form h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 1rem; color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); padding: 4px; border-radius: 999px; }
.seg label { text-align: center; padding: 10px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent-text); }
.seg label[hidden] { display: none; }
.seg.single { grid-template-columns: 1fr; }
.error { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 100px; translate: -50% 20px; opacity: 0; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 0.9rem;
  transition: opacity 0.2s, translate 0.3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; translate: -50% 0; }

/* payment screen */
.center { text-align: center; }
.pay { padding-bottom: 24px; }
.pay .code, .done .code { font-family: var(--display); font-weight: 500; font-size: 2.6rem; color: var(--accent-text); text-align: center; line-height: 1; margin-bottom: 8px; letter-spacing: 0.02em; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.step h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.or { margin: 12px 0 8px; }
.qr { width: 200px; height: 200px; margin: 0 auto 12px; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.upi-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-2); border-radius: var(--r-sm); padding: 8px 8px 8px 14px; font-size: 0.92rem; word-break: break-all; }
.upi-id span { flex: 1; min-width: 0; }
.upi-id .btn { flex: none; white-space: nowrap; }

/* 404 */
.lost { min-height: calc(100dvh - 68px - 130px); display: grid; align-content: center; gap: 18px; padding: 64px 0; }
.lost h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 400; letter-spacing: -0.035em; max-width: 14ch; }
.lost .actions { margin-top: 10px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: fade-up 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-media > img:first-child { animation: unveil 1.2s var(--ease) both; }
  .hero-inset { animation: fade-up 1s 0.45s var(--ease) both; }

  /* Sections ease in as they scroll into view; browsers without scroll timelines just show them. */
  @supports (animation-timeline: view()) {
    [data-reveal] { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    .band img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes unveil { from { clip-path: inset(12% 0 0 0 round var(--r-lg)); transform: scale(1.04); opacity: 0.4; } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes drift { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.02) translateY(3%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.pt0 { padding-top: 0; }
[hidden] { display: none !important; }
