/* ==========================================================================
   Lipase — marketing site
   Identity derived from Lipase.Portal theme tokens (teal #0d9488, Public Sans,
   light surfaces) + logo gradient (#16C79A → #0B7C7A).
   Arabic set in Readex Pro; layout is RTL-safe via logical properties.
   ========================================================================== */

:root {
  /* Brand (from the app) */
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --mint: #16c79a;
  --mint-pale: #e8fbf4;

  /* Deep pine ramp (marketing-only, derived from logo end-stop #0B7C7A) */
  --pine-950: #032220;
  --pine-900: #06302c;
  --pine-850: #083a35;
  --pine-800: #0a4842;
  --pine-700: #0b6b64;

  /* Warm counterpoint — stars & small highlights only */
  --amber: #f5c04d;

  /* Light register (identical to app tokens) */
  --page: #f7f8f9;
  --surface: #ffffff;
  --surface-muted: #f4f5f6;
  --ink: #1c1f23;
  --ink-2: #5b616a;
  --border: #e7e9ec;
  --border-strong: #d8dbdf;

  /* On-dark text */
  --on-pine: #ffffff;
  --on-pine-2: #a9cfc8;
  --on-pine-3: rgba(255 255 255 / 52%);

  /* Status (app legend, reused verbatim) */
  --ok: #1d7a45;      --ok-bg: #e9f6ee;
  --warn: #b06a07;    --warn-bg: #fbf1e1;
  --info: #2050c8;    --info-bg: #e9effc;
  --neutral: #6b7280; --neutral-bg: #f1f2f4;

  /* Type */
  --font-sans: "Public Sans", "Readex Pro", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --fs-display: clamp(2.55rem, 6.4vw, 4.4rem);
  --fs-h2: clamp(1.85rem, 3.8vw, 2.7rem);
  --fs-h3: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8125rem;

  /* Shape & depth */
  --r-card: 1rem;
  --r-ctrl: 0.625rem;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgb(16 24 40 / 6%), 0 10px 28px -14px rgb(16 24 40 / 16%);
  --shadow-pop: 0 2px 6px rgb(3 34 32 / 25%), 0 24px 48px -20px rgb(3 34 32 / 45%);
  --focus-ring: 0 0 0 3px rgb(13 148 136 / 30%);

  /* Rhythm */
  --container: 72rem;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --section: clamp(4.25rem, 9vw, 7.25rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z scale */
  --z-header: 100;
  --z-menu: 200;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}

/* Arabic: Readex Pro first, and never negative tracking (it breaks joining). */
html[lang="ar"] body { font-family: "Readex Pro", "Public Sans", ui-sans-serif, system-ui, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .wordmark, html[lang="ar"] .btn { letter-spacing: 0 !important; }

img, svg { display: block; max-width: 100%; }
/* Author display rules (e.g. display:grid on the form) must never beat [hidden]. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--brand-strong); text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.14; text-wrap: balance; font-weight: 750; }
p { text-wrap: pretty; max-width: 65ch; }

::selection { background: rgb(13 148 136 / 24%); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-ctrl);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3.5rem;
  z-index: calc(var(--z-menu) + 1);
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-ctrl);
  box-shadow: var(--shadow-card);
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { scroll-margin-top: 5rem; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   Reveal-on-scroll (JS-gated so no-JS keeps everything visible)
   -------------------------------------------------------------------------- */
html.js .r {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.75s var(--ease), translate 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .r.in { opacity: 1; translate: 0 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(6 48 44 / 0%);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgb(5 41 38 / 97%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%), 0 10px 30px -18px rgb(3 34 32 / 70%);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--on-pine);
}
.brand-lockup img { width: 2.1rem; height: 2.1rem; }
.wordmark { font-size: 1.28rem; font-weight: 750; letter-spacing: -0.015em; color: var(--on-pine); }

.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  color: var(--on-pine-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-nav a:hover { color: var(--on-pine); background: rgb(255 255 255 / 8%); }

.lang-switch {
  margin-inline-start: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid rgb(255 255 255 / 26%);
  color: var(--on-pine);
  font-size: var(--fs-sm);
  font-weight: 650;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-switch:hover { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 45%); }
.lang-switch svg { width: 0.95rem; height: 0.95rem; opacity: 0.75; }

.menu-btn {
  display: none;
  margin-inline-start: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-ctrl);
  color: var(--on-pine);
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 1.5rem; height: 1.5rem; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgb(4 34 32 / 96%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 3rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .top { display: flex; align-items: center; min-height: 4.25rem; }
.mobile-menu .close-btn { margin-inline-start: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 2.2rem; }
.mobile-menu nav a {
  color: var(--on-pine);
  font-size: 1.65rem;
  font-weight: 700;
  padding: 0.55rem 0;
}
.mobile-menu .lang-switch { margin: 2.4rem 0 0; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(52rem 30rem at 12% -10%, rgb(22 199 154 / 17%), transparent 60%),
    radial-gradient(40rem 26rem at 95% 8%, rgb(11 107 100 / 45%), transparent 65%),
    var(--pine-900);
  color: var(--on-pine);
  margin-top: -4.25rem; /* header sits over the hero */
  padding-top: 4.25rem;
  overflow: clip;
}
/* faint QR-dot motif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1.6px);
  background-size: 1.35rem 1.35rem;
  mask-image: radial-gradient(60rem 40rem at 70% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(60rem 40rem at 70% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.028em;
  line-height: 1.06;
}
.hero h1 .accent { color: var(--mint); }
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--on-pine-2);
  max-width: 34rem;
}
.hero-ctas { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-meta {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--on-pine-3);
  font-size: var(--fs-sm);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--mint); }

/* load choreography (pure CSS, runs without JS) */
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.hero .stagger > * { animation: rise 0.9s var(--ease) both; }
.hero .stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero .stagger > *:nth-child(2) { animation-delay: 0.16s; }
.hero .stagger > *:nth-child(3) { animation-delay: 0.27s; }
.hero .stagger > *:nth-child(4) { animation-delay: 0.38s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-ctrl);
  font-weight: 650;
  font-size: 0.985rem;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), translate 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:active { translate: 0 1px; }
.btn-light { background: var(--surface); color: var(--pine-900); box-shadow: 0 8px 24px -12px rgb(0 0 0 / 55%); }
.btn-light:hover { background: var(--mint-pale); }
.btn-ghost { border: 1px solid rgb(255 255 255 / 32%); color: var(--on-pine); }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 55%); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-strong); }
.btn-outline { border: 1px solid var(--border-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---- Phone mockup ------------------------------------------------------- */
.hero-visual { position: relative; display: grid; place-items: center; animation: rise 1.1s var(--ease) 0.3s both; }

.phone {
  width: min(20.5rem, 78vw);
  border-radius: 2.4rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #0e3f3a, #04211f);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px rgb(255 255 255 / 9%);
  rotate: -3.5deg;
  transition: rotate 0.6s var(--ease);
}
.phone:hover { rotate: -1deg; }
[dir="rtl"] .phone { rotate: 3.5deg; }
[dir="rtl"] .phone:hover { rotate: 1deg; }

.phone-screen {
  border-radius: 1.9rem;
  background: var(--page);
  color: var(--ink);
  overflow: hidden;
  padding-bottom: 1rem;
}
.phone-pill { width: 6rem; height: 1.35rem; margin: 0.5rem auto 0; border-radius: var(--r-pill); background: #04211f; }

.diner { padding: 0.9rem 1rem 0; font-size: 0.82rem; }
.diner-bar { display: flex; align-items: center; gap: 0.55rem; padding-bottom: 0.75rem; }
.diner-bar img { width: 1.55rem; height: 1.55rem; }
.diner-bar .t1 { font-weight: 700; font-size: 0.9rem; }
.diner-bar .t2 { color: var(--ink-2); font-size: 0.72rem; }

.diner-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--info-bg);
  color: var(--info);
  font-weight: 650;
  font-size: 0.76rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-ctrl);
}
.pulse-dot { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; flex: none; }
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -0.28rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { scale: 0.5; opacity: 0.7; } 80%, 100% { scale: 1.25; opacity: 0; } }
.diner-status .txt { transition: opacity 0.3s ease; }
.diner-status .txt.swap { opacity: 0; }

