/* BRWN table service, guest app.
   Built to the approved Manus board "coffee native" (design/manus-bundle-a), 2026-09-06.
   Graphite for atmosphere, soft white for forms and the cart, oxblood as the brand
   colour, saffron only for active states and the one warm call to action.
   Display: Cormorant Garamond 600 (the free stand-in for Canela SemiBold).
   Text: Switzer (the free stand-in for Suisse Intl). Both self hosted.
   Radius 2 chips / 8 cards / 16 buttons / 24 sheets. Scale 12 14 16 20 24 32 48. */

@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('/fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --text: 'Switzer', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --oxblood: #4a171b;
  --graphite: #111111;
  --graphite-2: #1a1918;
  --graphite-3: #242321;
  --soft: #f5f1eb;
  --soft-2: #ebe6df;
  --grey: #cfc7bf;
  --grey-2: #8f8880;
  --saffron: #d4a63a;
  --green: #4fb26b;
  --red: #d9534f;

  --line-dark: rgba(245, 241, 235, 0.1);
  --line-dark-2: rgba(245, 241, 235, 0.18);
  --line-light: rgba(17, 17, 17, 0.1);
  --line-light-2: rgba(17, 17, 17, 0.2);

  --t12: 12px; --t14: 14px; --t16: 16px; --t20: 20px; --t24: 24px; --t32: 32px; --t48: 48px;
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px;
  --r-chip: 2px; --r-card: 8px; --r-btn: 16px; --r-sheet: 24px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms; --norm: 280ms;

  --shell: 100%;
  --gut: var(--s24);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color-scheme: dark; background: var(--graphite); color: var(--soft); font-family: var(--text); font-size: var(--t16); line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.shell { width: var(--shell); margin: 0 auto; min-height: 100dvh; position: relative; background: var(--graphite); }

.serif { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }
.wm { font-family: var(--display); font-weight: 600; font-size: var(--t32); letter-spacing: 0.06em; line-height: 1; }
.caps { font-size: var(--t12); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

/* ---------- icons: brand marks as files, applied as masks --------------- */
.ico { width: 18px; height: 18px; flex: 0 0 auto; display: block; background-color: currentColor;
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.ico-bean  { -webkit-mask-image: url('/img/icons/bean.svg');  mask-image: url('/img/icons/bean.svg'); }
.ico-steam { -webkit-mask-image: url('/img/icons/steam.svg'); mask-image: url('/img/icons/steam.svg'); }
.ico-cup   { -webkit-mask-image: url('/img/icons/cup.svg');   mask-image: url('/img/icons/cup.svg'); }
.ico-pour  { -webkit-mask-image: url('/img/icons/pour.svg');  mask-image: url('/img/icons/pour.svg'); }
.ico-roast { -webkit-mask-image: url('/img/icons/roast.svg'); mask-image: url('/img/icons/roast.svg'); }
.ico-copy  { -webkit-mask-image: url('/img/icons/copy.svg');  mask-image: url('/img/icons/copy.svg'); }
.ico-search{ -webkit-mask-image: url('/img/icons/search.svg');mask-image: url('/img/icons/search.svg'); }
.ico-back  { -webkit-mask-image: url('/img/icons/back.svg');  mask-image: url('/img/icons/back.svg'); }
.ico-close { -webkit-mask-image: url('/img/icons/close.svg'); mask-image: url('/img/icons/close.svg'); }
.ico-check { -webkit-mask-image: url('/img/icons/check.svg'); mask-image: url('/img/icons/check.svg'); }
.ico-bag   { -webkit-mask-image: url('/img/icons/bag.svg');   mask-image: url('/img/icons/bag.svg'); }
.ico-eye   { -webkit-mask-image: url('/img/icons/eye.svg');   mask-image: url('/img/icons/eye.svg'); }

/* ---------- views and themes ------------------------------------------- */
.view { display: none; flex-direction: column; min-height: 100dvh; padding: calc(var(--safe-t) + var(--s24)) var(--gut) calc(var(--safe-b) + var(--s24)); }
.view.on { display: flex; }
.view.light { background: var(--soft); color: var(--graphite); --grey-2: #6b645c; --grey: #7d766e; }

.fade > * { opacity: 0; transform: translateY(10px); animation: fade var(--norm) var(--out) forwards; }
.fade > *:nth-child(2) { animation-delay: 45ms; } .fade > *:nth-child(3) { animation-delay: 90ms; }
.fade > *:nth-child(4) { animation-delay: 135ms; } .fade > *:nth-child(5) { animation-delay: 180ms; } .fade > *:nth-child(6) { animation-delay: 225ms; }
@keyframes fade { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade > * { animation: none; opacity: 1; transform: none; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ---------- buttons ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s8); width: 100%; min-height: 52px; padding: 0 var(--s24);
  border-radius: var(--r-btn); font-size: var(--t16); font-weight: 500; transition: transform var(--fast) var(--out), opacity var(--fast) var(--ease); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn.saffron { background: var(--saffron); color: var(--graphite); }
.btn.soft { background: var(--soft); color: var(--graphite); }
.btn.dark { background: var(--graphite); color: var(--soft); }
.btn.ghost { color: var(--saffron); min-height: 44px; }
.light .btn.ghost { color: var(--grey-2); }

.linkback { display: inline-flex; align-items: center; gap: var(--s4); min-height: 44px; color: inherit; font-size: var(--t14); }
.linkback .ico { width: 16px; height: 16px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: var(--r-card); }
.iconbtn:active { background: var(--line-dark); }
.light .iconbtn:active { background: var(--line-light); }

.note { font-size: var(--t12); color: var(--grey-2); line-height: 1.5; display: flex; gap: var(--s8); align-items: flex-start; }
.note .ico { width: 14px; height: 14px; margin-top: 2px; }
.err { color: var(--red); font-size: var(--t12); min-height: 16px; padding-top: var(--s8); }

/* ---------- 01 welcome -------------------------------------------------- */
.welcome .head { display: flex; flex-direction: column; gap: var(--s12); }
.welcome .tag { color: var(--grey); }
.welcome .hero { margin: var(--s24) calc(var(--gut) * -1) 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite-2); position: relative; }
.welcome .hero img { width: 100%; height: 100%; object-fit: cover; }
.welcome .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--graphite)); }
.welcome .tablechip { position: absolute; top: var(--s16); right: var(--gut); padding: 6px 10px; border-radius: var(--r-chip); border: 1px solid var(--line-dark-2); color: var(--soft); font-size: var(--t12); letter-spacing: 0.12em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps { display: grid; gap: var(--s24); margin-top: var(--s24); align-content: start; }
.steps .s { display: grid; grid-template-columns: 28px 26px 1fr; gap: var(--s12); align-items: center; }
.steps .n { font-size: var(--t12); color: var(--grey-2); letter-spacing: 0.08em; }
.steps .ico { color: var(--saffron); }
.steps .t { font-size: var(--t14); line-height: 1.35; color: var(--soft); }
.steps .t small { display: block; color: var(--grey-2); font-size: var(--t12); }
.welcome .cta { margin-top: auto; padding-top: var(--s24); display: grid; gap: var(--s8); }

/* ---------- 02 phone (light) ------------------------------------------- */
.light .wm { color: var(--oxblood); }
.phone h1, .otp h1, .conn h1, .cart h1 { font-family: var(--display); font-weight: 600; font-size: var(--t32); line-height: 1.08; letter-spacing: -0.01em; }
.phone .lede, .otp .lede { margin-top: var(--s12); font-size: var(--t14); color: var(--grey-2); line-height: 1.5; max-width: 30ch; }
.field { display: flex; align-items: center; gap: var(--s12); min-height: 52px; border-bottom: 1px solid var(--line-light-2); margin-top: var(--s32); }
.field .ico { width: 16px; height: 16px; color: var(--graphite); }
.field .pfx { font-size: var(--t14); font-weight: 500; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: var(--t16); letter-spacing: 0.02em; color: var(--graphite); }
.field input::placeholder { color: var(--grey-2); }
.field:focus-within { border-bottom-color: var(--graphite); }

/* ---------- 03 code (dark), the bean cells ------------------------------ */
.beans { display: flex; gap: var(--s12); margin-top: var(--s32); }
.bean { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 0.72; }
.bean input { width: 100%; height: 100%; text-align: center; background: var(--graphite-3); color: var(--soft); border: 0; outline: none;
  font-family: var(--display); font-weight: 600; font-size: 36px;
  border-radius: 50% / 46%; box-shadow: inset 0 0 0 1px var(--line-dark-2), inset 0 -10px 22px rgba(0,0,0,.45);
  transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--out); }
.bean input:focus { box-shadow: inset 0 0 0 1.5px var(--saffron), inset 0 -10px 22px rgba(0,0,0,.45); transform: translateY(-2px); }
/* the seam that makes an oval read as a bean */
.bean::after { content: ''; position: absolute; left: 50%; top: 14%; bottom: 14%; width: 1px; border-radius: 1px;
  background: linear-gradient(180deg, transparent, var(--line-dark-2) 25%, var(--line-dark-2) 75%, transparent); transform: translateX(-50%) rotate(8deg); pointer-events: none; }
.roast { display: flex; align-items: center; margin-top: var(--s24); }
.roast .p { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s8); font-size: var(--t12); color: var(--grey-2); }
.roast .p::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--graphite-3); box-shadow: 0 0 0 1px var(--line-dark-2); }
.roast .p::after { content: ''; position: absolute; top: 3.5px; left: 8px; right: 0; height: 1px; background: var(--line-dark); }
.roast .p:last-child { flex: 0 0 auto; }
.roast .p:last-child::after { display: none; }
.roast .p.on { color: var(--saffron); }
.roast .p.on::before { background: var(--saffron); box-shadow: 0 0 0 1px var(--saffron), 0 0 12px rgba(212,166,58,.55); }
.demoflag { margin-top: var(--s16); display: flex; align-items: center; gap: var(--s12); padding: var(--s12) var(--s16); border-radius: var(--r-card); background: var(--graphite-2); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: var(--t12); color: var(--grey); }
.demoflag b { font-family: var(--display); font-size: var(--t24); letter-spacing: 0.2em; color: var(--saffron); }

