@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-latin-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-latin-wght-italic.woff2) format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(fonts/space-grotesk-latin-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Anton'; src: url(fonts/anton-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
    --bg: #f4ede3; --surface: #fbf7f1; --ink: #2b1b1d; --ink-soft: #6c5a57; --line: #e4d8ca;
    --accent: #7e1f2d; --on-accent: #fbf1e9; --accent-soft: #f1dcd8; --muted-tile: #ecdfd2; --tag: #5d6b3a;
    --display: 'Cormorant', Georgia, serif; --body: 'Manrope', system-ui, sans-serif;
    --display-style: italic; --display-weight: 500; --display-case: none; --display-track: -0.01em;
    --radius: 18px; --btn-radius: 999px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: var(--body); color: var(--ink); -webkit-font-smoothing: antialiased;
    background: color-mix(in oklab, var(--bg) 82%, var(--ink) 18%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); }

/* ribbon */
.ribbon {
    position: fixed; right: 12px; bottom: 12px; z-index: 50;
    font: 600 11px/1 'Manrope', system-ui, sans-serif; letter-spacing: .04em;
    color: #f7f2ea; background: rgba(20, 18, 18, .78); padding: 7px 10px; border-radius: 999px; text-decoration: none;
}
.ribbon:hover { background: #141212; }
body.embed .ribbon { display: none; }

/* desktop stage */
.stage {
    min-height: 100vh; display: grid; grid-template-columns: minmax(0, 470px) auto; justify-content: center; align-items: center;
    gap: clamp(40px, 7vw, 120px); padding: 40px 48px;
    background:
        radial-gradient(1200px 700px at 85% 40%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
        color-mix(in oklab, var(--bg) 86%, var(--ink) 14%);
}
.context { color: var(--ink); max-width: 470px; }
.ctx-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 44px; }
.ctx-mark { width: 44px; height: 44px; color: var(--accent); display: block; }
.ctx-mark svg, .bar-mark svg { width: 100%; height: 100%; display: block; }
.ctx-name { margin: 0; font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 26px; line-height: 1; }
.ctx-place { margin: 4px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.ctx-title { font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); font-size: clamp(40px, 4vw, 58px); line-height: 1.02; margin: 0 0 18px; }
.ctx-lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 30px; max-width: 34em; }
.ctx-card {
    display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px 20px 16px 16px; width: max-content; max-width: 100%;
    box-shadow: 0 18px 40px -26px rgba(30, 10, 10, .45); transform: rotate(-1.2deg);
}
.qr { width: 84px; height: 84px; color: var(--ink); flex: none; }
.ctx-card-eyebrow { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.ctx-card-title { margin: 4px 0 2px; font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 26px; line-height: 1.05; }
.ctx-card-sub { margin: 0; font-size: 13px; color: var(--ink-soft); }
.ctx-steps { list-style: none; padding: 0; margin: 32px 0 34px; display: grid; gap: 12px; font-size: 14.5px; }
.ctx-steps li { display: flex; gap: 12px; align-items: center; }
.ctx-steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); flex: none; }
.ctx-powered { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--ink-soft); }
.m-dot { width: 9px; height: 9px; background: #ff5c39; display: inline-block; }
.m-word { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; color: #0f1b2d; }
.ctx-powered-sub { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; }

.device {
    width: 404px; height: min(836px, calc(100vh - 80px)); min-height: 640px; padding: 12px; border-radius: 54px;
    background: #121010; box-shadow: 0 0 0 1px #2c2626, 0 50px 90px -40px rgba(20, 5, 5, .7), inset 0 0 0 2px #2a2424;
    position: relative;
}
.device::before { content: ''; position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); background: #121010; border-radius: 20px; z-index: 30; }
.app {
    position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px;
    background: var(--bg); display: flex; flex-direction: column;
}
.device .bar { padding-top: 54px; }

/* phone / embed: the app is the page */
@media (max-width: 760px) {
    .stage { display: block; padding: 0; min-height: 0; }
    .context { display: none; }
    .device { width: 100%; height: 100dvh; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
    .device::before { display: none; }
    .app { border-radius: 0; }
    .device .bar { padding-top: 10px; }
}
body.embed .stage { display: block; padding: 0; min-height: 0; background: var(--bg); }
body.embed .context { display: none; }
body.embed .device { width: 100%; height: 100vh; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
body.embed .device::before { display: none; }
body.embed .app { border-radius: 0; }
body.embed .device .bar { padding-top: 30px; }

/* app bar */
.bar {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); flex: none; z-index: 5;
}
.bar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.bar-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.bar-name { font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; flex: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.badge.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.lang { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; height: 38px; padding: 0 6px 0 10px; position: relative; flex: none; }
.lang svg { width: 16px; height: 16px; color: var(--ink-soft); }
.lang select { appearance: none; border: 0; background: transparent; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 4px; height: 100%; }

.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; overscroll-behavior: contain; padding-bottom: 110px; outline: none; }
.scroll::-webkit-scrollbar { width: 0; }

/* menu */
.hello { padding: 26px 20px 18px; }
.eyebrow { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin: 0 0 10px; }
.hello h1 { margin: 0; font-size: 38px; line-height: 1.02; }
.hello p.sub { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.chips { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.section { padding: 22px 20px 4px; scroll-margin-top: 62px; }
.section h2 { font-size: 26px; margin: 0 0 6px; }
.item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.item:last-child { border-bottom: 0; }
.thumb { width: 78px; height: 78px; border-radius: calc(var(--radius) * .7); overflow: hidden; background: var(--muted-tile); display: grid; place-items: center; border: 0; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ini { font-family: var(--display); font-style: var(--display-style); font-size: 30px; color: var(--ink-soft); opacity: .7; }
.item-main { min-width: 0; }
.item-top { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.item-name { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; font-size: 15px; line-height: 1.3; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.item-desc { margin: 4px 0 8px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tags { display: flex; gap: 5px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; color: var(--tag); background: color-mix(in oklab, var(--tag) 13%, transparent); }
.add { border: 1px solid var(--ink); background: transparent; border-radius: var(--btn-radius); padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 5px; align-items: center; transition: background .2s, color .2s; }
.add:hover { background: var(--ink); color: var(--bg); }
.add.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.foot-note { text-align: center; padding: 26px 20px 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* tray bar */
.traybar {
    position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 6; border: 0; border-radius: var(--btn-radius);
    background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px; font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--accent) 80%, black);
    animation: rise .4s var(--ease);
}
.traybar .tb-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: color-mix(in oklab, var(--on-accent) 22%, transparent); margin-right: 10px; font-size: 12.5px; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }

/* sheet */
.scrim { position: absolute; inset: 0; background: rgba(20, 10, 10, .42); z-index: 10; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 90%; overflow-y: auto;
    background: var(--surface); border-radius: calc(var(--radius) + 8px) calc(var(--radius) + 8px) 0 0;
    animation: up .38s var(--ease);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet-img { height: 220px; background: var(--muted-tile); position: relative; }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-img .ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-style: var(--display-style); font-size: 80px; color: var(--ink-soft); opacity: .5; }
.sheet-close { position: absolute; top: 12px; right: 12px; }
.sheet-body { padding: 20px 20px 22px; }
.sheet-body h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.04; }
.sheet-body p.desc { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.field-label { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; }
textarea, .input, .select { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: calc(var(--radius) * .7); padding: 11px 14px; font-size: 14px; }
textarea { resize: none; height: 64px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; padding: 0; font-size: 18px; line-height: 1; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.primary { width: 100%; border: 0; border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); padding: 16px 20px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.primary.center { justify-content: center; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.ghost { width: 100%; border: 1px solid var(--ink); background: transparent; border-radius: var(--btn-radius); padding: 13px 18px; font-weight: 700; font-size: 14px; }

/* cart */
.page { padding: 24px 20px; }
.page h1 { margin: 0 0 4px; font-size: 40px; line-height: 1.02; }
.page .lede { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 54px; height: 54px; }
.line .thumb .ini { font-size: 22px; }
.line-name { font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.line .stepper { gap: 8px; }
.line .stepper button { width: 28px; height: 28px; font-size: 15px; }
.line-note { font-size: 12px; color: var(--ink-soft); font-style: italic; margin: 4px 0 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row + .row { margin-top: 14px; }
.hint { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.room-input { display: flex; align-items: center; gap: 10px; }
.room-input .input { width: 110px; font-size: 20px; font-weight: 700; letter-spacing: .06em; text-align: center; font-variant-numeric: tabular-nums; }
.room-input .input[aria-invalid="true"] { border-color: #b3261e; }
.billed { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.billed svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.subtotal { font-family: var(--display); font-style: var(--display-style); font-weight: var(--display-weight); font-size: 30px; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); }

/* tracking */
.status h1 { font-size: 46px; margin: 0 0 6px; }
.status .lede { min-height: 2.9em; }
.eta { display: inline-flex; gap: 8px; align-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.eta svg { width: 15px; height: 15px; }
.steps { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; top: 11px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.steps .fill { position: absolute; top: 11px; left: 10%; height: 2px; background: var(--accent); transition: width .8s var(--ease); }
.steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .4s, border-color .4s; z-index: 1; }
.steps .dot svg { width: 12px; height: 12px; color: var(--on-accent); opacity: 0; }
.steps li.done .dot { background: var(--accent); border-color: var(--accent); }
.steps li.done .dot svg { opacity: 1; }
.steps li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 18%, transparent); animation: pulse 1.6s infinite; }
.steps li.now { color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--accent) 6%, transparent); } }
.ord-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; }
.ord-line span:first-child { min-width: 0; }
.ord-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kv dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 4px; }
.kv dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.thanks { font-size: 28px; line-height: 1.1; margin: 6px 0 14px; }

.toast { position: absolute; left: 50%; bottom: 86px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 20; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.view-in { animation: viewin .4s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateX(14px); } }

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

[hidden] { display: none !important; }
@media (max-width: 760px) {
    body:not(.embed) .traybar { bottom: 46px; }
    body:not(.embed) .scroll { padding-bottom: 140px; }
    body:not(.embed) .ribbon { left: 50%; right: auto; transform: translateX(-50%); bottom: 10px; }
    body:not(.embed) .toast { bottom: 116px; }
}
@media (max-width: 760px) { body:not(.embed) .sheet-body { padding-bottom: 52px; } }
