:root {
  color-scheme: light;
  --ink: #2a1f18;
  --muted: #7f6d61;
  --line: #e7d7c7;
  --surface: #fff7ef;
  --paper: #fffdf9;
  --accent: #c9824f;
  --accent-dark: #8d5735;
  --mint: #8f5d3b;
  --gold: #e3b15b;
  --shadow: 0 18px 50px rgba(74, 46, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.96), rgba(255, 247, 239, 0.96)),
    radial-gradient(circle at top left, rgba(201, 130, 79, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(227, 177, 91, 0.08), transparent 22%),
    var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(74, 46, 26, 0.08);
  background: rgba(255, 247, 239, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(180deg, #b5693f, #7f4427);
  font-weight: 800;
  overflow: hidden;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a,
.nav-button,
.primary-link,
.secondary-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav a,
.nav-button {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(460px, 68vh, 720px);
  overflow: hidden;
  isolation: isolate;
}

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

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(25, 15, 8, 0.7), rgba(25, 15, 8, 0.26) 58%, rgba(25, 15, 8, 0.06)),
    linear-gradient(0deg, rgba(255, 247, 239, 0.96), rgba(255, 247, 239, 0) 24%);
}

.hero-copy {
  width: min(580px, calc(100% - 32px));
  padding: clamp(84px, 13vw, 150px) 0 96px;
  margin-left: clamp(16px, 6vw, 76px);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffd08a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 34rem;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.primary-link,
.pay-button,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
}

.primary-link,
.pay-button {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #cf8a57, #a86337);
  box-shadow: 0 12px 24px rgba(119, 71, 38, 0.22);
  cursor: pointer;
}

.order-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(1240px, calc(100% - 16px));
  margin: 16px auto 40px;
  align-items: start;
}

.demo-menu {
  width: min(1240px, calc(100% - 16px));
  margin: 16px auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 245, 237, 0.98));
  box-shadow: var(--shadow);
}

.demo-head {
  margin-bottom: 14px;
}

.demo-note {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.demo-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(227, 177, 91, 0.09), transparent 28%),
  #fff;
}

.demo-card-image {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(125, 77, 36, 0.12);
}

.demo-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-card strong {
  font-size: 1rem;
}

.demo-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #7c4c28;
  background: rgba(201, 130, 79, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.account-shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(450px, 100vw);
  margin: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 247, 239, 0.98));
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s;
}

.account-shell-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.account-shell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.account-logout {
  min-width: 92px;
}