/* ---------- 04 connected (dark) ---------------------------------------- */
.conn { text-align: center; }
.conn .steam { width: 64px; height: 64px; margin: var(--s24) auto 0; color: var(--grey); opacity: .9; }
.conn h1 { margin-top: var(--s16); }
.card { background: var(--graphite-2); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.light .card { background: #fff; box-shadow: inset 0 0 0 1px var(--line-light); }
.row { display: flex; align-items: center; gap: var(--s12); min-height: 52px; padding: var(--s12) var(--s16); text-align: left; }
.row + .row { box-shadow: inset 0 1px 0 var(--line-dark); }
.light .row + .row { box-shadow: inset 0 1px 0 var(--line-light); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.row .k { font-size: var(--t12); color: var(--grey-2); letter-spacing: 0.06em; text-transform: uppercase; }
.row .v { font-size: var(--t16); }
.row .ico { color: var(--grey); }
.open { display: flex; gap: var(--s12); align-items: flex-start; text-align: left; margin-top: var(--s24); font-size: var(--t14); }
.open i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; flex: 0 0 auto; box-shadow: 0 0 10px rgba(79,178,107,.6); }
.open small { display: block; color: var(--grey-2); font-size: var(--t12); margin-top: 2px; }

/* ---------- 05 menu (dark) ---------------------------------------------- */
.menu { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.menu .top { position: sticky; top: 0; z-index: 20; background: var(--graphite); padding: var(--s8) var(--gut) 0; }
.menu .titlebar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.menu .titlebar h1 { grid-column: 2; text-align: center; font-family: var(--display); font-weight: 600; font-size: var(--t32); line-height: 1; }
.menu .titlebar .iconbtn { grid-column: 3; justify-self: end; }
.menu .count { font-size: var(--t12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-2); margin-top: var(--s4); }
.menu .table { position: absolute; left: var(--gut); top: calc(var(--s8) + 14px); font-size: var(--t12); letter-spacing: 0.14em; color: var(--grey-2); }
.tabs { display: flex; gap: var(--s24); overflow-x: auto; scrollbar-width: none; margin-top: var(--s12); border-bottom: 1px solid var(--line-dark); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; position: relative; min-height: 44px; padding-bottom: var(--s12); font-size: var(--t14); color: var(--grey-2); white-space: nowrap; transition: color var(--fast) var(--ease); }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform var(--norm) var(--out); }
.tabs button[aria-current='true'] { color: var(--saffron); }
.tabs button[aria-current='true']::after { transform: scaleX(1); }
.searchbar { margin-top: var(--s12); }
.searchbox { display: flex; align-items: center; gap: var(--s8); height: 44px; padding: 0 var(--s12); background: var(--graphite-2); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--grey-2); }
.searchbox input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--soft); font-size: var(--t14); }
.searchbox .ico { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: calc(var(--safe-b) + 120px); }
.tile { position: relative; padding: 0 0 var(--s16); text-align: left; box-shadow: inset 0 -1px 0 var(--line-dark); display: flex; flex-direction: column; }
.tile:nth-child(odd) { box-shadow: inset -1px -1px 0 var(--line-dark); }
.tile .ph { aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden; background: var(--graphite-2); position: relative; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .ph .fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-dark-2); }
.tile .ph .fallback .ico { width: 30px; height: 30px; }
.tile .nm { margin: var(--s12) var(--s16) 0; font-size: var(--t14); font-weight: 500; color: var(--soft); line-height: 1.3; }
.tile .notes { margin: 3px var(--s16) 0; font-size: var(--t12); color: var(--grey-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .foot { margin-top: auto; padding: var(--s12) var(--s16) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s8); }
.tile .pr { font-size: var(--t14); font-weight: 500; }
.tile .plus { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark-2); display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--soft); transition: background var(--fast) var(--ease), transform var(--fast) var(--out); }
.tile .plus:active { transform: scale(0.92); background: var(--graphite-3); }
.tile .qty { display: inline-flex; align-items: center; height: 30px; border-radius: 15px; box-shadow: inset 0 0 0 1px var(--saffron); color: var(--soft); overflow: hidden; }
.tile .qty button { width: 28px; height: 30px; display: grid; place-items: center; font-size: 16px; color: var(--saffron); }
.tile .qty .n { min-width: 14px; text-align: center; font-size: var(--t12); font-weight: 500; }
.tile .flag { position: absolute; z-index: 2; top: var(--s8); left: var(--s8); padding: 3px 7px; border-radius: var(--r-chip); background: var(--saffron); color: var(--graphite); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.tile.out .ph img { filter: grayscale(1) brightness(.55); }
.tile.out .soldout { font-size: var(--t12); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-2); }
.empty { grid-column: 1 / -1; padding: var(--s32) var(--gut); text-align: center; color: var(--grey-2); font-size: var(--t14); }

