/* eMenu, direction A: The Check Presenter.
   World: grained teal leather, cream receipt paper, hot-foil brass, brand teal stitching.
   Display: Bricolage Grotesque. Body/UI: Lexend (brand). Printed lines: Courier Prime. */

@font-face { font-family: "Dubai"; src: url("../assets/fonts/DubaiW23-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dubai"; src: url("../assets/fonts/DubaiW23-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --leather: #0B3B37;
  --leather-deep: #062B29;
  --leather-light: #12504A;
  --leather-edge: #04201E;
  --cream: #F3EBDD;
  --cream-2: #E7DDC9;
  --cream-3: #D8CCB3;
  --thermal: #FAF7F0;
  --ink: #1E1A15;
  --ink-2: #5A5248;
  --ink-3: #6B6257;
  --on-leather: #F3EBDD;
  --on-leather-2: #B9CFC9;
  --on-leather-3: #A3C2BB;
  --teal: #0BB5A8;
  --teal-ink: #0A9F94;
  --teal-deep: #077F76;
  --teal-ui: #087068;
  --foil-1: #FFE08A;
  --foil-2: #FFB300;
  --foil-3: #B8860B;
  --foil-ink: #2A1E00;
  --stitch: rgba(11, 181, 168, 0.42);
  --leather-photo: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='l' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.085' numOctaves='4' seed='11' stitchTiles='stitch' result='t'/><feDiffuseLighting in='t' surfaceScale='3.2' diffuseConstant='0.9' lighting-color='%23868686'><feDistantLight azimuth='40' elevation='46'/></feDiffuseLighting></filter><rect width='100%25' height='100%25' filter='url(%23l)'/></svg>");

  --font-display: "Bricolage Grotesque", "Lexend", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-receipt: "Courier Prime", "Courier New", Courier, monospace;
  --font-arabic: "Dubai", "Lexend", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 14px;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.9 0.35' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
}

/* ---------- reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-leather);
  background: var(--leather-deep);
  overflow-x: clip;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 600; }

::selection { background: var(--foil-2); color: var(--foil-ink); }
:focus-visible { outline: 2px solid var(--foil-2); outline-offset: 4px; border-radius: 4px; }
html { scrollbar-color: var(--teal) var(--leather-edge); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--leather-edge); }
::-webkit-scrollbar-thumb { background: var(--teal-deep); border-radius: 10px; border: 2px solid var(--leather-edge); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--foil-2); color: var(--foil-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- leather ground ---------- */
.leather-ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(90% 70% at 85% 100%, rgba(0,0,0,0.35), transparent 60%),
    linear-gradient(160deg, var(--leather-light) 0%, var(--leather) 45%, var(--leather-deep) 100%);
}
.leather-ground::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); background-size: 240px 240px;
  mix-blend-mode: overlay; opacity: 0.7;
}
.leather-ground::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--leather-photo); background-size: 420px 420px;
  mix-blend-mode: overlay; opacity: 0.55;
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wdth" 100;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-wrap: balance;
}
.display em { font-style: normal; font-weight: 500; color: var(--on-leather-2); }
h2.display { font-size: clamp(38px, 5.2vw, 72px); }
h3.display { font-size: clamp(26px, 3vw, 40px); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--on-leather-2); max-width: var(--measure); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; }
.caps { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

/* foil: hot-stamped brass. Used for the tagline, the TABLE 12 stamps, the crest, and PAID. */
.foil {
  background-image: linear-gradient(112deg, var(--foil-3) 0%, var(--foil-2) 30%, var(--foil-1) 48%, var(--foil-2) 62%, var(--foil-3) 100%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.08);
  transition: background-position 1.4s var(--ease-out);
}
.foil.is-lit, a:hover > .foil { background-position: 0% 0; }

.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-receipt); font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  color: var(--foil-ink); line-height: 1;
  padding: 7px 10px 6px; border-radius: 4px;
  background: linear-gradient(115deg, var(--foil-3) 0%, var(--foil-2) 28%, var(--foil-1) 50%, var(--foil-2) 70%, var(--foil-3) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 4px -1px rgba(0,0,0,0.45);
  white-space: nowrap;
}
.stamp--ghost { position: absolute; opacity: 0; transform: scale(1.35); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--foil {
  color: var(--foil-ink);
  background: linear-gradient(115deg, var(--foil-3) 0%, var(--foil-2) 30%, var(--foil-1) 50%, var(--foil-2) 70%, var(--foil-3) 100%);
  background-size: 200% 100%; background-position: 100% 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.2), 0 12px 24px -10px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.25);
  transition: background-position 900ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.btn--foil:hover { background-position: 0% 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(0,0,0,0.2), 0 18px 30px -12px rgba(0,0,0,0.65), 0 2px 4px rgba(0,0,0,0.25); transform: translateY(-1px); }
