:root {
  color-scheme: light;
  --accent: #da291c;
  --ink: #171717;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --line: rgba(23, 23, 23, .1);
  background: #eef0f3;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f8f9fb 0%, #e8ebef 100%);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.menu-shell {
  position: relative;
  min-height: 100vh;
  padding: 14px clamp(14px, 3vw, 30px) 118px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .03), 0 24px 70px rgba(0, 0, 0, .08);
}

.menu-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 8px 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.ghost {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #4b4b4b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ghost.right {
  justify-self: end;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  overflow: hidden;
}

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

.hidden-brand {
  opacity: 0;
  pointer-events: none;
}

.hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  gap: 22px;
  align-items: center;
  padding: 28px 0 18px;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 7vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.mode-card small,
.product-row p,
.sent p {
  color: #666;
  line-height: 1.45;
}

.panel-help {
  max-width: 520px;
  margin: 10px 0 0;
  color: #666;
  line-height: 1.45;
}

.hero-food {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .18);
}

.start-screen {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 0 0 52px;
  text-align: center;
}

.start-logo {
  width: min(720px, 94%);
  height: 290px;
  border-radius: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 46px;
  font-weight: 900;
  box-shadow: none;
  overflow: visible;
}

.start-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.start-screen h1 {
  max-width: 720px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.start-screen > p:not(.eyebrow) {
  margin: 0;
  color: #666;
  font-size: 17px;
  font-weight: 800;
}

.service-choice {
  margin: 4px 0 10px;
}

.choice-copy {
  display: grid;
  gap: 10px;
  margin: 28px auto 0;
  text-align: center;
}

.choice-copy h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
}

.choice-copy p {
  margin: 0;
  color: #666;
  font-size: 17px;
  font-weight: 800;
}

.order-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .07);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.mode-card.hot {
  background: #161616;
  color: #fff;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.mode-card .mode-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.mode-card.hot .mode-icon {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.mode-card strong {
  font-size: 28px;
  text-transform: uppercase;
}

.panel,
.review,
.sent {
  width: min(680px, 100%);
  margin: 18px auto 0;
}

.panel h1,
.review h1,
.sent h1 {
  font-size: clamp(32px, 6vw, 56px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
  width: 100%;
}

.primary,
.secondary,
.cart-button,
.product-row button {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 900;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.secondary {
  background: var(--soft);
  color: var(--ink);
}

.status {
  min-height: 18px;
  margin: 0;
  color: #666;
  font-size: 13px;
}

.menu-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 16px;
}

.menu-heading h1 {
  font-size: clamp(36px, 7vw, 76px);
}

.cart-button {
  background: #161616;
  color: #fff;
  white-space: nowrap;
}

.category-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-row {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.product-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .1);
}