/* ---------- sheet (dark) ------------------------------------------------ */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.7); opacity: 0; transition: opacity var(--norm) var(--ease); }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: var(--shell); max-width: 560px; transform: translate(-50%, 100%); transition: transform 420ms var(--out);
  background: var(--graphite-2); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: inset 0 1px 0 var(--line-dark-2); max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; }
.sheet.on { transform: translate(-50%, 0); }
.grabber { width: 36px; height: 3px; border-radius: 2px; background: var(--line-dark-2); margin: var(--s12) auto var(--s4); flex: 0 0 auto; }
.sheet .scroll { overflow-y: auto; padding: 0 var(--gut) var(--s16); }
.sheet .foot { flex: 0 0 auto; padding: var(--s12) var(--gut) calc(var(--s12) + var(--safe-b)); box-shadow: 0 -1px 0 var(--line-dark); display: flex; align-items: center; gap: var(--s12); }
.sheet .shot { margin: 0 calc(var(--gut) * -1) var(--s16); aspect-ratio: 4 / 3; background: var(--graphite-3); position: relative; }
.sheet .shot img { width: 100%; height: 100%; object-fit: cover; }
.sheet .shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--graphite-2)); }
.sheet h2 { font-family: var(--display); font-weight: 600; font-size: var(--t32); line-height: 1.05; }
.sheet .price { margin-top: var(--s8); font-size: var(--t16); color: var(--grey); }
.sheet .desc { margin-top: var(--s12); font-size: var(--t14); color: var(--grey-2); line-height: 1.5; }
.optgroup { margin-top: var(--s24); }
.optgroup .lbl { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--s8); }
.optgroup .lbl .t { font-size: var(--t12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.optgroup .lbl .o { font-size: var(--t12); color: var(--grey-2); }
.seg { display: flex; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line-dark-2); overflow: hidden; }
.seg button { flex: 1; min-height: 44px; font-size: var(--t14); color: var(--grey); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.seg button + button { box-shadow: inset 1px 0 0 var(--line-dark-2); }
.seg button[aria-pressed='true'] { background: var(--soft); color: var(--graphite); font-weight: 500; }
.opt { display: flex; align-items: center; gap: var(--s12); width: 100%; min-height: 50px; padding: var(--s8) 0; font-size: var(--t14); text-align: left; box-shadow: inset 0 -1px 0 var(--line-dark); }
.opt .grow { flex: 1; min-width: 0; }
.opt .plus2 { color: var(--grey-2); font-size: var(--t12); }
.opt .tick { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px var(--line-dark-2); display: grid; place-items: center; color: transparent; transition: all var(--fast) var(--ease); }
.opt .tick .ico { width: 11px; height: 11px; }
.opt[aria-pressed='true'] .tick { background: var(--saffron); box-shadow: inset 0 0 0 1px var(--saffron); color: var(--graphite); }
.qtybox { display: inline-flex; align-items: center; gap: var(--s4); height: 44px; padding: 0 var(--s8); border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line-dark-2); flex: 0 0 auto; }
.qtybox .ico { width: 14px; height: 14px; color: var(--grey-2); }
.qtybox button { width: 32px; height: 44px; display: grid; place-items: center; font-size: 18px; }
.qtybox .n { min-width: 18px; text-align: center; font-size: var(--t14); font-weight: 500; }

/* ---------- cart bar ---------------------------------------------------- */
.cartbar { position: fixed; z-index: 35; left: 50%; bottom: 0; width: var(--shell); max-width: 560px; padding: var(--s12) var(--gut) calc(var(--s12) + var(--safe-b));
  background: linear-gradient(180deg, transparent, var(--graphite) 45%); transform: translate(-50%, 130%); transition: transform 380ms var(--out); }
.cartbar.on { transform: translate(-50%, 0); }
.cartbar .btn { justify-content: space-between; }
.cartbar .c { display: flex; align-items: center; gap: var(--s8); }
.cartbar .dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(17,17,17,.14); display: grid; place-items: center; font-size: var(--t12); font-weight: 600; }