.diner-items { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.diner-items li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.55rem 0.7rem;
}
.diner-items .qty { color: var(--brand-strong); font-weight: 700; font-family: var(--font-mono); font-size: 0.74rem; }
.diner-items .name { font-weight: 600; }
.diner-items .price { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); }

.diner-split {
  margin-top: 0.85rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-ctrl);
  padding: 0.65rem 0.7rem;
  display: grid;
  gap: 0.45rem;
  background: var(--surface-muted);
}
.diner-split .head { font-weight: 700; font-size: 0.74rem; color: var(--brand-strong); }
.split-row { display: flex; align-items: center; gap: 0.5rem; }
.split-row .avatar {
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 700;
  background: var(--mint-pale); color: var(--brand-strong);
  flex: none;
}
.split-row .amount { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.76rem; }
.split-row .tick { color: var(--ok); font-weight: 700; }

.diner-total {
  margin-top: 0.85rem;
  display: flex; align-items: center;
  font-weight: 750;
  padding-inline: 0.2rem;
}
.diner-total .amount { margin-inline-start: auto; font-family: var(--font-mono); }
.diner-cta {
  margin-top: 0.75rem;
  width: 100%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem;
  border-radius: var(--r-ctrl);
}

/* floating proof chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  animation: rise 1s var(--ease) both;
}
.float-chip .icon {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.chip-paid { top: 6%; inset-inline-end: -1rem; animation-delay: 0.75s; }
.chip-paid .icon { background: var(--ok-bg); color: var(--ok); }
.chip-paid .icon svg { width: 0.85rem; height: 0.85rem; }
.chip-rating { bottom: 9%; inset-inline-start: -1.6rem; animation-delay: 0.95s; }
.chip-rating .icon { background: #fdf3dd; color: var(--warn); }
.chip-rating .icon svg { width: 0.9rem; height: 0.9rem; }
.float-chip .sub { display: block; font-weight: 500; color: var(--ink-2); font-size: 0.7rem; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
html.anim-ok .chip-paid { animation: rise 1s var(--ease) 0.75s both, floaty 5.5s ease-in-out 2s infinite; }
html.anim-ok .chip-rating { animation: rise 1s var(--ease) 0.95s both, floaty 6.5s ease-in-out 2.6s infinite; }

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: -0.022em; }
.section-head h2 .quiet { color: var(--ink-2); font-weight: 650; }
.section-head .lede { margin-top: 1rem; color: var(--ink-2); font-size: 1.06rem; }

/* --------------------------------------------------------------------------
   Journey
   -------------------------------------------------------------------------- */
