:root {
  --brand-primary: #ff381f;
  --brand-secondary: #251f1b;
  --brand-accent: #f7b538;
  --page-bg: #faf5eb;
  --surface: #ffffff;
  --surface-variant: #fff7ea;
  --text-primary: #251f1b;
  --text-secondary: #5c544d;
  --button-bg: #ff381f;
  --button-text: #ffffff;
  --border: color-mix(in srgb, var(--text-primary) 12%, transparent);
  --shadow: 0 16px 42px rgba(37, 31, 27, 0.10);
  --shadow-soft: 0 8px 24px rgba(37, 31, 27, 0.08);
  --shadow-sm: 0 4px 14px rgba(37, 31, 27, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1220px;
  --header-height: 78px;
  --mobile-nav-height: 74px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(-160%);
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.header-inner {
  width: min(calc(100% - 32px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.header-logo { width: 108px; max-height: 58px; object-fit: contain; }
.desktop-nav { display: flex; justify-content: center; gap: 6px; }
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}
.nav-button:hover { background: var(--surface-variant); color: var(--text-primary); }
.nav-button.active { background: var(--brand-secondary); color: #fff; }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.nav-icon svg { width: 100%; height: 100%; fill: currentColor; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.location-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 230px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
  cursor: pointer;
  text-align: left;
}
.location-chip:hover { border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--border)); }
.location-chip span:last-child { min-width: 0; }
.location-chip small, .location-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-chip small { color: var(--text-secondary); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.location-chip strong { font-size: .88rem; }
.location-chip-icon { color: var(--brand-primary); font-size: 1.15rem; }
.account-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--button-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 25%, transparent);
}

.status-banner {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  padding: 10px 18px;
  text-align: center;
  background: #fff3cd;
  color: #6a5000;
  border-bottom: 1px solid #eadb99;
  font-size: .9rem;
  font-weight: 600;
}

.page-panel { display: none; }
.page-panel.active { display: block; }
.screen-background {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  background-color: var(--page-bg);
  overflow: hidden;
}
.screen-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--screen-bg-image, none);
  background-size: cover;
  background-position: center top;
  opacity: var(--screen-bg-opacity, 0);
  pointer-events: none;
}
.screen-background > * { position: relative; z-index: 1; }
.page-container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 30px 0 52px;
}
.home-page { display: grid; gap: 24px; }
.home-page > * { min-width: 0; }
.home-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 24px;
}
.rewards-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-secondary);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}
.rewards-pill small { opacity: .72; font-weight: 600; }

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 42%, var(--border));
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-card::after { display: none; }
.hero-media {
  position: static;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: clamp(16px, 2.5vw, 24px);
  color: var(--text-primary);
  background: var(--surface);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #33210a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-content h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 760px;
}
.hero-content p {
  margin: 8px 0 0;
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 680px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.quick-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
}
.quick-action-card:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border)); }
.quick-action-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--surface-variant);
  color: var(--brand-primary);
}
.quick-action-icon svg { width: 25px; height: 25px; fill: currentColor; }
.quick-action-card strong { display: block; font-size: 1.04rem; }
.quick-action-card small { color: var(--text-secondary); font-size: .83rem; }

.content-section { display: grid; gap: 15px; }
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.section-heading h2 { margin: 0; font-size: clamp(1.35rem,2vw,2rem); letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--brand-primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.promo-grid, .featured-grid, .offer-grid { display: grid; gap: 14px; }

.promotion-carousel,
.featured-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 760px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.featured-scroller { grid-auto-columns: min(38%, 290px); }
.artwork-card {
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: default;
}
.artwork-card.actionable { cursor: pointer; }
.artwork-card.actionable:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 55%, transparent); outline-offset: 3px; }
.artwork-card-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--surface-variant);
}
.featured-scroller .artwork-card-media { object-fit: cover; }

.announcement-list,
.offer-list { display: grid; gap: 10px; }
.compact-content-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.compact-content-card.actionable { cursor: pointer; }
.compact-content-card.actionable:hover { border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border)); }
.compact-content-card.actionable:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 55%, transparent); outline-offset: 3px; }
.compact-content-media {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-variant);
}
.compact-content-body { min-width: 0; }
.compact-content-body .eyebrow { margin-bottom: 2px; color: var(--brand-accent); }
.compact-content-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.18; }
.compact-content-body p { margin: 5px 0 0; color: var(--text-secondary); font-size: .9rem; }
.compact-content-body .card-cta { margin-top: 7px; font-size: .82rem; }
.compact-content-chevron { color: var(--brand-primary); font-weight: 700; font-size: 1.2rem; padding-right: 5px; }

.content-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.content-card-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-variant);
}
.content-card-body { padding: 18px; }
.content-card-body h3 { margin: 2px 0 7px; font-size: 1.18rem; }
.content-card-body p { margin: 0; color: var(--text-secondary); }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand-primary);
  font-weight: 700;
}

.store-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 35%, var(--border));
  border-radius: 22px;
  padding: 12px;
  background: var(--surface-variant);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.store-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 32%, var(--border)); }
