:root {
  /* Commercial high-trust palette (slate / gray / flat orange) */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-300: #cbd5e1;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --orange-200: #fed7aa;
  --white: #ffffff;

  --ink: var(--slate-900);
  --ink-soft: var(--slate-800);
  --paper: var(--gray-50);
  --paper-deep: var(--gray-100);
  --accent: var(--orange-600);
  --accent-soft: #ea580c1a;
  --heat: var(--orange-600);
  --heat-soft: #ea580c1a;
  --steam: var(--slate-700);
  --muted: var(--gray-500);
  --muted-light: var(--gray-500);
  --muted-faint: var(--gray-400);
  --border: var(--gray-200);
  --ticket: var(--gray-200);

  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Type scale — real contrast between hero / heading / body */
  --text-hero: 2.5rem;
  --text-h1: 1.375rem;
  --text-h2: 1.0625rem;
  --text-body: 0.9375rem;
  --text-meta: 0.8125rem;
  --text-small: 0.75rem;

  /* One selection metaphor everywhere: accent ring + soft accent tint */
  --select-border: var(--accent);
  --select-bg: var(--accent-soft);

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell-max: 430px;
  --content-max: 64rem; /* ~max-w-5xl */
  --ease: ease;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  letter-spacing: -0.011em;
  background: var(--gray-50);
  color: var(--slate-900);
  /* App is intentionally light-only. Pin UA rendering so a dark-mode OS
     can't flip native button/input text (buttontext) to white. */
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Buttons don't inherit color by default — make every control use ink text
   unless a rule says otherwise, so selected pills/cards never go white. */
button { color: var(--slate-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--orange-600);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100dvh;
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--gray-50);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bg-paper { background: var(--gray-50); }
.bg-ink { background: var(--slate-900); }
.bg-white { background: var(--white); }
.bg-accent { background: var(--orange-600); }
.text-ink { color: var(--slate-900); }
.text-white { color: #fff; }
.text-muted { color: var(--gray-500); }
.text-accent { color: var(--orange-600); }
.antialiased { -webkit-font-smoothing: antialiased; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 16px calc(24px + var(--safe-bottom));
  gap: 32px;
}

.page.no-tab {
  padding-bottom: calc(24px + var(--safe-bottom));
  max-width: none;
}

.page-pad { padding-left: 0; padding-right: 0; }

/* Sticky headers on flow pages */
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px;
  margin: 0;
  max-width: 42rem;
  width: 100%;
}
.sticky-head h1 {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

/* Flow pages that also show the global nav: pin the back/title header
   directly under the sticky top nav instead of overlapping it. */
.app-shell.has-nav .sticky-head {
  top: calc(var(--desktop-nav-h, 3.5rem) + 1px);
}

.btn-back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}
.btn-back:active { background: var(--gray-100); }

/* Flat tactile buttons — no glow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: none;
}
.btn:active { transform: none; opacity: 0.96; }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn-primary {
  background: var(--orange-600);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--orange-700); }
.btn-secondary {
  background: var(--white);
  color: var(--slate-900);
  width: 100%;
  border: 1px solid var(--gray-200);
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--slate-700); }
.btn-ink {
  background: var(--slate-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 36px;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border: 1px dashed var(--gray-400);
  color: var(--gray-500);
  font-size: 0.8125rem;
  font-weight: 500;
  width: 100%;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1rem;
}

.card-soft {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input {
  width: 100%;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--slate-900);
  font-family: inherit;
  outline: none;
}
.input:focus {
  border-color: var(--slate-700);
  box-shadow: none;
}
.input-bare {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: var(--slate-900);
  background: transparent;
  font-family: inherit;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-900);
  padding: 0.7rem 0.65rem;
  text-align: center;
  font-family: inherit;
  min-height: 44px;
}
.chip.is-selected {
  background: var(--select-bg);
  border-color: var(--select-border);
  border-width: 1.5px;
  color: var(--slate-900);
}
.chip .chip-label { font-size: 0.7rem; color: var(--gray-500); }
.chip.is-selected .chip-label { color: var(--slate-700); }
.chip .chip-day {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.option-row { display: flex; gap: 0.5rem; }
.option {
  flex: 1;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.75rem 0.4rem;
  text-align: center;
  font-family: inherit;
  min-height: 52px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.option.is-selected {
  background: var(--select-bg);
  border-color: var(--select-border);
  border-width: 1.5px;
  color: var(--slate-900);
}
.option .opt-label { font-size: 0.8125rem; font-weight: 600; }
.option .opt-sub { font-size: 0.7rem; color: var(--gray-500); margin-top: 2px; }
.option.is-selected .opt-sub { color: var(--slate-700); }

.radio-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0.875rem 1rem;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  width: 100%;
  text-align: left;
  font-family: inherit;
  min-height: 56px;
}
.radio-card.is-selected {
  border-color: var(--select-border);
  background: var(--select-bg);
}
.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  box-sizing: border-box;
  flex-shrink: 0;
}
.radio-card.is-selected .radio-dot {
  border-color: var(--orange-600);
  background: var(--orange-600);
}

.qty { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: var(--white);
  font-family: inherit;
  padding: 0;
}
.qty-btn.dec { color: var(--slate-900); }
.qty-btn.inc {
  background: var(--orange-600);
  border-color: var(--orange-600);
  color: #fff;
}
.qty-val {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.qty-add {
  min-height: 32px;
  min-width: 3.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--orange-600);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-add:hover { background: var(--orange-700); }
.qty-add:active { transform: scale(0.98); }

.sticky-foot {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0.875rem 1rem calc(0.875rem + var(--safe-bottom));
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

/*
 * Legacy mobile bottom tab bar (Home / Orders / Account).
 * Old CSS painted it fixed to the viewport bottom; content scrolled underneath.
 * Kill every leftover selector so a cached bundle cannot resurrect it.
 */
.tab-bar,
.tab-bar-inner,
.tab-brand,
.tab-brand-name,
.tab-links,
.tab-item,
.tab-menu-btn,
.tab-mobile-menu,
.tab-dropdown,
.tab-drop-link {
  display: none !important;
  visibility: hidden !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

/* App header — sticky TOP in document flow (never fixed to bottom) */
.app-topnav {
  position: sticky !important;
  top: 0 !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  background: var(--slate-900);
  color: #fff;
  z-index: 1200;
  border-bottom: 1px solid var(--slate-800);
  border-top: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
  /* Explicit height so top+bottom can never stretch this into a full-screen slab */
  align-self: stretch;
}
.app-topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
  padding: 0 1rem;
  max-width: none;
}
.app-topnav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.app-topnav-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
}
.app-topnav-links { display: none; }
.app-topnav-link {
  text-decoration: none;
  color: var(--slate-300);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}