.btn--stitch {
  color: var(--on-leather); border: 1px dashed var(--stitch);
  background: rgba(11,181,168,0.04);
}
.btn--stitch:hover { border-color: rgba(11,181,168,0.8); background: rgba(11,181,168,0.12); }
.btn--paper { color: var(--cream); background: var(--leather); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.5); }
.btn--paper:hover { background: var(--leather-light); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.link { color: var(--on-leather); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color 150ms; }
.link:hover { text-decoration-color: var(--foil-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.nav.is-scrolled { background: rgba(6,43,41,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(11,181,168,0.25), 0 12px 30px -20px rgba(0,0,0,0.7); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--on-leather-2); transition: color 150ms; }
.nav__links a:hover { color: var(--on-leather); }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; border: 1px dashed var(--stitch); }
.nav__burger svg { width: 22px; height: 22px; }
.nav__burger .ic-close { display: none; }
.nav.is-open .nav__burger .ic-menu { display: none; }
.nav.is-open .nav__burger .ic-close { display: block; }

@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 0; background: var(--leather-deep); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease-out); z-index: -1; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a { font-family: var(--font-display); font-size: 34px; color: var(--on-leather); }
  .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-open { background: var(--leather-deep); }
}

/* ---------- the folder (pinned hero) ---------- */
.folder {
  position: relative; min-height: 100svh; height: 100svh;
  display: grid; grid-template-columns: 44fr 28px 56fr;
  padding: 0;
}
.leaf { position: relative; padding: calc(64px + 4vh) var(--gutter) 5vh; }
.leaf::after {
  content: ""; position: absolute; inset: 18px; border: 1px dashed var(--stitch); border-radius: 12px; pointer-events: none;
}
.leaf--left::after { inset: 74px 12px 18px 18px; }
.leaf--right::after { inset: 74px 18px 18px 12px; }
.spine {
  position: relative; margin-top: 68px; background: linear-gradient(90deg, rgba(0,0,0,0.42), rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0.42));
}
.spine::before, .spine::after { content: ""; position: absolute; top: 74px; bottom: 18px; width: 0; border-left: 1px dashed var(--stitch); }
.spine::before { left: 7px; } .spine::after { right: 7px; }

.leaf--left { display: grid; grid-template-rows: 1fr auto; align-content: center; }
.copy-stack { position: relative; display: grid; align-content: center; min-height: 60vh; }
.copy-stack > * { grid-area: 1 / 1; }
.hero-copy { max-width: 540px; }
.hero-copy h1 { font-size: clamp(44px, 5.2vw, 80px); }
.hero-copy h1 .line { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { margin-top: 22px; font-size: 14px; color: var(--on-leather-3); max-width: 46ch; letter-spacing: 0.01em; }
.hero-proof b { color: var(--on-leather-2); font-weight: 500; }

.caption { max-width: 460px; opacity: 0; visibility: hidden; justify-self: center; align-self: center; text-align: center; width: 100%; }
.caption h2 { font-size: clamp(34px, 3.6vw, 56px); }
.caption p { margin-top: 18px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--on-leather-2); }
.caption .stamp { margin-top: 20px; }

.beatnav { display: flex; gap: 6px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--stitch); }
.beatnav button { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-leather-3); padding: 8px 10px; border-radius: 6px; transition: color 180ms, background-color 180ms; }
.beatnav button.is-active { color: var(--foil-2); }
.beatnav button:hover { color: var(--on-leather); background: rgba(11,181,168,0.1); }
.beatnav .sep { width: 18px; height: 0; border-top: 1px dashed var(--stitch); }

/* scene */
.leaf--right { display: grid; place-items: center; }
.scene {
  position: relative; width: min(100%, 86vh, 720px); aspect-ratio: 1 / 1.06;
}

/* paper */
.paper {
  position: relative; background: var(--cream); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 18px 36px -18px rgba(0,0,0,0.75), 0 4px 10px -4px rgba(0,0,0,0.5);
}
.paper::before { content: ""; position: absolute; inset: 0; background-image: var(--fiber); background-size: 180px; mix-blend-mode: multiply; opacity: 0.35; pointer-events: none; }