.account-shell.open {
  transform: translateX(0) !important;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.account-shell-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.account-shell-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.account-card,
.menu-panel,
.checkout-panel {
  background: rgba(255, 253, 249, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.account-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.account-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.auth-form {
  display: grid;
  gap: 12px;
}

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

.account-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.account-tab.active {
  color: #fff;
  border-color: #9d6741;
  background: linear-gradient(180deg, #c9824f, #a15d34);
}

.account-section {
  display: grid;
  gap: 12px;
}

.account-section h3 {
  margin: 0;
}

.account-section p,
.account-section ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-section ul {
  padding-left: 18px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-history {
  display: grid;
  gap: 10px;
}

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

.spend-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.spend-card strong {
  font-size: 1.15rem;
}

.spend-card small {
  color: var(--muted);
}

.spend-card.total {
  grid-column: 1 / -1;
}

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

.otp-field {
  display: none;
}

.otp-field.active {
  display: grid;
}

.form-note,
.saved-user,
.saved-address p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.saved-user,
.saved-address {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf5;
}

.saved-user {
  display: grid;
  gap: 8px;
}

.saved-address {
  display: grid;
  gap: 12px;
}

.saved-address small {
  color: var(--muted);
  line-height: 1.45;
}

.map-picker {
  display: grid;
  gap: 10px;
}

.map-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.map-actions strong,
.map-actions small {
  display: block;
}

.map-actions small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.map-canvas {
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5efe2;
}

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

.selected-address p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dish-card.unavailable {
  opacity: 0.72;
}

.dish-card {
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 243, 0.96)),
    #fff;
}

.dish-actions {
  display: grid;
  gap: 10px;
}

.availability {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.availability.on {
  color: #165c45;
  background: rgba(19, 121, 91, 0.12);
}

.availability.off {
  color: #8d1f1f;
  background: rgba(141, 31, 31, 0.1);
}

.danger {
  color: #8d1f1f;
}

.secondary-button,
.text-button {
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--mint);
  background: #fff;
}

.text-button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
}

.hidden {
  display: none !important;
}

.menu-panel {
  padding: clamp(18px, 3vw, 30px);
}

.checkout-panel {
  position: static;
  padding: 22px;
}

.section-head,
.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  flex-direction: column;
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

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

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.filter.active {
  color: #fff;
  border-color: var(--mint);
  background: var(--mint);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.dish-card {
  display: grid;
  min-height: 178px;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dish-image {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 12px;
}

.dish-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.dish-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.dish-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.price {
  flex: 0 0 auto;
  font-weight: 900;
}

.add-button,
.quantity button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fff3ea;
  cursor: pointer;
  font-weight: 800;
}

.add-button {
  width: 100%;
}

.menu-quantity {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: grid;
  grid-template-columns: 44px minmax(24px, 1fr) 44px;
  align-items: center;
  justify-items: center;
}

.menu-quantity button {
  min-height: 36px;
  width: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--accent-dark);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.menu-quantity span {
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.cart-header span {
  color: var(--muted);
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 80px;
  padding: 10px 0;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.cart-row strong,
.cart-row small {
  display: block;
}

.cart-row small {
  margin-top: 2px;
  color: var(--muted);
}

.quantity {
  display: grid;
  grid-template-columns: 36px 30px 36px;
  gap: 4px;
  align-items: center;
  text-align: center;
  font-weight: 900;
}

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

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals span {
  color: var(--muted);
}

.grand-total {
  font-size: 1.2rem;
}

.customer-form {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.pay-button {
  width: 100%;
  font-weight: 900;
}

.payment-dialog {
  width: min(440px, calc(100% - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}

.payment-dialog::backdrop {
  background: rgba(23, 18, 13, 0.58);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.payment-content {
  display: grid;
  gap: 14px;
  padding: 30px;
  text-align: center;
}

.payment-content p,
.payment-content h2 {
  margin: 0;
}

.payment-content img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.tracking-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 110;
  display: grid;
  gap: 8px;
}

.tracking-toggle {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.tracking-toggle-left {
  display: grid;
  gap: 2px;
}

.tracking-toggle-left strong {
  font-size: 0.98rem;
}

.tracking-toggle-left small {
  color: rgba(255, 255, 255, 0.78);
}

.tracking-toggle-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.tracking-sheet {
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: var(--shadow);
}

.tracking-note {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.tracking-mini-map {
  min-height: 170px;
}

.tracking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.tracking-card h3,
.tracking-card p {
  margin: 0;
}

.tracking-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--mint);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status-pill.cancelled {
  background: #8d1f1f;
}

.tracking-toggle-right.cancelled {
  background: #8d1f1f;
}

.order-received-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.order-received-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.order-received-icon {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ef5707;
}

.order-received-icon span {
  color: #fff;
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
}

.order-received-icon.cancelled {
  background: #c62828;
}

.order-received-card h2 {
  font-size: clamp(2rem, 7vw, 2.8rem);
}

.order-received-address,
.order-received-eta {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.order-received-eta {
  color: var(--ink);
  font-weight: 800;
}

.rating-item {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.rating-item span {
  color: var(--ink);
  font-weight: 800;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.star-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #d3b393;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.star-button.active {
  color: #f4a30b;
  border-color: #f4a30b;
  background: #fff8ea;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--mint);
  background: #fff;
}

footer {
  padding: 28px 16px 40px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 880px) {
  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    font-size: 1rem;
    line-height: 1.1;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav {
    display: flex;
    margin-left: auto;
    gap: 8px;
  }

  .nav a {
    display: none;
  }

  .nav-button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--mint);
    background: #fff;
    font-weight: 800;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 430px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(18, 14, 9, 0.72), rgba(18, 14, 9, 0.2)),
      linear-gradient(0deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0) 18%);
  }

  .hero-copy {
    width: calc(100% - 24px);
    padding: 58px 0 56px;
    margin-inline: 12px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero p:not(.eyebrow) {
    margin: 14px 0 18px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .primary-link,
  .pay-button {
    min-height: 42px;
    padding: 0 14px;
  }

  .order-shell {
    gap: 12px;
    margin: 12px auto 24px;
  }

  .menu-panel {
    padding: 14px;
  }

  .checkout-panel {
    padding: 14px;
  }

  .section-head,
  .cart-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  h2 {
    font-size: 1.25rem;
  }

  .dish-card {
    gap: 10px;
    padding: 12px;
  }

  .dish-image {
    aspect-ratio: 1.45;
    border-radius: 10px;
  }

  .dish-card h3 {
    font-size: 0.98rem;
  }

  .dish-card p {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .price {
    font-size: 0.94rem;
  }

  .add-button,
  .quantity button {
    min-height: 34px;
    font-size: 0.9rem;
  }

  .menu-quantity {
    min-height: 40px;
    grid-template-columns: 38px minmax(24px, 1fr) 38px;
  }

  .menu-quantity button {
    min-height: 32px;
    width: 32px;
    font-size: 1.35rem;
  }

  .menu-quantity span {
    font-size: 1.2rem;
  }

  .cart-items {
    gap: 10px;
    padding: 8px 0;
  }

  .totals {
    padding: 12px 0;
  }

  .customer-form {
    gap: 10px;
    padding-top: 12px;
  }

  label {
    font-size: 0.85rem;
  }

  input,
  select,
  textarea {
    border-radius: 10px;
    padding: 10px;
    font-size: 0.92rem;
  }

  .tracking-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .tracking-toggle {
    min-height: 54px;
    border-radius: 12px;
    padding: 8px 10px;
  }

  .tracking-toggle-left strong {
    font-size: 0.9rem;
  }

  .tracking-toggle-left small {
    font-size: 0.78rem;
  }

  .tracking-sheet {
    max-height: 62vh;
    padding: 10px;
  }

  .tracking-mini-map {
    min-height: 150px;
  }

  .tracking-card {
    padding: 10px;
    gap: 6px;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .account-shell {
    width: 100vw;
  }

  .map-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 0.95rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 390px;
  }

  .hero-copy {
    width: calc(100% - 20px);
    margin-inline: 10px;
    padding: 50px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .hero p:not(.eyebrow) {
    font-size: 0.92rem;
    margin: 12px 0 16px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dish-card {
    min-height: 136px;
    padding: 10px;
    gap: 8px;
  }

  .checkout-panel,
  .menu-panel {
    padding: 12px;
  }

  .tracking-toggle-right {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
}

@media (min-width: 881px) {
  .hero {
    min-height: clamp(520px, 70vh, 740px);
  }

  .hero-copy {
    width: min(620px, calc(100% - 48px));
    padding: clamp(88px, 12vw, 148px) 0 104px;
  }

  .demo-menu {
    padding: 20px;
  }

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

  .order-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(18px, 3vw, 34px);
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 56px;
  }

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

  .tracking-dock {
    left: max(16px, calc((100vw - 1240px) / 2));
    right: max(16px, calc((100vw - 1240px) / 2));
    bottom: 16px;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .section-head,
  .cart-header {
    flex-direction: row;
  }

  .checkout-panel {
    position: sticky;
    top: 88px;
  }
}

@media (min-width: 1200px) {
  .demo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