/* ---------- 06 cart (light) --------------------------------------------- */
.cart .lines { margin-top: var(--s24); }
.line { display: flex; gap: var(--s12); align-items: center; padding: var(--s12) 0; box-shadow: inset 0 -1px 0 var(--line-light); }
.line .pic { width: 44px; height: 44px; border-radius: var(--r-card); overflow: hidden; background: var(--graphite); flex: 0 0 auto; }
.line .pic img { width: 100%; height: 100%; object-fit: cover; }
.line .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.line .nm { font-size: var(--t14); font-weight: 500; }
.line .op { font-size: var(--t12); color: var(--grey-2); margin-top: 1px; }
.line .pr { font-size: var(--t14); margin-top: 2px; }
.line .q { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: var(--graphite); color: var(--soft); font-size: var(--t12); font-weight: 500; }
.stepper { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.stepper .ico { width: 13px; height: 13px; color: var(--grey-2); margin-right: 4px; }
.stepper button { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light-2); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.stepper button.fill { background: var(--graphite); color: var(--soft); box-shadow: none; }
.stepper .n { min-width: 18px; text-align: center; font-size: var(--t14); font-weight: 500; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s24) 0 var(--s16); }
.total .k { font-size: var(--t16); }
.total .v { font-family: var(--display); font-weight: 600; font-size: var(--t24); }
.pays { display: flex; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line-light-2); overflow: hidden; }
.pay { flex: 1; min-height: 46px; font-size: var(--t14); color: var(--graphite); transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.pay + .pay { box-shadow: inset 1px 0 0 var(--line-light-2); }
.pay[aria-pressed='true'] { background: var(--graphite); color: var(--soft); font-weight: 500; }
.cart .btn.dark { margin-top: var(--s16); }
.cart .note { margin-top: var(--s16); }

/* ---------- 07 live order (dark) ---------------------------------------- */
.live { text-align: center; }
.live .code { font-family: var(--display); font-weight: 600; font-size: 72px; line-height: 1; margin-top: var(--s32); letter-spacing: -0.02em; }
.live .state { font-family: var(--display); font-weight: 600; font-size: var(--t24); margin-top: var(--s12); color: var(--grey); }
.track { position: relative; margin: var(--s32) var(--s8) 0; display: flex; justify-content: space-between; }
.track::before { content: ''; position: absolute; left: 6px; right: 6px; top: 5px; height: 0; border-top: 1px dashed var(--line-dark-2); }
.track .st { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s8); font-size: var(--t12); color: var(--grey-2); width: 33%; }
.track .st i { width: 11px; height: 11px; border-radius: 50%; background: var(--graphite); box-shadow: inset 0 0 0 1px var(--line-dark-2); display: block; }
.track .st.done i { background: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.track .st.now { color: var(--soft); }
.track .st.now i { background: var(--saffron); box-shadow: 0 0 0 1px var(--saffron), 0 0 14px rgba(212,166,58,.6); }
.track .st .ico { width: 18px; height: 18px; color: var(--saffron); position: absolute; top: -26px; }
.paycard { --grey-2: #6b645c; margin: var(--s32) auto 0; width: min(100%, 300px); background: var(--soft); color: var(--graphite); border-radius: var(--r-card); padding: var(--s24) var(--s24) var(--s16); }
.paycard .k { font-size: var(--t12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-2); }
.paycard .amt { font-family: var(--display); font-weight: 600; font-size: var(--t48); line-height: 1; margin-top: var(--s4); }
.paycard .s { font-size: var(--t12); color: var(--grey-2); margin-top: var(--s4); }
.paycard .qr { width: 168px; height: 168px; margin: var(--s16) auto 0; background: #fff; padding: var(--s8); border-radius: var(--r-card); }
.paycard .qr canvas, .paycard .qr img { width: 100% !important; height: 100% !important; display: block; }
.paycard .upi { margin-top: var(--s12); font-size: var(--t12); letter-spacing: 0.2em; font-weight: 600; color: var(--grey-2); }
.live .items { margin-top: var(--s24); text-align: left; }
.live .items .line { box-shadow: inset 0 -1px 0 var(--line-dark); }
.livedot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t12); color: var(--grey-2); }
.livedot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--safe-b) + 96px); transform: translate(-50%, 14px); opacity: 0; padding: var(--s12) var(--s24); border-radius: var(--r-btn);
  background: var(--soft); color: var(--graphite); font-size: var(--t14); font-weight: 500; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--out); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet and desktop, a phone on a graphite field ------------- */