.journey { background: var(--page); padding-block: var(--section); }
.journey-track {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  position: relative;
  counter-reset: step;
}
.journey-track::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  inset-inline: 2.4rem;
  border-top: 2px dashed var(--border-strong);
}
.journey-step { position: relative; counter-increment: step; }
.journey-step .badge {
  position: relative;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pine-900);
  color: #fff;
  font-weight: 750;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px var(--page);
}
.journey-step .badge::after { content: counter(step); }
.journey-step:last-child .badge { background: var(--brand); }
.journey-step h3 { margin-top: 1.05rem; font-size: 1.08rem; font-weight: 750; }
.journey-step p { margin-top: 0.5rem; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Features bento
   -------------------------------------------------------------------------- */
.features { background: var(--surface); padding-block: var(--section); }
.bento {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}
.cell {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.7rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}
.cell:hover { border-color: rgb(13 148 136 / 45%); box-shadow: var(--shadow-card); translate: 0 -3px; }
.cell h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.012em; }
.cell p { color: var(--ink-2); font-size: 0.945rem; line-height: 1.65; }
.cell .demo { margin-top: auto; padding-top: 1.1rem; }
.c7 { grid-column: span 7; }
.c6 { grid-column: span 6; }
.c5 { grid-column: span 5; }

/* split demo */
.split-demo { display: grid; gap: 0.5rem; font-size: 0.82rem; }
.split-demo .row {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.55rem 0.75rem;
}
.split-demo .who { font-weight: 650; }
.split-demo .what { color: var(--ink-2); font-size: 0.74rem; }
.split-demo .amt { margin-inline-start: auto; font-family: var(--font-mono); font-size: 0.8rem; }
.split-demo .row.done { border-color: rgb(29 122 69 / 35%); background: var(--ok-bg); }
.split-demo .row.done .amt { color: var(--ok); font-weight: 650; }
.split-demo .confirm {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; font-weight: 650;
  color: var(--brand-strong);
  background: var(--mint-pale);
  padding: 0.42rem 0.8rem;
  border-radius: var(--r-pill);
}

/* floor demo */
.floor-demo { display: grid; gap: 0.9rem; }
.floor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.table-chip {
  aspect-ratio: 1.6;
  border-radius: var(--r-ctrl);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--neutral);
}
.table-chip.is-info { background: var(--info-bg); color: var(--info); border-color: rgb(32 80 200 / 25%); }
.table-chip.is-warn { background: var(--warn-bg); color: var(--warn); border-color: rgb(176 106 7 / 30%); }
.table-chip.is-ok { background: var(--ok-bg); color: var(--ok); border-color: rgb(29 122 69 / 30%); }
html.anim-ok .table-chip.is-warn { animation: attention 2.4s ease-in-out infinite; }
@keyframes attention { 0%, 100% { box-shadow: 0 0 0 0 rgb(176 106 7 / 0%); } 45% { box-shadow: 0 0 0 5px rgb(176 106 7 / 14%); } }
.floor-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; font-size: 0.74rem; color: var(--ink-2); }
.floor-legend span { display: inline-flex; align-items: center; gap: 0.42rem; }
.floor-legend i { width: 0.55rem; height: 0.55rem; border-radius: 3px; }
.floor-legend .l-info i { background: var(--info); }
.floor-legend .l-warn i { background: var(--warn); }
.floor-legend .l-ok i { background: var(--ok); }