.qrcard {
  position: absolute; left: 4%; top: 5%; width: 32%; z-index: 10;
  padding: 7% 5% 5%; border-radius: 6px; text-align: center;
  transform: rotate(-5deg);
}
.qrcard .crest { font-family: var(--font-display); font-weight: 600; font-size: clamp(12px, 1.9cqw, 18px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.qrcard .crest small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 3px; }
.qrcard .qr { position: relative; margin: 9% auto 7%; width: 76%; }
.qrcard .qr img { width: 100%; height: auto; }
.qrcard .qr .lock { position: absolute; inset: -8%; opacity: 0; }
.qrcard .qr .lock span { position: absolute; width: 22%; height: 22%; border: 2.5px solid var(--teal); }
.qrcard .qr .lock span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.qrcard .qr .lock span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.qrcard .qr .lock span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.qrcard .qr .lock span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.qrcard .beam { position: absolute; left: -6%; right: -6%; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--teal) 30%, var(--foil-1) 50%, var(--teal) 70%, transparent); box-shadow: 0 0 14px 3px rgba(11,181,168,0.55); opacity: 0; }
.qrcard .scan-hint { white-space: nowrap; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.qrcard .slot { position: relative; display: flex; justify-content: center; margin-top: 8%; height: 26px; }
.qrcard .slot .stamp--ghost { position: relative; }

/* receipt */

/* kitchen ticket */

/* phone */
.phone {
  position: absolute; left: 26%; top: 8%; width: 44%; z-index: 20;
  aspect-ratio: 9 / 19; border-radius: 12% / 5.7%;
  background: #0E1414; padding: 2.6%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 40px 70px -30px rgba(0,0,0,0.85), 0 14px 26px -12px rgba(0,0,0,0.6);
  container-type: inline-size;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 4.2%; width: 30%; height: 3.1%; transform: translateX(-50%); background: #0E1414; border-radius: 999px; z-index: 5; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 9.4% / 4.5%; overflow: hidden; background: #F4EFE6; isolation: isolate; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: var(--font-body); color: #1E1A15; opacity: 0; visibility: hidden; }
.screen.is-on { opacity: 1; visibility: visible; }
.screen__bar { display: flex; align-items: center; justify-content: space-between; padding: 12cqw 5cqw 3cqw; font-size: 4.2cqw; font-weight: 500; }
.screen__bar svg { width: 6cqw; height: 6cqw; }
.screen__bar .title { font-family: var(--font-display); font-weight: 800; font-size: 5cqw; letter-spacing: 0.1em; text-transform: uppercase; }
.tchip { display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.4cqw 2.6cqw; border-radius: 999px; background: #0B3B37; color: #F3EBDD; font-size: 3.2cqw; font-weight: 500; letter-spacing: 0.04em; }
.tchip i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--foil-2); }

/* camera screen */

/* menu screen (Zoi-styled, illustrative) */
.screen--menu { background: #F4EFE6; }
.screen--menu .cats { display: flex; gap: 2cqw; padding: 0 5cqw; overflow: hidden; }
.screen--menu .cats span { flex: none; padding: 1.8cqw 3.4cqw; border-radius: 999px; font-size: 3.3cqw; font-weight: 500; background: #E9E1D3; color: #4B4238; }
.screen--menu .cats span.on { background: #1E1A15; color: #F4EFE6; }
.dish { position: relative; display: grid; grid-template-columns: 22cqw 1fr auto; gap: 3cqw; align-items: center; padding: 3.2cqw 5cqw; }
.dish + .dish { border-top: 1px solid rgba(30,26,21,0.08); }
.dish .pic { width: 22cqw; aspect-ratio: 1; border-radius: 3cqw; background: #D8CCB3 center / cover no-repeat; overflow: hidden; }
.dish .pic img { width: 100%; height: 100%; object-fit: cover; }
.dish .name { font-size: 3.8cqw; font-weight: 500; line-height: 1.2; }
.dish .desc { font-size: 2.9cqw; color: #6B6257; margin-top: 0.8cqw; line-height: 1.3; }
.dish .price { font-size: 3.3cqw; font-weight: 500; margin-top: 1.4cqw; font-variant-numeric: tabular-nums; }
.dish .add { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; display: grid; place-items: center; background: #0BB5A8; color: #fff; box-shadow: 0 4px 10px -4px rgba(11,181,168,0.8); }
.dish .add svg { width: 4.6cqw; height: 4.6cqw; }
.dish .tap { position: absolute; right: 5cqw; top: 50%; width: 8.6cqw; height: 8.6cqw; margin-top: -4.3cqw; border-radius: 50%; border: 2px solid var(--foil-2); opacity: 0; transform: scale(0.6); pointer-events: none; }
.dish.is-added .add { background: #1E1A15; }
.cartbar { margin-top: auto; margin: auto 4cqw 4cqw; display: flex; align-items: center; justify-content: space-between; padding: 3cqw 3cqw 3cqw 4cqw; border-radius: 4cqw; background: #0B3B37; color: #F3EBDD; font-size: 3.4cqw; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6); opacity: 0; transform: translateY(20%); }
.cartbar b { font-weight: 600; }
.cartbar .go { padding: 2cqw 3.6cqw; border-radius: 999px; background: #087068; color: #fff; font-weight: 600; font-size: 3.2cqw; }

/* cart screen */

/* pay sheet */
.screen--pay { background: #F4EFE6; }

/* paid screen */
.screen--paid { background: #F4EFE6; align-items: center; justify-content: center; text-align: center; padding: 8cqw; gap: 2.4cqw; }
.screen--paid .check { width: 24cqw; height: 24cqw; border-radius: 50%; background: #0BB5A8; display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(11,181,168,0.9); }
.screen--paid .check svg { width: 12cqw; height: 12cqw; }
.screen--paid .check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.screen--paid .thanks { font-family: var(--font-display); font-weight: 800; font-size: 6.4cqw; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 3cqw; }
.screen--paid .thanks small { display: block; font-family: var(--font-body); font-size: 3.2cqw; letter-spacing: 0; text-transform: none; color: #6B6257; margin-top: 1cqw; }
.screen--paid .order { font-family: var(--font-receipt); font-size: 4cqw; font-weight: 700; letter-spacing: 0.1em; margin-top: 2cqw; }
.screen--paid .slot { position: relative; display: flex; justify-content: center; height: 30px; margin-top: 2cqw; }
.screen--paid .slot .stamp--ghost { position: relative; }
.screen--paid .date { font-size: 3cqw; color: #6B6257; }

/* ---------- section scaffolding ---------- */
.section { position: relative; padding: var(--section) var(--gutter); }
.wrap { width: min(1200px, 100%); margin-inline: auto; }
.section-head { display: grid; gap: 22px; max-width: 760px; }
.section-head .lede { margin-top: 4px; }
.stitch-rule { height: 0; border-top: 1px dashed var(--stitch); }

/* clients */
.clients { padding-top: clamp(64px, 8vw, 110px); }
.clients .section-head { text-align: center; margin-inline: auto; justify-items: center; }
.marquee { position: relative; margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: clamp(40px, 6vw, 96px); width: max-content; align-items: center; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 54px; width: auto; max-width: 180px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.72; transition: opacity 200ms; }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients .proof { margin-top: 36px; text-align: center; color: var(--on-leather-2); font-size: 15px; }
.clients .proof b { font-family: var(--font-display); font-weight: 700; font-size: 1.3em; color: var(--on-leather); }

/* outcomes: the bill of benefits */
.outcomes .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.bill {
  width: min(100%, 440px); margin-inline: auto; padding: 34px 30px 30px;
  font-family: var(--font-receipt); font-size: 14px; line-height: 1.55; color: var(--ink);
  transform: rotate(1.2deg);
}
.bill::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 9px; background: linear-gradient(-45deg, transparent 6px, var(--cream) 6px) 0 0 / 12px 100%, linear-gradient(45deg, transparent 6px, var(--cream) 6px) 6px 0 / 12px 100%; background-repeat: repeat-x; }
.bill .crest { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.22em; text-transform: uppercase; }
.bill .sub { text-align: center; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.bill .rule { border-top: 1px dashed rgba(30,26,21,0.45); margin: 12px 0; }
.bill .rl { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.bill .rl span:first-child { color: var(--ink-2); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.bill .rl span:last-child { font-weight: 700; text-align: right; }
.bill .rl.big span:last-child { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.bill .note { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.outcomes .list { display: grid; gap: 18px; margin-top: 32px; }
.outcomes .list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: var(--on-leather-2); }
.outcomes .list li b { display: block; color: var(--on-leather); font-weight: 500; }
.outcomes .list svg { width: 22px; height: 22px; color: var(--teal); margin-top: 3px; }

/* your brand: real menus on phones */
.brands .row { display: flex; gap: clamp(16px, 2vw, 26px); margin-top: 52px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 6px 28px; scrollbar-width: none; }
.brands .row::-webkit-scrollbar { display: none; }
.venue { flex: none; width: clamp(190px, 17vw, 214px); scroll-snap-align: start; display: grid; gap: 14px; justify-items: center; }
.venue .shell { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 34px; background: #0E1414; padding: 8px; box-shadow: 0 30px 50px -28px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.1) inset; transition: transform 320ms var(--ease-out); }
.venue:nth-child(odd) .shell { transform: rotate(-2deg); }
.venue:nth-child(even) .shell { transform: rotate(1.5deg); }
.venue:hover .shell { transform: rotate(0) translateY(-6px); }
.venue .shell::before { content: ""; position: absolute; left: 50%; top: 14px; width: 30%; height: 12px; transform: translateX(-50%); background: #0E1414; border-radius: 999px; z-index: 2; }
.venue .shell img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.venue .tag { display: grid; gap: 8px; justify-items: center; text-align: center; width: 100%; padding: 12px 10px 10px; border-radius: 6px; font-family: var(--font-receipt); font-size: 12px; line-height: 1.3; color: var(--ink); transform: rotate(-1deg); }
.venue .tag img { width: 104px; height: 104px; }
.venue .tag b { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.venue .tag span { color: var(--ink-2); }
.brands .hint { margin-top: 8px; color: var(--on-leather-3); font-size: 14px; }

/* features: the menu card */
.menucard {
  margin-top: 48px; padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 48px) clamp(24px, 2.6vw, 36px);
  border-radius: 6px; color: var(--ink);
}
.menucard::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(184,134,11,0.45); border-radius: 3px; pointer-events: none; }
.menucard .head { text-align: center; }
.menucard .head .crest { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: 0.24em; text-transform: uppercase; }
.menucard .head .sub { font-family: var(--font-receipt); font-size: 12px; color: var(--ink-2); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.menucard .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 28px; }
.menucard h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid rgba(30,26,21,0.18); }
.menucard ul { display: grid; gap: 10px; margin-top: 12px; }
.menucard li { display: grid; gap: 3px; }
.menucard .item { font-weight: 500; font-size: 15.5px; }
.menucard .item .dots { flex: 1; border-bottom: 1px dotted rgba(30,26,21,0.55); transform: translateY(-4px); min-width: 16px; }
.menucard .item .n { font-family: var(--font-receipt); font-size: 12px; color: var(--ink-3); }
.menucard .d { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.lang { margin-top: 8px; padding: 6px 0 0; }
.lang .dish-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 500; min-height: 26px; }
.lang .dish-line[dir="rtl"] { font-family: var(--font-arabic); font-size: 17px; }
.lang .dish-line small { font-family: var(--font-receipt); font-weight: 400; font-size: 12px; color: var(--ink-2); white-space: nowrap; flex: none; }
.lang .switch { display: inline-flex; gap: 4px; margin-top: 10px; padding: 3px; border-radius: 999px; background: rgba(30,26,21,0.08); }
.lang .switch button { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); transition: background-color 160ms, color 160ms; }
.lang .switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.menucard .foot { margin-top: 24px; text-align: center; font-family: var(--font-receipt); font-size: 12px; color: var(--ink-3); }

/* integrations: the ticket footer */
.integrations .strip { margin-top: 48px; padding: 32px clamp(20px, 3vw, 44px) 28px; background: var(--thermal); color: var(--ink); position: relative; box-shadow: 0 18px 36px -18px rgba(0,0,0,0.75); }
.integrations .strip::before, .integrations .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: linear-gradient(-45deg, transparent 5px, var(--thermal) 5px) 0 0 / 10px 100%, linear-gradient(45deg, transparent 5px, var(--thermal) 5px) 5px 0 / 10px 100%; background-repeat: repeat-x; }
.integrations .strip::before { top: -7px; transform: scaleY(-1); }
.integrations .strip::after { bottom: -7px; }
.integrations .row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px 0; }
.integrations .row + .row { border-top: 1px dashed rgba(30,26,21,0.4); }
.integrations .row .lbl { font-family: var(--font-receipt); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.integrations .row .lbl small { display: block; font-weight: 400; color: var(--ink-3); letter-spacing: 0.04em; text-transform: none; margin-top: 2px; }
.integrations .logos { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.integrations .logos img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 220ms, opacity 220ms; }
.integrations .logos img:hover { filter: none; opacity: 1; }
.integrations .note { margin-top: 16px; font-family: var(--font-receipt); font-size: 12px; color: var(--ink-2); }

/* pricing: two bills */
.pricing .bills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: 56px; align-items: start; }
.plan { padding: 34px 30px 30px; font-family: var(--font-receipt); font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.plan::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 9px; background: linear-gradient(-45deg, transparent 6px, var(--cream) 6px) 0 0 / 12px 100%, linear-gradient(45deg, transparent 6px, var(--cream) 6px) 6px 0 / 12px 100%; background-repeat: repeat-x; }
.plan:nth-child(1) { transform: rotate(-0.8deg); }
.plan:nth-child(2) { transform: rotate(0.7deg); }
.plan .name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.plan .price { text-align: center; margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.plan .price small { display: block; font-family: var(--font-receipt); font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 8px; }
.plan .rule { border-top: 1px dashed rgba(30,26,21,0.45); margin: 16px 0; }
.plan ul { display: grid; gap: 7px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan li svg { width: 14px; height: 14px; margin-top: 4px; color: var(--teal-deep); }
.plan .rec { display: inline-block; margin: 0 auto 10px; padding: 4px 10px; border-radius: 4px; background: var(--teal-ui); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.plan .cta { margin-top: 20px; display: grid; }
.addons { margin-top: 40px; padding: 28px 30px; font-family: var(--font-receipt); font-size: 13px; color: var(--ink); background: var(--thermal); box-shadow: 0 18px 36px -18px rgba(0,0,0,0.75); }
.addons h3 { font-family: var(--font-receipt); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.addons ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px 32px; margin-top: 12px; }
.addons li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dotted rgba(30,26,21,0.4); }
.addons li span:last-child { color: var(--ink-2); text-align: right; }

/* closing */
.closing { text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.closing .display { font-size: clamp(42px, 7vw, 96px); }
.closing .lede { margin: 28px auto 0; }
.closing .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.closing .crest-mark { width: 72px; height: 72px; margin: 0 auto 28px; }

/* footer */
.footer { padding: 44px var(--gutter) 40px; border-top: 1px dashed var(--stitch); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer .logo img { height: 46px; width: auto; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 14px; color: var(--on-leather-2); }
.footer .links a:hover { color: var(--on-leather); }
.footer .social { display: flex; gap: 10px; }
.footer .social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px dashed var(--stitch); color: var(--on-leather-2); transition: color 150ms, border-color 150ms; }
.footer .social a:hover { color: var(--foil-2); border-color: rgba(255,179,0,0.6); }
.footer .social svg { width: 18px; height: 18px; }
.footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 20px; border-top: 1px dashed var(--stitch); font-size: 13px; color: var(--on-leather-3); }
.footer .legal a { color: var(--on-leather-2); }
.footer .signoff { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--on-leather-2); }

/* reveal grammar: things are set down on the leather, once */
[data-set] { opacity: 0; transform: translateY(22px); }
.js-ready [data-set].is-set, .no-js [data-set] { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
html:not(.js-ready) [data-set] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .folder { grid-template-columns: 46fr 22px 54fr; }
  .hero-copy h1 { font-size: clamp(40px, 5vw, 60px); }
}
@media (max-width: 900px) {
  .folder { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100svh; }
  .spine { display: none; }
  .leaf { padding: 0 var(--gutter); }
  .leaf::after { display: none; }
  .leaf--right { order: 1; padding-top: 60px; padding-bottom: 30px; }
  .leaf--left { order: 2; padding-bottom: 20px; align-content: start; }
  .scene { width: min(100%, 42svh); aspect-ratio: 1 / 1.26; }
  .phone { width: 39%; left: 33%; top: 14%; }
  .qrcard { width: 30%; top: 0; left: 0; }
  .hero-copy h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .hero-copy .lede { margin-top: 12px; font-size: 15px; }
  .hero-actions { margin-top: 14px; }
  .hero-proof { display: none; }
  .caption h2 { font-size: clamp(30px, 8vw, 40px); }
  .copy-stack { min-height: 0; padding: 18px 0 8px; }
  .caption { text-align: center; }
  .caption p { margin-top: 10px; font-size: 15.5px; }
  .beatnav { margin-top: 12px; padding-top: 12px; }
  .beatnav button { padding: 6px 6px; font-size: 11.5px; }
  .beatnav .sep { width: 10px; }
  .outcomes .grid { grid-template-columns: 1fr; }
  .menucard .cols { grid-template-columns: 1fr; }
  .integrations .row { grid-template-columns: 1fr; gap: 12px; }
  .pricing .bills { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer .legal { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .venue { width: 68vw; }
  .marquee__track img { height: 34px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .foil, .btn--foil { transition: none; }
  .btn, .venue .shell { transition: none; }
  [data-set] { opacity: 1; transform: none; transition: none; }
}
/* static final state when JS or motion is unavailable: everything stamped, receipt complete, phone paid */
.static-final .screen { opacity: 0; visibility: hidden; }
.static-final .screen--paid { opacity: 1; visibility: visible; }
.static-final .stamp--ghost { opacity: 1; transform: none; }
.static-final .caption { opacity: 1; visibility: visible; position: static; }
.static-final .copy-stack > * { grid-area: auto; }
.static-final .copy-stack { display: grid; gap: 28px; }
.static-final .caption h2 { font-size: clamp(30px, 3vw, 40px); }
.static-final .caption p { font-size: 16px; }
.static-final .folder { height: auto; }
.static-final .copy-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; align-content: center; }
.static-final .hero-copy { grid-column: 1 / -1; }
.static-final .caption h2 { font-size: clamp(26px, 2.4vw, 34px); }
.static-final .caption p { font-size: 15px; margin-top: 8px; }
.static-final .leaf--right { align-content: center; }
body.static-final { position: relative; }
.static-final .leather-ground { position: absolute; height: 100%; }
.static-final .scene-note { bottom: -2.4em; }
.static-final .cartbar { opacity: 1; transform: none; }
.static-final .screen--paid .check path { stroke-dashoffset: 0; }

/* fix round 1 */
.scene-note { position: absolute; left: 0; right: 0; bottom: -2.4em; margin: 0; text-align: center; font-size: 12px; color: var(--on-leather-3); pointer-events: none; }
.plan { position: relative; }
.plan .rec { position: absolute; top: 14px; right: 14px; transform: rotate(6deg); font-size: 11px; margin: 0; }
@media (max-width: 900px) {
  .scene-note { bottom: -2.1em; }
  .static-final .leaf--right { padding-bottom: 40px; }
  .static-final .copy-stack { grid-template-columns: 1fr; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .scene { width: min(100%, 38svh); }
  .hero-copy .lede { font-size: 14px; }
}


/* ===================== hero v2: card, angled phone, kitchen monitor, pay ===================== */
.scene--v2 { aspect-ratio: 1 / 1.02; }
.scene--v2 .pocket, .scene--v2 .pocket-stitch { display: none; }
.glow { position: absolute; left: 50%; top: 44%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.6); border-radius: 50%; background: radial-gradient(circle, rgba(11,181,168,0.55) 0%, rgba(11,181,168,0.18) 38%, rgba(11,181,168,0) 68%); opacity: 0; pointer-events: none; z-index: 1; filter: blur(6px); }

/* the card, alone in the start frame */
.scene--v2 .qrcard { left: 26%; top: 10%; width: 48%; transform: rotate(-3deg); padding: 6% 5% 5%; z-index: 10; }
.scene--v2 .qrcard .crest { font-size: clamp(14px, 2.4cqw, 20px); font-weight: 800; letter-spacing: 0.12em; }
.scene--v2 .qrcard .qr { width: 72%; margin: 7% auto 6%; }
.scene--v2 .qrcard .scan-hint { font-size: clamp(11px, 1.9cqw, 15px); letter-spacing: 0.18em; font-weight: 500; color: var(--ink); white-space: nowrap; }
.scene--v2 .qrcard .slot { height: 34px; margin-top: 6%; }
.scene--v2 .stamp { font-size: 13px; padding: 8px 12px 7px; }
.hint-text { display: inline-block; position: relative; }
.pay-suffix { color: var(--teal-ui); font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--teal-ui); vertical-align: -0.12em; opacity: 0; visibility: hidden; }
.qrcard .ring { position: absolute; inset: -4%; border: 2px solid rgba(11,181,168,0.9); border-radius: 12px; opacity: 0; pointer-events: none; box-shadow: 0 0 18px rgba(11,181,168,0.45); }
.qrcard .ring--2 { border-width: 1px; }
.qrcard .qr .flash { position: absolute; inset: -6%; background: #fff; border-radius: 6px; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.scene--v2 .qrcard .beam { height: 4px; box-shadow: 0 0 22px 5px rgba(11,181,168,0.6), 0 0 6px 1px rgba(255,224,138,0.9); }
.scene--v2 .qrcard .qr .lock span { border-width: 3px; }

/* the phone, at an angle, moved by its wrapper */
.phone-wrap { position: absolute; left: 27%; top: 7%; width: 45%; z-index: 20; perspective: 1400px; opacity: 0; }
.scene--v2 .phone { position: relative; left: auto; top: auto; width: 100%; transform: rotateY(-16deg) rotateX(7deg) rotateZ(-5deg); transform-style: preserve-3d; box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 50px 80px -34px rgba(0,0,0,0.9), 0 18px 30px -14px rgba(0,0,0,0.6); }
.dishes { position: relative; display: block; }
.dish { transition: opacity 320ms var(--ease-out), background-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out), transform 320ms var(--ease-out); border-radius: 3cqw; }
.dishes.has-focus .dish:not(.is-focus) { opacity: 0.48; }
.dish.is-focus { background: rgba(11,181,168,0.09); box-shadow: inset 0 0 0 2px rgba(11,181,168,0.6); transform: scale(1.03); z-index: 2; }
.dish.is-added .add { background: #1E1A15; }
.cartbar { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin: auto 4cqw 4cqw; padding: 2.6cqw 2.6cqw 2.6cqw 4cqw; border-radius: 4cqw; background: #0B3B37; color: #F3EBDD; font-size: 3.3cqw; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.6); opacity: 1; transform: none; }
.cart-copy { display: grid; gap: 0.6cqw; line-height: 1.2; }
.cart-copy b { font-weight: 600; font-size: 3.4cqw; }
.cart-copy span { font-size: 2.8cqw; color: #B9CFC9; }
.place { position: relative; display: inline-grid; place-items: center; padding: 2.6cqw 4.2cqw; border-radius: 999px; background: #087068; color: #fff; font-weight: 600; font-size: 3.3cqw; white-space: nowrap; overflow: visible; isolation: isolate; }
.place > span { grid-area: 1 / 1; }
.place__done { display: inline-flex; align-items: center; gap: 1.4cqw; opacity: 0; }
.place__done svg { width: 3.6cqw; height: 3.6cqw; }
.place__ripple { position: absolute; inset: 0; border-radius: 999px; border: 2px solid rgba(255,224,138,0.9); opacity: 0; pointer-events: none; }

/* the flying copy of a dish */
.fly { position: absolute; left: 0; top: 0; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink); opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform; }
.fly__pic { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--cream-3); flex: none; }
.fly__pic img { width: 100%; height: 100%; object-fit: cover; }

/* payment screen */
.screen--pay { background: #F4EFE6; }
.pay-amt { margin: 3cqw 5cqw 0; font-family: var(--font-display); font-size: 9cqw; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.pay-amt small { display: block; font-family: var(--font-body); font-size: 3cqw; color: #6B6257; letter-spacing: 0.02em; margin-top: 1.2cqw; }
.pay-opt { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; margin: 4cqw 5cqw 0; padding: 3cqw 3.2cqw; border-radius: 3cqw; background: #fff; border: 1px solid rgba(30,26,21,0.12); }
.pay-opt b { display: block; font-size: 3.5cqw; font-weight: 600; }
.pay-opt small { display: block; font-size: 2.8cqw; color: #6B6257; margin-top: 0.6cqw; }
.toggle { position: relative; flex: none; width: 11cqw; height: 6.2cqw; border-radius: 999px; background: #D8CCB3; transition: background-color 240ms; }
.toggle i { position: absolute; top: 0.7cqw; left: 0.7cqw; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.25); transition: transform 240ms var(--ease-out); }
.toggle.is-on { background: #087068; }
.toggle.is-on i { transform: translateX(4.8cqw); }
.pay-methods { display: grid; gap: 2.2cqw; margin: 3.4cqw 5cqw 0; }
.pay-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1.4cqw; padding: 3.4cqw; border-radius: 3cqw; font-size: 3.8cqw; font-weight: 600; isolation: isolate; }
.pay-btn svg { width: 4.6cqw; height: 4.6cqw; }
.pay-btn--apple { background: #000; color: #fff; }
.pay-btn--gpay { background: #fff; color: #1E1A15; border: 1px solid rgba(30,26,21,0.2); }
.pay-btn--gpay b { font-weight: 700; color: #1a73e8; }
.pay-btn__ripple { position: absolute; inset: 0; border-radius: 3cqw; border: 2px solid rgba(255,224,138,0.95); opacity: 0; pointer-events: none; }
.pay-row { display: flex; justify-content: space-between; padding: 2.8cqw 3.2cqw; border-radius: 3cqw; border: 1px solid rgba(30,26,21,0.14); font-size: 3.2cqw; color: #4B4238; }
.pay-row span:last-child { color: #6B6257; }
.pay-processing { position: absolute; left: 5cqw; right: 5cqw; bottom: 6cqw; display: inline-flex; align-items: center; justify-content: center; gap: 2cqw; padding: 3cqw; border-radius: 3cqw; background: #1E1A15; color: #fff; font-size: 3.2cqw; opacity: 0; }
.spinner { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the kitchen display monitor */
.monitor { position: absolute; right: 0; bottom: 0; width: 54%; z-index: 15; opacity: 0; }
.monitor__screen { position: relative; aspect-ratio: 16 / 10.5; border-radius: 10px; background: #0E1716; border: 6px solid #232B2A; box-shadow: 0 30px 50px -24px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06) inset; padding: 3.5% 4.5%; color: #DCE6E3; font-family: var(--font-body); font-size: clamp(9px, 1.55cqw, 13px); line-height: 1.35; overflow: hidden; container-type: inline-size; }
.monitor__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent 45%); pointer-events: none; }
.monitor__stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #232B2A, #121918); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); box-shadow: 0 10px 14px -8px rgba(0,0,0,0.8); }
.kds-head { display: flex; justify-content: space-between; font-size: 0.82em; letter-spacing: 0.12em; text-transform: uppercase; color: #7FA39C; padding-bottom: 5%; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 5%; }
.kds-order { display: grid; gap: 3.2%; }
.kds-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kds-new { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #0BB5A8; color: #062B29; font-weight: 700; font-size: 0.86em; letter-spacing: 0.08em; text-transform: uppercase; }
.kds-top .slot-inline { position: relative; }
.kds-meta { display: flex; justify-content: space-between; color: #9FB6B1; font-family: var(--font-receipt); font-size: 0.95em; }
.kds-line { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-receipt); font-size: 1em; padding: 2px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.kds-line em { font-style: normal; color: #9FB6B1; margin-left: 6px; }
.kds-total { font-weight: 700; border-bottom: 0; color: #fff; }
.kds-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 2%; font-weight: 600; color: #7CE0C8; font-size: 0.95em; }
.kds-status i { width: 9px; height: 9px; border-radius: 50%; background: #7CE0C8; box-shadow: 0 0 10px rgba(124,224,200,0.8); animation: kds-pulse 1.4s ease-in-out infinite; }
.kds-status.is-paid { color: #FFE08A; }
.kds-status.is-paid i { background: #FFB300; box-shadow: 0 0 10px rgba(255,179,0,0.8); animation: none; }
@keyframes kds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.monitor .stamp--ghost { position: relative; transform: none; }

/* static and reduced-motion finished frame: card, phone and monitor all on the leather */
.static-final .scene--v2 .qrcard { left: 0; top: 8%; width: 30%; transform: rotate(-4deg); opacity: 1; }
.static-final .phone-wrap { left: 28%; top: 0; width: 36%; opacity: 1; }
.static-final .monitor { opacity: 1; width: 46%; }
.static-final .pay-suffix::after { content: "/PAY"; }
.static-final .kds-line, .static-final .kds-meta, .static-final .kds-top, .static-final .kds-status { opacity: 1; }
.static-final .kds-status { color: #FFE08A; }
.static-final .kds-status i { background: #FFB300; animation: none; }
.static-final .glow, .static-final .fly, .static-final .ring, .static-final .flash, .static-final .beam { display: none; }
.static-final .screen--menu { opacity: 0; visibility: hidden; }
.static-final .screen--paid { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .scene--v2 { aspect-ratio: 1 / 1.1; }
  .scene--v2 .qrcard { left: 18%; width: 64%; top: 6%; }
  .phone-wrap { left: 23%; width: 52%; top: 4%; }
  .monitor { width: 82%; right: -3%; }
  .fly { font-size: 11px; }
  .static-final .scene--v2 { aspect-ratio: 1 / 1.45; }
  .static-final .scene--v2 .qrcard { left: 0; width: 44%; top: 0; }
  .static-final .phone-wrap { left: 50%; width: 48%; top: 0; }
  .static-final .monitor { width: 88%; right: 0; bottom: 0; }
}

/* static frame: the beat words already sit in the beat nav */
.static-final .caption { display: none; }
.static-final .copy-stack { grid-template-columns: 1fr; }

/* load: the stitched frames draw in once the folder has opened */
.leaf::after { opacity: 0; transition: opacity 900ms var(--ease-out) 200ms; }
.folder.is-open .leaf::after, .static-final .leaf::after, html:not(.js-ready) .leaf::after { opacity: 1; }
.hero-copy h1 .w { display: inline-block; }
