:root {
  --bg: #fff7e6;
  --bg-strong: #ffe265;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --ink: #101010;
  --muted: #5a5144;
  --brand-red: #ef2724;
  --brand-red-deep: #bc1414;
  --brand-gold: #ffd91c;
  --brand-orange: #ff9120;
  --brand-green: #2b6f36;
  --line: rgba(16, 16, 16, 0.12);
  --shadow: 0 22px 48px rgba(16, 16, 16, 0.12);
  --shadow-soft: 0 12px 24px rgba(16, 16, 16, 0.08);
  --radius: 26px;
  --radius-small: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 217, 28, 0.85), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(239, 39, 36, 0.18), transparent 22%),
    linear-gradient(180deg, #fff4cf 0%, #fff8e7 38%, #fffdf8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 16, 16, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 72%);
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: auto;
}

.brand strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.topnav {
  display: inline-flex;
  justify-content: center;
  gap: 22px;
  font-weight: 700;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff6cf;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-orange);
}

.status-pill[data-mode="live"]::before {
  background: var(--brand-green);
}

.status-pill[data-mode="demo"]::before {
  background: var(--brand-orange);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 24px;
  padding: 40px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(239, 39, 36, 0.95), rgba(188, 20, 20, 0.92)),
    radial-gradient(circle at top right, rgba(255, 217, 28, 0.55), transparent 40%);
  color: #fffbe9;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -35% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 217, 28, 0.18);
  filter: blur(8px);
}

.hero h1 {
  margin: 10px 0 14px;
  max-width: 12ch;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Medium", sans-serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero p {
  max-width: 58ch;
  color: rgba(255, 251, 233, 0.88);
  font-size: 1.06rem;
  line-height: 1.6;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.eyebrow::before,
.panel-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.service-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.service-button,
.primary-button,
.secondary-button,
.ghost-button,
.primary-link {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.service-button {
  min-width: 138px;
  padding: 14px 18px;
  border-radius: 999px;
  background: transparent;
  color: #fffbe9;
  font-weight: 800;
  font-size: 1rem;
}

.service-button.is-active {
  background: var(--brand-gold);
  color: #141414;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics article,
.hero-panel-card,
.hero-offer {
  position: relative;
  z-index: 1;
}

.hero-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-metrics span {
  display: block;
  color: rgba(255, 251, 233, 0.78);
  font-size: 0.86rem;
}

.hero-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: stretch;
}

.hero-panel-card,
.hero-offer {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 251, 233, 0.14);
  backdrop-filter: blur(12px);
}

.hero-panel-card h2,
.hero-offer strong {
  margin: 10px 0 12px;
  font-size: 1.8rem;
  line-height: 1.08;
}

.primary-link,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
}

.primary-link,
.primary-button {
  background: var(--brand-gold);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.secondary-button {
  background: #111;
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.primary-link:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.service-button:hover {
  transform: translateY(-1px);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 26px;
}

.content-column {
  display: grid;
  gap: 22px;
}

.panel {
  padding: 28px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel-copy {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-form,
.checkout-grid,
.tracker-controls {
  display: grid;
  gap: 16px;
}

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

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

.checkout-column {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(239, 39, 36, 0.45);
  box-shadow: 0 0 0 4px rgba(239, 39, 36, 0.14);
}

textarea {
  resize: vertical;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.inline-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.info-strip,
.checkout-feedback,
.cart-store,
.menu-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8d6;
  color: #5b4b17;
  line-height: 1.55;
}

.store-results,
.deal-grid,
.menu-grid,
.cart-items,
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.store-card,
.deal-card,
.menu-card,
.payment-card,
.cart-item,
.timeline-item,
.empty-state,
.checkout-surface {
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}

.store-card,
.deal-card,
.menu-card,
.payment-card,
.cart-item {
  padding: 20px;
}

.store-card header,
.deal-card header,
.menu-card header,
.cart-item header,
.timeline-item header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.store-card h3,
.deal-card h3,
.menu-card h3,
.cart-item h3,
.payment-panel h3 {
  margin: 0;
  font-size: 1.14rem;
}

.store-card p,
.deal-card p,
.menu-card p,
.cart-item p,
.timeline-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill-row,
.meta-row,
.payment-options,
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.metric-chip,
.menu-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff2b3;
  color: #5b4600;
  font-size: 0.84rem;
  font-weight: 800;
}

.menu-filter {
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: #fff;
  cursor: pointer;
}

.menu-filter.is-active {
  background: var(--brand-red);
  color: #fff;
}

.menu-toolbar {
  display: grid;
  gap: 16px;
}

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

.menu-card {
  display: grid;
  gap: 14px;
}

.menu-card .cta-row,
.store-card .cta-row,
.deal-card .cta-row,
.cart-item .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.menu-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 217, 28, 0.14), rgba(255, 145, 32, 0.08)),
    #fff;
}

.menu-card.emphasis {
  background:
    linear-gradient(135deg, rgba(239, 39, 36, 0.08), rgba(255, 217, 28, 0.08)),
    #fff;
}

.meta-row {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.deal-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 217, 28, 0.28), transparent 35%),
    #fff;
}

.deal-card .deal-price {
  color: var(--brand-red-deep);
  font-size: 1.6rem;
  font-family: Impact, Haettenschweiler, "Franklin Gothic Medium", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payment-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #fffaf0;
  border: 1px solid rgba(16, 16, 16, 0.08);
}

.payment-card {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.payment-card.is-active {
  border-color: rgba(239, 39, 36, 0.36);
  box-shadow: 0 0 0 4px rgba(239, 39, 36, 0.12);
}

.payment-fields {
  display: grid;
  gap: 12px;
}

.cart-column {
  position: relative;
}

.cart-panel {
  position: sticky;
  top: 104px;
  background:
    linear-gradient(180deg, rgba(255, 217, 28, 0.22), transparent 45%),
    var(--panel);
}

.cart-items {
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  gap: 12px;
}

.cart-item .quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

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

.cart-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}

.timeline-item {
  padding: 18px;
}

.timeline-item strong {
  display: block;
  font-size: 1rem;
}

.timeline-empty,
.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.tracker-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.composer-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 16, 16, 0.56);
  backdrop-filter: blur(12px);
  z-index: 25;
}

.composer-modal[hidden],
.toast[hidden] {
  display: none !important;
}

.composer-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.composer-layout {
  display: grid;
  gap: 18px;
}

.composer-layout h3 {
  margin: 0;
  font-size: 1.9rem;
}

.composer-layout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.composer-form {
  display: grid;
  gap: 16px;
}

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

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: #fffaf0;
}

.choice-card input {
  width: auto;
  margin-top: 3px;
}

.choice-card strong {
  display: block;
}

.nested-group {
  margin-top: 10px;
  padding-left: 24px;
  border-left: 2px solid rgba(16, 16, 16, 0.08);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 30;
}

.toast[data-tone="error"] {
  background: var(--brand-red-deep);
}

.toast[data-tone="success"] {
  background: var(--brand-green);
}

body[data-service="pickup"] .delivery-only {
  display: none;
}

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

.panel,
.hero,
.store-card,
.deal-card,
.menu-card,
.cart-item,
.timeline-item {
  animation: rise 280ms ease both;
}

@media (max-width: 1120px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

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

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .topnav {
    justify-content: start;
    overflow: auto;
  }

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

  .service-form,
  .menu-grid,
  .deal-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

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

  .tracker-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
  }

  .hero,
  .panel,
  .composer-dialog {
    padding: 22px;
    border-radius: 24px;
  }

  .action-row {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}