/* menu demo */
.menu-demo { display: grid; gap: 0.5rem; font-size: 0.82rem; }
.menu-demo .row {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.55rem 0.75rem;
}
.menu-demo .dish { font-weight: 650; }
.menu-demo .tag {
  font-size: 0.68rem; font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--neutral-bg); color: var(--neutral);
}
.menu-demo .row.off .dish { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.toggle { margin-inline-start: auto; width: 2.15rem; height: 1.2rem; border-radius: var(--r-pill); background: var(--border-strong); position: relative; flex: none; }
.toggle::after {
  content: "";
  position: absolute;
  top: 0.14rem; inset-inline-start: 0.16rem;
  width: 0.92rem; height: 0.92rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}
.toggle.on { background: var(--brand); }
.toggle.on::after { inset-inline-start: auto; inset-inline-end: 0.16rem; }

/* feedback demo */
.stars { display: inline-flex; gap: 0.28rem; }
.stars svg { width: 1.35rem; height: 1.35rem; color: var(--amber); }
.stars .empty { color: var(--border-strong); }
.alert-toast {
  margin-top: 0.85rem;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid rgb(187 36 36 / 25%);
  border-radius: var(--r-ctrl);
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow-card);
}
.alert-toast .icon {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: #fbeaea; color: #bb2424;
  display: grid; place-items: center; flex: none;
}
.alert-toast .icon svg { width: 0.95rem; height: 0.95rem; }
.alert-toast b { display: block; font-size: 0.8rem; }
.alert-toast span { color: var(--ink-2); font-size: 0.72rem; }

/* multi-property demo */
.prop-demo { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.prop-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem; font-weight: 650;
}
.prop-chip i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }
.role-line { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.role-pill {
  font-size: 0.7rem; font-weight: 700;
  color: var(--brand-strong);
  background: var(--mint-pale);
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-pill);
}

/* history demo */
.ledger { display: grid; gap: 0.45rem; font-size: 0.78rem; }
.ledger .row {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
}
.ledger .st { margin-inline-start: auto; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700; padding: 0.16rem 0.55rem; border-radius: var(--r-pill); }
.ledger .st.ok { background: var(--ok-bg); color: var(--ok); }
.ledger .st.neutral { background: var(--neutral-bg); color: var(--neutral); }

/* --------------------------------------------------------------------------
   Photo band
   -------------------------------------------------------------------------- */
