/* ==========================================================================
   SIZZLE. — a fast-food ordering app.
   Standalone brand: own palette, own typography, own motion. Shares nothing
   with the portfolio stylesheet on purpose — five apps, five identities.
   ========================================================================= */

:root {
  --flame: #ff3b00;
  --flame-deep: #d92c00;
  --ember: #ff9500;
  --acid: #d8ff3e;
  --ink: #0d0a08;
  --char: #17120f;
  --char-2: #241c17;
  --cream: #fff4e8;
  --paper: #ffffff;
  --muted: rgba(255, 244, 232, 0.6);
  --line: rgba(255, 244, 232, 0.14);

  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ui: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --gutter: 20px;
  --max: 1280px;

  --shadow-card: 0 18px 40px -22px rgba(13, 10, 8, 0.55);
  --shadow-pop: 0 26px 60px -26px rgba(13, 10, 8, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acid); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ TYPE */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0;
}

/* ----------------------------------------------------------------- BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.3),
              background-color 180ms ease, color 180ms ease, box-shadow 220ms ease;
}

.btn:active { transform: scale(0.97); }

.btn--flame {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 59, 0, 0.75);
}

.btn--flame:hover { background: var(--flame-deep); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 244, 232, 0.1);
  color: var(--cream);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover { background: rgba(255, 244, 232, 0.18); transform: translateY(-2px); }

.btn--acid { background: var(--acid); color: var(--ink); }
.btn--acid:hover { background: #c8f22c; transform: translateY(-2px); }

.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ----------------------------------------------------------------- TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 10, 8, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 240ms ease, background-color 240ms ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 16px;
  transition: padding 240ms ease;
}

.topbar[data-shrunk="true"] .topbar__inner { padding-block: 10px; }
.topbar[data-shrunk="true"] { background: rgba(13, 10, 8, 0.92); }

.logo {
  font-family: var(--display);
  font-size: 27px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  align-self: flex-end;
  margin-bottom: 5px;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}

.topbar__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  line-height: 1.3;
}

.topbar__meta strong { font-weight: 700; }
.topbar__meta span { color: var(--muted); }

/* ------------------------------------------------------------------- HERO */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: -6%;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 10, 8, 0.72) 0%, rgba(13, 10, 8, 0.28) 34%,
                    rgba(13, 10, 8, 0.86) 78%, var(--ink) 100%),
    radial-gradient(120% 80% at 12% 90%, rgba(255, 59, 0, 0.35) 0%, transparent 60%);
}

.hero__body { padding-block: 72px 44px; width: 100%; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 18px;
}

.hero__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.7);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(216, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 11vw, 136px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
  max-width: 14ch;
}

.hero h1 .out {
  color: transparent;
  -webkit-text-stroke: 2px var(--acid);
}

.hero h1 .flame { color: var(--flame); }

.hero__sub {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 244, 232, 0.82);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.hero__facts b { color: var(--cream); font-weight: 700; }

/* hero entrance */
.hero__rise > * { animation: rise 760ms cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
.hero__rise > *:nth-child(1) { animation-delay: 60ms; }
.hero__rise > *:nth-child(2) { animation-delay: 140ms; }
.hero__rise > *:nth-child(3) { animation-delay: 220ms; }
.hero__rise > *:nth-child(4) { animation-delay: 300ms; }
.hero__rise > *:nth-child(5) { animation-delay: 380ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- MARQUEE */
.marquee {
  background: var(--acid);
  color: var(--ink);
  overflow: hidden;
  padding-block: 13px;
  transform: rotate(-1.2deg) scale(1.03);
  margin-block: -6px;
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: var(--display);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}

/* ASCII escape, not a literal glyph — a PowerShell text round-trip once
   corrupted this character and the separator rendered as mojibake. */
.marquee__item::after { content: "\2605"; font-size: 14px; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------- RAIL */
.rail {
  position: sticky;
  top: 59px;
  z-index: 50;
  background: rgba(13, 10, 8, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.rail__inner {
  display: flex;
  gap: 9px;
  padding-block: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail__inner::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
              transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.chip:hover { border-color: rgba(255, 244, 232, 0.4); transform: translateY(-1px); }

.chip[aria-pressed="true"] {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(255, 59, 0, 0.9);
}

/* ------------------------------------------------------------------ LAYOUT */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  padding-block: 44px 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 46px);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.section-head span { font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------------- CARD */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 300ms ease, box-shadow 300ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 149, 0, 0.45);
  box-shadow: var(--shadow-pop);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--char-2);
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Unifies studio-white product shots and darker scene photos into one look. */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 10, 8, 0.30) 0%, rgba(13, 10, 8, 0) 32%,
                    rgba(23, 18, 15, 0.30) 72%, rgba(23, 18, 15, 0.86) 100%),
    radial-gradient(120% 90% at 50% 40%, rgba(13, 10, 8, 0) 42%, rgba(13, 10, 8, 0.34) 100%);
}

.card:hover .card__media img { transform: scale(1.07); }

.card__price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--flame);
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.02em;
  padding: 5px 13px 4px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 22px -12px rgba(255, 59, 0, 0.9);
}