@media (min-width: 760px) {
  :root { --shell: 400px; }
  body { background: #0a0a0a; padding: var(--s32) 0; display: grid; place-items: start center; min-height: 100dvh; }
  .shell { border-radius: 40px; overflow: hidden; box-shadow: 0 0 0 1px rgba(245,241,235,.08), 0 50px 100px -50px #000; min-height: min(900px, calc(100dvh - 64px)); }
}

/* the real wordmark, cream on graphite and oxblood on soft white */
.wm-img { display: block; height: 40px; width: auto; max-width: 62%; object-fit: contain; object-position: left center; align-self: flex-start; flex: 0 0 auto; }
.wm-img.sm { height: 26px; }

/* ======================================================================
   Premium pass. Nothing new, everything finer: material on the graphite,
   optical type, deeper beans, softer motion, considered press states.
   ====================================================================== */

/* the graphite is not flat black: a whisper of warm light from the top left and a vignette */
.view:not(.light) { background-color: var(--graphite); background-image:
  radial-gradient(120% 80% at 18% 0%, rgba(212, 166, 58, 0.06), transparent 55%),
  radial-gradient(100% 70% at 50% 110%, rgba(0, 0, 0, 0.55), transparent 70%),
  linear-gradient(var(--graphite), var(--graphite)); }
.view.light { background-color: var(--soft); background-image: radial-gradient(110% 70% at 50% 0%, #fbf8f3, var(--soft) 70%); }

/* serif headlines get their optical setting: tighter, a touch heavier, ligatures on */
h1, .sheet h2, .live .code, .total .v, .paycard .amt, .menu .titlebar h1 {
  font-feature-settings: "liga", "kern", "dlig"; text-rendering: optimizeLegibility; letter-spacing: -0.015em; }
.caps, .row .k, .paycard .k, .menu .count, .menu .table { font-feature-settings: "kern", "cpsp"; }

/* photographs sit in the room: a soft vignette so the studio cream reads as light, not a sticker */
.tile .ph::after, .sheet .shot::before, .line .pic::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245, 241, 235, 0.06), inset 0 -40px 60px -30px rgba(17, 17, 17, 0.55); }
.line .pic { position: relative; }
.tile .ph img { transition: transform 700ms var(--out); }
.tile:active .ph img { transform: scale(1.03); }

/* tiles reveal in sequence as a section paints */
.tile { animation: rise 520ms var(--out) both; }
.tile:nth-child(1) { animation-delay: 0ms } .tile:nth-child(2) { animation-delay: 50ms } .tile:nth-child(3) { animation-delay: 100ms }
.tile:nth-child(4) { animation-delay: 150ms } .tile:nth-child(5) { animation-delay: 200ms } .tile:nth-child(6) { animation-delay: 250ms }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* beans with body: a highlight on the shoulder, depth in the cleft */
.bean input { background-color: var(--graphite-3); background-image: radial-gradient(80% 60% at 35% 25%, #2e2c29, var(--graphite-3) 60%, #1b1a18); }
.bean::before { content: ''; position: absolute; inset: 0; border-radius: 50% / 46%; pointer-events: none;
  box-shadow: inset 6px 8px 14px rgba(255, 255, 255, 0.045), inset -6px -10px 18px rgba(0, 0, 0, 0.5); }
.bean input:focus { background-image: radial-gradient(80% 60% at 35% 25%, #343129, #292622 60%, #1e1c19); }

/* the one warm button carries its own light */
.btn.saffron { background-color: var(--saffron); background-image: linear-gradient(180deg, #dcb04a, var(--saffron)); box-shadow: 0 10px 26px -14px rgba(212, 166, 58, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.soft { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 #fff; }
.btn.dark { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6); }
.btn { transition: transform 220ms var(--out), box-shadow 220ms var(--ease), opacity var(--fast) var(--ease); }
.btn:active { transform: scale(0.98) translateY(1px); }

/* hairlines glow faintly where they meet the light */
.tabs { border-bottom-color: rgba(245, 241, 235, 0.08); }
.tabs button[aria-current='true']::after { box-shadow: 0 0 10px rgba(212, 166, 58, 0.55); }

/* the welcome hero bleeds into the room with a longer, softer falloff */
.welcome .hero::after { background: linear-gradient(180deg, rgba(17,17,17,0.15) 0%, transparent 30%, transparent 50%, var(--graphite) 100%); }
.welcome .hero img { filter: saturate(1.05) contrast(1.03); }

/* the pay card on the live screen is paper, not plastic */
.paycard { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 #fff; background-color: var(--soft); background-image: linear-gradient(180deg, #fbf8f3, var(--soft)); }
.paycard .qr { box-shadow: inset 0 0 0 1px var(--line-light); }

/* the sheet lifts off the menu rather than sliding on top of it */
.sheet { box-shadow: inset 0 1px 0 var(--line-dark-2), 0 -30px 80px -30px rgba(0, 0, 0, 0.9); }
.scrim { backdrop-filter: blur(6px) saturate(90%); -webkit-backdrop-filter: blur(6px) saturate(90%); }

@media (prefers-reduced-motion: reduce) { .tile { animation: none; } .tile .ph img { transition: none; } }

/* ---------- welcome: the photograph is the screen ----------------------- */
/* The wordmark used to sit in its own band above the picture, which read as a
   separate grey layer. It now sits on the photograph and the photograph is big. */
.welcome { padding-top: 0; padding-left: 0; padding-right: 0; }
.welcome .hero { margin: 0; aspect-ratio: auto; flex: 1 1 auto; min-height: 52dvh; }
.welcome .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome .hero::after { background: linear-gradient(180deg, rgba(17,17,17,.72) 0%, rgba(17,17,17,.15) 30%, transparent 52%, var(--graphite) 100%); }
.welcome .hero .head { position: absolute; align-items: flex-start; z-index: 2; top: calc(var(--safe-t) + var(--s24)); left: var(--gut); right: var(--gut); display: flex; flex-direction: column; gap: var(--s12); }
.welcome .hero .tablechip { top: calc(var(--safe-t) + var(--s24)); right: var(--gut); }
.welcome .steps, .welcome .cta, .welcome > .fade > .note { padding-left: var(--gut); padding-right: var(--gut); }
.welcome .steps { margin-top: var(--s24); }
.welcome .cta { padding-bottom: 0; }

/* ---------- the Google review ask on the confirmation ------------------- */
.review { margin-top: var(--s24); padding: var(--s24); border-radius: var(--r-card); background: var(--graphite-2); box-shadow: inset 0 0 0 1px var(--line-dark); text-align: center; animation: fade 420ms var(--out) both; }
.review .stars { display: block; height: 18px; margin: 0 auto var(--s12); width: 108px; color: var(--saffron);
  -webkit-mask: url('/img/icons/stars.svg') no-repeat center / contain; mask: url('/img/icons/stars.svg') no-repeat center / contain; background-color: currentColor; }
.review .rt { font-family: var(--display); font-weight: 600; font-size: var(--t24); }
.review .rs { margin-top: var(--s4); font-size: var(--t12); color: var(--grey-2); line-height: 1.5; }
.review .btn { margin-top: var(--s16); }
.review .btn.ghost { margin-top: var(--s4); color: var(--grey-2); }

/* the menu title bar carries a back control on the left */
.menu .titlebar #back-from-menu { grid-column: 1; justify-self: start; }