.photo-band {
  position: relative;
  min-height: clamp(24rem, 55vh, 32rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.photo-band img.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 34 32 / 88%), rgb(4 34 32 / 55%) 55%, rgb(4 34 32 / 38%));
}
.photo-band .container { position: relative; z-index: 1; padding-block: 4rem; }
.photo-band blockquote {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 30ch;
  text-wrap: balance;
}
.photo-band .by { margin-top: 1.1rem; color: var(--on-pine-2); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Consoles (tabs)
   -------------------------------------------------------------------------- */
.consoles { background: var(--page); padding-block: var(--section); }
.tabs { margin-top: 2.6rem; }
.tablist {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tab[aria-selected="true"] { background: var(--pine-900); color: #fff; box-shadow: var(--shadow-card); }
.tabpanels {
  margin-top: 2.2rem;
  /* The panel slides in from 26px; clip that travel so it can never widen the
     page (clip, not hidden — overflow-y stays visible for card shadows). */
  overflow-x: clip;
  overflow-y: visible;
}
.tabpanel { display: none; }
.tabpanel.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
html.js .tabpanel.active { animation: rise 0.55s var(--ease) both; }
.tabpanel h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.016em; }
.tabpanel .desc { margin-top: 0.9rem; color: var(--ink-2); }
.tabpanel ul.points { margin-top: 1.3rem; display: grid; gap: 0.65rem; }
.tabpanel ul.points li { display: flex; gap: 0.65rem; align-items: baseline; font-size: 0.95rem; }
.tabpanel ul.points .tick { color: var(--brand-strong); font-weight: 750; flex: none; }

/* mini console frames */
.frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 0.72rem;
}
.frame .bar {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.frame .bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border-strong); }
.frame .bar .addr {
  margin-inline-start: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.14rem 0.7rem;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.frame .body { display: grid; grid-template-columns: 5.2rem 1fr; min-height: 13rem; }
.frame .side { border-inline-end: 1px solid var(--border); background: var(--page); padding: 0.7rem 0.6rem; display: grid; gap: 0.45rem; align-content: start; }
.frame .side b { font-size: 0.62rem; color: var(--ink-2); font-weight: 650; }
.frame .side span { height: 0.55rem; border-radius: var(--r-pill); background: var(--border); }
.frame .side span.on { background: var(--brand); }
.frame .main { padding: 0.85rem; display: grid; gap: 0.6rem; align-content: start; }
.frame .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.frame .stat {
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.5rem 0.6rem;
  background: var(--surface);
}
.frame .stat b { display: block; font-family: var(--font-mono); font-size: 0.85rem; }
.frame .stat span { color: var(--ink-2); font-size: 0.6rem; }
.frame .line-row {
  display: flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.45rem 0.6rem;
  background: var(--surface);
}
.frame .line-row .grow { flex: 1; height: 0.5rem; border-radius: var(--r-pill); background: var(--surface-muted); }
.frame .line-row .st { font-size: 0.6rem; font-weight: 700; padding: 0.14rem 0.5rem; border-radius: var(--r-pill); }
.frame .st.ok { background: var(--ok-bg); color: var(--ok); }
.frame .st.warn { background: var(--warn-bg); color: var(--warn); }
.frame .st.info { background: var(--info-bg); color: var(--info); }

/* --------------------------------------------------------------------------
   Tech band
   -------------------------------------------------------------------------- */
.tech {
  background: var(--pine-950);
  color: var(--on-pine);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.tech-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.tech h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.018em; }
.tech .sub { margin-top: 0.85rem; color: var(--on-pine-2); font-size: 0.98rem; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-pine);
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 16%);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.tech-chip:hover { border-color: rgb(22 199 154 / 65%); background: rgb(22 199 154 / 10%); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  background:
    radial-gradient(46rem 26rem at 85% 115%, rgb(22 199 154 / 20%), transparent 60%),
    radial-gradient(40rem 24rem at 8% -20%, rgb(11 107 100 / 55%), transparent 65%),
    var(--pine-900);
  color: var(--on-pine);
  padding-block: var(--section);
  overflow: clip;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 6%) 1px, transparent 1.6px);
  background-size: 1.35rem 1.35rem;
  mask-image: radial-gradient(50rem 30rem at 30% 80%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(50rem 30rem at 30% 80%, #000, transparent 70%);
  pointer-events: none;
}
.contact .container { position: relative; text-align: center; display: grid; justify-items: center; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.024em; max-width: 22ch; }
.contact .lede { margin-top: 1.15rem; color: var(--on-pine-2); font-size: 1.08rem; max-width: 38rem; }
.contact-ctas { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.contact .fineprint { margin-top: 1.6rem; color: var(--on-pine-3); font-size: var(--fs-sm); }
.contact .fineprint a { color: var(--on-pine-2); text-decoration: underline; text-underline-offset: 3px; }
.contact .fineprint a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--pine-950); color: var(--on-pine-2); padding-block: 2.6rem; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 2.2rem;
}
.site-footer .brand-lockup img { width: 1.7rem; height: 1.7rem; }
.site-footer .wordmark { font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; margin-inline-start: auto; }
.footer-nav a { color: var(--on-pine-2); font-size: var(--fs-sm); }
.footer-nav a:hover { color: #fff; }
.footer-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: var(--fs-xs); color: var(--on-pine-3); }
.footer-meta a { color: var(--on-pine-2); }
.footer-meta a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; padding-block-start: 2.6rem; }
  .hero-sub { max-width: 40rem; }
  .hero-visual { margin-top: 1.6rem; }

  .journey-track { grid-template-columns: 1fr; gap: 0; }
  .journey-track::before {
    inset-inline: auto;
    inset-inline-start: 1.28rem;
    top: 1.3rem; bottom: 2.6rem;
    border-top: 0;
    border-inline-start: 2px dashed var(--border-strong);
  }
  .journey-step { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1.15rem; padding-block: 1.05rem; }
  .journey-step .badge { grid-row: span 2; }
  .journey-step h3 { margin-top: 0.35rem; }
  .journey-step p { grid-column: 2; }

  .c7, .c6, .c5 { grid-column: span 12; }
  .bento { gap: 1rem; }

  .tabpanel.active { grid-template-columns: 1fr; }
  .tech-row { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  :root { --fs-body: 1rem; }
  .header-row { min-height: 3.9rem; }
  .hero { margin-top: -3.9rem; padding-top: 3.9rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .chip-paid { inset-inline-end: -0.25rem; top: 3%; }
  .chip-rating { inset-inline-start: -0.25rem; bottom: 5%; }
  .phone { rotate: 0deg; }
  [dir="rtl"] .phone { rotate: 0deg; }
  .tablist { width: 100%; display: flex; }
  .tab { flex: 1; padding-inline: 0.5rem; text-align: center; }
  .frame .body { grid-template-columns: 4rem 1fr; }
  .contact-ctas { width: 100%; }
  .contact-ctas .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Motion layer & reference-inspired sections (marquee, stats, roles, FAQ)
   ========================================================================== */

/* ---- Scroll progress bar ------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: calc(var(--z-menu) + 2);
  background: linear-gradient(90deg, var(--mint), var(--brand));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
[dir="rtl"] .progress { transform-origin: right center; }

/* ---- Header demo CTA ------------------------------------------------------ */
.btn-demo {
  padding: 0.55rem 1.05rem;
  font-size: 0.875rem;
  margin-inline-start: 0.35rem;
}
.mobile-demo { display: inline-flex; margin-top: 1.8rem; }

/* ---- Hero orbs (parallax layers, JS moves them) --------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb-a {
  width: 24rem;
  height: 24rem;
  top: -7rem;
  inset-inline-start: -7rem;
  background: radial-gradient(circle, rgb(22 199 154 / 26%), transparent 70%);
  filter: blur(46px);
}
.orb-b {
  width: 21rem;
  height: 21rem;
  bottom: -8rem;
  inset-inline-end: -5rem;
  background: radial-gradient(circle, rgb(11 107 100 / 52%), transparent 70%);
  filter: blur(56px);
}

/* ---- Hero phone boot choreography ----------------------------------------- */
.phone-screen { position: relative; }
html.anim-ok .phone-screen::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgb(22 199 154 / 30%), transparent);
  animation: scan 1.15s var(--ease) 0.4s both;
  pointer-events: none;
}
@keyframes scan {
  0% { transform: translateY(-120%); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(430%); opacity: 0; }
}
html.anim-ok .diner > * { animation: rise 0.7s var(--ease) both; }
html.anim-ok .diner > *:nth-child(1) { animation-delay: 0.5s; }
html.anim-ok .diner > *:nth-child(2) { animation-delay: 0.64s; }
html.anim-ok .diner > *:nth-child(3) { animation-delay: 0.72s; }
html.anim-ok .diner > *:nth-child(4) { animation-delay: 1.0s; }
html.anim-ok .diner > *:nth-child(5) { animation-delay: 1.12s; }
html.anim-ok .diner > *:nth-child(6) { animation-delay: 1.22s; }
html.anim-ok .diner-items li { animation: rise 0.6s var(--ease) both; }
html.anim-ok .diner-items li:nth-child(1) { animation-delay: 0.78s; }
html.anim-ok .diner-items li:nth-child(2) { animation-delay: 0.86s; }
html.anim-ok .diner-items li:nth-child(3) { animation-delay: 0.94s; }
/* proof chips land after the UI has booted */
.chip-paid { animation-delay: 1.55s; }
.chip-rating { animation-delay: 1.8s; }
html.anim-ok .chip-paid { animation: rise 1s var(--ease) 1.55s both, floaty 5.5s ease-in-out 3s infinite; }
html.anim-ok .chip-rating { animation: rise 1s var(--ease) 1.8s both, floaty 6.5s ease-in-out 3.4s infinite; }