.card__tags {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(13, 10, 8, 0.72);
  color: var(--acid);
  backdrop-filter: blur(6px);
}

.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.card__name {
  font-family: var(--display);
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

.card__desc { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0; flex: 1; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.card__kcal { font-size: 12px; color: var(--muted); }

.add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 244, 232, 0.12);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.card:hover .add { background: var(--acid); color: var(--ink); }
.add:active { transform: scale(0.94); }

/* --------------------------------------------------------------- DEAL BAND */
.deal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-block: 8px 64px;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.deal__media { position: absolute; inset: 0; z-index: -2; }
.deal__media img { width: 100%; height: 100%; object-fit: cover; }

.deal::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg, rgba(13, 10, 8, 0.94) 12%, rgba(13, 10, 8, 0.55) 58%,
                              rgba(255, 59, 0, 0.32) 100%);
}

.deal__body { padding: 44px clamp(24px, 4vw, 56px); max-width: 30ch; }

.deal h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 62px);
  text-transform: uppercase;
  line-height: 0.98;
  margin: 0;
}

.deal h2 em { font-style: normal; color: var(--acid); }
.deal p { margin: 14px 0 22px; color: rgba(255, 244, 232, 0.85); font-size: 16px; }

/* -------------------------------------------------------------------- CART */
.cart {
  position: sticky;
  top: 92px;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
  overflow: hidden;
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.cart__head h3 {
  font-family: var(--display);
  font-size: 21px;
  text-transform: uppercase;
  margin: 0;
}

.cart__clear {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; color: var(--muted); text-decoration: underline;
  text-underline-offset: 3px;
}

.cart__clear:hover { color: var(--cream); }

.cart__lines { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }

.cart__empty { padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }

.line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: start; }

.line__img {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--char-2);
}

.line__img img { width: 100%; height: 100%; object-fit: cover; }

.line__name { font-weight: 700; font-size: 14px; margin: 0; }
.line__opts { font-size: 12px; color: var(--muted); margin: 2px 0 0; line-height: 1.4; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.stepper button {
  width: 28px; height: 28px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 16px; line-height: 1;
  transition: background-color 150ms ease;
}

.stepper button:hover { background: rgba(255, 244, 232, 0.12); }
.stepper span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 700; }

.line__price { font-weight: 700; font-size: 14px; white-space: nowrap; }

.line__remove {
  display: block; margin-top: 8px; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--muted); text-align: right;
}

.line__remove:hover { color: var(--flame); }

.cart__totals { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

.row-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.row-total b { color: var(--cream); }

.row-total--grand {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  color: var(--cream);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.row-total--grand b { color: var(--acid); }

.cart__cta { padding: 0 20px 20px; }

.btn--block { width: 100%; }

/* ------------------------------------------------------------ MOBILE CART */
.cartbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 10, 8, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.cartbar[data-active="true"] { transform: none; }

.cartbar__inner { display: flex; align-items: center; gap: 16px; }

.cartbar__total { font-family: var(--display); font-size: 24px; line-height: 1; }
.cartbar__count { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------- SHEET */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet[data-open="true"] { display: block; }

.sheet__scrim {
  position: absolute; inset: 0;
  background: rgba(6, 4, 3, 0.66);
  backdrop-filter: blur(3px);
  animation: fade 200ms ease;
}

.sheet__panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 28px));
  max-height: min(88vh, 760px);
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  animation: pop 260ms cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet__hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--char-2); }
.sheet__hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23, 18, 15, 0.95) 100%);
}