.app-topnav-link:hover { color: #fff; }
.app-topnav-link.is-active { color: #fff; font-weight: 600; }

/* Desktop sign-out — sits at the right of the nav links, divided from them */
.app-topnav-logout {
  display: flex;
  align-items: center;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--slate-700);
}
.app-topnav-signout {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-300);
  background: transparent;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.app-topnav-signout:hover { color: #fff; border-color: var(--slate-300); }

.app-topnav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Persistent cart affordance — a half-built order is always one tap away */
.app-topnav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--slate-300);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}
.app-topnav-cart:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.app-topnav-cart-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--slate-900);
}

.app-topnav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.35rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.app-topnav-menu-btn:hover { background: rgba(255,255,255,0.08); }

.app-topnav-dropdown {
  display: none;
  flex-direction: column;
  background: var(--slate-800);
  border-top: 1px solid var(--slate-700);
  padding: 0.5rem 0.75rem 0.75rem;
}
.app-topnav-dropdown.is-open { display: flex; }
.app-topnav-drop-link {
  display: block;
  padding: 1rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--slate-300);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.app-topnav-drop-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.app-topnav-drop-link.is-active {
  color: var(--orange-600);
  font-weight: 600;
}
/* Sign-out inside the mobile dropdown — full-width button, divided from links */
.app-topnav-drop-form { margin: 0.35rem 0 0; }
.app-topnav-drop-signout {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--slate-700);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--orange-600);
}

[x-cloak] { display: none !important; }

/* Order tracking detail */
.track-page { gap: 1rem; }
.track-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.5rem;
}
.track-head-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.track-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}
.track-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.track-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.track-map {
  height: 220px;
  width: 100%;
  z-index: 0;
  background: #e8e4dc;
}
.track-map .leaflet-pane,
.track-map .leaflet-top,
.track-map .leaflet-bottom {
  z-index: 1 !important; /* keep map under app header */
}
.track-map-caption {
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--gray-200);
  line-height: 1.35;
}
.track-map-fallback {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.45;
}
.track-map-link {
  display: block;
  margin-top: 0.5rem;
  color: var(--orange-600);
  font-weight: 600;
  text-decoration: none;
}
.track-driver {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  margin: 0;
}
.track-driver-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--slate-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.track-driver-name { font-size: 0.9rem; font-weight: 600; color: var(--slate-900); }
.track-driver-eta { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.1rem; }
.track-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 0.85rem;
}
.track-stepper { padding: 0.25rem 0 0; }
.track-step { display: flex; gap: 0.85rem; }
.track-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.track-step-copy { padding-bottom: 1.15rem; }
.track-step-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.track-step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b7b0a3;
}
.track-step-label.is-reached { color: var(--slate-800); }
.track-step-when {
  font-size: 0.7rem;
  color: var(--gray-400);
  white-space: nowrap;
}
.track-step-sub {
  font-size: 0.75rem;
  color: #b7b0a3;
  margin-top: 0.15rem;
}
.track-details { padding: 1.1rem 1.15rem; }
.track-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.track-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}
.track-lines li:last-child { border-bottom: none; }
.track-line-name { color: var(--slate-800); font-weight: 500; }
.track-line-price {
  color: var(--slate-900);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.track-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-500);
}
.track-pay {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
}
.track-pay-card { font-weight: 600; color: var(--slate-900); }
.track-pay-note {
  margin: 0.35rem 0 0;
  font-size: var(--text-small);
  line-height: 1.4;
}
.track-total strong {
  font-size: 1.05rem;
  color: var(--slate-900);
  font-family: var(--font-mono);
}
/* What we counted vs what the customer declared (final state only).
   Deliberately calm — same muted tone as other secondary text. This is
   routine bookkeeping ("counts verified at our facility"), not an alert;
   red/amber here would make an ordinary adjustment feel like a dispute. */