/* ---- Marquee band ---------------------------------------------------------- */
.marquee {
  background: var(--pine-950);
  border-block: 1px solid rgb(255 255 255 / 7%);
  padding-block: 0.9rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.mq-group { display: flex; }
.mq {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--on-pine-2);
  font-weight: 600;
  font-size: 0.93rem;
  margin-inline-end: 2.6rem;
}
.mq::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.85;
  margin-inline-start: 2.6rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Stats (count-up) ------------------------------------------------------ */
.stats {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
}
.stat-block { display: grid; gap: 0.3rem; align-content: start; }
.stat-block + .stat-block {
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 1.5rem;
}
.stat-block .num {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 500;
  color: var(--brand-strong);
  line-height: 1;
}
.stat-block .lbl { color: var(--ink-2); font-size: 0.92rem; max-width: 15rem; }

/* ---- Journey autoplay highlight -------------------------------------------- */
.journey-step .badge {
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), scale 0.35s var(--ease);
}
.journey-step h3 { transition: color 0.35s var(--ease); }
.journey-track .journey-step:last-child .badge { background: var(--pine-900); }
.journey-track .journey-step.active .badge {
  background: var(--brand);
  scale: 1.12;
  box-shadow: 0 0 0 6px var(--page), 0 0 0 8px rgb(13 148 136 / 28%);
}
.journey-track .journey-step.active h3 { color: var(--brand-strong); }