.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%; border: 0;
  background: rgba(13, 10, 8, 0.65);
  color: var(--cream);
  font-size: 19px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}

.sheet__close:hover { background: var(--flame); color: #fff; }

.sheet__title { position: absolute; left: 22px; right: 22px; bottom: 14px; z-index: 2; }

.sheet__title h3 {
  font-family: var(--display);
  font-size: 34px;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
}

.sheet__title p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 244, 232, 0.8); }

.sheet__body { padding: 22px; overflow-y: auto; }

.group { margin-bottom: 22px; }
.group:last-child { margin-bottom: 0; }

.group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.seg { display: flex; gap: 8px; flex-wrap: wrap; }

.seg label { cursor: pointer; }

.seg input { position: absolute; opacity: 0; pointer-events: none; }

.seg span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.seg input:checked + span {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
}

.seg small { font-size: 12px; opacity: 0.75; }

.seg input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 2px; }

.sheet__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--char-2);
}

.sheet__foot .btn { flex: 1; }

/* ------------------------------------------------------------------ STATUS */
.status {
  position: fixed; inset: 0; z-index: 80;
  background: radial-gradient(120% 70% at 50% 0%, #2a1a10 0%, var(--ink) 62%);
  overflow-y: auto;
  display: none;
}

.status[data-open="true"] { display: block; animation: fade 260ms ease; }

.status__inner { max-width: 560px; margin-inline: auto; padding: 72px var(--gutter) 64px; }

.status__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acid); margin: 0;
}

.status h2 {
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 76px);
  text-transform: uppercase;
  line-height: 0.98;
  margin: 12px 0 8px;
}

.status__code { font-size: 15px; color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 28px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 0;
  width: 2px;
  background: var(--line);
}

.step[data-done="true"]:not(:last-child)::before {
  background: linear-gradient(180deg, var(--flame), var(--ember));
}

.step__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  background: var(--char);
  border: 2px solid var(--line);
  color: var(--muted);
  transition: background-color 420ms ease, border-color 420ms ease, color 420ms ease,
              transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.step[data-done="true"] .step__dot {
  background: var(--flame);
  border-color: var(--flame);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(255, 59, 0, 0.16);
}

.step__title { font-weight: 700; font-size: 17px; margin: 5px 0 0; transition: color 300ms ease; }
.step[data-done="false"] .step__title { color: rgba(255, 244, 232, 0.42); }
.step__note { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

.status__summary {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.status__row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); }
.status__row b { color: var(--cream); text-align: right; }

/* ------------------------------------------------------------------- TOAST */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 20px) scale(0.94);
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  box-shadow: 0 20px 40px -18px rgba(216, 255, 62, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* -------------------------------------------------------------- FOOTER */
.foot { border-top: 1px solid var(--line); padding-block: 34px 44px; }

.foot__row {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: space-between;
  font-size: 13px; color: var(--muted);
}

.foot a:hover { color: var(--acid); }

/* ------------------------------------------------------------- REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 640ms ease, transform 640ms cubic-bezier(0.2, 0.9, 0.3, 1); }
.reveal[data-shown="true"] { opacity: 1; transform: none; }

/* --------------------------------------------------------- MOTION SAFETY */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 1080px) {
  .main { grid-template-columns: 1fr; gap: 30px; padding-bottom: 130px; }
  .cart { display: none; }
  /* the slide-in bar only exists on small screens, where the sidebar is gone */
  .cartbar { display: block; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__meta { display: none; }
  .rail { top: 55px; }

  .sheet__panel--cart {
    top: auto; bottom: 0; left: 0;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    animation: sheet-up 300ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__body { padding-block: 48px 34px; }
  .hero__sub { font-size: 15px; }
  .deal { min-height: 260px; margin-bottom: 44px; }
  .deal__body { padding-block: 32px; }
  .foot__row { flex-direction: column; gap: 8px; }
}