.product-row img,
.image-fallback {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.image-fallback {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.product-row strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.product-row p {
  margin: 6px 0;
  font-size: 13px;
}

.product-row .price {
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}

.product-row button {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  background: #161616;
  color: #fff;
  padding: 9px 14px;
}

.extras-screen {
  width: min(860px, 100%);
  margin: 20px auto 0;
  display: grid;
  gap: 18px;
}

.extras-screen h1 {
  font-size: clamp(28px, 5vw, 48px);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.extra-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.extra-card img,
.extra-card > span {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.extra-card > span {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
}

.extra-card strong {
  font-size: 14px;
  line-height: 1.18;
}

.extra-card small {
  color: var(--accent);
  font-weight: 900;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.ad-banner {
  width: 100%;
  min-height: 290px;
  margin: clamp(44px, 8vw, 96px) 0 0;
  border: 2px solid #171717;
  border-radius: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 34px);
  color: #171717;
  text-decoration: none;
}

.ad-banner span {
  color: #171717;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1;
  font-weight: 400;
}

.image-ad {
  justify-content: start;
  gap: 24px;
}

.image-ad img {
  width: min(260px, 35%);
  max-height: 190px;
  object-fit: contain;
}

.image-ad div {
  min-width: 0;
}

.image-ad strong {
  display: block;
  color: #171717;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
}

.image-ad p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #555;
  line-height: 1.35;
}

.adsense-banner {
  min-height: 120px;
  border-color: var(--line);
}

.payment-box {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-box strong {
  font-size: 17px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-options button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.payment-options button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.change-question {
  display: grid;
  gap: 8px;
}

.change-question > span {
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

.sticky-total {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  width: min(920px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}

.sticky-total div {
  display: grid;
  gap: 2px;
}

.sticky-total span {
  color: #666;
  font-size: 12px;
  font-weight: 800;
}

.sticky-total strong {
  font-size: 20px;
}

.detail {
  width: min(900px, 100%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
}

.detail-body {
  display: grid;
  gap: 16px;
}

.detail-body h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.detail-body > strong {
  color: var(--accent);
  font-size: 24px;
}

.detail form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quartering-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.quartering-options legend {
  padding: 0 4px;
  color: var(--ink);
  font-weight: 900;
}

.quartering-options p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.quartering-options > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.quartering-choice {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.quartering-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.quartering-choice span {
  color: var(--ink);
  font-weight: 800;
}

.cart-lines {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.cart-item > div:first-child,
.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-item > div:first-child {
  flex-wrap: wrap;
}

.cart-item strong {
  font-size: 17px;
}

.cart-item > div:first-child small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-item span,
.totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.totals dt {
  color: #666;
  font-weight: 800;
}

.totals .grand {
  color: var(--ink);
  font-size: 22px;
}

.review > h1 {
  color: var(--ink);
}

.sent {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.sent-logo {
  width: min(720px, 94vw);
  height: 290px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 46px;
  font-weight: 900;
  overflow: visible;
}

.sent-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sent-animation {
  width: 118px;
  height: 64px;
  margin: -20px auto 0;
  position: relative;
  display: none;
}

.sent-animation.visible {
  display: block;
}

.sent-animation::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 11px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 42%, #ddd);
}

.sent-animation span {
  position: absolute;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--accent);
  animation: order-hop 1.25s ease-in-out infinite;
}

.sent-animation span:nth-child(1) {
  left: 16px;
}

.sent-animation span:nth-child(2) {
  left: 48px;
  animation-delay: .16s;
  background: #1f8f4d;
}

.sent-animation span:nth-child(3) {
  left: 80px;
  animation-delay: .32s;
}

@keyframes order-hop {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-18px) scale(1.04);
  }
}

.order-status-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.order-status-card strong {
  color: var(--ink);
}

.order-status-card.cancelled {
  border-color: rgba(185, 28, 28, .25);
  background: #fff5f5;
}

.order-status-card small {
  color: #666;
  font-weight: 900;
}

.status-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0 2px;
}

.status-progress::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 31px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.status-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.status-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease;
}

.status-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-node small {
  width: min-content;
  min-width: 62px;
  color: currentColor;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
}

.status-node.complete .status-icon {
  border-color: color-mix(in srgb, var(--accent) 40%, #fff);
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
}

.status-node.active {
  color: var(--accent);
}

.status-node.active .status-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 28%, transparent);
  animation: status-pulse 1.8s ease-in-out infinite;
}

.status-node.cancelled .status-icon {
  border-color: #b91c1c;
  background: #fee2e2;
  color: #b91c1c;
}

@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  50% {
    box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 36%, transparent);
  }
}

.restaurant-message-label,
.restaurant-message,
.cancelled-message {
  display: none;
}

.restaurant-message-label.visible {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.restaurant-message.visible {
  display: block;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.cancelled-message.visible {
  display: block;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.customer-reply-form {
  display: none;
  gap: 10px;
}

.customer-reply-form.visible {
  display: grid;
}

.customer-reply-form label {
  display: grid;
  gap: 6px;
  text-align: left;
}

.customer-reply-form label span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.customer-reply-form textarea {
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.state {
  width: min(520px, calc(100% - 32px));
  margin: 22vh auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .12);
}

@media (max-width: 760px) {
  .menu-shell {
    padding-bottom: 108px;
  }

  .hero,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-food {
    aspect-ratio: 1.55 / 1;
  }

  .product-list,
  .order-type-grid,
  .extras-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .extras-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-heading {
    align-items: start;
  }

  .cart-button {
    align-self: center;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .ad-banner {
    min-height: 190px;
    text-align: center;
  }

  .image-ad {
    flex-direction: column;
    justify-content: center;
  }

  .image-ad img {
    width: min(280px, 100%);
  }
}

@media (max-width: 460px) {
  .menu-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-row {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 126px;
  }

  .product-row img,
  .image-fallback {
    width: 92px;
    height: 92px;
  }

  .product-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sticky-total {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .start-logo {
    width: min(390px, 96%);
    height: 190px;
  }

  .mode-card {
    min-height: 158px;
  }

  .mode-card .mode-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }
}