.store-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 55%, transparent); outline-offset: 3px; }
.store-card-image { width: 92px; height: 92px; object-fit: cover; border-radius: 18px; background: var(--surface); }
.store-card-body { min-width: 0; padding: 0; }
.store-card-body h2 { margin: 1px 0 4px; font-size: 1.18rem; }
.store-card-body p { margin: 3px 0; color: var(--text-secondary); font-size: .85rem; }
.store-card-role { color: var(--brand-accent) !important; font-weight: 700; }
.store-card-chevron { color: var(--brand-primary); font-size: 1.4rem; font-weight: 700; padding-right: 4px; }
.store-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.fact-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 18px;
}
.fact-icon { color: var(--brand-primary); font-size: 1.4rem; }
.fact-tile strong { display: block; margin-top: 9px; }
.fact-tile small { display: block; color: var(--text-secondary); margin-top: 3px; }

.mission-card, .rewards-summary-card, .driver-info-card, .customer-card-panel, .store-status-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px,4vw,34px);
}
.mission-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.mission-card h2, .rewards-summary-card h2, .driver-info-card h2 { margin: 0 0 9px; }
.mission-card p, .rewards-summary-card p, .driver-info-card p { color: var(--text-secondary); }
.contact-list { display: grid; gap: 8px; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--brand-primary); }

.page-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.page-heading-row h1 { margin: 0; font-size: clamp(2rem,4vw,3.8rem); line-height: 1; letter-spacing: -.04em; }
.page-subtitle { margin: 9px 0 0; color: var(--text-secondary); max-width: 700px; }

.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--button-bg); background: var(--button-bg); color: var(--button-text); }
.secondary-button { border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); }
.text-button { border: 0; background: transparent; color: var(--brand-primary); padding-inline: 4px; }
.primary-button:hover, .secondary-button:hover { filter: brightness(.98); transform: translateY(-1px); }

.store-status-card { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.store-status-card h2 { margin: 0; font-size: 1.2rem; }
.store-status-card p { margin: 5px 0 0; color: var(--text-secondary); }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.open { background: #e6f7ec; color: #176c37; }
.status-pill.closed { background: #fde9e5; color: #9d2f1f; }

.menu-toolbar {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 20;
  display: grid;
  gap: 12px;
  padding: 12px 0 18px;
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(12px);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 14px;
  min-height: 46px;
  box-shadow: 0 4px 15px rgba(0,0,0,.04);
}
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.category-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 13px;
  white-space: nowrap;
  font-weight: 600;
  cursor: pointer;
}
.category-tab.active { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.menu-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.menu-card-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-variant); }
.menu-card-body { padding: 18px; display: flex; flex-direction: column; }
.menu-card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.menu-card p { margin: 0 0 16px; color: var(--text-secondary); font-size: .9rem; }
.menu-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.menu-price { font-size: 1.18rem; font-weight: 700; }
.menu-availability { color: var(--text-secondary); font-size: .78rem; text-align: right; }
.loading-card, .empty-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 34px;
  text-align: center;
  color: var(--text-secondary);
}

.rewards-hero, .driver-hero { margin-bottom: 24px; }
.reward-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 20px;
}
.metric-card { border-radius: var(--radius-md); padding: 18px; background: var(--surface-variant); }
.metric-card strong { display: block; font-size: 1.5rem; }
.metric-card small { color: var(--text-secondary); }
.customer-card-panel {
  display: grid;
  grid-template-columns: minmax(230px,.7fr) 1.3fr;
  align-items: center;
  gap: 28px;
}
.customer-card-image { width: 100%; max-height: 270px; object-fit: contain; }
.benefit-list { margin: 14px 0 0; padding-left: 20px; color: var(--text-secondary); }
.benefit-list li + li { margin-top: 6px; }

.driver-winner-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 78%, var(--surface)));
  color: #fff;
  padding: clamp(24px,4vw,38px);
  box-shadow: var(--shadow-soft);
}
.driver-winner-card .eyebrow { color: var(--brand-accent); }
.driver-winner-card h2 { margin: 2px 0 6px; font-size: clamp(1.8rem,3vw,3rem); }
.driver-winner-card p { color: rgba(255,255,255,.78); }