.track-line-note {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-small);
  color: var(--gray-500);
  font-weight: 400;
}
/* Estimate → final receipt (after facility intake) */
.track-weighed {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.track-weighed strong {
  color: var(--slate-900);
  font-family: var(--font-mono);
}
.track-receipt {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--gray-200);
  font-size: var(--text-small);
  line-height: 1.45;
  color: var(--gray-600, #475569);
}
.track-receipt strong {
  color: var(--slate-900);
  font-family: var(--font-mono);
}
.track-photo-proof {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--gray-200);
}
.track-photo-placeholder {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: var(--gray-50);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.track-photo-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.2rem;
}
.track-photo-grid {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--gray-200);
  flex-wrap: wrap;
}
.track-photo-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  width: 4.5rem;
}
.track-photo-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  object-fit: cover;
  background: var(--gray-50);
}
.track-photo-caption {
  font-size: 0.6875rem;
  color: var(--gray-500);
  line-height: 1.3;
}
.track-muted {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.track-help {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange-600);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.track-help:hover {
  border-color: #fdba74;
  background: #fff7ed;
}

@media (min-width: 900px) {
  .track-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .track-map { height: 280px; }
  .track-aside { position: sticky; top: calc(var(--desktop-nav-h, 3.5rem) + 1rem); }
}

/* Account — concierge / logistics */
.account-page { gap: 1.25rem; }
.account-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0 0;
}
.account-title {
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  line-height: 1.15;
}
.account-email-line {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.account-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--orange-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.account-section { display: flex; flex-direction: column; gap: 0.75rem; }
.account-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0.5rem 0 0;
}
.account-plans { display: flex; flex-direction: column; gap: 0.55rem; }
.account-plan-copy { min-width: 0; flex: 1; text-align: left; }
.account-plan-label { font-size: 0.875rem; font-weight: 600; }
.account-plan-sub { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; }
.account-card { padding: 1.1rem 1.15rem; }
.account-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 0.35rem;
}
.account-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
}
.account-card > .account-hint,
.account-form + .account-hint {
  margin-bottom: 0.65rem;
}
.account-hint-block { margin: 0.75rem 0 0.35rem; }
.account-stale-banner {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  font-size: 0.85rem;
  line-height: 1.4;
}
.account-stale-banner ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}
.account-stale-banner li { margin-bottom: 6px; }
.account-lede {
  margin: 0.15rem 0 0;
  font-size: 0.75rem; /* text-xs */
  font-weight: 400;
  line-height: 1.45;
  color: #64748b; /* slate-500 — sits behind the section title */
}
.account-form { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.35rem; }
.account-form-stack { gap: 0.95rem; margin-top: 0; }
.account-form-notes {
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.account-form-notes .account-field {
  gap: 0.75rem;
}
.account-form-prefs {
  gap: 2.5rem; /* Detergent ↔ Softener ↔ Special requests */
  margin-top: 0.85rem;
  padding: 1.25rem 1.2rem;
}
.account-form-prefs .account-field {
  gap: 0.75rem;
}
.account-form-prefs .account-label {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}
.account-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.account-plan-card {
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem;
  border-width: 1.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-plan-card.is-selected {
  border-color: var(--select-border);
  border-width: 2px;
  background: var(--select-bg);
  padding: calc(0.875rem - 0.5px) calc(1rem - 0.5px);
}
/* Empty radio on every row — selected fills + check */
.account-plan-check {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 1.5px solid #94a3b8; /* slate-400 — readable empty state */
  background: var(--white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
}
.account-plan-card:hover:not(.is-selected) .account-plan-check,
.schedule-choice:hover:not(.is-selected) .account-plan-check {
  border-color: var(--slate-700);
}
.account-plan-card.is-selected .account-plan-check,
.schedule-choice.is-selected .account-plan-check {
  border-color: var(--accent);
  background: var(--accent);
}
.account-plan-card.is-selected .account-plan-check::after,
.schedule-choice.is-selected .account-plan-check::after {
  content: "";
  display: block;
  width: 0.3rem;
  height: 0.55rem;
  margin-top: -0.12rem; /* optical center for the check glyph */
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}
.account-page .input {
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-color: var(--gray-300);
  line-height: 1.4;
}
/* Beat .input / browser defaults so textareas read as editable fields */
.account-page textarea.input.account-textarea,
.account-page .account-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 6rem;
  resize: vertical;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--slate-900);
  font-family: inherit;
  font-size: 0.9375rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.account-page .account-textarea::placeholder {
  color: #94a3b8;
}
.account-page .account-textarea:hover {
  border-color: #94a3b8;
  background: var(--white);
}
.account-page .account-textarea:focus {
  border-color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
  outline: none;
}
.account-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.account-pay-save {
  width: auto;
  min-width: 8.5rem;
  min-height: 40px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.account-pay-save:disabled {
  opacity: 0.55 !important;
  cursor: default;
}
.account-save-btn {
  min-height: 40px;
  padding: 0 1.1rem;
  border-radius: 10px;
  border: none;
  background: var(--slate-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.account-save-btn.is-ready {
  opacity: 1;
  pointer-events: auto;
}
.account-save-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.account-save { margin-top: 0.15rem; min-height: 46px; align-self: stretch; width: 100%; }
.account-save-sm {
  margin-top: 0.35rem;
  align-self: flex-end;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.account-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.account-card-head .account-card-title { margin-bottom: 0; }
.account-autosave-hint {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
}
.account-autosave-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.account-autosave-status.is-saved { color: #047857; }
.account-autosave-status.is-error { color: #b91c1c; }
.account-autosave-spinner {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid #cbd5e1;
  border-top-color: var(--orange-600);
  border-radius: 50%;
  animation: account-spin 0.6s linear infinite;
}
@keyframes account-spin {
  to { transform: rotate(360deg); }
}

/* Global unsaved-changes bar (profile text fields) */
.account-save-bar {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 1300;
  width: min(calc(100% - 1.5rem), 28rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.account-save-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.account-save-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  border-radius: 999px;
  background: var(--slate-900);
  color: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
}
.account-save-bar-msg {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.account-save-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.account-save-bar-discard {
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.account-save-bar-discard:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.account-save-bar-discard:disabled,
.account-save-bar-save:disabled {
  opacity: 0.55;
  cursor: default;
}
.account-save-bar-save {
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  background: var(--orange-600);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.account-save-bar-save:hover { background: var(--orange-700); }
body.account-has-unsaved .account-page {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 420px) {
  .account-save-bar {
    width: calc(100% - 1rem);
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .account-save-bar-inner {
    border-radius: 16px;
    padding: 0.7rem 0.7rem 0.7rem 0.9rem;
  }
  .account-save-bar-msg { font-size: 0.75rem; }
}
.account-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.account-fieldset > legend {
  float: none;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}
/* One pref = label + one solid switch. Real flex gap (legend spacing is unreliable). */
.account-pref-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem; /* 14px */
}
.account-pref-group .account-label {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  color: var(--slate-700);
  font-size: 0.8125rem;
  font-weight: 600;
}
/* Separate pills — no grey track. Same accent-tint metaphor as cards. */
.account-segment {
  display: grid;
  width: 100%;
  gap: 0.5rem;
  font-family: inherit;
}
.account-segment-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 15rem;
}
.account-segment-3 {
  grid-template-columns: 1fr;
  max-width: 42rem;
}
@media (min-width: 640px) {
  .account-segment-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.account-segment-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  text-align: center;
  line-height: 1.25;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.account-segment-opt:hover:not(.is-selected) {
  border-color: var(--slate-300);
}
.account-segment-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.account-segment-opt.is-selected {
  background: var(--select-bg);
  border-color: var(--accent);
  color: var(--slate-900);
  font-weight: 700;
}
.account-segment-opt:focus-within {
  outline: none;
  z-index: 1;
}
.account-segment-opt:focus-within:has(input:focus-visible) {
  box-shadow: inset 0 0 0 2px var(--orange-600);
}
.account-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.account-pay-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}
.account-pay-list li:last-child { border-bottom: none; }
.account-pay-list li.is-default .account-pay-label { font-weight: 600; color: var(--slate-900); }
.account-pay-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.account-pay-default {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--slate-900);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.account-pay-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.account-pay-actions form { margin: 0; }
.account-pay-action {
  background: transparent;
  border: none;
  padding: 0.2rem 0.15rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
}
.account-pay-action:hover { color: var(--slate-900); text-decoration: underline; }
.account-pay-remove { color: var(--muted); }
.account-pay-remove:hover { color: #b91c1c; }
.account-add-card {
  margin-top: 0.85rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.85rem;
}
.account-add-card.is-secondary {
  opacity: 0.95;
}

.app-shell.has-tabs {
  /* sticky topnav is in-flow — no reserved padding, no bottom chrome */
  padding-top: 0;
  padding-bottom: 0;
}
/* Bag/checkout sticky feet must never appear on Home / Orders / Account */
.app-shell.has-tabs .sticky-foot {
  display: none !important;
}
.has-tabs .flash { display: none; } /* prefer toast */

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--orange-600);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Customer Orders list */
.orders-head { padding: 1.25rem 0 0.25rem; }
.orders-title {
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}
.orders-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin: 0.5rem 0 0;
}
.orders-tab {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.orders-tab:hover { color: var(--slate-800); }
.orders-tab.is-active {
  color: var(--orange-600);
  font-weight: 600;
  border-bottom-color: var(--orange-600);
}
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 0 0;
}
.order-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.order-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.order-card-past-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.order-card-past:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.order-card-id {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}
.order-card-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.order-card-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}
.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.order-card-total {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.orders-empty {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
}
.orders-empty-copy {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.45;
}
.orders-empty-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}
.status-slate {
  color: #475569;
  background: #f1f5f9;
}
.status-progress {
  color: #3730a3;
  background: #e0e7ff;
}
.status-delivery {
  color: #166534;
  background: #dcfce7;
}
.status-exception {
  background: rgba(229, 105, 94, 0.14);
  color: #b91c1c;
}
.status-done {
  color: #047857;
  background: #ecfdf5;
}

.flash {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.flash-error { background: #fef2f2; color: #b91c1c; }
.flash-success { background: #ecfdf5; color: #047857; }
.flash-info { background: #f1f5f9; color: var(--slate-700); }

/* Floating toast — immediate save feedback */
.toast {
  position: fixed;
  top: calc(3.5rem + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 1400;
  min-width: min(92vw, 22rem);
  max-width: 92vw;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.toast-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.toast-info { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
@media (min-width: 768px) {
  .toast { top: calc(var(--desktop-nav-h, 4rem) + 0.75rem); }
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--gray-200);
  position: relative;
  border: none;
  cursor: pointer;
  padding: 0;
}
.toggle.is-on { background: var(--orange-600); }
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: transform 0.15s ease;
}
.toggle.is-on .toggle-knob { transform: translateX(18px); }

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
}
.timeline-dot.is-done { background: var(--slate-900); }
.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 26px;
  background: var(--gray-200);
}
.timeline-line.is-done { background: var(--slate-900); }

/* ── Onboarding ── */
.onboard {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--slate-900);
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.onboard-steam { display: none; }
.onboard-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 2rem;
  padding: 3.5rem 1.5rem calc(2.5rem + var(--safe-bottom));
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}
.onboard-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.onboard-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.onboard-title {
  font-size: clamp(1.875rem, 7vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
  max-width: 12ch;
}
.onboard-sub {
  font-size: 0.975rem;
  color: var(--slate-300);
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 34ch;
  font-weight: 400;
}
.onboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.onboard-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.onboard-secondary:hover { border-color: rgba(255,255,255,0.4); }
.onboard-legal {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── Home ── */
.home-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.home-hero {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.35rem 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 22rem; /* hug content — kill empty right void */
}

.home-greet {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.45rem;
  display: block;
}
.home-title {
  font-size: var(--text-hero);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 1.4rem;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  background: var(--orange-600);
  color: #fff;
  text-decoration: none;
  border: none;
  transition: background-color 0.15s ease;
}
.home-cta:hover { background: var(--orange-700); }
.home-cta-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home-cta-arrow {
  display: flex;
  flex-shrink: 0;
  opacity: 0.95;
}
.home-cta-meta {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.35;
}

/* Active order — strong left border, not glow */
.active-order-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.active-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
.active-order-card:hover { border-color: #cbd5e1; }
.active-order-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.active-order-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.active-order-copy { min-width: 0; }
.active-order-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
}
.active-order-eta {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.active-order-chevron {
  color: var(--gray-400);
  flex-shrink: 0;
}
.home-after-order {
  margin: 0;
  padding-left: 0.15rem;
}

/* Change-stop (per-order address) — centered column like the order flow */
.stop-page { gap: 0; }
.stop-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.stop-lede {
  margin: 0;
  font-size: var(--text-meta);
  color: var(--gray-500);
  line-height: 1.5;
}
.stop-current {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.1rem;
}
.stop-current-line {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.35;
}
.stop-hint {
  margin: 0.5rem 0 0;
  font-size: var(--text-small);
  color: var(--gray-500);
  line-height: 1.45;
}
.stop-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stop-form .stop-hint { margin-top: 0.4rem; }
.stop-actions {
  display: flex;
  gap: 0.75rem;
}
.stop-actions .btn { width: auto; flex: 1; }
.stop-actions .btn-primary { flex: 1.4; }

/* Resume-your-order card — accent-tinted so a half-built cart pulls focus */
.home-resume {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--select-bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.home-resume:hover { background: #ea580c26; }
.home-resume-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--accent);
  border-radius: var(--radius-sm);
}
.home-resume-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.home-resume-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
}
.home-resume-meta {
  font-size: 0.8125rem;
  color: var(--slate-700);
}
.home-resume-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.home-services { margin-top: 0; }
.home-services-title {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  padding: 0;
  border-bottom: none;
  color: var(--slate-900);
}
.home-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}
.home-service-list li + li {
  border-top: 1px solid var(--gray-200);
}
.home-service-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.home-service-row:hover { background: #f8fafc; }
.home-service-icon {
  flex-shrink: 0;
  color: var(--slate-700);
  display: flex;
}
.home-service-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.home-service-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}
.home-service-price {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-family: inherit;
}
.home-service-chevron {
  color: var(--gray-400);
  flex-shrink: 0;
  display: flex;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 1rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  letter-spacing: -0.015em;
  display: block;
}
.section-title::after { display: none; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0;
}

.service-tile {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transition: border-color 0.2s ease;
}
.service-tile:hover { border-color: #94a3b8; }
.service-tile-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
}
.service-tile-price {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-family: inherit;
}

.icon-box {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  padding: 0;
}

.home-promo {
  padding: 0.15rem 0.1rem 0.25rem;
  margin-top: auto;
}
.home-promo-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.45;
}
.home-promo-line .checkout-text-link {
  margin-left: 0.25rem;
}

.logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230f172a'/%3E%3Cstop offset='1' stop-color='%23ea580c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='5,5 21,5 27,12 11,12' fill='url(%23g)'/%3E%3Cpolygon points='11,12 27,12 21,19 5,19' fill='url(%23g)'/%3E%3Cpolygon points='5,19 21,19 27,26 11,26' fill='url(%23g)'/%3E%3C/svg%3E") no-repeat center / contain;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  background: var(--slate-900);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.logo-mark::after { display: none; }
.logo-dot { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

a.link-accent {
  color: var(--orange-600);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8125rem;
}

.line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.875rem;
}
.line-row:last-child { border-bottom: none; }

/* Build your order (/services) */
.services-page {
  padding-bottom: 0;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 0.5rem 0 1.25rem;
  flex: 1;
}
.services-group-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.15rem 0.65rem;
}
.services-group-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.services-group-icon {
  flex-shrink: 0;
  color: var(--slate-900);
}
.services-group-name {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
}
.services-group-tagline {
  margin: 0;
  padding-left: calc(20px + 0.55rem); /* align under title, past icon */
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.35;
}
.services-group-card {
  padding: 0.15rem 1rem;
}
.services-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.services-row:last-child { border-bottom: none; }
.services-row.is-in-bag .services-row-name {
  color: var(--slate-900);
}
.services-row-copy {
  flex: 1;
  min-width: 0;
  padding-top: 0.1rem;
}
.services-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.25;
}
.services-row-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
  line-height: 1.35;
}
.services-row-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.services-row-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-family: var(--font-display, inherit);
}

/* Constrained like ecommerce-ops max-w-sm — not full content column.
   ecommerce-ops: max-w-sm (24rem) with no inner side padding on the form.
   Our padding is inside the box (border-box), so add it to max-width
   so inputs land at ~24rem, not 24rem − 2.5rem. */
.auth-wrap {
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100dvh;
  max-width: calc(24rem + 2.5rem); /* 26.5rem = max-w-sm content + side padding */
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.auth-wrap.page {
  /* Beat .page { max-width: var(--content-max) } so inputs stay narrow on desktop.
     Also lock horizontal padding so @media .page { padding-left/right: 1.5rem }
     cannot shrink the form further (0,2,0 beats 0,1,0). */
  max-width: calc(24rem + 2.5rem);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.auth-wrap h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
.auth-wrap label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}
.auth-wrap .field { margin-bottom: 0.875rem; }
.auth-head {
  text-align: center;
}
/* Wordmark is the centering anchor; logo sits just left of it. */
.auth-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.auth-brand .logo-mark {
  position: absolute;
  right: 100%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.auth-brand-name {
  font-size: 1.125rem;
}
.auth-head h1 {
  text-align: center;
}
.auth-sub {
  margin: 0.5rem 0 0;
  font-size: 0.90625rem;
  text-align: center;
}
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.45;
}
.auth-switch a {
  color: var(--orange-600);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
/* Invite-only footer: quieter link, ecommerce-ops style */
.auth-switch-invite a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
}

.map-placeholder {
  margin: 0;
  border-radius: 8px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.map-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  background: var(--white);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

/* Flow pages (services/schedule/checkout) keep readable column.
   Exclude .auth-wrap: that rule's form-only side padding made inputs
   narrower than the invite footer (ecommerce-ops keeps one column). */
.page.no-tab:not(.auth-wrap) > .sticky-head,
.page.no-tab:not(.auth-wrap) > form,
.page.no-tab:not(.auth-wrap) > .services-list,
.page.no-tab:not(.auth-wrap) > div[style*="flex-direction:column"] {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page.no-tab .sticky-foot {
  max-width: 42rem;
}
.bag-bar-btn {
  justify-content: space-between;
  gap: 0.75rem;
}
.bag-bar-count {
  font-weight: 600;
  opacity: 0.8;
  white-space: nowrap;
}
.bag-bar-cta { font-weight: 600; white-space: nowrap; }

/* Checkout */
.checkout-page { padding-bottom: 0; }
.checkout-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.35rem 0 1.25rem;
  flex: 1;
}
.checkout-summary { padding: 0.15rem 1rem; }
.checkout-line-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
}
.checkout-summary-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid var(--gray-200);
}
.checkout-pickup {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
  min-width: 0;
}
.checkout-summary-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.checkout-text-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  text-decoration: none;
}
.checkout-text-link:hover { color: var(--slate-900); text-decoration: underline; }

.checkout-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.4;
}
.checkout-banner strong { color: #78350f; }

.checkout-section { display: flex; flex-direction: column; gap: 0.65rem; }
.checkout-section-title {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}
.checkout-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.45;
}
.checkout-charge-note { margin-top: 0.15rem; }
.checkout-pay-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-add-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 0.15rem 0;
}
.checkout-add-card-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}
.checkout-add-card-summary::-webkit-details-marker { display: none; }
.checkout-add-card-summary::before {
  content: "+ ";
  font-weight: 700;
  color: var(--gray-500);
}
.checkout-add-card[open] .checkout-add-card-summary::before { content: "– "; }
.checkout-add-card-body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.checkout-pay-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #b91c1c;
}
.checkout-save-pay {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 1.1rem;
}

.checkout-tip {
  max-width: 18rem;
  grid-template-columns: repeat(3, 1fr);
}
.checkout-tip-cell {
  display: contents;
}
.checkout-tip-cell .account-segment-opt {
  width: 100%;
  font-family: inherit;
}

.checkout-promo {
  border: none;
  padding: 0;
}
.checkout-promo-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.15rem 0;
}
.checkout-promo-summary::-webkit-details-marker { display: none; }
.checkout-promo-summary::after {
  content: " ›";
  color: var(--gray-400);
}
.checkout-promo[open] .checkout-promo-summary::after { content: ""; }
.checkout-promo-form {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.checkout-promo-form .input { flex: 1; }
.checkout-promo-apply {
  min-height: 48px;
  padding: 0 1rem;
  flex-shrink: 0;
}

.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
}
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.checkout-total-row.is-credit { color: #047857; font-weight: 600; }
.checkout-total-row .is-free { color: #047857; font-weight: 600; }
.checkout-total-row.is-grand {
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
}
.checkout-foot-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.page.no-tab:not(.auth-wrap) > .checkout-body {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Pickup details (/schedule) */
.schedule-page { padding-bottom: 0; }
.schedule-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.schedule-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.35rem 0 1.25rem;
  flex: 1;
}
.page.no-tab:not(.auth-wrap) > .schedule-form,
.page.no-tab:not(.auth-wrap) .schedule-body {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.page.no-tab:not(.auth-wrap) .schedule-body {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.schedule-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}
.schedule-address-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.schedule-address-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.35;
}

.schedule-section { display: flex; flex-direction: column; gap: 0.7rem; }
.schedule-section-quiet { gap: 0.55rem; }
.schedule-section-title {
  margin: 0;
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.schedule-days {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.schedule-days::-webkit-scrollbar { display: none; }
.schedule-day {
  flex: 1 0 4.75rem;
  min-width: 4.75rem;
  min-height: 4.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-900);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.schedule-day.is-selected {
  border-color: var(--select-border);
  border-width: 2px;
  background: var(--select-bg);
  padding: calc(0.65rem - 0.5px) calc(0.5rem - 0.5px);
}
.schedule-day-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 1.2;
  text-align: center;
}
.schedule-day.is-selected .schedule-day-label { color: var(--slate-700); }
.schedule-day-num {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.schedule-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.schedule-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.schedule-choice.is-selected {
  border-color: var(--select-border);
  border-width: 2px;
  background: var(--select-bg);
  padding: calc(0.8rem - 0.5px) calc(1rem - 0.5px);
}
.schedule-choice .account-plan-check {
  margin-top: 0;
}
.schedule-choice-copy { min-width: 0; flex: 1; }
.schedule-choice-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
}
.schedule-choice-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}

.schedule-cadence-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.schedule-cadence-quiet {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.schedule-cadence {
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
}
.schedule-cadence .account-segment-opt {
  flex-direction: column;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.4rem;
  font-family: inherit;
}
.schedule-cadence .account-segment-opt.is-selected {
  background: var(--select-bg);
  color: var(--slate-900);
}
.schedule-cadence-main {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.schedule-cadence-sub {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.2;
}

.schedule-prefs-summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.4;
}
.schedule-prefs-details {
  border: none;
  padding: 0;
}
.schedule-prefs-summary-toggle {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.1rem 0;
}
.schedule-prefs-summary-toggle::-webkit-details-marker { display: none; }
.schedule-prefs-card {
  margin-top: 0.55rem;
  padding: 0.15rem 1rem;
}
.schedule-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.schedule-pref-row:last-child { border-bottom: none; }
.schedule-pref-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-900);
}
.schedule-detergent {
  max-width: 14rem;
  flex-shrink: 0;
}
.schedule-detergent .account-segment-opt {
  font-family: inherit;
  min-height: 2.5rem;
  font-size: 0.75rem;
}
.schedule-detergent .account-segment-opt.is-selected {
  background: var(--select-bg);
  color: var(--slate-900);
}
.schedule-notes-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.schedule-notes {
  min-height: 4.5rem;
}

[x-cloak] { display: none !important; }

.shell-onboard { background: var(--slate-900); }

/* Orders / account page heads */
.desktop-page-head {
  padding: 0 !important;
}
.desktop-page-head h1 {
  font-size: 1.75rem !important;
  letter-spacing: -0.025em;
}

/* ── Desktop md+ ── */
@media (min-width: 768px) {
  :root {
    --desktop-nav-h: 4rem;
  }

  .app-shell.has-tabs {
    padding-top: 0;
  }

  .page {
    padding: 2.5rem 1.5rem 3rem;
    gap: 2rem;
  }

  .app-topnav-inner {
    height: var(--desktop-nav-h);
    padding: 0 2rem;
  }
  .app-topnav-name { font-size: 1.25rem; }
  .app-topnav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .app-topnav-menu-btn { display: none; }
  .app-topnav-dropdown { display: none !important; }
  .app-topnav-link:hover { color: var(--orange-600); }
  .app-topnav-link.is-active { color: #fff; }

  .home-hero {
    padding: 2.5rem;
  }
  .home-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

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

  .onboard-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto 1fr auto;
    gap: 2rem 4rem;
    padding: 4rem 2rem;
    align-items: end;
  }
  .onboard-brand { grid-column: 1 / -1; }
  .onboard-copy {
    grid-column: 1;
    align-self: center;
  }
  .onboard-title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    max-width: 12ch;
  }
  .onboard-actions {
    grid-column: 2;
    align-self: center;
    max-width: 20rem;
    justify-self: end;
    width: 100%;
  }

  .auth-wrap {
    justify-content: center;
  }

  .map-placeholder { height: 180px; }
}

@media (min-width: 640px) {
  .page { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Marketing landing ── */
.shell-landing {
  background: var(--white);
  max-width: none;
  min-height: 100dvh;
  overflow: visible;
  height: auto;
}

body:has(.shell-landing) {
  background: var(--white);
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
}

.mkt-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.mkt-nav-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mkt-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mkt-nav-links a {
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mkt-nav-links a:hover { color: var(--orange-600); }

.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mkt-nav-signin {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  text-decoration: none;
}

.mkt-nav-signin:hover { color: #fff; }

.mkt-btn {
  width: auto;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.mkt-btn-lg {
  min-height: 52px;
  padding: 0.9rem 2.25rem;
  font-size: 1.0625rem;
}

/* Hero — solid slate, warm glow, staggered GSAP fade-up */
.mkt-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
}

.mkt-hero-glow {
  position: absolute;
  top: 2.5rem;
  left: -5rem;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.14);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.mkt-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mkt-hero .hero-elem {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.mkt-hero-mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 1rem;
}

.mkt-hero-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mkt-hero-brand {
  display: block;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.mkt-hero-copy h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.mkt-hero-copy > p {
  margin: 0 0 2.5rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.011em;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 36rem;
}

.mkt-hero .mkt-btn-lg {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .mkt-hero .hero-elem {
    opacity: 1;
    transform: none;
  }
}

/* How it works — sticky dial + center-bound GSAP scrub */
.mkt-how {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  /* Keep sticky dial from painting over Why / Pricing / CTA below */
  overflow: clip;
  z-index: 1;
}
.mkt-why,
.mkt-pricing,
.mkt-cta {
  position: relative;
  z-index: 2;
}

.mkt-how-inner {
  display: flex;
  flex-direction: column;
  max-width: 80rem;
  margin: 0 auto;
}

.mkt-steps {
  width: 100%;
  padding: 0.5rem 1.5rem 3rem;
}

.mkt-how-title {
  margin: 0;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.mkt-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-card {
  min-height: 0;
  display: block;
  margin: 0;
  padding: 3rem 0;
  scroll-margin-top: 3rem;
  opacity: 0.28;
  transition: opacity 0.2s ease;
}

.step-card.active-step {
  opacity: 1;
}

.step-kicker {
  display: block;
  color: var(--orange-600);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  line-height: 1.15;
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: #334155;
  max-width: 36ch;
}

.mkt-tracker {
  display: none;
}

.mkt-tracker-inner {
  width: 100%;
  max-width: 22rem;
  padding: 0 2rem;
}

.mkt-tracker-inner h4 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.mkt-tracker-hint {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #64748b;
}

.progress-ring-wrap {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 1.75rem;
}

.progress-ring {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
}

/* No CSS transitions — GSAP owns stroke/position */
.progress-ring__circle {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-center span {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.truck-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  border-radius: 999px;
}

.delivery-truck {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 1.75rem;
  height: 1.75rem;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  background: var(--gray-50);
  z-index: 2;
}

.delivery-truck.is-done { color: #16a34a; }

.truck-stop {
  position: absolute;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background: #94a3b8;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

/* Why choose */
.mkt-why {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mkt-why-inner,
.mkt-pricing-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.mkt-section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}

.mkt-section-lede {
  margin: 0 0 2.75rem;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: #334155;
  max-width: 40ch;
  line-height: 1.55;
}

.mkt-why-grid {
  display: grid;
  gap: 1.5rem;
}

.mkt-why-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.09);
}

.mkt-why-item h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.mkt-why-item p {
  margin: 0;
  font-size: 0.9875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: #334155;
  max-width: 36ch;
}

.mkt-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange-600);
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

/* Pricing — single menu list (not separate cards) */
.mkt-pricing {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mkt-pricing-inner {
  max-width: 48rem;
}

.mkt-pricing-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.mkt-pricing-head .mkt-section-lede {
  margin: 0 auto;
  max-width: 36ch;
}

.mkt-pricing-head .mkt-section-lede strong {
  color: var(--slate-900);
  font-weight: 700;
}

.mkt-price-list {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.mkt-price-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.mkt-price-row:hover {
  background: var(--gray-50);
}

.mkt-price-row.is-last {
  border-bottom: none;
}

.mkt-price-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mkt-price-label {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--slate-900);
  margin: 0;
}

.mkt-price-note {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #64748b;
}

.mkt-price-value {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
  white-space: nowrap;
}

.mkt-price-value.is-accent {
  color: var(--orange-600);
}

.mkt-pricing-cta {
  margin-top: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .mkt-price-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }
}

.mkt-cta {
  background: var(--slate-900);
  color: #fff;
  text-align: center;
  padding: 5.5rem 1.5rem;
}

.mkt-cta h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .mkt-nav {
    padding: 1rem 2rem;
  }

  .mkt-nav-links { display: flex; }
  .mkt-nav-signin { display: block; }

  .mkt-how-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Tracker is first in DOM (mobile top); push right on desktop */
  .mkt-tracker {
    order: 2;
  }

  .mkt-steps {
    width: 50%;
    padding: 1rem 3rem 5rem;
  }

  .mkt-how-title {
    padding-top: 2.5rem;
  }

  .step-card {
    padding: 5rem 0;
  }

  .mkt-tracker {
    display: flex;
    width: 50%;
    position: sticky;
    top: 0;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-left: 1px solid var(--gray-200);
  }

  .mkt-why-inner,
  .mkt-pricing-inner {
    padding: 5.5rem 2rem;
  }

  .mkt-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 767px) {
  /* Sticky dial strip: steps scroll beneath it */
  .mkt-tracker {
    display: flex;
    position: sticky;
    top: 4.65rem; /* below sticky nav */
    z-index: 1; /* stay inside .mkt-how — not over footer sections */
    height: 35vh;
    min-height: 15rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
    justify-content: center;
  }

  .mkt-tracker-inner { padding: 0; max-width: 15rem; }
  .progress-ring-wrap { width: 7rem; height: 7rem; margin: 0 auto 0.85rem; }
  .progress-ring-center span { font-size: 1.15rem; }
  .mkt-tracker-inner h4 { font-size: 1rem; margin-bottom: 0.15rem; }
  .mkt-tracker-hint { margin-bottom: 0.75rem; font-size: 0.75rem; }

  .mkt-steps { padding: 0.25rem 1.25rem 3rem; }
  .step-card { padding: 2.5rem 0; }

  /* Home: order tracker wraps cleanly under dark hero */
  .active-order-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .active-order-main {
    flex: 1 1 12rem;
    min-width: 0;
  }
  .active-order-chevron {
    margin-left: auto;
    align-self: center;
  }
  .home-services { margin-top: 0; }
  .home-services-title { font-size: 0.9rem; }
  .service-tile:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .step-card { transition: none; opacity: 1; }
}