/* ---- Feature demos: hover micro-scenes -------------------------------------- */
.toggle, .toggle::after { transition: background 0.3s var(--ease), inset 0.3s var(--ease); }
.menu-demo .dish, .menu-demo .tag { transition: color 0.3s var(--ease), opacity 0.3s var(--ease), text-decoration-color 0.3s var(--ease); }
.cell:hover .menu-demo .row.off .toggle { background: var(--brand); }
.cell:hover .menu-demo .row.off .toggle::after { inset-inline-start: auto; inset-inline-end: 0.16rem; }
.cell:hover .menu-demo .row.off .dish { color: var(--ink); text-decoration-color: transparent; }
.cell:hover .menu-demo .row.off .tag { opacity: 0.35; }

.stars svg { transition: color 0.3s var(--ease); }
.cell:hover .stars svg.empty { color: var(--amber); }
.cell:hover .stars svg.empty:nth-child(4) { transition-delay: 0.1s; }
.cell:hover .stars svg.empty:nth-child(5) { transition-delay: 0.2s; }

.table-chip { transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.cell:hover .floor-grid .table-chip:nth-child(3) {
  background: var(--info-bg);
  color: var(--info);
  border-color: rgb(32 80 200 / 25%);
}

.split-demo .row { transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.cell:hover .split-demo .row:not(.done) { background: var(--ok-bg); border-color: rgb(29 122 69 / 35%); }
.cell:hover .split-demo .row:not(.done) .amt { color: var(--ok); font-weight: 650; }
.cell:hover .split-demo .row:not(.done) .amt::after { content: " ✓"; }

/* ---- Console tab panels: directional slide ---------------------------------- */
html.js .tabpanel.active { animation: panelIn 0.5s var(--ease) both; }
html[dir="rtl"].js .tabpanel.active { animation-name: panelInRtl; }
@keyframes panelIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes panelInRtl { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }

/* ---- Roles ------------------------------------------------------------------ */
.roles { background: var(--surface); padding-block: var(--section); }
.role-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
}
.role-card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.6rem 1.6rem 1.5rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}
.role-card:hover { border-color: rgb(13 148 136 / 45%); box-shadow: var(--shadow-card); translate: 0 -3px; }
.role-card.featured { background: var(--mint-pale); border-color: rgb(13 148 136 / 30%); }
.role-tag {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.24rem 0.7rem;
  border-radius: var(--r-pill);
}
.role-tag.is-info { background: var(--info-bg); color: var(--info); }
.role-tag.is-ok { background: var(--ok-bg); color: var(--ok); }
.role-tag.is-warn { background: var(--warn-bg); color: var(--warn); }
.role-tag.is-mint { background: #fff; color: var(--brand-strong); }
.role-card h3 { margin-top: 0.9rem; font-size: 1.14rem; letter-spacing: -0.01em; }
.role-card p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.94rem; line-height: 1.62; }

/* ---- FAQ -------------------------------------------------------------------- */
.faq { background: var(--surface); padding-block: var(--section); }
.faq-list { margin-top: 2.4rem; max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.2rem;
  text-align: start;
  font-weight: 650;
  font-size: 1.03rem;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-q:hover { color: var(--brand-strong); }
.faq-q .chev {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: var(--brand-strong);
  transition: transform 0.35s var(--ease);
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { color: var(--ink-2); font-size: 0.97rem; line-height: 1.68; padding-block-end: 1.25rem; max-width: 60ch; }
.faq-a.open { grid-template-rows: 1fr; }

/* ---- Photo band: slow drift -------------------------------------------------- */
.photo-band img.bg { transform: scale(1.05); }
html.anim-ok .photo-band.in img.bg { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.13) translateY(-1.6%); }
}

/* ---- Button feel -------------------------------------------------------------- */
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 1px; }

