/* unidash.food, the public site. Fourth design, 2026-11-05. The owner on the third (cream, arches):
   "bland, and still not framed as an application. This is not a Drinkat marketing website, this is
   the UniDash application main website, the next Talabat." Studied: Awwwards Mobile & Apps Sites of
   the Day (Grail: the product's own UI floating in space, story chapters, a giant number behind the
   phone; Wispr Flow, SWSH: statement type, colour blocks, scroll-driven reveals).
   So: the app is the hero. Brand blue, bold uppercase Epilogue, the real app screens in a phone,
   pieces of the real UI floating around it, a pinned scroll story (Choose, Pick a time, Collect)
   with a giant word, time and pickup code behind the phone, a floating app dock. Motion stops under
   prefers-reduced-motion and nothing is hidden without script.
   Used by the landing pages (inlined, minified, by build_landing.py), every secondary page (with
   pages.css) and 404.html. Light only. Right-to-left from logical properties. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  src: url("/assets/fonts/epilogue-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 500 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

/* ─── Tokens (the app's brand kit: core/lib/core/theme.dart) ─── */
:root {
  color-scheme: light;
  --blue: #1533BF;
  --blue-hi: #2747D9;
  --blue-deep: #0C2494;
  --blue-soft: #E6EAFC;
  --ink: #0B0C12;
  --ink-2: #3A3D4A;
  --muted: #6B6F7E;
  --line: rgba(11, 12, 18, 0.12);
  --line-soft: rgba(11, 12, 18, 0.07);
  --paper: #F4F5F9;
  --white: #FFFFFF;
  --green: #15803D;
  --green-soft: #DCFCE7;
  --green-ink: #166534;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(255, 255, 255, 0.16);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Epilogue", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --section: clamp(88px, 12vw, 168px);
}
:root[lang="ar"] {
  --font-body: "Plex Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Plex Arabic", "Epilogue", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:root[lang="ar"] body { line-height: 1.8; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: inherit; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
strong, b { font-weight: 600; }
:root[lang="ar"] strong, :root[lang="ar"] b { font-weight: 700; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* A rounded media tile on a tint taken from its product (build_pages.render_art). The class keeps
   its old name: the venue and menu pages use it. */
.arch { position: relative; overflow: hidden; border-radius: 28px; background: var(--tint, var(--paper)); isolation: isolate; }
.arch > img, .arch .arch__img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }

/* ─── The phone: the real app screenshots, in a device drawn in CSS ─── */
.phone { --pw: 300px; position: relative; width: var(--pw); padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.165); background: linear-gradient(150deg, #34363F 0%, #121319 45%, #0B0C12 100%); box-shadow: 0 50px 90px -40px rgba(6, 10, 40, 0.6), 0 18px 40px -24px rgba(6, 10, 40, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 3px; background: #1A1B22; inset-inline-end: -3px; }
.phone::before { top: 26%; height: 11%; }
.phone::after { inset-inline-end: auto; inset-inline-start: -3px; top: 20%; height: 7%; }
.phone__screen { position: relative; aspect-ratio: 720 / 1564; border-radius: calc(var(--pw) * 0.135); overflow: hidden; background: #F8FAFC; }
.phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── Pieces of the app's UI (the same language as the app: white cards, blue, status colours) ─── */
.ui { position: absolute; left: calc(50% + var(--x, 0%)); top: calc(50% + var(--y, 0%)); z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 22px; background: #fff; color: var(--ink); font-size: 0.86rem; line-height: 1.35; text-align: start; box-shadow: 0 30px 60px -28px rgba(4, 12, 64, 0.55), 0 4px 12px -4px rgba(4, 12, 64, 0.16); transform: translate(-50%, -50%) translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--r, 0deg)); will-change: transform; animation: card-in 1s var(--ease) both; animation-delay: calc(0.55s + var(--i, 0) * 0.09s); }
.ui--flat { position: relative; left: auto; top: auto; transform: none; animation: none; box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -18px rgba(4, 12, 64, 0.35); will-change: auto; }
.ui__meta { font-size: 0.74rem; color: var(--muted); }
.ui__icon { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.ui__icon svg { width: 24px; height: auto; }
.ui__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ui__text b { font-size: 0.92rem; }
.ui__text span:last-child { color: var(--ink-2); }
.ui--notif { flex-direction: row; align-items: center; width: 290px; border-radius: 24px; padding: 12px 16px 12px 12px; background: rgba(255, 255, 255, 0.97); }
.ui--code { align-items: center; padding: 14px 18px 16px; }
.ui__digits { display: flex; gap: 6px; }
.ui__digits b { width: 46px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font: 800 1.7rem/1 var(--font-display); letter-spacing: 0; }
.ui--status { width: 236px; }
.ui__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui__head b { font-size: 0.95rem; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.chip--amber { background: var(--amber-soft); color: var(--amber); }
.chip--green { background: var(--green-soft); color: var(--green-ink); }
.ui__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ui__bar i { height: 5px; border-radius: 5px; background: var(--paper); }
.ui__bar i.on { background: var(--blue); }
.ui__steps { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 0.7rem; color: var(--muted); }
.ui__slotrow { display: flex; gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 92px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); }
.slot b { font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.slot small { font-size: 0.66rem; color: var(--muted); }
.slot--on { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot--on small { color: rgba(255, 255, 255, 0.8); }
.ui--dish { width: 176px; padding: 8px 8px 12px; gap: 9px; z-index: 1; }
.ui--dish .ui__img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tint, var(--paper)); }
.ui--dish .ui__img img { width: 100%; height: 100%; object-fit: cover; }
.ui--dish .ui__row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 4px; }
.ui--dish .ui__row b { font-size: 0.84rem; line-height: 1.25; }
.ui--dish .ui__row span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ui__add { position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: 999px; background: #fff; color: var(--blue); display: grid; place-items: center; font: 600 1.1rem/1 var(--font-body); box-shadow: 0 4px 10px rgba(4, 12, 64, 0.15); }
.btn-mini { display: inline-flex; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 0.8rem; font-weight: 600; }

/* ─── Header ─── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ink); background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line-soft); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
:root.on-blue .site-header:not(.is-scrolled) { color: #fff; background: transparent; box-shadow: none; }
.header__bar { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: background-color 0.5s, color 0.5s; }
:root.on-blue .site-header:not(.is-scrolled) .logo-tile { background: #fff; color: var(--blue); }
.logo-tile svg { width: 22px; height: auto; display: block; }
.word { font: 700 1.3rem/1 "Epilogue", "Inter", system-ui, sans-serif; letter-spacing: -0.035em; }
.nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.nav a { position: relative; color: inherit; text-decoration: none; font-size: 0.96rem; font-weight: 500; white-space: nowrap; opacity: 0.9; }
.nav a::after { content: ""; position: absolute; inset: auto 0 -6px 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
:root[dir="rtl"] .nav a::after { transform-origin: left; }
:root[dir="rtl"] .nav a:hover::after { transform-origin: right; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-link + .header-actions { margin-inline-start: auto; }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; color: inherit; text-decoration: none; font-size: 0.95rem; font-weight: 500; opacity: 0.85; transition: opacity 0.3s; }
.lang-switch:hover { opacity: 1; }
.mnav { display: none; }
.mnav > summary { list-style: none; cursor: pointer; width: 46px; height: 42px; border: 1px solid currentColor; border-radius: 999px; display: grid; place-content: center; gap: 5px; position: relative; z-index: 2; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.mnav[open] > summary { color: #fff; }
.mnav[open] > summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
.mnav[open] > summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mnav__panel { position: fixed; inset: 0; background: var(--blue); color: #fff; padding: calc(var(--header-h) + 28px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; }
.mnav__panel nav { display: grid; gap: 4px; }
.mnav__panel nav a { font: 800 2.6rem/1.1 var(--font-display); letter-spacing: -0.045em; text-transform: uppercase; color: #fff; text-decoration: none; }
:root[lang="ar"] .mnav__panel nav a { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.4; }
.mnav__panel p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.mnav[open] .mnav__panel nav a { animation: rise 0.7s var(--ease) both; }
.mnav[open] .mnav__panel nav a:nth-child(2) { animation-delay: 0.05s; }
.mnav[open] .mnav__panel nav a:nth-child(3) { animation-delay: 0.1s; }
.mnav[open] .mnav__panel nav a:nth-child(4) { animation-delay: 0.15s; }
.mnav[open] .mnav__panel nav a:nth-child(5) { animation-delay: 0.2s; }
.mnav[open] .mnav__panel nav a:nth-child(6) { animation-delay: 0.25s; }
@media (max-width: 920px) {
  .nav, .header-actions .lang-switch { display: none; }
  .mnav { display: block; }
  .header-actions { margin-inline-start: auto; }
  :root { --header-h: 64px; }
}

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: scale(0.98); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Chapter label: a small numbered tag, as in a story */
.chapter { display: flex; align-items: center; gap: 12px; font: 500 0.95rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); }
.chapter span { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid currentColor; font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.chapter--light { color: var(--on-dark-2); }

/* ─── Hero ─── */
.hero { position: relative; min-height: max(760px, 100svh); padding-top: calc(var(--header-h) + clamp(12px, 3.5vh, 44px)); background: var(--blue); color: #fff; overflow: hidden; isolation: isolate; }
.hero__top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__type { margin: 0; font: 800 clamp(3.2rem, 7.6vw, 8.8rem)/0.86 var(--font-display); text-transform: uppercase; letter-spacing: -0.055em; pointer-events: none; }
:root[lang="ar"] .hero__type { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.15; font-size: clamp(3.2rem, 7.4vw, 8.4rem); }
.hero__line { display: block; animation: rise-line 1.2s var(--ease) both; }
.hero__line + .hero__line { animation-delay: 0.12s; }
.hero__stage { --pw: clamp(210px, min(20vw, 30vh), 292px); position: absolute; left: 50%; bottom: calc(var(--pw) * -0.64); z-index: 2; width: var(--pw); transform: translateX(-50%); perspective: 1400px; }
.hero__phone { --pw: inherit; z-index: 2; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translate3d(0, var(--lift, 0px), 0) scale(var(--sc, 1)); transform-style: preserve-3d; animation: phone-in 1.3s var(--ease) 0.2s both; }
.hero__stage .ui:nth-of-type(1) { --i: 0; }
.hero__stage .ui:nth-of-type(2) { --i: 1; }
.hero__stage .ui:nth-of-type(3) { --i: 2; }
.hero__stage .ui:nth-of-type(4) { --i: 3; }
.hero__stage .ui:nth-of-type(5) { --i: 4; }
.hero__stage .ui:nth-of-type(6) { --i: 5; }
.hero__stage .ui:nth-of-type(7) { --i: 6; }
.hero__lead { margin-top: clamp(16px, 2.6vh, 30px); max-width: 34rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: rgba(255, 255, 255, 0.86); animation: rise 1s var(--ease) 0.35s both; }
.hero__scroll { position: absolute; inset-inline-end: var(--gutter); bottom: 28px; z-index: 4; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 0.95rem; animation: rise 1s var(--ease) 1s both; }
.hero__scroll svg { width: 18px; height: 18px; transform: rotate(90deg); animation: nudge 2.4s ease-in-out infinite; }
@media (max-width: 760px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 28px) 0 0; }
  .hero__type { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .hero__stage { --pw: min(58vw, 250px); position: relative; left: auto; bottom: auto; transform: none; margin: 44px auto calc(var(--pw) * -0.7); }
  .hero__scroll { display: none; }
  .hero__stage .ui { font-size: 0.78rem; }
  .ui--notif { width: 236px; }
  .ui--status { width: 200px; }
  .ui__digits b { width: 36px; height: 44px; font-size: 1.35rem; }
  .hero__stage .ui--slots, .hero__stage .ui--dish { display: none; }
  .hero__stage .ui--notif { --x: -10% !important; --y: -36% !important; }
  .hero__stage .ui--code { --x: 48% !important; --y: -10% !important; }
  .hero__stage .ui--status { --x: -42% !important; --y: 4% !important; }
}

/* ─── Chapter 1: the statement ─── */
.statement { background: var(--ink); color: #fff; padding: var(--section) 0; }
.statement .chapter { color: var(--on-dark-2); }
.statement__text { margin-top: 44px; max-width: 17ch; font: 800 clamp(2.5rem, 6.2vw, 6.6rem)/0.96 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; }
:root[lang="ar"] .statement__text { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.3; max-width: 20ch; }
.js .statement__text .w { color: rgba(255, 255, 255, 0.14); transition: color 0.35s linear; }
.js .statement__text .w.on { color: #fff; }

/* ─── Chapters 2 to 4: the pinned story ─── */
.story { --bg: var(--white); --fg: var(--ink); --giant: rgba(21, 51, 191, 0.09); position: relative; height: 330vh; background: var(--bg); color: var(--fg); transition: background-color 0.8s var(--ease), color 0.8s var(--ease); }
.story[data-at="2"] { --bg: var(--blue-soft); --giant: rgba(21, 51, 191, 0.12); }
.story[data-at="3"] { --bg: var(--green); --fg: #fff; --giant: rgba(255, 255, 255, 0.14); }
.story__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.story__bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.story__giant { grid-area: 1 / 1; font: 800 clamp(7rem, 26vw, 30rem)/0.8 var(--font-display); letter-spacing: -0.06em; text-transform: uppercase; white-space: nowrap; color: var(--giant); opacity: 0; transform: translateY(10%) scale(0.96); transition: opacity 0.8s var(--ease), transform 1s var(--ease), color 0.8s var(--ease); font-variant-numeric: tabular-nums; }
:root[lang="ar"] .story__giant { text-transform: none; letter-spacing: 0; font-weight: 700; }
.story[data-at="1"] [data-giant="1"], .story[data-at="2"] [data-giant="2"], .story[data-at="3"] [data-giant="3"] { opacity: 1; transform: none; }
.story__grid { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.story__copy .chapter { color: inherit; opacity: 0.6; }
.story__steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
.story__steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.story[data-at="1"] [data-step="1"], .story[data-at="2"] [data-step="2"], .story[data-at="3"] [data-step="3"] { opacity: 1; transform: none; }
.story__steps h3 { font: 800 clamp(2.6rem, 5vw, 5rem)/0.9 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; }
:root[lang="ar"] .story__steps h3 { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.25; }
.story__steps p { margin-top: 18px; max-width: 22rem; font-size: 1.15rem; line-height: 1.55; opacity: 0.8; }
.story__device .phone { --pw: clamp(230px, min(22vw, 34vh), 310px); }
.story__device .phone__screen > img { opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.story__device .phone__screen > img.is-on { opacity: 1; transform: none; }
.phone__push { position: absolute; left: 4%; right: 4%; top: 6.5%; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.96); color: var(--ink); font-size: 0.74rem; line-height: 1.3; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(-130%); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.phone__push .ui__icon { width: 32px; height: 32px; border-radius: 9px; }
.phone__push .ui__icon svg { width: 19px; }
.phone__push .ui__text b { font-size: 0.8rem; }
.story[data-at="3"] .phone__push { opacity: 1; transform: none; transition-delay: 0.35s; }
.story__dots { list-style: none; margin: 0; padding: 0; justify-self: end; display: grid; gap: 12px; }
.story__dots li { width: 10px; height: 10px; border-radius: 999px; border: 1.5px solid currentColor; opacity: 0.45; transition: background-color 0.4s, opacity 0.4s, height 0.5s var(--ease); }
.story[data-at="1"] [data-dot="1"], .story[data-at="2"] [data-dot="2"], .story[data-at="3"] [data-dot="3"] { background: currentColor; opacity: 1; height: 30px; }
@media (max-width: 860px) {
  .story { height: 300vh; }
  .story__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: calc(var(--header-h) + 24px); gap: 20px; }
  .story__steps { margin-top: 18px; }
  .story__steps h3 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .story__steps p { font-size: 1rem; margin-top: 10px; }
  .story__device { justify-self: center; }
  .story__device .phone { --pw: min(52vw, 21vh, 250px); }
  .story__dots { display: none; }
}

/* ─── Chapter 5: features, sliding sideways (site.js pins it on wide screens) ─── */
.features { position: relative; background: var(--paper); }
.features__head { padding-top: var(--section); display: flex; flex-direction: column; gap: 28px; }
.features__title { max-width: 16ch; font: 800 clamp(2.4rem, 5.4vw, 5.6rem)/0.9 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; }
:root[lang="ar"] .features__title { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.features__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.features__viewport::-webkit-scrollbar { display: none; }
.features__track { list-style: none; margin: 0; padding: 48px var(--gutter) var(--section); display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; }
.fcard { flex: 0 0 clamp(280px, 28vw, 400px); min-height: clamp(400px, 54vh, 520px); display: flex; flex-direction: column; padding: 14px 14px 28px; border-radius: 32px; background: #fff; color: var(--ink); scroll-snap-align: center; }
.fcard__ui { flex: 1; min-height: 210px; display: grid; place-items: center; padding: 20px; border-radius: 22px; background: var(--paper); margin-bottom: 26px; }
.fcard h3 { padding: 0 14px; font: 800 1.75rem/1 var(--font-display); letter-spacing: -0.04em; text-transform: uppercase; }
:root[lang="ar"] .fcard h3 { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.35; }
.fcard p { margin-top: 12px; padding: 0 14px; line-height: 1.55; color: var(--ink-2); }
.fcard--blue { background: var(--blue); color: #fff; }
.fcard--blue .fcard__ui { background: rgba(255, 255, 255, 0.1); }
.fcard--blue p, .fcard--ink p { color: rgba(255, 255, 255, 0.76); }
.fcard--ink { background: var(--ink); color: #fff; }
.fcard--ink .fcard__ui { background: rgba(255, 255, 255, 0.06); }
.fcard--green { background: var(--green-soft); }
.fcard--green .fcard__ui { background: rgba(255, 255, 255, 0.6); }
.fcard__ui--cards { display: flex; justify-content: center; gap: 12px; }
.chip-card { width: 96px; height: 62px; padding: 10px 14px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -14px rgba(4, 12, 64, 0.35); }
.chip-card svg { width: 100%; height: 100%; display: block; }
.lang { display: inline-flex; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.lang__opt { min-width: 92px; padding: 14px 20px; border-radius: 999px; text-align: center; font: 700 1.5rem/1 var(--font-display); color: rgba(255, 255, 255, 0.7); }
.lang__opt--on { background: #fff; color: var(--blue); }
.js .lang__opt { transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.swap span { padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: 0.92rem; }
.swap__out { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); text-decoration: line-through; }
.swap__in { background: #fff; color: var(--ink); }
.swap svg { width: 20px; height: 20px; color: #fff; }
:root[dir="rtl"] .swap svg { transform: scaleX(-1); }
.ui--reorder { width: 230px; }
.features.is-pinned .features__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.features.is-pinned .features__head { padding-top: calc(var(--header-h) + 8px); }
.features.is-pinned .features__viewport { overflow: visible; scroll-snap-type: none; }
.features.is-pinned .features__track { padding-bottom: 32px; will-change: transform; }

/* ─── Chapter 6: where (blue) ─── */
.where { background: var(--blue); color: #fff; padding: var(--section) 0; }
.where .chapter { color: var(--on-dark-2); }
.where__title { margin-top: 28px; font: 800 clamp(3rem, 9vw, 9.5rem)/0.84 var(--font-display); letter-spacing: -0.055em; text-transform: uppercase; }
:root[lang="ar"] .where__title { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.2; }
.vrows { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.vrow a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 32px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-dark); color: inherit; text-decoration: none; }
.vrow__name { font: 700 clamp(1.9rem, 4.4vw, 3.8rem)/1.02 var(--font-display); letter-spacing: -0.04em; transition: transform 0.7s var(--ease); }
:root[lang="ar"] .vrow__name { letter-spacing: 0; line-height: 1.3; }
.vrow a:hover .vrow__name { transform: translateX(16px); }
:root[dir="rtl"] .vrow a:hover .vrow__name { transform: translateX(-16px); }
.vrow__meta { text-align: end; color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.5; }
.vrow__go { width: 54px; height: 54px; border-radius: 999px; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background-color 0.4s, color 0.4s, border-color 0.4s; }
.vrow__go svg { width: 20px; height: 20px; }
:root[dir="rtl"] .vrow__go svg { transform: scaleX(-1); }
.vrow a:hover .vrow__go { background: #fff; color: var(--blue); border-color: #fff; }
.where .operator { margin-top: 40px; max-width: 62rem; font-size: 0.86rem; line-height: 1.7; color: var(--on-dark-2); }
.where .operator strong { color: #fff; font-weight: 500; }
.vpeek { position: fixed; left: 0; top: 0; z-index: 40; width: 210px; aspect-ratio: 1; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.vpeek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.vpeek .arch { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.45); }
.vpeek .arch__img { inset: 0; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .vrow a { grid-template-columns: minmax(0, 1fr) auto; }
  .vrow__meta { grid-column: 1; grid-row: 2; text-align: start; }
  .vrow__go { grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 46px; }
}

/* ─── For cafeterias (ink) ─── */
.staff { background: var(--ink); color: #fff; padding: var(--section) 0; overflow: hidden; }
.staff__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.staff__title { margin-top: 28px; max-width: 14ch; font: 800 clamp(2.4rem, 5.4vw, 5.4rem)/0.9 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; }
:root[lang="ar"] .staff__title { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.staff__lead { margin-top: 24px; max-width: 32rem; font-size: 1.15rem; line-height: 1.6; color: var(--on-dark-2); }
.staff__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.staff__device { display: flex; justify-content: center; }
.staff__device .phone { --pw: clamp(230px, 22vw, 300px); transform: rotate(-7deg); }
:root[dir="rtl"] .staff__device .phone { transform: rotate(7deg); }
.phone--dark .phone__screen { background: #fff; }
@media (max-width: 860px) { .staff__grid { grid-template-columns: 1fr; } }

/* ─── Coming soon ─── */
.soon { background: #fff; padding: var(--section) 0 0; overflow: hidden; text-align: center; }
.soon__title { font: 800 clamp(4rem, 14vw, 15rem)/0.8 var(--font-display); letter-spacing: -0.06em; text-transform: uppercase; color: var(--blue); }
:root[lang="ar"] .soon__title { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.15; }
.soon__lead { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 190px; padding: 12px 24px 13px; border-radius: 16px; background: var(--ink); color: #fff; font: 700 1.2rem/1.15 var(--font-display); letter-spacing: -0.02em; text-align: start; }
.store small { font: 500 0.74rem/1.3 var(--font-body); letter-spacing: 0; color: rgba(255, 255, 255, 0.7); }
.soon__phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px); height: clamp(280px, 34vw, 480px); margin-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.soon__phone { --pw: clamp(200px, 21vw, 300px); }
.soon__phone--a { transform: translateY(14%) rotate(-6deg); }
.soon__phone--b { transform: translateY(4%) rotate(5deg); }
.js .soon__phones .soon__phone { transition: transform 1.4s var(--ease); }
.js .soon__phones:not(.is-in) .soon__phone--a { transform: translateY(60%) rotate(-10deg); }
.js .soon__phones:not(.is-in) .soon__phone--b { transform: translateY(70%) rotate(10deg); }

/* ─── The dock: a floating app button (site.js shows it after the hero) ─── */
.dock { position: fixed; left: 50%; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 18px 40px -14px rgba(4, 8, 30, 0.55); transform: translate(-50%, 160%); transition: transform 0.7s var(--ease); }
:root[dir="rtl"] .dock { padding: 7px 7px 7px 22px; }
.dock.is-on { transform: translate(-50%, 0); }
.dock__icon { width: 42px; height: 42px; border-radius: 999px; background: var(--blue); display: grid; place-items: center; flex: none; }
.dock__icon svg { width: 24px; height: auto; color: #fff; }
.dock__text { display: flex; flex-direction: column; line-height: 1.2; }
.dock__text b { font: 700 0.98rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.dock__text span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.68); white-space: nowrap; }

/* ─── Footer (ink) ─── */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: var(--section) 0 40px; font-size: 0.97rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: #fff; }
.foot__ask { font: 800 clamp(2.8rem, 7vw, 6.4rem)/0.88 var(--font-display); letter-spacing: -0.055em; text-transform: uppercase; color: #fff; }
:root[lang="ar"] .foot__ask { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.25; }
.site-footer .foot__mail { display: inline-block; margin-top: 22px; font: 700 clamp(1.4rem, 3vw, 2.4rem)/1.2 "Epilogue", "Inter", system-ui, sans-serif; letter-spacing: -0.03em; color: #fff; border-bottom: 2px solid var(--blue-hi); padding-bottom: 6px; }
.site-footer .foot__mail:hover { border-color: #fff; }
.foot__note { margin-top: 22px; max-width: 46rem; line-height: 1.7; }
.footer__grid { margin-top: clamp(56px, 8vw, 104px); padding-top: 40px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
.fh { margin: 0 0 14px; font: 600 0.98rem/1.3 var(--font-body); letter-spacing: 0; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer .brand-link { color: #fff; }
.footer__about { margin-top: 14px; max-width: 24rem; line-height: 1.6; }
.footer__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; }
.footer__base a { text-decoration: underline; }
/* room for the dock on the landing pages */
:root.on-blue .site-footer { padding-bottom: 104px; }

/* ─── Reveal on scroll (site.js adds .js, then .is-in) ─── */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─── 404 ─── */
.nf { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 48px) 0 64px; text-align: center; background: var(--blue); color: #fff; }
.nf h1 { font: 800 clamp(3rem, 9vw, 7rem)/0.86 var(--font-display); letter-spacing: -0.05em; text-transform: uppercase; }
.nf p { margin-top: 18px; color: rgba(255, 255, 255, 0.82); }
.nf .hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nf .btn { background: #fff; color: var(--ink); border-color: #fff; }
.nf .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }

/* ─── Keyframes ─── */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-line { from { opacity: 0; transform: translateY(32%); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; translate: 0 18%; } to { opacity: 1; translate: 0 0; } }
@keyframes card-in { from { opacity: 0; scale: 0.82; } to { opacity: 1; scale: 1; } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .statement__text .w { color: #fff !important; }
  .js .soon__phones:not(.is-in) .soon__phone--a { transform: translateY(14%) rotate(-6deg); }
  .js .soon__phones:not(.is-in) .soon__phone--b { transform: translateY(4%) rotate(5deg); }
}
@media print { .site-header, .site-footer, .dock, .vpeek { display: none !important; } }