.locations-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.location-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.location-card.selected { outline: 3px solid color-mix(in srgb, var(--brand-primary) 36%, transparent); }
.location-image { width: 100%; aspect-ratio: 3 / 1.55; object-fit: cover; background: var(--surface-variant); }
.location-body { padding: 20px; }
.location-title-row { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.location-body h2 { margin: 0; font-size: 1.35rem; }
.location-body p { margin: 5px 0; color: var(--text-secondary); }
.service-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.service-chip { border-radius: 999px; padding: 5px 9px; background: var(--surface-variant); font-size: .72rem; font-weight: 600; }
.fuel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.fuel-tile { border-radius: 12px; padding: 10px; background: var(--brand-secondary); color: #fff; text-align: center; }
.fuel-tile small { display: block; opacity: .7; font-size: .67rem; text-transform: uppercase; }
.fuel-tile strong { font-size: 1rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.site-footer {
  background: var(--brand-secondary);
  color: #fff;
  padding: 40px 0;
}
.footer-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr .8fr;
  gap: 30px;
}
.footer-logo { width: 118px; max-height: 70px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.footer-inner h3 { margin: 0 0 10px; }
.footer-inner p, .footer-inner a { color: rgba(255,255,255,.75); }
.footer-links { display: grid; gap: 7px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { width: min(calc(100% - 32px), var(--max-width)); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.55); font-size: .82rem; }

.mobile-nav { display: none; }

.location-dialog, .account-dialog { border: 0; padding: 0; border-radius: var(--radius-xl); width: min(620px, calc(100% - 28px)); color: var(--text-primary); background: transparent; }
.location-dialog::backdrop, .account-dialog::backdrop { background: rgba(20,15,12,.52); backdrop-filter: blur(5px); }
.dialog-card { width: 100%; max-height: min(760px, 88vh); overflow: auto; margin: 0; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.26); padding: 24px; }
.compact-dialog { max-width: 520px; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.dialog-header h2 { margin: 0; }
.dialog-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-variant); cursor: pointer; font-size: 1.5rem; }
.location-dialog-list { display: grid; gap: 10px; }
.dialog-location {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.dialog-location:hover, .dialog-location.selected { border-color: var(--brand-primary); background: var(--surface-variant); }
.dialog-location img { width: 68px; height: 56px; object-fit: cover; border-radius: 10px; }
.dialog-location strong, .dialog-location small { display: block; }
.dialog-location small { color: var(--text-secondary); margin-top: 3px; }
.dialog-location-check { color: var(--brand-primary); font-weight: 700; }
.dialog-copy { color: var(--text-secondary); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.noscript-message { position: fixed; inset: auto 12px 12px; z-index: 9999; background: #fff3cd; border: 1px solid #eadb99; padding: 14px; border-radius: 12px; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-actions { justify-self: end; }
  .quick-actions { grid-template-columns: repeat(3,1fr); }
  .menu-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-scroller { grid-auto-columns: min(48%, 290px); }
  .fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-height: 66px; }
  body { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  .header-inner { width: min(calc(100% - 20px), var(--max-width)); gap: 10px; }
  .header-logo { width: 86px; max-height: 48px; }
  .location-chip { max-width: 170px; padding: 6px 10px; }
  .location-chip small { font-size: .58rem; }
  .location-chip strong { font-size: .76rem; }
  .account-button { width: 38px; height: 38px; }
  .page-container { width: min(calc(100% - 20px), var(--max-width)); padding: 18px 0 30px; }
  .home-page { gap: 18px; }
  .hero-card { border-radius: 22px; }
  .hero-media { height: 190px; aspect-ratio: auto; object-fit: cover; }
  .hero-content { padding: 14px 14px 16px; }
  .hero-content h1 { font-size: 1.38rem; }
  .hero-content p { font-size: .88rem; }
  .quick-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
  .quick-action-card { min-height: 76px; padding: 9px 7px; flex-direction: column; justify-content: center; gap: 5px; text-align: center; }
  .quick-action-icon { width: 35px; height: 35px; border-radius: 12px; }
  .quick-action-icon svg { width: 21px; height: 21px; }
  .quick-action-card strong { font-size: .84rem; }
  .quick-action-card small { display: none; }
  .menu-grid, .locations-grid { grid-template-columns: 1fr; }
  .featured-scroller { grid-auto-columns: 76%; }
  .promotion-carousel { grid-auto-columns: 94%; }
  .compact-content-card { grid-template-columns: 74px minmax(0,1fr) auto; min-height: 90px; gap: 10px; padding: 8px; }
  .compact-content-media { width: 74px; height: 74px; border-radius: 13px; }
  .compact-content-body p { font-size: .82rem; }
  .store-card { grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; padding: 9px; }
  .store-card-image { width: 72px; height: 72px; border-radius: 15px; }
  .store-card-body h2 { font-size: 1rem; }
  .store-card-body p { font-size: .76rem; }
  .customer-card-panel, .mission-card { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .fact-tile { padding: 14px; }
  .reward-metrics { grid-template-columns: 1fr; }
  .page-heading-row { align-items: start; flex-direction: column; }
  .store-status-card { align-items: start; flex-direction: column; }
  .menu-toolbar { top: var(--header-height); }
  .fuel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer { padding: 30px 0; }
  .footer-inner { width: min(calc(100% - 24px), var(--max-width)); grid-template-columns: 1fr; gap: 24px; }
  .footer-inner > :first-child { grid-column: auto; }
  .footer-bottom { width: min(calc(100% - 24px), var(--max-width)); }

  .mobile-nav {
    position: fixed;
    z-index: 1100;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: var(--mobile-nav-height);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 7px;
    background: color-mix(in srgb, var(--brand-secondary) 96%, transparent);
    box-shadow: 0 16px 42px rgba(0,0,0,.26);
    backdrop-filter: blur(18px);
  }
  .mobile-nav .nav-button {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    color: rgba(255,255,255,.64);
    padding: 6px 2px;
    border-radius: 15px;
    font-size: .66rem;
  }
  .mobile-nav .nav-button.active { color: #fff; background: rgba(255,255,255,.11); }
  .mobile-nav .nav-icon { width: 21px; height: 21px; }
  .location-dialog, .account-dialog { width: calc(100% - 18px); }
  .dialog-card { padding: 18px; max-height: 86vh; }
  .dialog-location { grid-template-columns: 58px 1fr auto; }
  .dialog-location img { width: 58px; height: 50px; }
}

@media (max-width: 390px) {
  .location-chip { max-width: 136px; }
  .location-chip-icon { display: none; }
  .account-button { width: 34px; height: 34px; }
  .cart-button { width: 34px; height: 34px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .fact-grid { grid-template-columns: 1fr; }
  .hero-media { height: 145px; }
  .mobile-nav .nav-button { font-size: .59rem; }
}

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


/* Phase 3 — ordering, cart, checkout review, and browser account foundation */
.cart-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}
.cart-button:hover { border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--border)); }
.cart-button-icon { font-size: 1.02rem; line-height: 1; }
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
}

.order-workspace { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; }
.order-menu-column { min-width: 0; }
.desktop-cart-panel {
  position: sticky;
  top: calc(var(--header-height) + 82px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}
.cart-panel-head, .cart-summary-row, .checkout-summary-row, .checkout-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cart-panel-head h2, .checkout-section h3 { margin: 0; }
.cart-panel-count { color: var(--text-secondary); font-size: .82rem; font-weight: 600; }
.cart-empty { padding: 18px 4px; color: var(--text-secondary); }
.cart-list { display: grid; gap: 10px; margin: 14px 0; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}
.cart-line h4 { margin: 0 0 4px; font-size: .93rem; }
.cart-line small { color: var(--text-secondary); }
.cart-line-price { font-weight: 700; white-space: nowrap; }
.quantity-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; }
.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-variant);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
}
.quantity-control strong { min-width: 20px; text-align: center; }
.menu-card-action-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.menu-add-button { min-width: 74px; padding: 9px 13px; }
.menu-in-cart { color: var(--brand-primary); font-size: .77rem; font-weight: 700; }
.cart-summary { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; display: grid; gap: 8px; }
.cart-summary-row.total { font-size: 1.02rem; font-weight: 700; }
.cart-panel-actions { display: grid; gap: 8px; margin-top: 14px; }
.cart-panel-actions .primary-button, .cart-panel-actions .secondary-button { width: 100%; justify-content: center; }
.cart-note { margin: 10px 0 0; color: var(--text-secondary); font-size: .78rem; line-height: 1.45; }

