/* ════════════════════════════════════════════════════════════════════════════
   Bitikka Eats — product site home (eats.bitikka.com). Vanilla CSS.

   Same system as bitikka.com (token source of truth: bitikka-web/style.css):
   · Light and dark follow the device; every color is a token.
   · Brand yellow is the one accent: the primary action and the hero tile.
   · The product is shown as it really is: real menu screens in device frames.
   · Radii: interactive = pill; tiles and panels = 28 to 40px.
   · Text contrast stays at or above 4.5:1 in both themes.
   · Motion explains arrival and is off under prefers-reduced-motion.

   The inner pages (qr-menu, table-ordering, kitchen-display, food-court and
   the legal pages) still use landing.css; this file styles the home only.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F5EE;
  --surface: #FFFFFF;
  --surface-2: #EFEDE4;
  --text: #0D0D0D;
  --text-2: #2A2A2A;
  --muted: #5C5A53;
  --line: rgba(13, 13, 13, 0.1);
  --line-strong: rgba(13, 13, 13, 0.2);
  --yellow: #FFD600;
  --yellow-dark: #F5B800;
  --yellow-light: #FFE24D;
  --yellow-text: #8A6500;
  --ink: #0D0D0D;
  --on-ink: #F7F5EE;
  --on-ink-muted: #C9C6BC;
  --tile-dark: #141413;
  --ok: #16A34A;
  --ok-text: #0F7A37;
  --ok-bg: rgba(22, 163, 74, 0.13);
  --err-text: #B91C1C;
  --nav-glass: rgba(255, 255, 255, 0.72);
  --window-bar: #F2F1EC;
  --window-dot: #D6D3C9;
  --shadow-device: 0 1px 2px rgba(40, 30, 0, 0.08), 0 24px 48px -18px rgba(40, 30, 0, 0.26), 0 64px 110px -48px rgba(40, 30, 0, 0.34);
  --shadow-card: 0 1px 2px rgba(40, 30, 0, 0.05), 0 18px 40px -24px rgba(40, 30, 0, 0.22);

  --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-latin: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --gutter: 28px;
  --section: 120px;
  --dir: 1;
  color-scheme: light;
}
[dir="ltr"] { --dir: -1; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0D;
    --bg-alt: #141413;
    --surface: #1A1A19;
    --surface-2: #242422;
    --text: #F4F2EA;
    --text-2: #DEDBD1;
    --muted: #A6A398;
    --yellow-text: #FFD600;
    --line: rgba(244, 242, 234, 0.12);
    --line-strong: rgba(244, 242, 234, 0.24);
    --tile-dark: #1C1C1A;
    --ok-text: #4ADE80;
    --ok-bg: rgba(74, 222, 128, 0.14);
    --err-text: #F87171;
    --nav-glass: rgba(13, 13, 13, 0.72);
    --window-bar: #242422;
    --window-dot: #44433F;
    --shadow-device: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -18px rgba(0, 0, 0, 0.7), 0 64px 110px -48px rgba(0, 0, 0, 0.8);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0D0D;
  --bg-alt: #141413;
  --surface: #1A1A19;
  --surface-2: #242422;
  --text: #F4F2EA;
  --text-2: #DEDBD1;
  --muted: #A6A398;
  --yellow-text: #FFD600;
  --line: rgba(244, 242, 234, 0.12);
  --line-strong: rgba(244, 242, 234, 0.24);
  --tile-dark: #1C1C1A;
  --ok-text: #4ADE80;
  --ok-bg: rgba(74, 222, 128, 0.14);
  --err-text: #F87171;
  --nav-glass: rgba(13, 13, 13, 0.72);
  --window-bar: #242422;
  --window-dot: #44433F;
  --shadow-device: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -18px rgba(0, 0, 0, 0.7), 0 64px 110px -48px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[dir="ltr"] body { font-family: var(--font-latin); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }
.tile-dark :focus-visible, .join-panel :focus-visible { outline-color: var(--yellow); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }

/* ── Type roles ────────────────────────────────────────────────────────── */
.hero-title, .section-title, .join-title { font-weight: 700; text-wrap: balance; color: var(--text); }
.section-title { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.3; }
[dir="ltr"] .section-title { line-height: 1.1; letter-spacing: -0.03em; }
.section-lead { margin-top: 16px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .1s ease-out, opacity .2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.03rem; }
.btn svg { font-size: 20px; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease-out);
}
#nav.scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { #nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav-inner { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-latin); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; direction: ltr; color: var(--text); }
.nav-logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav-logo b { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: 8px; }
.nav-links a:not(.btn) { padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; color: var(--text-2); transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.nav-links a:not(.btn):hover { background: var(--surface-2); color: var(--text); }
.nav-links a.is-active { color: var(--text); font-weight: 600; background: var(--surface-2); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
#lang-toggle { min-height: 38px; min-width: 44px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong); cursor: pointer; font-family: var(--font-latin); font-weight: 600; font-size: 0.85rem; color: var(--text); transition: background-color .2s var(--ease-out); }
#lang-toggle:hover { background: var(--surface-2); }
#theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 38px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background-color .2s var(--ease-out); }
#theme-toggle:hover { background: var(--surface-2); }
#theme-toggle svg { font-size: 18px; }
#theme-toggle .i-sun, #theme-toggle[data-mode="dark"] .i-moon { display: none; }
#theme-toggle[data-mode="dark"] .i-sun { display: block; }
.nav-mobile-cta { display: none; }
#nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
#nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }

/* ── Devices: real screens, framed like the hardware they run on ───────── */
.device { margin: 0; position: relative; }
.phone {
  --w: 240px;
  width: var(--w); padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(150deg, #45443F 0%, #1A1A18 22%, #0B0B0A 60%, #2B2A27 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 calc(var(--w) * 0.012) #161615, var(--shadow-device);
}
.phone::after { /* the camera island */
  content: ""; position: absolute; z-index: 2; top: calc(var(--w) * 0.058); left: 50%; translate: -50% 0;
  width: calc(var(--w) * 0.27); height: calc(var(--w) * 0.074); border-radius: 999px; background: #050505;
}
.phone .screen {
  display: flex; flex-direction: column; aspect-ratio: 9 / 19.5; overflow: hidden;
  border-radius: calc(var(--w) * 0.13); background: var(--status, #F7F2E8);
  padding-top: calc(var(--w) * 0.12);
}
.phone .screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.window { border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-device); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; background: var(--window-bar); border-bottom: 1px solid var(--line); direction: ltr; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--window-dot); }
.window-title { margin-inline-start: auto; font-family: var(--font-latin); font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.device:has(img[src*="eats-menu"]) { --status: #F7F0E6; }
.device:has(img[src*="eats-item"]) { --status: #2A2116; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow-x: clip; padding-block: clamp(32px, 6vh, 64px) clamp(40px, 6vh, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 40px; min-height: min(700px, calc(100dvh - var(--nav-h) - 160px)); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 5px; padding-inline: 5px 16px;
  border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  transition: box-shadow .2s var(--ease-out), transform .1s ease-out;
}
.hero-pill::after { content: "←"; font-family: var(--font-latin); color: var(--muted); transition: translate .3s var(--ease-out); }
[dir="ltr"] .hero-pill::after { content: "→"; }
.hero-pill:hover::after { translate: calc(var(--dir) * -3px) 0; }
.hero-pill:active { transform: scale(0.98); }
.hero-pill-tag { white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.8rem; font-weight: 700; }
.hero-title { margin-top: 26px; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: 1.2; }
[dir="ltr"] .hero-title { font-size: clamp(2.6rem, 4.9vw, 4.5rem); line-height: 1.04; letter-spacing: -0.04em; }
.hero-line { display: block; }
.snap { position: relative; isolation: isolate; display: inline-block; margin-top: 0.06em; padding-inline: 0.2em; color: var(--ink); }
.snap::before { /* the yellow tab the phrase snaps onto */
  content: ""; position: absolute; z-index: -1; inset: 0.12em 0 -0.1em; border-radius: 0.22em;
  background: var(--yellow); rotate: calc(var(--dir) * 2deg);
}
.hero-sub { margin-top: 24px; max-width: 42ch; font-size: clamp(1.1rem, 1.45vw, 1.26rem); color: var(--muted); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.93rem; color: var(--muted); }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--ok-text); font-size: 17px; }

/* Showcase: one phone on the brand's yellow tile, two live cards around it */
.showcase { position: relative; display: grid; justify-items: center; padding-top: 12px; padding-bottom: 8px; }
.showcase-tile {
  position: absolute; top: 3%; left: 50%; translate: -50% 0; width: min(92%, 470px); aspect-ratio: 1;
  border-radius: 26%; rotate: calc(var(--dir) * -8deg);
  background: linear-gradient(150deg, var(--yellow-light) 0%, var(--yellow) 46%, var(--yellow-dark) 100%);
  box-shadow: 0 50px 90px -46px rgba(201, 148, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.showcase-phone { --w: clamp(230px, 21vw, 290px); position: relative; z-index: 1; }
.showcase-phone .screen { position: relative; transition: background-color .7s var(--ease-out); }
.showcase-phone:has(.slide.is-on[data-slide="menu"]) { --status: #F7F0E6; }
.showcase-phone:has(.slide.is-on[data-slide="item"]) { --status: #2A2116; }
.showcase-phone .slide {
  position: absolute; inset: calc(var(--w) * 0.12) 0 0; width: 100%; height: calc(100% - var(--w) * 0.12);
  object-fit: cover; object-position: top; opacity: 0; scale: 1.04;
  transition: opacity .7s var(--ease-out), scale 1.1s var(--ease-out);
}
.showcase-phone .slide.is-on { opacity: 1; scale: 1; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px;
  border-radius: 20px; min-width: 214px;
  background: var(--nav-glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.float-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-size: 21px; }
.float-text { display: grid; line-height: 1.45; }
.float-title { font-weight: 700; font-size: 0.96rem; color: var(--text); }
.float-sub { font-size: 0.85rem; color: var(--muted); }
.float-order { bottom: 24%; inset-inline-start: max(0px, calc(50% - var(--off, 300px))); }
.float-call { top: 14%; inset-inline-end: max(0px, calc(50% - var(--off, 300px))); }
.float-call .float-icon { background: var(--ink); color: var(--yellow); }

/* Stats strip */
.stats { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 20px 22px; border-radius: 24px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.stat dt { font-family: var(--font-latin); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--text); direction: ltr; text-align: start; }
.stat dd { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }
[dir="rtl"] .stat dt { text-align: right; }

@media (prefers-reduced-motion: no-preference) {
  .hero-pill, .hero-title, .hero-sub, .hero-cta, .hero-note { animation: rise .9s var(--ease-out) both; }
  .hero-title { animation-delay: .06s; }
  .hero-sub { animation-delay: .12s; }
  .hero-cta { animation-delay: .18s; }
  .hero-note { animation-delay: .24s; }
  .snap::before { animation: snap .7s cubic-bezier(.34, 1.56, .64, 1) .55s both; }
  .showcase-tile { animation: tile-in 1.2s var(--ease-out) .12s both; }
  .showcase-phone { animation: rise-lg 1.2s var(--ease-out) .28s both; }
  .float-order { animation: card-in .9s var(--ease-out) .85s both; }
  .float-call { animation: card-in .9s var(--ease-out) 1.1s both; }
  .float-call .float-icon svg { animation: ring 3.2s ease-in-out 2s infinite; transform-origin: 50% 12%; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes rise-lg { from { opacity: 0; translate: 0 64px; } }
@keyframes snap { from { opacity: 0; scale: 0.3; rotate: 0deg; } }
@keyframes tile-in { from { opacity: 0; scale: 0.82; rotate: 0deg; } }
@keyframes card-in { from { opacity: 0; translate: calc(var(--dir) * 24px) 12px; scale: 0.96; } }
@keyframes ring { 0%, 55%, 100% { rotate: 0deg; } 60% { rotate: 14deg; } 66% { rotate: -12deg; } 72% { rotate: 9deg; } 78% { rotate: -6deg; } 84% { rotate: 0deg; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section-head { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.92rem; font-weight: 600; color: var(--yellow-text); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.25); }

/* Venue types */
.venues { padding-block: 8px 0; }
.venues-label { text-align: center; font-size: 0.98rem; font-weight: 500; color: var(--muted); }
.venue-list { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.venue-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; color: var(--text-2); }
.venue-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-dark); }

/* Before / after */
.ba { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ba-card { padding: 36px 36px 32px; border-radius: 32px; }
.ba-tag { display: inline-flex; padding: 5px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; }
.ba-list { margin-top: 20px; display: grid; gap: 14px; }
.ba-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.06rem; line-height: 1.6; }
.ba-mark { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; font-size: 13px; }
.ba-before { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.ba-before .ba-tag { background: var(--surface-2); color: var(--muted); }
.ba-before .ba-mark { background: var(--surface-2); color: var(--muted); }
.ba-after { background: linear-gradient(165deg, var(--yellow-light) 0%, var(--yellow) 52%, var(--yellow-dark) 100%); color: var(--ink); }
.ba-after .ba-tag { background: var(--ink); color: #FFFFFF; }
.ba-after .ba-mark { background: var(--ink); color: var(--yellow); }
.ba-after li { font-weight: 600; }

/* Features: asymmetric bento */
.features { background: var(--bg-alt); }
.bento { margin-top: 52px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; overflow: hidden; border-radius: 32px; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.tile-copy { position: relative; z-index: 1; padding: 36px 36px 0; }
.tile-kind { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.tile-name { margin-top: 6px; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.35; text-wrap: balance; }
[dir="ltr"] .tile-name { line-height: 1.15; letter-spacing: -0.025em; }
.tile-text { margin-top: 10px; font-size: 1.05rem; color: var(--muted); max-width: 42ch; }
.tile-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-size: 24px; }
.tile-body { padding: 28px 36px 36px; margin-top: auto; }

.tile-menu { grid-column: span 7; min-height: 600px; color: var(--ink); background: linear-gradient(165deg, var(--yellow-light) 0%, var(--yellow) 48%, var(--yellow-dark) 100%); box-shadow: none; }
.tile-menu .tile-kind, .tile-menu .tile-text { color: rgba(13, 13, 13, 0.74); }
.tile-menu .tile-ico { background: var(--ink); color: var(--yellow); }
.tile-menu .tile-phone { --w: clamp(200px, 21vw, 270px); margin: 36px auto -130px; transition: translate .6s var(--ease-out); }
.tile-menu:hover .tile-phone { translate: 0 -10px; }

.tile-dark { grid-column: span 5; min-height: 600px; color: var(--on-ink); background: var(--tile-dark); }
.tile-dark .tile-kind, .tile-dark .tile-text { color: var(--on-ink-muted); }
.tile-dark .tile-name { color: #FFFFFF; }
.tile-dark .tile-ico { background: var(--yellow); }

.tile-third { grid-column: span 4; min-height: 360px; }

/* Order ticket list (dark tile) */
.queue { display: grid; gap: 10px; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(247, 245, 238, 0.07); box-shadow: inset 0 0 0 1px rgba(247, 245, 238, 0.1); }
.queue .q-no { font-family: var(--font-latin); font-weight: 700; color: #FFFFFF; }
.queue .q-what { color: var(--on-ink-muted); font-size: 0.95rem; }
.queue .q-state { margin-inline-start: auto; }
.chip { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.chip-new { background: var(--yellow); color: var(--ink); }
.chip-prep { background: rgba(247, 245, 238, 0.16); color: #FFFFFF; }
.chip-done { background: var(--ok-bg); color: var(--ok-text); }
.tile-dark .chip-done { background: rgba(74, 222, 128, 0.16); color: #4ADE80; }

/* Waiter call mock */
.call-mock { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.call-mock .float-icon { background: var(--ink); color: var(--yellow); }
.call-mock .float-icon svg { transform-origin: 50% 12%; }
@media (prefers-reduced-motion: no-preference) { .call-mock .float-icon svg { animation: ring 3.2s ease-in-out infinite; } }

/* Brand identity mock */
.swatches { display: flex; align-items: center; gap: 0; }
.swatches span { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface); }
.swatches span + span { margin-inline-start: -14px; }
.sw-1 { background: #1F4A34; } .sw-2 { background: #C2410C; } .sw-3 { background: #1D4ED8; } .sw-4 { background: var(--yellow); }
.brand-line { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-line li { padding: 5px 13px; border-radius: 999px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.88rem; font-weight: 600; color: var(--text-2); }

/* Analytics mock */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 112px; padding: 14px 16px 12px; border-radius: 20px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--surface-2); transform-origin: bottom; }
.bars i.hot { background: var(--yellow); }
.js .bars i { scale: 1 0.12; transition: scale .9s var(--ease-out) calc(var(--i, 0) * 70ms); }
.js .tile.in .bars i { scale: 1 1; }
@media (prefers-reduced-motion: reduce) { .js .bars i { scale: 1 1; transition: none; } }
.bars-cap { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* Team roles (wide tile) */
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.tile-wide .tile-copy { padding: 44px 44px 44px; }
.tile-wide .tile-body { padding: 36px 44px; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.role svg { font-size: 26px; color: var(--text); }
.role strong { display: block; font-size: 1.04rem; line-height: 1.4; }
.role span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* How it works */
.how-grid { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 24px 26px; border-radius: 28px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.step-no { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); color: var(--ink); font-family: var(--font-latin); font-weight: 800; font-size: 1.35rem; }
.step h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.step p { margin-top: 4px; color: var(--muted); }

.board { max-width: 640px; margin-inline: auto; width: 100%; }
.board-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--bg-alt); }
.board-col { padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 232px; }
.board-col h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-family: var(--font); font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.board-col h4 b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--surface-2); font-family: var(--font-latin); font-size: 0.76rem; color: var(--text); }
.ticket { display: grid; gap: 3px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.82rem; line-height: 1.45; }
.ticket b { font-family: var(--font-latin); font-size: 0.86rem; color: var(--text); }
.ticket span { color: var(--muted); }
.ticket.is-new { box-shadow: inset 0 0 0 2px var(--yellow); background: rgba(255, 214, 0, 0.12); }
.ticket.is-live { box-shadow: inset 0 0 0 2px var(--yellow); background: rgba(255, 214, 0, 0.16); }
@media (prefers-reduced-motion: no-preference) {
  .ticket.is-live { animation: ticket-in 7s var(--ease-out) infinite; }
}
@keyframes ticket-in { 0%, 6% { opacity: 0; translate: 0 -14px; scale: .96; } 14%, 86% { opacity: 1; translate: 0 0; scale: 1; } 94%, 100% { opacity: 0; translate: 0 0; } }
.mock-caption { margin-top: 14px; text-align: center; font-size: 0.86rem; color: var(--muted); }

/* Inner pages */
.pages-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.page-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; border-radius: 28px; text-decoration: none;
  background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  transition: translate .35s var(--ease-out), box-shadow .2s var(--ease-out);
}
.page-card:hover { translate: 0 -4px; }
.page-card svg { font-size: 26px; margin-bottom: 12px; }
.page-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.page-card p { color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.page-card::after { content: "←"; margin-top: auto; padding-top: 14px; font-family: var(--font-latin); font-weight: 700; transition: translate .3s var(--ease-out); }
[dir="ltr"] .page-card::after { content: "→"; }
.page-card:hover::after { translate: calc(var(--dir) * -4px) 0; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq-aside .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease-out); }
.faq-item[open] { box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; line-height: 1.55; border-radius: 24px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-family: var(--font-latin); font-size: 1.2rem; font-weight: 500; line-height: 1; transition: rotate .3s var(--ease-out), background-color .2s; }
.faq-item[open] summary::after { rotate: 45deg; background: var(--yellow); color: var(--ink); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; }

/* Infrastructure */
.infra-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.infra { padding: 30px 28px; border-radius: 28px; background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }
.infra svg { font-size: 30px; }
.infra h3 { margin-top: 18px; font-size: 1.18rem; font-weight: 700; line-height: 1.45; }
.infra p { margin-top: 6px; color: var(--muted); }
.infra-by { margin-top: 28px; padding: 18px 22px; border-radius: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.infra-by a { font-weight: 700; text-underline-offset: 4px; }
.infra-by a:hover { color: var(--yellow-text); }

/* Join */
.join-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start;
  padding: 64px; border-radius: 40px; background: var(--ink); color: var(--on-ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.join-panel::before {
  content: ""; position: absolute; z-index: -1; inset-inline-start: -20%; bottom: -70%;
  width: 900px; max-width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 0, 0.3), rgba(255, 158, 0, 0.09) 60%, transparent);
}
.join-title { color: var(--on-ink); font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.3; max-width: 14ch; }
[dir="ltr"] .join-title { line-height: 1.06; letter-spacing: -0.035em; }
.join-sub { margin-top: 16px; font-size: 1.14rem; color: var(--on-ink-muted); max-width: 42ch; }
.join-points { margin-top: 26px; display: grid; gap: 12px; }
.join-points li { display: flex; align-items: center; gap: 12px; color: var(--on-ink); font-weight: 500; }
.join-points svg { display: block; padding: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.join-wa { margin-top: 30px; }
.join-wa-label { font-size: 0.92rem; color: var(--on-ink-muted); margin-bottom: 10px; }

.join-card { padding: 30px 30px 26px; border-radius: 28px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 16px; }
.join-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.join-field { display: grid; gap: 6px; }
.join-field label { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.join-field input[type="text"], .join-field input[type="tel"], .join-field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.join-field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.join-field input::placeholder { color: var(--muted); opacity: .8; }
.join-field input:focus, .join-field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.5); }
.join-field input[dir="ltr"], .join-field input[type="tel"] { text-align: start; }
.join-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-2); line-height: 1.6; }
.join-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
[data-theme="dark"] .join-consent input, :root:not([data-theme="light"]) .join-consent input { accent-color: var(--yellow); }
.join-consent a { font-weight: 600; text-underline-offset: 3px; }
.join-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-submit { width: 100%; }
.join-status { min-height: 1.5em; font-size: 0.95rem; font-weight: 600; text-align: center; color: var(--muted); }
.join-status.ok { color: var(--ok-text); }
.join-status.err { color: var(--err-text); }
.join-status a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 56px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h4 { font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; font-family: var(--font); }
.footer-col a { text-decoration: none; color: var(--text-2); width: fit-content; }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 0.88rem; }

/* ── Scroll reveal (staggered by --d inside a group) ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .reveal.in { opacity: 1; translate: none; }
}

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section: 96px; --gutter: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; min-height: 0; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-card { padding: 30px 26px; }
  .tile-menu, .tile-dark { grid-column: span 6; min-height: 580px; }
  .tile-third { grid-column: span 6; }
  .tile-third:last-of-type { grid-column: 1 / -1; }
  .tile-copy { padding: 30px 28px 0; }
  .tile-body { padding: 24px 28px 30px; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-wide .tile-copy { padding: 30px 28px 0; }
  .tile-wide .tile-body { padding: 24px 28px 30px; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .pages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .infra-grid { grid-template-columns: 1fr; }
  .join-panel { grid-template-columns: 1fr; gap: 36px; padding: 48px 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-h: 60px; --section: 72px; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  #nav-burger { display: inline-flex; }
  #nav.open { background: var(--bg); border-bottom-color: var(--line); }
  #nav.open .nav-links { display: grid; position: absolute; top: var(--nav-h); inset-inline: 0; margin: 0; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  #nav.open .nav-links a:not(.btn) { padding: 12px 10px; font-size: 1.05rem; }
  #nav.open .nav-mobile-cta { display: inline-flex; margin-top: 8px; }
  #nav.open #nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav.open #nav-burger span:nth-child(2) { opacity: 0; }
  #nav.open #nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 24px; }
  .hero-grid { gap: 40px; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3.3rem); }
  [dir="ltr"] .hero-title { font-size: clamp(2.2rem, 9.6vw, 3rem); }
  .hero-cta .btn { flex: 1 1 auto; }
  .showcase-phone { --w: 56vw; }
  .showcase-tile { width: 88vw; }
  .float { min-width: 0; padding: 10px 12px; gap: 10px; border-radius: 18px; }
  .float-icon { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  .float-title { font-size: 0.86rem; }
  .float-sub { font-size: 0.78rem; }
  .float-order { --off: 49vw; bottom: 12%; }
  .float-call { --off: 49vw; top: 6%; }
  .stats { gap: 10px; }
  .stat { padding: 16px 16px; border-radius: 20px; }

  .ba { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .ba-card { border-radius: 26px; }
  .bento { gap: 14px; margin-top: 36px; }
  .tile { border-radius: 26px; }
  .tile-menu, .tile-dark, .tile-third { grid-column: 1 / -1; min-height: 0; }
  .tile-menu .tile-phone { --w: 60vw; margin-bottom: -110px; }
  .tile-dark .tile-body { padding-top: 22px; }
  .role-grid { grid-template-columns: 1fr; }
  .board-cols { grid-template-columns: 1fr; }
  .board-col { min-height: 0; }
  .step { padding: 20px; grid-template-columns: 46px 1fr; column-gap: 14px; }
  .step-no { width: 46px; height: 46px; }
  .pages-grid { grid-template-columns: 1fr; gap: 12px; }
  .faq-item summary { padding: 18px 18px; }
  .faq-item p { padding: 0 18px 20px; }
  .join-panel { padding: 36px 16px; border-radius: 28px; }
  .join-card { padding: 22px 16px 20px; border-radius: 22px; }
  .join-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
}

/* Social icons row (footer and founder links): one round button per platform. */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 50%;
  border: 1px solid rgba(127, 127, 127, 0.35); text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.social-row a:hover, .social-row a:focus-visible { background: #FFD600; border-color: #FFD600; color: #0D0D0D; }
.social-row svg { width: 20px; height: 20px; flex: none; }
