:root {
  --bg: #0b0b0c;
  --ink: #f4f1ea;
  --ink-2: #a9a59c;
  --ink-3: #6d6a64;
  --line: rgba(244, 241, 234, 0.09);
  --accent: #f2b33d;
  --accent-deep: #b9822a;
  --surface: #161513;
  --raised: #22201d;
  --paper: #f3eee3;
  --paper-ink: #1f1b16;
  --paper-ink-2: #6a6156;
  --paper-line: rgba(31, 27, 22, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bar ---- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar { transition: background .25s ease, box-shadow .25s ease; }
.bar.solid {
  pointer-events: auto;
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.bar nav a:hover { color: var(--ink); }
.bar nav a.get { color: var(--bg); background: var(--ink); padding: 8px 16px; border-radius: 10px; font-weight: 500; }
.bar nav a.get:hover { background: #fff; color: var(--bg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #19191b 0%, var(--bg) 62%);
}
#tunnel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; touch-action: pan-y; }
#tunnel.dragging { cursor: grabbing; }

.pick {
  position: absolute; z-index: 2;
  left: 50%; top: var(--pick-top, 18%);
  transform: translateX(-50%);
  pointer-events: none;
  padding: 14px 18px 14px;
  border-radius: 16px;
  background: rgba(11, 11, 12, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.45);
}
.pick-shop { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.pick-name { font-size: clamp(22px, 2.6vw, 34px); }
.pick-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.chip { background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 6px; }
.pick.swap .pick-shop, .pick.swap .pick-name, .pick.swap .chip { opacity: 0; transform: translateY(4px); }
.pick-shop, .pick-name, .chip { transition: opacity .22s ease, transform .22s ease; }

.lede {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  max-width: 500px;
}
.lede h1 { font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.03em; line-height: 1.04; }
.lede > p { color: var(--ink-2); margin-top: 14px; max-width: 380px; }
.cta { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px 10px 14px; border-radius: 12px;
  text-decoration: none; font-weight: 500; font-size: 17px; line-height: 1.1; white-space: nowrap; flex: none;
  transition: transform .15s ease, background .15s;
}
.play small { display: block; font-size: 11px; font-weight: 500; color: #555; }
.play:hover { background: #fff; }
.play:active { transform: scale(.97); }
.qr { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: var(--ink-3); }
.qr img { border-radius: 8px; background: var(--ink); padding: 6px; }
.ios-note { display: none; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.is-ios .ios-note { display: block; }
.is-android .qr, .is-ios .qr { display: none; }

.hint {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  font-size: 13px; color: var(--ink-3);
}

/* ---- Sections ----
   Below the tunnel the page goes quiet: warm neutrals, weight 500 headings,
   one grid 1120 wide. The paper bill is the one bright thing here, and the
   marigold dot marks only "where your order is now" and the chosen slot. */
.how, .kinds, .faq, .shops, .foot {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin-left: auto; margin-right: auto;
}
.how h2, .kinds h2, .faq h2, .shops h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.how h3 { font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.3; margin-bottom: 4px; }

/* How an order works: the steps beside an example bill */
.how {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 64px; align-items: center;
  padding-top: 128px;
}
.how h2 { font-size: 44px; max-width: 480px; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 480px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.step-n {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  font: 500 14px/1 'DM Mono', ui-monospace, Consolas, monospace; color: var(--ink-2);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
}
.steps p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.bill { margin: 0; }
.bill-paper {
  position: relative;
  background: var(--paper); color: var(--paper-ink);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(-1deg);
  font-variant-numeric: tabular-nums;
}
.bill-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.bill-shop { font-size: 18px; font-weight: 500; }
.bill-meta { font-size: 13px; color: var(--paper-ink-2); margin-top: 2px; }
.bill-tag { font-size: 12px; color: var(--paper-ink-2); border: 1px solid var(--paper-line); border-radius: 6px; padding: 2px 8px; }

.track { list-style: none; margin: 20px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.track li { position: relative; padding-top: 16px; font-size: 12px; color: var(--paper-ink-2); }
.track li::before {
  content: ''; position: absolute; top: 3px; left: 0; right: 0; height: 2px; background: var(--paper-line);
}
.track li::after {
  content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper-line);
}
.track li.done::before, .track li.now::before { background: var(--paper-ink); }
.track li.now::before { right: 50%; }
.track li.done::after { background: var(--paper-ink); box-shadow: none; }
.track li.now { color: var(--paper-ink); font-weight: 500; }
.track li.now::after { width: 10px; height: 10px; top: -1px; background: var(--accent); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--accent-deep); }
.track li, .track li::before, .track li::after { transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }

.bill-lines { width: 100%; border-collapse: collapse; font: 400 14px/1.4 'DM Mono', ui-monospace, Consolas, monospace; }
.bill-lines td { padding: 6px 0; }
.bill-lines td:last-child { text-align: right; }
.bill-lines tbody tr:first-child td { padding-top: 12px; border-top: 1px dashed var(--paper-line); }
.bill-lines tr.sub td { color: var(--paper-ink-2); }
.bill-lines tfoot td { padding-top: 12px; border-top: 1px dashed var(--paper-line); font-weight: 500; font-size: 16px; }
.bill-pay { margin-top: 16px; font-size: 13px; color: var(--paper-ink-2); }

/* Goods and services: unequal halves, the services one holds a booking */
.kinds {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px;
  padding-top: 128px;
}
.kind {
  background: var(--surface); border-radius: 16px; padding: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.kind h2 { font-size: 28px; margin-bottom: 12px; max-width: 420px; }
.kind p { color: var(--ink-2); max-width: 420px; }
.kind-goods { display: flex; flex-direction: column; }
.kind-list { margin-top: auto; padding-top: 32px; font-size: 14px; color: var(--ink-3) !important; line-height: 1.7; }
.kind-services { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; }

.slot-card {
  background: var(--raised); border-radius: 12px; padding: 16px;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.slot-head { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.slot-title { font-weight: 500; }
.slot-meta { font-size: 13px; color: var(--ink-3); }
.slot-day { font-size: 12px; color: var(--ink-3); margin: 12px 0 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots span {
  font: 400 12px/1 'DM Mono', ui-monospace, Consolas, monospace; text-align: center;
  padding: 10px 0; border-radius: 8px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.slots span.picked { color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent-deep); position: relative; }
.slots span.picked::before { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.slot-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* Questions: heading on the left, answers on the right, on the same grid */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding-top: 128px; }
.faq h2 { font-size: 36px; }
.faq-aside p { margin-top: 12px; color: var(--ink-3); font-size: 15px; max-width: 320px; }
.faq-aside a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .15s var(--ease); }
.faq-aside a:hover { color: var(--ink); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 500; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s var(--ease);
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 10px 1.5px no-repeat,
              linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 10px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 32px 20px 0; max-width: 600px; }
.faq summary:focus-visible, .btn:focus-visible, .play:focus-visible, .bar a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px;
}

/* For shops: a quiet panel, one secondary action */
.shops {
  margin-top: 128px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.shops > div { max-width: 560px; }
.shops h2 { font-size: 28px; margin-bottom: 8px; }
.shops p { color: var(--ink-2); }
.btn {
  display: inline-block; height: 44px; line-height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,0.06);
  text-decoration: none; font-weight: 500;
  transition: background-color .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: #2c2a27; }
.btn:active { transform: scale(0.98); }

.foot {
  margin-top: 96px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 32px;
  font-size: 13px; line-height: 1.6; color: var(--ink-3);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: start; }
.foot a { color: var(--ink-2); text-decoration: none; transition: color .15s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot p a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ---- Credits page ---- */
.credits { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter); }
.credits h1 { font-size: 36px; margin: 20px 0 12px; }
.credits > p { color: var(--ink-2); }
.credits ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.credits li { display: flex; gap: 12px; align-items: center; }
.credits li img { border-radius: 6px; flex: none; object-fit: cover; }

/* ---- Narrow ---- */
@media (max-width: 960px) {
  .how { grid-template-columns: 1fr; gap: 48px; }
  .bill { max-width: 440px; }
  .kinds { grid-template-columns: 1fr; }
  .kind-services { grid-template-columns: 1fr; }
  .slot-card { max-width: 320px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .bar nav a:not(.get) { display: none; }
  .hero { min-height: 640px; }
  .pick { --pick-top: 12%; }
  .lede { right: var(--gutter); max-width: none; }
  .lede h1 { font-size: 34px; }
  .hint { display: none; }
  .how, .kinds, .faq { padding-top: 80px; }
  .how h2 { font-size: 36px; margin-bottom: 32px; }
  .kind, .shops { padding: 24px; }
  .kind h2, .shops h2 { font-size: 24px; }
  .faq h2 { font-size: 30px; }
  .shops { margin-top: 80px; }
  .bill-paper { padding: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