.cart-dialog, .checkout-dialog {
  border: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  width: min(760px, calc(100% - 28px));
  color: var(--text-primary);
  background: transparent;
}
.cart-dialog::backdrop, .checkout-dialog::backdrop { background: rgba(20,15,12,.58); backdrop-filter: blur(5px); }
.cart-dialog-card { max-width: 680px; margin-inline: auto; }
.checkout-dialog-card { max-width: 760px; margin-inline: auto; }
.checkout-grid { display: grid; gap: 14px; }
.checkout-section {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  padding: 15px;
}
.checkout-section > p { color: var(--text-secondary); margin: 7px 0 0; }
.checkout-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.choice-button {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-primary);
  text-align: left;
  padding: 12px;
  cursor: pointer;
}
.choice-button.selected { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface)); }
.choice-button strong, .choice-button small { display: block; }
.choice-button small { margin-top: 3px; color: var(--text-secondary); }
.checkout-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.checkout-field { display: grid; gap: 5px; }
.checkout-field.full { grid-column: 1 / -1; }
.checkout-field span { font-size: .76rem; color: var(--text-secondary); font-weight: 700; }
.checkout-field input, .checkout-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 10px 11px;
  font: inherit;
}
.offer-choice-list { display: grid; gap: 8px; margin-top: 12px; }
.offer-choice {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.offer-choice input { margin-top: 3px; }
.offer-choice strong, .offer-choice small { display: block; }
.offer-choice small { color: var(--text-secondary); margin-top: 2px; }
.checkout-summary { display: grid; gap: 7px; margin-top: 12px; }
.checkout-summary-row.total { border-top: 1px solid var(--border); padding-top: 9px; margin-top: 3px; font-weight: 700; font-size: 1.04rem; }
.quote-status { margin-top: 10px; border-radius: 12px; padding: 10px 12px; background: var(--surface-variant); color: var(--text-secondary); font-size: .82rem; }
.quote-status.error { background: #fff0ee; color: #8f1e15; }
.phase-note {
  border: 1px dashed color-mix(in srgb, var(--brand-primary) 38%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface));
  padding: 11px 12px;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.45;
}
.checkout-footer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }

