/* Titanium Sequoia: one navigation surface and shared optical glass treatment. */
:root {
  --glass-fill: rgba(255, 255, 255, 0.38);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --glass-shadow:
    0 18px 45px -24px rgba(30, 55, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
  --glass-sheet: rgba(244, 248, 252, 0.72);
  --glass-inner: rgba(255, 255, 255, 0.28);
  --sys-bg-bento-tile: rgba(255, 255, 255, 0.34);
  --sys-glass-surface: rgba(255, 255, 255, 0.42);
  --sys-glass-strong: rgba(249, 252, 255, 0.76);
}
[data-theme="titanium-dark"] {
  --glass-fill: rgba(30, 37, 45, 0.43);
  --glass-edge: rgba(255, 255, 255, 0.15);
  --glass-shadow:
    0 22px 52px -22px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  --glass-sheet: rgba(24, 31, 40, 0.78);
  --glass-inner: rgba(255, 255, 255, 0.045);
  --sys-bg-bento-tile: rgba(52, 62, 73, 0.3);
  --sys-glass-surface: rgba(30, 37, 45, 0.44);
  --sys-glass-strong: rgba(27, 35, 44, 0.82);
}
body {
  background:
    radial-gradient(
      ellipse at 82% 28%,
      rgba(92, 151, 218, 0.24),
      transparent 37%
    ),
    radial-gradient(
      ellipse at 64% 72%,
      rgba(109, 182, 168, 0.24),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 20% 85%,
      rgba(212, 197, 177, 0.28),
      transparent 43%
    ),
    linear-gradient(130deg, #f3f7f9, #e7eef5 60%, #edf1f5);
  background-attachment: fixed;
}
[data-theme="titanium-dark"] body {
  background:
    radial-gradient(
      ellipse at 82% 28%,
      rgba(54, 101, 155, 0.3),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 64% 72%,
      rgba(51, 110, 99, 0.22),
      transparent 36%
    ),
    radial-gradient(
      ellipse at 20% 85%,
      rgba(107, 94, 76, 0.16),
      transparent 44%
    ),
    linear-gradient(130deg, #0c1016, #111820 60%, #11151c);
  background-attachment: fixed;
}
.pitch-header {
  width: calc(100% - 64px);
  max-width: 1260px;
  margin: 20px auto 0;
  padding: 11px 14px 11px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  background:
    linear-gradient(125deg, var(--glass-inner), transparent 65%),
    var(--glass-fill);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.pitch-header .hig-brand {
  justify-self: start;
  gap: 10px;
}
.pitch-header .hig-brand__glyph {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: 11px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.pitch-header .hig-brand strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.header-chapter {
  font-size: 11px;
  color: var(--sys-label-secondary);
  letter-spacing: 0.1px;
}
.menu-toggle,
.sheet-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background: var(--glass-inner);
  color: var(--sys-label-primary);
  cursor: pointer;
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.menu-toggle {
  justify-self: end;
}
.menu-toggle svg,
.sheet-close svg {
  width: 23px;
  height: 23px;
}
.menu-toggle:hover,
.sheet-close:hover {
  background: var(--sys-bg-elevated);
}
.navigation-sheet {
  position: fixed;
  inset: 18px 22px auto auto;
  margin: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 36px);
  padding: 26px;
  border: 1px solid var(--glass-edge);
  border-radius: 30px;
  background:
    linear-gradient(135deg, var(--glass-inner), transparent 55%),
    var(--glass-sheet);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow:
    0 32px 100px -25px rgba(18, 32, 45, 0.35),
    inset 0 1px 0 var(--glass-edge);
  color: var(--sys-label-primary);
  overscroll-behavior: contain;
}
.navigation-sheet::backdrop {
  background: rgba(18, 27, 37, 0.12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
[data-theme="titanium-dark"] .navigation-sheet::backdrop {
  background: rgba(0, 0, 0, 0.25);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.sheet-eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--sys-label-secondary);
  margin: 0 0 9px;
}
.sheet-heading h2 {
  font-size: 28px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  font-weight: 600;
}
.sheet-close {
  width: 36px;
  height: 36px;
}
.sheet-close svg {
  width: 20px;
  height: 20px;
}
.sheet-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-navigation button {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 47px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--sys-label-primary);
  cursor: pointer;
}
.sheet-navigation button > span:first-child {
  font: 10px var(--font-mono);
  color: var(--sys-label-secondary);
}
.sheet-navigation b {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.sheet-navigation button:hover,
.sheet-navigation button[aria-current="step"] {
  background: var(--glass-inner);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.menu-current {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}
[aria-current="step"] .menu-current {
  background: var(--sys-accent-blue);
}
.sheet-section {
  padding-top: 24px;
  margin-top: 20px;
  border-top: 1px solid var(--sys-hairline);
}
.sheet-journeys {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet-journeys button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sys-label-primary);
  cursor: pointer;
}
.sheet-journeys button[aria-pressed="true"] {
  background: var(--sys-accent-blue-tint);
  border-color: var(--sys-hairline);
}
.sheet-journeys span {
  font-size: 12px;
  font-weight: 500;
}
.sheet-journeys small {
  font-size: 10px;
  color: var(--sys-label-secondary);
}
.sheet-tools {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--sys-hairline);
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.sheet-tools button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--sys-label-secondary);
  background: transparent;
  border: 0;
  min-height: 34px;
  cursor: pointer;
  padding: 4px;
}
.sheet-tools svg {
  width: 16px;
  height: 16px;
}
.journey-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--sys-label-secondary);
  font-size: 11px;
  letter-spacing: 0.2px;
}
.journey-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sys-accent-blue);
}
.moment,
.future,
.operator-board,
.business-card,
.pricing-card,
.pilot-card,
.wallet-ring-card,
.receipt-mini {
  background:
    linear-gradient(125deg, var(--glass-inner), transparent 65%),
    var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  backdrop-filter: blur(28px) saturate(175%);
}
.moment,
.future,
.operator-board,
.business-card,
.pricing-card,
.pilot-card {
  border-radius: 28px;
}
.opportunity-visual {
  position: relative;
  isolation: isolate;
}
.opportunity-visual::before {
  content: "";
  position: absolute;
  inset: 6% 0 9% 24%;
  border-radius: 46% 54% 58% 42%;
  background: linear-gradient(
    145deg,
    rgba(105, 156, 208, 0.28),
    rgba(142, 196, 179, 0.35) 60%,
    rgba(212, 197, 177, 0.2)
  );
  z-index: -1;
  filter: blur(10px);
  transform: none;
  pointer-events: none;
}
[data-theme="titanium-dark"] .opportunity-visual::before {
  opacity: 0.65;
}
.future {
  margin-top: 18px;
}
.cta {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 18px -12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.next {
  background: var(--glass-fill);
  border-color: var(--glass-edge);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.funding-ask {
  background: var(--sys-accent-blue-tint);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.presentation-footer {
  border-color: var(--sys-hairline);
  font-size: 10px;
  padding-block: 16px;
}
.slide {
  min-height: calc(100vh - 167px);
  padding-top: 48px;
}
h1,
h2 {
  font-weight: 600;
  letter-spacing: -1.8px;
}
.lead {
  font-size: 16px;
  line-height: 1.8;
}
.demo-steps li {
  opacity: 0.6;
}
.demo-steps li.active {
  opacity: 1;
}
.device-wrap .iphone-chassis {
  box-shadow:
    0 32px 60px -25px rgba(20, 38, 52, 0.35),
    inset 0 1px 0 var(--glass-edge);
}
.device-wrap .iphone-screen {
  background:
    linear-gradient(145deg, var(--glass-inner), transparent 65%),
    var(--sys-screen-mesh);
}
.device-wrap .ios-statusbar {
  background: var(--glass-fill);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-edge);
  z-index: 3;
}
.order-dock {
  background: var(--sys-glass-strong);
  border: 1px solid var(--glass-edge);
  border-radius: 18px 18px 0 0;
  box-shadow:
    0 -5px 22px -14px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 var(--glass-edge);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding-inline: 8px;
}
.add-item,
.phone-tip button,
.quantity-controls,
#kitchenNote {
  background: var(--glass-inner);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
@media (min-width: 701px) and (max-height: 850px) {
  .slide {
    padding-top: 30px;
  }
  .pitch-header {
    padding: 9px 12px 9px 18px;
  }
  .split-layout {
    min-height: 425px;
  }
  .experience-layout {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .pitch-header {
    width: calc(100% - 32px);
    margin-top: 14px;
    padding: 9px 10px 9px 14px;
    border-radius: 23px;
  }
  .pitch-header .hig-brand strong {
    font-size: 14px;
  }
  .pitch-header .hig-brand__glyph {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .header-chapter {
    font-size: 9px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .navigation-sheet {
    inset: 12px 12px auto auto;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 23px;
    border-radius: 27px;
  }
  .sheet-heading {
    margin-bottom: 16px;
  }
  .sheet-navigation button {
    min-height: 44px;
    padding-block: 10px;
  }
  .sheet-section {
    padding-top: 18px;
    margin-top: 15px;
  }
  .sheet-tools {
    margin-top: 18px;
  }
  .slide {
    padding-top: 36px;
    min-height: calc(100vh - 155px);
  }
  h1,
  h2 {
    letter-spacing: -1.5px;
  }
  .lead {
    font-size: 15px;
  }
  .chapter-copy h1,
  .section-intro h2 {
    font-size: 36px;
  }
  .demo-steps {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
  .demo-steps li {
    flex: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 4px 0;
  }
  .demo-steps li > span {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .demo-steps b {
    font-size: 10px;
    line-height: 1.5;
  }
  .demo-steps p {
    display: none;
  }
  .journey-label {
    margin-top: 18px;
  }
  .chapter-copy #restart {
    font-size: 10px;
    padding-left: 0;
    margin-top: 8px;
  }
  .experience-layout {
    gap: 0;
  }
  .device-wrap {
    margin-top: 8px;
  }
  .opportunity-visual::before {
    inset: 10% 0 6% 18%;
  }
  .moment,
  .future {
    padding: 23px;
  }
  .business-card,
  .pricing-card,
  .pilot-card {
    border-radius: 24px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .pitch-header,
  .navigation-sheet,
  .moment,
  .future,
  .operator-board,
  .business-card,
  .pricing-card,
  .pilot-card,
  .wallet-ring-card,
  .receipt-mini {
    background: var(--sys-bg-canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Durable ordering: quiet glass columns, one action per ticket. */
.queue-toolbar,
.ticket-top,
.ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.queue-toolbar {
  margin: 28px 0 8px;
  flex-wrap: wrap;
}
.kitchen-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
  align-items: start;
}
.queue-column {
  min-width: 0;
  padding: 20px;
  border: 0.5px solid var(--glass-edge);
  border-radius: 28px;
  background: var(--glass-fill);
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
}
.queue-column h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  margin: 0 0 20px;
}
.queue-column h3 > span:last-child {
  margin-left: auto;
  opacity: 0.5;
  font-size: 14px;
}
.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sys-blue, #007aff);
}
.queue-dot.preparing {
  background: #ce8500;
}
.queue-dot.ready {
  background: #239a65;
}
.queue-ticket {
  padding: 20px;
  margin-top: 14px;
  border: 0.5px solid var(--glass-edge);
  border-radius: 20px;
  background: var(--sys-glass-strong);
  overflow-wrap: anywhere;
}
.current-ticket {
  outline: 1px solid rgba(0, 122, 255, 0.25);
}
.ticket-reference,
.queue-ticket small {
  display: block;
  font-size: 11px;
  opacity: 0.65;
  margin-top: 5px;
}
.queue-ticket p {
  font-size: 13px;
  line-height: 1.5;
  margin: 18px 0;
}
.ticket-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--glass-inner);
}
.ticket-total {
  padding: 14px 0;
  border-top: 0.5px solid var(--glass-edge);
  font-size: 12px;
}
.ticket-total span {
  max-width: 55%;
  opacity: 0.7;
}
.queue-ticket .cta {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 13px;
}
.ready-label {
  color: var(--sys-green, #239a65);
  font-size: 12px;
}
.queue-empty {
  padding: 26px 0;
  opacity: 0.6;
  line-height: 1.6;
  font-size: 13px;
}
.failed-orders {
  padding: 20px;
  border-radius: 20px;
  background: var(--glass-fill);
}
.failed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.payment-scenario {
  margin: 16px 0;
  font-size: 12px;
}
.payment-scenario summary {
  cursor: pointer;
  opacity: 0.7;
}
.payment-scenario label,
.payment-scenario small {
  display: block;
  margin: 12px 0 6px;
}
.payment-scenario select,
#operatorKey {
  width: 100%;
  padding: 10px;
  color: inherit;
  background: var(--sys-glass-strong);
  border: 0.5px solid var(--glass-edge);
  border-radius: 10px;
  font: inherit;
}
.order-progress {
  display: flex;
  gap: 6px;
  margin: 20px 0;
}
.order-progress span {
  flex: 1;
  border-top: 3px solid var(--glass-edge);
  padding-top: 8px;
  font-size: 10px;
  opacity: 0.45;
}
.order-progress .complete {
  border-color: var(--sys-green, #239a65);
  opacity: 1;
}
#presenterDialog {
  max-width: 700px;
  width: calc(100% - 32px);
  max-height: 86vh;
  overflow: auto;
  padding: 40px;
  border: 0.5px solid var(--glass-edge);
  border-radius: 30px;
  color: var(--sys-text-primary);
  background: var(--glass-sheet);
  backdrop-filter: blur(40px);
  box-shadow: var(--glass-shadow);
}
#presenterDialog::backdrop {
  background: rgba(15, 25, 40, 0.25);
  backdrop-filter: blur(8px);
}
#presenterDialog .close {
  float: right;
}
.presenter-timeline {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.presenter-timeline li {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 0.5px solid var(--glass-edge);
}
.presenter-timeline li > span {
  font-size: 12px;
  opacity: 0.6;
  padding-top: 3px;
}
.presenter-timeline p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.75;
}
#connectionHelp label {
  display: block;
  margin: 12px 0 8px;
  font-size: 12px;
}
#connectionHelp summary {
  cursor: pointer;
  font-size: 13px;
}
@media (max-width: 800px) {
  .kitchen-queue,
  .failed-grid {
    grid-template-columns: 1fr;
  }
  .queue-column {
    padding: 16px;
  }
  .queue-empty {
    padding: 8px 0;
  }
  #presenterDialog {
    padding: 24px;
  }
  .presenter-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Let the phone and copy shrink within narrow guest layouts. */
.split-layout > *,
.device-wrap {
  min-width: 0;
}
@media (max-width: 700px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Reserve a proper hit area for modal dismissal, clear of the title. */
#presenterDialog .close,
#readinessDialog .close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
  border-radius: 50%;
  background: var(--sys-glass-surface);
  border: 0.5px solid var(--glass-edge);
}
#presenterDialog > .kicker,
#readinessDialog > .kicker {
  padding-right: 48px;
  min-height: 36px;
}
@media (max-width: 380px) {
  .header-chapter {
    display: none;
  }
  #readinessDialog {
    padding: 24px;
  }
}