/* ---- Responsive for the new layer --------------------------------------------- */
@media (max-width: 64rem) {
  .mq { font-size: 0.85rem; }
}
@media (max-width: 48rem) {
  .orb { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block + .stat-block { border-inline-start: 0; padding-inline-start: 0; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .r { opacity: 1; translate: 0 0; }
  .marquee-track { animation: none; }
  html.anim-ok .photo-band.in img.bg { animation: none; }
  .progress { display: none; }
}

/* ==========================================================================
   v3: real product screens, contact form, theme & schedule feature demos
   ========================================================================== */

/* ---- Feature demos: menu themes + schedule ------------------------------- */
.theme-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.theme-card {
  border-radius: var(--r-ctrl);
  border: 1px solid var(--border);
  padding: 0.7rem 0.75rem 0.6rem;
  display: grid;
  gap: 0.4rem;
  transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cell:hover .theme-card { translate: 0 -2px; box-shadow: var(--shadow-card); }
.theme-card.t-light { background: var(--surface); }
.theme-card.t-dark { background: var(--pine-900); border-color: var(--pine-800); }
.theme-card .tc-bar { height: 0.5rem; border-radius: var(--r-pill); background: var(--brand); width: 55%; }
.theme-card.t-dark .tc-bar { background: var(--mint); }
.theme-card .tc-line { height: 0.34rem; border-radius: var(--r-pill); background: var(--surface-muted); }
.theme-card .tc-line.short { width: 70%; }
.theme-card.t-dark .tc-line { background: rgb(255 255 255 / 14%); }
.theme-card .tc-dots { display: flex; gap: 0.3rem; margin-top: 0.1rem; }
.theme-card .tc-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid rgb(0 0 0 / 8%); }
.theme-card .tc-dots .d1 { background: var(--brand); }
.theme-card .tc-dots .d2 { background: var(--amber); }
.theme-card .tc-dots .d3 { background: var(--info); }
.theme-card .tc-name { font-size: 0.68rem; font-weight: 650; color: var(--ink-2); }
.theme-card.t-dark .tc-name { color: var(--on-pine-2); }

.sched-demo { display: grid; gap: 0.5rem; font-size: 0.78rem; }
.sched-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-ctrl);
  padding: 0.5rem 0.75rem;
}
.sched-row .mono { font-size: 0.74rem; }
.sched-row .st {
  margin-inline-start: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: var(--r-pill);
}
.sched-row .st.ok { background: var(--ok-bg); color: var(--ok); }
.sched-row .st.neutral { background: var(--neutral-bg); color: var(--neutral); }

/* ---- Screens (real product screenshots) ----------------------------------- */
.screens { background: var(--surface); padding-block: var(--section); }
.shot-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.shot-row.rev { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); }
.shot-row.rev .shot-copy { order: 2; }
.shot-copy h3 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); letter-spacing: -0.016em; }
.shot-copy p { margin-top: 0.85rem; color: var(--ink-2); font-size: 0.98rem; }
.shot-frame {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: 0 2px 6px rgb(16 24 40 / 6%), 0 24px 48px -24px rgb(16 24 40 / 25%);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.shot-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border-strong); }
.shot-bar .addr {
  margin-inline-start: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.16rem 0.75rem;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  direction: ltr;
}
.shot-frame img { display: block; width: 100%; height: auto; transition: scale 0.6s var(--ease); }
.shot-frame:hover img { scale: 1.015; }

/* roles moves to page background so the screens section reads white */
.roles { background: var(--page); }
.role-card { background: var(--surface); }

/* ---- Contact grid + form ---------------------------------------------------- */
.contact .container.contact-grid {
  text-align: start;
  justify-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy { display: grid; justify-items: start; align-content: start; }
.contact .contact-copy h2 { max-width: none; }
.contact .contact-copy .contact-ctas { justify-content: flex-start; }

.contact-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: grid;
  gap: 1rem;
}
.contact-form h3 { font-size: 1.35rem; letter-spacing: -0.014em; }
.form-sub { color: var(--ink-2); font-size: 0.92rem; margin-top: -0.5rem; }
.contact-form .field { display: grid; gap: 0.4rem; }
.contact-form label { font-size: 0.85rem; font-weight: 650; }
.contact-form label .opt { color: var(--ink-2); font-weight: 500; font-size: 0.78rem; }
.contact-form input:not(.hp) {
  height: 2.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-ctrl);
  background: var(--surface);
  padding-inline: 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-form input:not(.hp):focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.contact-form input[aria-invalid='true'] {
  border-color: var(--warn);
  background: #fffdf8;
}
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
[dir='rtl'] .contact-form input[dir='ltr'] { text-align: end; }
/* Honeypot: hidden without off-screen offsets, which would scroll in one
   direction or the other depending on LTR/RTL. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-error {
  color: var(--warn);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--warn-bg);
  border-radius: var(--r-ctrl);
  padding: 0.6rem 0.85rem;
}
.form-error a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.form-submit { justify-self: start; padding-inline: 1.8rem; }
.form-submit[disabled] { opacity: 0.65; cursor: progress; }
.form-note { color: var(--ink-2); font-size: 0.8rem; }

.form-success {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  align-self: center;
}
.form-success .ok-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
}
.form-success .ok-badge svg { width: 1.4rem; height: 1.4rem; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { color: var(--ink-2); }

/* ---- v3 responsive ----------------------------------------------------------- */
@media (max-width: 64rem) {
  .shot-row,
  .shot-row.rev { grid-template-columns: 1fr; }
  .shot-row.rev .shot-copy { order: 0; }
  .contact .container.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .field-pair { grid-template-columns: 1fr; }
  .form-submit { justify-self: stretch; }
}