.account-state-card { border: 1px solid var(--border); border-radius: 16px; padding: 15px; background: var(--surface); }
.account-state-card + .account-state-card { margin-top: 10px; }
.account-state-card h3 { margin: 0 0 5px; }
.account-state-card p { margin: 0; color: var(--text-secondary); line-height: 1.48; }
.account-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.account-metric { border-radius: 12px; background: var(--surface-variant); padding: 10px; }
.account-metric strong, .account-metric small { display: block; }
.account-metric small { color: var(--text-secondary); margin-top: 3px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.order-history-list { display: grid; gap: 8px; margin-top: 10px; max-height: 280px; overflow: auto; }
.order-history-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.order-history-item strong, .order-history-item small { display: block; }
.order-history-item small { color: var(--text-secondary); margin-top: 3px; }

@media (max-width: 980px) {
  .order-workspace { grid-template-columns: 1fr; }
  .desktop-cart-panel { position: static; }
}

@media (max-width: 720px) {
  .cart-button { width: 38px; height: 38px; }
  .desktop-cart-panel { display: none; }
  .cart-dialog, .checkout-dialog { width: calc(100% - 18px); }
  .checkout-options, .checkout-fields { grid-template-columns: 1fr; }
  .checkout-field.full { grid-column: auto; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .checkout-footer-actions { display: grid; grid-template-columns: 1fr; }
  .checkout-footer-actions button { width: 100%; }
}

@media (max-width: 390px) {
  .header-actions { gap: 5px; }
  .location-chip { max-width: 118px; }
  .account-metrics { grid-template-columns: 1fr; }
}

/* Phase 4: secure browser checkout */
.payment-section { display: grid; gap: 12px; }
.payment-security-note { margin: 0 !important; }
.payment-method-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-variant);
  padding: 13px;
}
.payment-method-card > strong { display: block; margin-bottom: 9px; }
.payment-method-card > p { margin: 0 0 10px; color: var(--text-secondary); font-size: .84rem; line-height: 1.45; }
.hosted-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.hosted-field { display: grid; gap: 5px; }
.hosted-field.full { grid-column: 1 / -1; }
.hosted-field > span { font-size: .76rem; color: var(--text-secondary); font-weight: 700; }
.hosted-field-frame {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  padding: 0 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hosted-field-frame.braintree-hosted-fields-focused { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.hosted-field-frame.braintree-hosted-fields-invalid { border-color: #b92f23; }
.hosted-field-frame.braintree-hosted-fields-valid { border-color: #43784d; }
.payment-submit-button { width: 100%; justify-content: center; margin-top: 12px; }
.paypal-button-host { min-height: 44px; }
.payment-status { border-radius: 12px; padding: 10px 12px; background: var(--surface-variant); color: var(--text-secondary); font-size: .82rem; line-height: 1.45; }
.payment-status.error { background: #fff0ee; color: #8f1e15; }
.payment-recovery-card { border: 1px solid color-mix(in srgb, var(--brand-accent) 65%, var(--border)); border-radius: 13px; background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface)); padding: 13px; }
.payment-recovery-card strong { display: block; }
.payment-recovery-card p { margin: 6px 0 12px; color: var(--text-secondary); line-height: 1.45; }
.payment-recovery-card .primary-button { width: 100%; justify-content: center; }
.order-confirmation-dialog { border: 0; padding: 0; border-radius: var(--radius-xl); width: min(520px, calc(100% - 28px)); color: var(--text-primary); background: transparent; }
.order-confirmation-dialog::backdrop { background: rgba(20,15,12,.58); backdrop-filter: blur(5px); }
.order-confirmation-card { border: 1px solid var(--border); border-radius: 16px; padding: 15px; background: var(--surface); }
.order-confirmation-number { display: block; font-size: 1.28rem; color: var(--brand-primary); }
.order-confirmation-card > p { color: var(--text-secondary); line-height: 1.48; }
.order-confirmation-details { display: grid; gap: 7px; margin-top: 12px; }
.order-confirmation-note { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; font-size: .84rem; }

@media (max-width: 720px) {
  .hosted-fields-grid { grid-template-columns: 1fr; }
  .hosted-field.full { grid-column: auto; }
  .order-confirmation-dialog { width: calc(100% - 18px); }
}


/* Phase 5: browser wallets + production-domain readiness */
.wallet-method-card[hidden] { display: none !important; }
.apple-pay-button {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: buy;
  -apple-pay-button-style: black;
  background: #000;
}
.google-pay-button-host { min-height: 46px; display: flex; align-items: center; }
.google-pay-button-host > * { width: 100% !important; min-width: 0 !important; }


/* Phase 6: customer experience + production browser polish */
.account-dialog, .order-details-dialog, .support-dialog {
  border: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  width: min(760px, calc(100% - 28px));
  color: var(--text-primary);
  background: transparent;
}
.account-dialog::backdrop, .order-details-dialog::backdrop, .support-dialog::backdrop {
  background: rgba(20,15,12,.58);
  backdrop-filter: blur(5px);
}
.account-dialog-card { max-width: 720px; margin-inline: auto; }
.account-overview-card .eyebrow { display: block; margin-bottom: 5px; }
.account-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 12px; }
.account-field { display: grid; gap: 5px; }
.account-field > span { font-size: .76rem; color: var(--text-secondary); font-weight: 700; }
.account-field input, .account-field select {
  width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text-primary); padding: 10px 11px; font: inherit;
}
.account-field input[readonly] { background: var(--surface-variant); color: var(--text-secondary); }
.account-field small { color: var(--text-secondary); font-size: .72rem; }
.account-inline-note { margin-top: 10px !important; font-size: .82rem; }
.account-preferences { display: grid; gap: 8px; margin-top: 11px; }
.account-preference { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.account-preference input { width: 18px; height: 18px; accent-color: var(--brand-primary); }
.account-security-list { display: grid; gap: 8px; margin-top: 11px; }
.account-security-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: var(--surface-variant); }
.status-dot { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--border); font-weight: 700; }
.status-dot.ok { background: #e5f5e8; color: #2d6b38; }
.account-sticky-actions { position: sticky; bottom: 0; z-index: 2; padding: 10px 0; background: linear-gradient(180deg, transparent, var(--surface) 24%); }
.account-benefits { color: var(--text-secondary); line-height: 1.5; padding-left: 20px; }
.order-history-button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--surface); color: var(--text-primary); cursor: pointer; }
.order-history-button:hover { border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border)); }
.order-history-main { min-width: 0; }
.order-history-arrow { font-size: 1.4rem; color: var(--text-secondary); }
.order-detail-status { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; margin-bottom: 10px; background: var(--surface-variant); font-size: .78rem; font-weight: 700; }
.status-ready, .status-completed { background: #e5f5e8; color: #2d6b38; }
.status-canceled { background: #fff0ee; color: #8f1e15; }
.order-detail-lines { display: grid; gap: 8px; margin-top: 10px; }
.order-detail-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.order-detail-line:last-child { border-bottom: 0; }
.support-action-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-link-button { border: 0; background: transparent; color: inherit; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.footer-link-button:hover { color: var(--brand-primary); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 52%, transparent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 720px) {
  .account-dialog, .order-details-dialog, .support-dialog { width: calc(100% - 18px); }
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-sticky-actions { display: grid; grid-template-columns: 1fr; }
  .account-sticky-actions button { width: 100%; }
}


/* Pre-Phase 7 stabilization: native visual parity + checkout reliability */
:root {
  --max-width: 960px;
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --mobile-nav-height: 72px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0;
}
button, input, select { letter-spacing: 0; }

/* Native app uses semibold/bold system typography rather than synthetic ultra-heavy weights. */
.nav-button,
.location-chip small,
.rewards-pill,
.hero-badge,
.hero-meta,
.eyebrow,
.card-cta,
.contact-list a,
.primary-button,
.secondary-button,
.text-button,
.status-pill,
.category-tab,
.menu-price,
.service-chip,
.cart-badge,
.cart-panel-count,
.menu-in-cart,
.checkout-field span,
.account-field > span,
.hosted-field > span,
.order-detail-status,
.status-dot,
.dialog-location-check,
.cart-line-price { font-weight: 700; }

/* App-like header/navigation: light material surface, red selection, gold accents. */
.site-header { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.header-inner { gap: 18px; }
.header-logo { width: 102px; max-height: 56px; }
.nav-button { color: var(--text-secondary); padding: 9px 13px; }
.nav-button:hover { background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface)); color: var(--brand-primary); }
.nav-button.active {
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface));
  color: var(--brand-primary);
}
.account-button { box-shadow: 0 5px 15px color-mix(in srgb, var(--brand-primary) 20%, transparent); }

/* Native section-header language: gold rail + red title + warm-gray subtitle. */
.section-heading { display: grid; gap: 5px; }
.section-heading h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--brand-primary);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.section-heading h2::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 28px;
  border-radius: 3px;
  background: var(--brand-accent);
}
.section-heading p { margin-left: 16px; font-size: .92rem; line-height: 1.4; }
.eyebrow { font-size: .72rem; font-weight: 700; }

.page-container { padding-top: 24px; }
.page-heading-row { margin-bottom: 18px; }
.page-heading-row h1 {
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.page-subtitle { margin-top: 6px; font-size: .95rem; }

/* Cards track the native 18–26 pt rounded rectangles and subtle gold strokes. */
.hero-card,
.store-card,
.quick-action-card,
.compact-content-card,
.content-card,
.menu-card,
.location-card,
.checkout-section,
.payment-method-card,
.account-state-card {
  border-color: color-mix(in srgb, var(--brand-accent) 24%, var(--border));
}
.hero-card { box-shadow: 0 10px 28px rgba(37,31,27,.09); }
.hero-media { max-height: 420px; }
.hero-content { padding: 18px 20px 20px; }
.hero-content h1 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 700; }
.hero-content p { font-size: .95rem; }
.hero-badge { background: var(--brand-accent); color: var(--text-primary); }

.quick-actions { gap: 10px; }
.quick-action-card {
  min-height: 88px;
  border-radius: 20px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.quick-action-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface));
}
.quick-action-card strong { font-size: 1rem; font-weight: 700; }

.store-card { background: var(--surface-variant); border-radius: 22px; box-shadow: none; }
.store-card-role { color: color-mix(in srgb, var(--brand-accent) 84%, var(--text-primary)); font-weight: 700; }
.fact-tile { border-radius: 18px; }

.category-tab.active {
  background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brand-primary) 48%, var(--border));
  color: var(--brand-primary);
}
.menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card { border-radius: 20px; box-shadow: var(--shadow-sm); }
.menu-card-body { padding: 15px; }
.menu-card h3 { font-size: 1.03rem; font-weight: 700; }
.menu-card p { font-size: .86rem; margin-bottom: 12px; }
.menu-price { font-size: 1.05rem; }
.menu-add-button { min-width: 70px; }

.locations-grid { gap: 14px; }
.location-card { border-radius: 20px; }
.location-body { padding: 16px; }
.location-body h2 { font-size: 1.2rem; font-weight: 700; }
.location-card.selected { outline: 2px solid color-mix(in srgb, var(--brand-primary) 45%, transparent); outline-offset: 2px; }
.fuel-tile { background: color-mix(in srgb, var(--brand-secondary) 92%, var(--surface)); }

/* Cart controls now use the same 44px tap-target rhythm as native checkout. */
.cart-list { gap: 9px; }
.cart-line { display: block; padding: 11px 12px; border-radius: 15px; }
.cart-line-main { min-width: 0; }
.cart-line-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 12px;
}
.cart-line-title { min-width: 0; }
.cart-line h4 { margin: 0 0 3px; font-size: .93rem; line-height: 1.25; font-weight: 700; }
.cart-line-price { align-self: start; text-align: right; font-variant-numeric: tabular-nums; font-size: .92rem; }
.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}
.quantity-control { display: inline-grid; grid-template-columns: 44px 36px 44px; align-items: center; gap: 0; margin: 0; }
.quantity-control .quantity-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-primary);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}
.quantity-control .quantity-button:hover { background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface)); }
.quantity-control .quantity-value {
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.cart-remove-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  padding: 6px 4px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-remove-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.desktop-cart-panel { box-shadow: var(--shadow-sm); }

/* Checkout: clearer hierarchy, safer scrolling, and independent payment-method errors. */
.cart-dialog, .checkout-dialog, .location-dialog, .account-dialog, .order-details-dialog, .support-dialog, .order-confirmation-dialog {
  max-height: calc(100dvh - 18px);
}
.dialog-card {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dialog-header {
  position: sticky;
  top: -1px;
  z-index: 8;
  margin: -2px -2px 16px;
  padding: 2px 2px 10px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
}
.dialog-header h2 { font-weight: 700; font-size: 1.35rem; }
.checkout-grid { gap: 11px; }
.checkout-section { border-radius: 16px; padding: 14px; }
.checkout-section h3 { color: var(--text-primary); font-size: 1rem; font-weight: 700; }
.checkout-options { gap: 8px; }
.choice-button { min-height: 54px; border-radius: 13px; }
.choice-button.selected { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 45%, transparent); }
.checkout-field input, .checkout-field select,
.account-field input, .account-field select { font-size: 16px; }
.checkout-summary-row strong { font-variant-numeric: tabular-nums; }
.checkout-summary-row.total { color: var(--text-primary); }
.payment-method-card { background: var(--surface); border-radius: 16px; padding: 14px; }
.payment-method-card > strong { font-weight: 700; }
.hosted-field-frame { min-height: 48px; }
.paypal-button-host { min-height: 48px; display: grid; gap: 10px; }
.payment-method-loading {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--brand-accent) 55%, var(--border));
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .82rem;
  text-align: center;
  padding: 10px;
}
.payment-method-loading.error { border-color: #e7b0aa; background: #fff5f3; color: #8f1e15; }
.payment-retry-button { width: 100%; }
.payment-status:empty { display: none; }

/* Mobile bottom HUD mirrors the native translucent capsule instead of a dark solid bar. */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --header-height: 64px; }
  .header-inner { width: min(calc(100% - 20px), var(--max-width)); }
  .header-logo { width: 82px; max-height: 46px; }
  .page-container { padding-top: 16px; }
  .home-page { gap: 14px; }
  .hero-card { border-radius: 26px; }
  .hero-media { height: 145px; object-fit: cover; }
  .hero-content { padding: 13px 14px 15px; }
  .hero-content h1 { font-size: 1.25rem; }
  .hero-content p { font-size: .84rem; }
  .section-heading h2 { font-size: 1.2rem; gap: 8px; }
  .section-heading h2::before { height: 23px; }
  .section-heading p { margin-left: 14px; font-size: .8rem; }
  .quick-action-card { min-height: 88px; border-radius: 20px; padding: 9px 4px; box-shadow: none; }
  .quick-action-icon { width: 34px; height: 34px; border-radius: 12px; }
  .quick-action-card strong { font-size: .8rem; }
  .menu-grid, .locations-grid { grid-template-columns: 1fr; }
  .menu-card { border-radius: 18px; }
  .menu-card-image { aspect-ratio: 16 / 9; max-height: 210px; }
  .page-heading-row h1 { font-size: 1.65rem; }
  .page-subtitle { font-size: .86rem; }
  .mobile-nav {
    left: 18px;
    right: 18px;
    bottom: calc(5px + env(safe-area-inset-bottom));
    min-height: 64px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 28px;
    padding: 5px 8px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: 0 10px 28px rgba(37,31,27,.15);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
  }
  .mobile-nav .nav-button {
    color: var(--text-secondary);
    min-height: 52px;
    padding: 5px 2px;
    border-radius: 14px;
    font-size: .62rem;
    font-weight: 600;
  }
  .mobile-nav .nav-button.active {
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  }
  .mobile-nav .nav-icon { width: 20px; height: 20px; }
  .dialog-card { padding: 16px; max-height: calc(100dvh - 24px); }
  .checkout-dialog-card, .cart-dialog-card { border-radius: 24px; }
  .cart-line-actions { justify-content: space-between; }
  .cart-remove-button { padding-inline: 8px; }
  .checkout-footer-actions { position: sticky; bottom: -16px; z-index: 7; padding: 10px 0 16px; background: linear-gradient(180deg, transparent, var(--surface) 22%); }
}
@media (max-width: 390px) {
  .hero-media { height: 138px; }
  .mobile-nav { left: 10px; right: 10px; }
  .quantity-control { grid-template-columns: 42px 30px 42px; }
  .quantity-control .quantity-button { width: 42px; height: 42px; }
  .cart-line-actions { gap: 4px; }
}


/* Pre-Phase 7 stabilization 2: full artwork, navigation room, kitchen-state parity, payment progress */
@media (min-width: 981px) {
  :root { --max-width: 1220px; }
  .header-inner { width: min(calc(100% - 32px), 1220px); gap: 20px; }
  .desktop-nav { gap: 8px; flex-wrap: nowrap; }
  .desktop-nav .nav-button { min-height: 46px; padding: 10px 15px; font-size: 1rem; white-space: nowrap; flex: 0 0 auto; }
  .desktop-nav .nav-icon { flex: 0 0 auto; }
}
.hero-media { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center; }
@media (max-width: 720px) { .hero-media { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; } }
@media (max-width: 390px) { .hero-media { width: 100%; height: auto; max-height: none; } }
.store-status-message { grid-column: 1 / -1; margin: 6px 0 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.45; }
.ordering-unavailable-panel { margin-top: 14px; padding: 20px; border: 1px solid color-mix(in srgb, var(--brand-accent) 32%, var(--border)); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ordering-unavailable-panel h2 { margin: 0; color: var(--text-primary); font-size: 1.35rem; line-height: 1.2; }
.ordering-unavailable-panel p { margin: 8px 0 0; color: var(--text-secondary); font-size: .95rem; line-height: 1.5; }
.location-ordering-state { display: grid; gap: 3px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-variant); }
.location-ordering-state strong { font-size: .82rem; }
.location-ordering-state small { color: var(--text-secondary); line-height: 1.4; }
.location-ordering-state.open strong { color: #277647; }
.location-ordering-state.closed strong { color: var(--brand-primary); }
.cart-line-actions { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; gap: 10px; }
.cart-remove-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; white-space: nowrap; }
@media (max-width: 720px) { .cart-line-actions { grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 8px; } .cart-remove-button { min-height: 44px; padding-inline: 10px; } }
.checkout-dialog.is-processing .checkout-section:not(.payment-section), .checkout-dialog.is-processing .checkout-footer-actions { opacity: .72; }
.payment-method-card { position: relative; }
.payment-method-card.processing { min-height: 92px; overflow: hidden; }
.payment-method-card.processing > * { visibility: hidden; }
.payment-method-card.processing::after { content: "Processing…"; position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--surface); color: var(--text-primary); font-weight: 700; font-size: 1rem; }
.store-status-card { flex-wrap: wrap; }
.store-status-message { flex: 0 0 100%; }


/* Pre-Phase 7 stabilization 3: native-style checkout validation and transient errors */
.checkout-total-note {
  margin: 11px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.45;
}
.checkout-validation-summary {
  display: grid;
  gap: 3px;
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid #e7b0aa;
  border-radius: 12px;
  background: #fff5f3;
  color: #8f1e15;
}
.checkout-validation-summary[hidden] { display: none; }
.checkout-validation-summary strong { font-size: .88rem; }
.checkout-validation-summary span { font-size: .82rem; line-height: 1.4; }
.checkout-field.invalid > span { color: #8f1e15; }
.checkout-field.invalid input {
  border-color: #c83b2f;
  box-shadow: 0 0 0 2px rgba(200,59,47,.10);
}
.checkout-field-error {
  display: block;
  margin-top: 5px;
  color: #8f1e15;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.35;
}
.checkout-field-error[hidden] { display: none; }
.checkout-footer-actions { justify-content: flex-start; }
.checkout-footer-actions .secondary-button { min-width: 160px; }
@media (max-width: 720px) {
  .checkout-footer-actions .secondary-button { width: 100%; }
}
