/* PagerPoint marketing site. One stylesheet for / (ar, rtl) and /en/ (en, ltr).
   Clay & Espresso tokens, mirrored from frontend/lib/theme/clay_colors.dart.

   The look (2026-11-20, third pass, after the awwwards references): print,
   not app. Type leads: a display face for headings (Reem Kufi in Arabic,
   Instrument Serif in English), JetBrains Mono for indexes and labels, the
   app's own Readex Pro inside the phone and card drawings. Sections are
   numbered and divided by hairlines instead of boxed in cards; paper grain
   sits over the page.

   Layout uses logical properties only, so the same rules are correct in
   both directions. Loops and transitions are CSS; site.js only reports
   scroll position (the story scene, --p, the lit words) and the page is
   complete without it.

   Motion rules (notes/decisions/marketing-site.md, "Motion"):
   - Every animated element's plain style is its meaningful final state, so
     a browser without the animation, or a reader who asked for reduced
     motion, sees a complete page.
   - Only transform and opacity move.
   - Scroll reveals need scroll-driven animations; where those are missing
     the content is simply there. */

@font-face { font-family: 'ReadexPro'; src: url('/site/fonts/ReadexPro-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'ReadexPro'; src: url('/site/fonts/ReadexPro-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'ReadexPro'; src: url('/site/fonts/ReadexPro-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'PlexArabic'; src: url('/site/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'PlexArabic'; src: url('/site/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'PlexArabic'; src: url('/site/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
/* Display and label faces (SIL Open Font License; subset, see fonts/README). */
@font-face { font-family: 'ReemKufi'; src: url('/site/fonts/ReemKufi.woff') format('woff'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'InstrumentSerif'; src: url('/site/fonts/InstrumentSerif-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'InstrumentSerif'; src: url('/site/fonts/InstrumentSerif-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('/site/fonts/JetBrainsMono.woff') format('woff'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #F1E9DC;
  --surface: #F4EDE3;
  --surface-elevated: #FFFBF5;
  --surface-sunken: #EDE2D2;
  --ink: #1B1613;
  --ink-elevated: #2A221D;
  --text-primary: #1B1613;
  --text-secondary: #5E5245;
  --text-tertiary: #8A7A69;
  --on-inverse: #F4EDE3;
  --on-inverse-muted: #CDBFAE;     /* body text on dark, 9:1 */
  --on-inverse-secondary: #A08E79; /* 24px and above on dark only */
  --action: #AE5333;               /* fills, borders, icons; never text on the light surface */
  --action-text: #A0492B;
  --action-subtle: #FAE7DD;
  --on-action: #FFF6EF;
  --accent-on-inverse: #E08A5C;
  --ready: #4A6544;
  --ready-subtle: #E3EBDF;
  --on-ready: #FFFBF5;
  --on-ready-secondary: #D8E4D4;
  --line: #DFD2C0;
  --line-inverse: #3A2F27;
  --rule: rgba(27, 22, 19, .82);   /* the strong hairline above each section */
  --rule-soft: rgba(27, 22, 19, .16);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --e1: 0 1px 2px rgba(27, 22, 19, .07);
  --e2: 0 2px 8px rgba(27, 22, 19, .10);
  --e3: 0 24px 60px -18px rgba(27, 22, 19, .35), 0 8px 20px -10px rgba(27, 22, 19, .25);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-14: 3.5rem; --sp-18: 4.5rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 4.25rem;

  /* Paper grain: tiny SVG noise, drawn in ink (light pages) or in paper
     (dark bands). No request: it is a data URI. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .07 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .93 0 0 0 0 .89 0 0 0 .8 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Arabic page: Reem Kufi for headings, Plex for body and labels, Readex
     inside the product drawings. Letter-spacing stays 0: Arabic letters join. */
  --font-display: 'ReemKufi', 'ReadexPro', system-ui, sans-serif;
  --font-body: 'PlexArabic', 'ReadexPro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-app: 'ReadexPro', 'PlexArabic', system-ui, sans-serif;
  --font-mono: 'JBMono', 'PlexArabic', ui-monospace, monospace;
  --w-display: 500;
  --lh-body: 1.8;
  --lh-h1: 1.18;
  --lh-h2: 1.25;
  --track-h1: 0;
  --track-h2: 0;
  --track-mono: 0;
  --start: right;
}

/* English page: Instrument Serif (one weight, with an italic) for headings,
   Readex Pro for body. */
html[lang="en"] {
  --font-display: 'InstrumentSerif', Georgia, 'Times New Roman', serif;
  --font-body: 'ReadexPro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JBMono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --w-display: 400;
  --lh-body: 1.65;
  --lh-h1: .96;
  --lh-h2: 1.02;
  --track-h1: -.025em;
  --track-h2: -.018em;
  --track-mono: .04em;
  --start: left;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text-primary);
  font-family: var(--font-body); font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: var(--lh-body); text-align: start; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* The grain over the light page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: .4;
}
img, svg { display: block; max-width: 100%; }
p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--w-display); }
h1, h2 { text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--action-text); }
html[lang="en"] h1 em, html[lang="en"] h2 em { font-style: italic; }
a { color: var(--action-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.wrap { width: 100%; max-width: calc(1240px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 1rem; top: -100%; z-index: 100; background: var(--ink); color: var(--on-inverse); padding: .75rem 1rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.skip:focus { top: 1rem; }

/* Labels and indexes: the mono voice. In Arabic, the Arabic letters fall
   through to Plex; the digits and brackets stay mono. */
.idx, .mono-label, .sh-label, .hero-meta, .plate-tag, .proof {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--track-mono);
}
.idx { unicode-bidi: isolate; color: var(--action-text); font-size: .8125rem; }
.mono-label { font-size: .8125rem; color: var(--text-secondary); }
html[lang="en"] .mono-label, html[lang="en"] .sh-label, html[lang="en"] .hero-meta, html[lang="en"] .plate-tag { text-transform: uppercase; }

/* reading progress: a copper hairline at the very top */
.progress { position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 2px; background: var(--action); transform-origin: var(--start); transform: scaleX(0); pointer-events: none; display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 233, 220, .9);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; margin-inline-end: auto; -webkit-tap-highlight-color: transparent; }
.brand img { height: 2.25rem; width: auto; }
.nav-links { display: none; list-style: none; padding: 0; margin: 0; gap: var(--sp-5); }
.nav-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text-primary); font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat var(--start) 78% / 0 1px; transition: background-size 260ms var(--ease-out); }
.nav-links a:hover { background-size: 100% 1px; }
.lang { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: var(--sp-2); color: var(--text-primary); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.lang:hover { color: var(--action-text); }
.menu { position: static; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: var(--text-primary); border-radius: var(--r-sm); -webkit-tap-highlight-color: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ico { width: 1.5rem; height: 1.5rem; }
.menu summary:hover, .menu[open] summary { background: var(--surface-sunken); }
.menu[open] .menu-open, .menu:not([open]) .menu-close { display: none; }
.menu-links { list-style: none; margin: 0; padding: var(--sp-2) var(--gutter) var(--sp-4); position: absolute; inset-inline: 0; top: 100%; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--rule); }
.menu[open] .menu-links { animation: drop 220ms var(--ease-out) both; }
.menu-links li + li { border-top: 1px solid var(--rule-soft); }
.menu-links a { display: flex; align-items: center; min-height: 3rem; font-family: var(--font-display); font-size: 1.375rem; color: var(--text-primary); text-decoration: none; }
.menu-links a:hover { color: var(--action-text); }
@media (min-width: 640px) { .nav-in { gap: var(--sp-4); } .brand img { height: 2.5rem; } }
@media (min-width: 960px) { .nav-links { display: flex; } .menu { display: none; } }

/* ---------- buttons: square-cut, with an ink fill that slides in ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .625rem 1.25rem; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.35;
  text-decoration: none; text-wrap: balance; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), color 200ms ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: var(--start); transition: transform 420ms var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary::before { background: var(--ink); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-light { background: var(--on-inverse); color: var(--ink); }
.btn-light::before { background: var(--accent-on-inverse); }
.btn-light:focus-visible { outline-color: var(--accent-on-inverse); }
.btn-lg { min-height: 3.5rem; padding: .875rem 1.75rem; font-size: 1.0625rem; }
.btn-nav { padding-inline: .875rem; font-size: .875rem; white-space: nowrap; }
@media (min-width: 640px) { .btn-nav { padding-inline: 1.125rem; font-size: .9375rem; } }
.link-u { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em; }
.link-u:hover { color: var(--action-text); }

/* ---------- sections and their heads ---------- */
.section { padding-block: clamp(4rem, 7vw + 1rem, 8rem); overflow-x: clip; }
/* A head is a hairline, a mono index and label on one side, the heading on
   the other: the asymmetric grid of an editorial page. */
.sh { display: grid; gap: var(--sp-4) var(--sp-8); border-top: 1px solid var(--rule); padding-top: var(--sp-5); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sh-label { display: flex; align-items: baseline; gap: .6rem; font-size: .8125rem; color: var(--text-secondary); }
.sh-label .idx { font-size: inherit; }
.sh h2, .sh-side h2 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 4.75rem); line-height: var(--lh-h2); letter-spacing: var(--track-h2); max-width: 15em; }
.lead { color: var(--text-secondary); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); margin-top: var(--sp-5); max-width: 36em; text-wrap: pretty; }
@media (min-width: 960px) { .sh { grid-template-columns: 15rem minmax(0, 1fr); } }

/* ======================================================================
   HERO: paper, a big headline, and the phone shown as a printed plate.
   ====================================================================== */
.hero { padding-block: clamp(1rem, 2vw, 1.5rem) clamp(3.5rem, 6vw, 6rem); overflow-x: clip; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding-block: .6rem; border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--text-secondary);
}
.meta-mid { display: none; }
@media (min-width: 640px) { .meta-mid { display: inline; } }
.hero-in { display: grid; gap: clamp(3rem, 6vw, 4.5rem); align-items: end; padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-in > * { min-width: 0; }
@media (min-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.hero h1 { font-size: clamp(3rem, 1rem + 7.4vw, 7.5rem); line-height: var(--lh-h1); letter-spacing: var(--track-h1); }
html[lang="en"] .hero h1 { font-size: clamp(3.25rem, 1rem + 8.2vw, 8.5rem); }
.hero h1 .line { display: block; }
.hero .lead { max-width: 30em; margin-top: var(--sp-6); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-8); }
@media (max-width: 479.98px) { .hero-actions .btn { width: 100%; } }
.proof { list-style: none; padding: 0; margin-top: var(--sp-8); display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .8125rem; color: var(--text-secondary); }
.proof li + li::before { content: "/"; margin-inline: .7rem; color: var(--text-tertiary); }
.rise { animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }

/* The plate: the phone on a dark, grained panel with spec-sheet tags. */
.plate { position: relative; }
.plate-in {
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background-color: var(--ink); background-image: var(--grain-light);
  padding: clamp(2.5rem, 5vw, 3.5rem) 1rem clamp(1.5rem, 3vw, 2rem);
}
.plate-tag { position: absolute; top: .8rem; z-index: 1; font-size: .75rem; color: var(--on-inverse-secondary); }
/* the tag sits away from the stamp's corner */
.plate-tag-a { inset-inline-end: 1rem; }
@media (max-width: 959.98px) { .plate-tag-a { inset-inline-end: auto; inset-inline-start: 1rem; } }
.plate figcaption { margin-top: .7rem; font-size: .875rem; color: var(--text-secondary); line-height: 1.5; }

/* The stamp: a copper seal that turns slowly over the plate's corner. */
.stamp {
  position: absolute; z-index: 3; top: -2.75rem; inset-inline-end: -.5rem;
  width: clamp(7.5rem, 14vw, 9.5rem); aspect-ratio: 1; display: grid; place-items: center;
  rotate: -8deg;
}
@media (min-width: 960px) { .stamp { inset-inline-end: auto; inset-inline-start: -3.5rem; top: -3.5rem; } }
/* direction: ltr, or Chrome lays an rtl run off the path; the Arabic words
   still read right to left inside it. */
.stamp svg { grid-area: 1 / 1; width: 100%; height: 100%; direction: ltr; animation: stamp-turn 22s linear infinite; }
.stamp circle { fill: var(--action); }
.stamp text { fill: var(--on-action); font-family: var(--font-mono); font-weight: 600; font-size: 15.5px; letter-spacing: .06em; }
html[lang="ar"] .stamp text { font-family: 'PlexArabic', sans-serif; font-size: 17px; letter-spacing: 0; }
.stamp-c { position: relative; z-index: 1; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--on-action); text-align: center; }
.stamp-c b { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(2.25rem, 4vw, 2.75rem); }
.stamp-c small { margin-top: .2rem; font-size: .75rem; font-weight: 600; }
html[lang="en"] .stamp-c small { font-family: var(--font-mono); text-transform: uppercase; font-size: .625rem; letter-spacing: .06em; }

/* ---------- ribbon: an ink band with the selling points ---------- */
.ribbon {
  overflow: hidden; background-color: var(--ink); background-image: var(--grain-light); color: var(--on-inverse);
  padding-block: clamp(1rem, 2vw, 1.4rem);
}
.ribbon-track { display: flex; width: max-content; animation: marquee-ltr 52s linear infinite; }
html[dir="rtl"] .ribbon-track { animation-name: marquee-rtl; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.ribbon li {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-inline-end: 1.4rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(1.375rem, 1rem + 1.6vw, 2.375rem); letter-spacing: var(--track-h2);
}
.star { width: .55em; height: .55em; color: var(--accent-on-inverse); flex: none; }

/* ---------- rows: numbered entries divided by hairlines ---------- */
.rows { display: grid; }
.row { padding-block: var(--sp-6); border-top: 1px solid var(--rule-soft); }
.row .idx { display: block; font-size: .875rem; }
.row h3 { margin-top: var(--sp-3); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; letter-spacing: var(--track-h2); }
.row p { margin-top: var(--sp-3); color: var(--text-secondary); font-size: 1rem; max-width: 26em; }
@media (min-width: 640px) {
  .rows-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-8); }
}
@media (min-width: 1100px) {
  .rows-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .rows-4 .row { padding-inline: var(--sp-6); border-top: 0; border-inline-start: 1px solid var(--rule-soft); min-height: 17rem; }
  .rows-4 .row:first-child { padding-inline-start: 0; border-inline-start: 0; }
}

/* ======================================================================
   THE IDEA, word by word (after Vonder): site.js lights the words as the
   sentence crosses the screen. Without it, every word is lit.
   ====================================================================== */
.say-wrap {
  background-color: var(--ink); background-image: var(--grain-light); color: var(--on-inverse);
  padding-block: clamp(5rem, 12vw, 11rem);
}
.say-wrap .sh-label { color: var(--on-inverse-secondary); }
.say-wrap .idx { color: var(--accent-on-inverse); }
.say {
  margin-top: var(--sp-6); max-width: 17em; font-size: clamp(2.125rem, 1rem + 4.4vw, 5.25rem);
  line-height: 1.25; letter-spacing: var(--track-h2); text-wrap: pretty;
}
html[lang="en"] .say { line-height: 1.04; max-width: 15em; }
.say em { color: var(--accent-on-inverse); }
.w { display: inline; transition: opacity 380ms ease; }
.say.dim .w { opacity: .16; }
.say.dim .w.lit { opacity: 1; }
.say-body { margin-top: var(--sp-10); max-width: 32rem; color: var(--on-inverse-muted); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); border-top: 1px solid var(--line-inverse); padding-top: var(--sp-5); }


/* ---------- the hero phone: a lock screen with the order card ---------- */
/* ---------- the hero phone: a lock screen with the order card ---------- */
/* One loop is 10 s: 0–48% the card says Preparing while the orders ahead
   count down and the bar fills; 50% the order turns Ready, the phone
   shakes, rings spread, the notification drops; 92% back. The plain
   styles are the Ready moment. */
.demo {
  --loop: 10s;
  position: relative; width: min(100%, 25rem); margin-inline: auto;
  display: grid; place-items: center; padding-block: 1rem;
  font-size: clamp(.8rem, .55rem + .9vw, .95rem);
}
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings span {
  grid-area: 1 / 1; width: 17em; height: 17em; border-radius: 50%;
  border: 2px solid rgba(157, 187, 148, .55); opacity: 0;
  animation: ring var(--loop) var(--ease-out) infinite;
}
.rings span:nth-child(2) { animation-name: ring-2; }
.rings span:nth-child(3) { animation-name: ring-3; }

.phone {
  position: relative; width: 16em;
  background: #0E0B09; border-radius: 2.6em; padding: .55em;
  box-shadow: 0 0 0 1px rgba(244, 237, 227, .1), 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform-origin: 50% 80%;
}
.demo .phone { animation: buzz var(--loop) linear infinite; }
.lock {
  position: relative; min-height: 29.9em; border-radius: 2.1em; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.4em .8em .8em; color: var(--on-inverse);
  background: radial-gradient(120% 75% at 70% 0%, #7A4128 0%, #3A2117 42%, #120D0A 100%);
}
.lock::before { content: ""; position: absolute; top: .9em; left: 50%; width: 4.2em; height: 1.1em; margin-left: -2.1em; border-radius: 999px; background: #0E0B09; }
.lock-ico .ico { width: 1.1em; height: 1.1em; opacity: .8; }
.lock-time { font-family: var(--font-app); font-weight: 500; font-size: 4.6em; line-height: 1.05; letter-spacing: -.02em; direction: ltr; }
.lock-hint { font-size: .85em; color: var(--on-inverse-muted); }
.la { margin-top: auto; width: 100%; display: grid; border-radius: 1.4em; overflow: hidden; text-align: start; }
.la-layer {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: .45em;
  padding: .9em 1em 1em; border-radius: inherit;
  background: rgba(27, 22, 19, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.la-top { display: flex; align-items: center; gap: .5em; width: 100%; font-size: .85em; }
.la-top img { width: 1.7em; height: 1.7em; border-radius: .45em; }
.la-top b { font-family: var(--font-app); font-weight: 600; }
.la-num { margin-inline-start: auto; font-family: var(--font-app); font-weight: 600; font-size: 1.6em; line-height: 1; }
.la-state { font-family: var(--font-app); font-weight: 600; font-size: 1.15em; }
.la .ahead {
  display: grid; padding: .3em .8em; border-radius: 999px;
  background: rgba(224, 138, 92, .2); color: #F6C39E;
  font-family: var(--font-app); font-weight: 600; font-size: .85em; line-height: 1.35;
}
.ahead span { grid-area: 1 / 1; }
.demo .ahead span:not(:first-child) { opacity: 0; }
.demo .ahead span:nth-child(1) { animation: tick-1 var(--loop) linear infinite; }
.demo .ahead span:nth-child(2) { animation: tick-2 var(--loop) linear infinite; }
.demo .ahead span:nth-child(3) { animation: tick-3 var(--loop) linear infinite; }
.demo .ahead span:nth-child(4) { animation: tick-4 var(--loop) linear infinite; }
.la .bar { width: 100%; height: .4em; border-radius: 999px; background: rgba(244, 237, 227, .16); overflow: hidden; }
.la .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent-on-inverse); transform-origin: var(--start); animation: fill var(--loop) linear infinite; }
.la-ready { background: var(--ready); animation: show-ready var(--loop) linear infinite; }
.la-big { font-family: var(--font-app); font-weight: 600; font-size: 1.5em; line-height: 1.2; }
.la-sub { color: var(--on-ready-secondary); font-size: .95em; }

/* The lock-screen notification. */
.toast {
  position: absolute; z-index: 2; top: 2.6em; inset-inline: .9em;
  display: flex; align-items: center; gap: .7em; padding: .75em .85em;
  background: rgba(255, 251, 245, .92);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-radius: 1.2em; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  color: var(--text-primary); text-align: start;
  animation: toast var(--loop) var(--ease-out) infinite;
}
.toast img { width: 2.3em; height: 2.3em; border-radius: .6em; flex: none; }
.toast b { display: block; font-family: var(--font-app); font-weight: 600; font-size: .9em; line-height: 1.3; }
.toast span { display: block; font-size: .85em; line-height: 1.35; color: var(--text-secondary); }
.toast time { margin-inline-start: auto; align-self: flex-start; font-size: .75em; color: var(--text-tertiary); }

/* Pieces of the customer page, shared by the story's phone. */
.logo-slot {
  width: 5em; height: 5em; flex: none;
  border: 1.5px dashed var(--line); border-radius: 1em;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em;
  color: var(--text-secondary);
}
.logo-slot .ico { width: 1.9em; height: 1.9em; }
.logo-slot span { font-size: .95em; font-weight: 500; line-height: 1.3; }
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .95em; border-radius: 999px;
  font-weight: 600; font-size: 1.05em; line-height: 1.4; margin-top: 1.1em;
  transition: background-color 400ms ease, color 400ms ease;
}
.pill::before { content: ""; width: .55em; height: .55em; border-radius: 50%; flex: none; }
.pill-wait { background: var(--surface-sunken); color: var(--text-secondary); }
.pill-wait::before { border: 1.5px solid currentColor; border-inline-end-color: transparent; animation: spin 1.4s linear infinite; }
.pill-ready { background: var(--surface-elevated); color: var(--ready); }
.pill-ready::before { background: currentColor; }
.order-label { margin-top: 1.1em; font-size: 1em; color: var(--text-secondary); line-height: 1.4; }
.big-num { font-family: var(--font-app); font-weight: 600; font-size: 4em; line-height: 1.02; letter-spacing: var(--track-h1); color: var(--text-primary); }
.s-wait .ahead {
  display: inline-block; margin-top: .8em; padding: .4em .9em; border-radius: 999px;
  background: var(--action-subtle); color: var(--action-text);
  font-family: var(--font-app); font-weight: 600; font-size: .9em; line-height: 1.35;
}
.s-wait .bar { width: 78%; height: .4em; margin-top: 1.2em; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.s-wait .bar i { display: block; height: 100%; border-radius: inherit; background: var(--action); transform-origin: var(--start); transform: scaleX(.35); transition: transform 900ms var(--ease-out); }
.notice { margin-top: auto; padding-top: 1em; font-size: .95em; line-height: 1.5; color: var(--text-secondary); }
.ready-head { margin-top: 1.2em; font-family: var(--font-app); font-weight: 600; font-size: 1.35em; line-height: 1.25; }
.s-ready .big-num { color: var(--on-ready); font-size: 4.8em; margin-top: .1em; }
.ready-sub { margin-top: .35em; font-size: 1.02em; line-height: 1.4; color: var(--on-ready-secondary); }
.go-btn {
  margin-top: auto; width: 100%; padding: .75em 1em; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--surface-elevated); color: var(--ready);
  font-family: var(--font-app); font-weight: 600; font-size: 1.1em; line-height: 1.2;
  transition: background-color 400ms ease, color 400ms ease, transform 200ms var(--ease-out);
}
.go-btn .ico { width: 1.1em; height: 1.1em; }


/* ======================================================================
   THE STORY (after Accent): the phone stays put while the order's story
   scrolls past, and the section's colour follows the order. site.js sets
   data-scene from the step at the middle of the screen; without it the
   section rests on «ready» and the steps read as a plain list.
   ====================================================================== */
.story {
  --bg: var(--surface);
  background-color: var(--bg); transition: background-color 700ms ease;
  padding-block: clamp(3.5rem, 6vw + 1rem, 6.5rem);
}
.story[data-scene="wait"] { --bg: #EDE2D2; }
.story[data-scene="almost"] { --bg: #F3DCCB; }
.story[data-scene="ready"] { --bg: #DCE6D5; }
.story[data-scene="coming"] { --bg: #E4E9D9; }
.story-in { position: relative; display: grid; gap: 2rem; }
.story-stage {
  position: sticky; top: var(--nav-h); z-index: 1; align-self: start;
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem;
}
.s-scene { position: relative; display: grid; place-items: center; font-size: clamp(.68rem, .35rem + 1.1vw, .95rem); }
.story-steps { list-style: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.story-step { display: flex; align-items: center; min-height: 80vh; min-height: 80svh; }
.step-card { max-width: 30rem; }
.step-n { display: block; font-family: var(--font-app); font-weight: 600; font-size: clamp(2.5rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--action); letter-spacing: -.02em; }
.step-card h3 { margin-top: var(--sp-3); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem); line-height: var(--lh-h2); letter-spacing: var(--track-h2); }
.step-card p { margin-top: var(--sp-3); color: var(--text-secondary); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }

@media (min-width: 960px) {
  .story-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .story-stage { grid-column: 2; grid-row: 1; }
  .story-steps { grid-column: 1; grid-row: 1; }
  .js .story-step .step-card { opacity: .22; transform: translateY(14px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
  .js .story-step.on .step-card { opacity: 1; transform: none; }
}
/* Phones: the steps scroll as invisible markers behind the pinned stage,
   and the stage shows the current step's words under the phone. */
.s-caps { display: none; }
@media (max-width: 959.98px) {
  .story-stage { position: relative; top: auto; height: auto; padding-block: 1rem 2rem; }
  .js .story-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); padding-block: .5rem 1rem; justify-content: flex-start; }
  .js .story-steps { margin-top: calc(-100svh + var(--nav-h)); }
  .js .story-step { min-height: 75svh; }
  .js .story-step .step-card { opacity: 0; }
  .js .s-caps { display: grid; width: 100%; max-width: 30rem; margin-top: auto; padding-bottom: .5rem; }
  .s-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
  .s-cap .step-n { font-size: 1.5rem; }
  .s-cap h3 { margin-top: .35rem; font-size: 1.375rem; }
  .s-cap p { margin-top: .35rem; color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
  .story[data-scene="tap"] .s-cap[data-for="tap"], .story[data-scene="wait"] .s-cap[data-for="wait"],
  .story[data-scene="almost"] .s-cap[data-for="almost"], .story[data-scene="ready"] .s-cap[data-for="ready"],
  .story[data-scene="coming"] .s-cap[data-for="coming"] { opacity: 1; transform: none; }
  .js .s-scene { font-size: clamp(.48rem, 1.2svh, .7rem); }
  .js .story-steps { padding-top: 30svh; }
  .js .story-steps::after { content: ""; display: block; height: 35svh; }
  .story[data-scene="tap"] .s-phone { transform: translateX(3em) rotate(-6deg); }
}

/* The stage: the phone, the stand it meets, the rings, the cashier chip. */
.s-phone {
  position: relative; width: 15em; padding: .5em; border-radius: 2.5em; background: #0E0B09;
  box-shadow: var(--e3); transform-origin: 50% 85%;
  transition: transform 800ms var(--ease-out);
}
.s-screen { position: relative; display: grid; min-height: 28.5em; border-radius: 2em; overflow: hidden; background: var(--surface-elevated); }
.s-layer {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1em .9em 1.3em; border-radius: inherit; opacity: 0; transition: opacity 500ms ease;
}
.s-layer::before { content: ""; flex: none; width: 4.2em; height: 1.1em; border-radius: 999px; background: #0E0B09; margin-bottom: 1.3em; }
.s-ready { background: var(--ready); color: var(--on-ready); }
.s-ready .logo-slot { border-color: var(--on-ready-secondary); color: var(--on-ready-secondary); }
.s-tap { background: linear-gradient(170deg, #EDE2D2, #D9C8B3); justify-content: flex-end; }
.clip-card {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: .35em;
  padding: 1.2em 1em 1em; border-radius: 1.5em; background: var(--surface-elevated); box-shadow: 0 -10px 30px -12px rgba(27, 22, 19, .3);
  transform: translateY(0); transition: transform 600ms var(--ease-out);
}
.clip-card img { width: 3.6em; height: 3.6em; border-radius: .9em; }
.clip-card b { font-family: var(--font-app); font-weight: 600; font-size: 1.15em; }
.clip-card span { font-size: .9em; color: var(--text-secondary); }
.clip-card i { font-style: normal; margin-top: .5em; width: 100%; padding: .6em; border-radius: 999px; background: var(--action); color: var(--on-action); font-family: var(--font-app); font-weight: 600; }

.story[data-scene="tap"] .s-tap,
.story[data-scene="wait"] .s-wait, .story[data-scene="almost"] .s-wait,
.story[data-scene="ready"] .s-ready, .story[data-scene="coming"] .s-ready { opacity: 1; }
.t-almost, .t-coming { display: none; }
.story[data-scene="almost"] .t-wait { display: none; }
.story[data-scene="almost"] .t-almost { display: inline; }
.story[data-scene="almost"] .pill-wait { background: var(--action-subtle); color: var(--action-text); }
.story[data-scene="almost"] .s-wait .bar i { transform: scaleX(.86); }
.story[data-scene="coming"] .t-ready { display: none; }
.story[data-scene="coming"] .t-coming { display: inline-flex; align-items: center; gap: .35em; font-size: .86em; white-space: nowrap; }
.story[data-scene="coming"] .go-btn { background: var(--ready-subtle); color: var(--ready); transform: scale(.97); }

/* the stand, only while the phone comes to it */
.mini-stand {
  position: absolute; z-index: 0; bottom: 3%; left: -10.5em;
  display: flex; flex-direction: column; align-items: center; font-size: .9em;
  opacity: 0; transform: translateX(-2em) scale(.94); transition: opacity 500ms ease, transform 700ms var(--ease-out);
}
.ms-plate { width: 10em; padding: 1em .8em 1.1em; border-radius: 1.1em; background: var(--ink); color: var(--on-inverse); display: flex; flex-direction: column; align-items: center; gap: .6em; text-align: center; box-shadow: var(--e3); }
.ms-plate img { width: 2.6em; height: auto; }
.ms-plate span .ico { width: 3.2em; height: 3.2em; color: var(--accent-on-inverse); }
.ms-plate b { font-family: var(--font-app); font-weight: 600; font-size: .9em; line-height: 1.35; }
.ms-neck { width: 2em; height: 1em; background: var(--ink-elevated); }
.ms-foot { width: 6.5em; height: .6em; background: var(--ink-elevated); border-radius: 999px 999px .2em .2em; }
.story[data-scene="tap"] .mini-stand { opacity: 1; transform: none; }
.story[data-scene="tap"] .s-phone { transform: translateX(-1.2em) rotate(-6deg); }
.story[data-scene="tap"] .ms-plate span .ico { animation: blink 1.4s ease-in-out infinite; }

/* rings and the notification when it turns Ready */
.s-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.s-rings span { grid-area: 1 / 1; width: 17em; height: 17em; border-radius: 50%; border: 2px solid rgba(74, 101, 68, .5); opacity: 0; }
.story[data-scene="ready"] .s-rings span { animation: s-ring 2.2s var(--ease-out) infinite; }
.story[data-scene="ready"] .s-rings span:nth-child(2) { animation-delay: .7s; }
.story[data-scene="ready"] .s-phone { animation: shake 1s linear 2; }
.s-toast {
  position: absolute; z-index: 3; top: 2.4em; inset-inline: .8em;
  display: flex; align-items: center; gap: .6em; padding: .65em .8em; border-radius: 1.1em;
  background: rgba(255, 251, 245, .94); color: var(--text-primary); text-align: start;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(-130%) scale(.96); transition: opacity 400ms ease, transform 600ms var(--ease-out);
}
.s-toast img { width: 2.1em; height: 2.1em; border-radius: .55em; flex: none; }
.s-toast b { display: block; font-family: var(--font-app); font-weight: 600; font-size: .85em; }
.s-toast span { display: block; font-size: .8em; line-height: 1.35; color: var(--text-secondary); }
.story[data-scene="ready"] .s-toast { opacity: 1; transform: none; }

/* the cashier's chip, when the customer says they are coming */
.s-chip {
  position: absolute; z-index: 4; top: 38%; inset-inline-end: -6.5em;
  display: flex; align-items: center; gap: .6em; padding: .55em .65em .55em 1em; border-radius: 999px;
  background: var(--surface-elevated); border: 1px solid var(--line); box-shadow: var(--e3);
  font-family: var(--font-app); font-size: .95em; white-space: nowrap;
  opacity: 0; transform: translateX(calc(var(--away, 1) * 2em)) scale(.9); transition: opacity 450ms ease, transform 650ms var(--ease-out);
}
html[dir="rtl"] .s-chip { --away: -1; padding: .55em 1em .55em .65em; }
.s-chip span { color: var(--text-secondary); font-weight: 500; }
.s-chip b { padding: .2em .8em; border-radius: 999px; background: var(--ready); color: var(--on-ready); font-weight: 600; }
.story[data-scene="coming"] .s-chip { opacity: 1; transform: none; }
@media (max-width: 559.98px) { .s-chip { inset-inline-end: -1em; top: auto; bottom: 18%; } .mini-stand { left: -9.5em; font-size: .8em; } }

.s-dots { display: flex; gap: .4rem; }
.s-dots i { width: .5rem; height: .5rem; border-radius: 999px; background: var(--text-tertiary); opacity: .35; transition: width 400ms var(--ease-out), opacity 300ms ease, background-color 300ms ease; }
.story[data-scene="tap"] .s-dots [data-for="tap"], .story[data-scene="wait"] .s-dots [data-for="wait"],
.story[data-scene="almost"] .s-dots [data-for="almost"], .story[data-scene="ready"] .s-dots [data-for="ready"],
.story[data-scene="coming"] .s-dots [data-for="coming"] { width: 1.6rem; opacity: 1; background: var(--action); }
.story .platforms { margin-top: clamp(1rem, 3vw, 2rem); }

.platforms { display: grid; gap: var(--sp-4); margin-top: clamp(2rem, 4vw, 3rem); }
.platform { background: rgba(255, 251, 245, .7); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.platform h3 { font-size: 1.125rem; margin-bottom: var(--sp-2); }
.platform p { color: var(--text-secondary); font-size: .9375rem; }
@media (min-width: 640px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.screen-option {
  margin-top: var(--sp-6); display: flex; gap: var(--sp-3); align-items: flex-start;
  color: var(--text-secondary); border-inline-start: 3px solid var(--action); padding-inline-start: var(--sp-4);
}
.screen-option .ico { width: 1.5rem; height: 1.5rem; color: var(--action); margin-top: .2em; }


/* the cashier deck */
.deck {
  --p: 1; --q: 1; --loop: 8s;
  position: relative; min-height: 34rem; perspective: 1100px; perspective-origin: 50% 30%;
  display: grid; place-items: center;
}
.js .deck { --q: clamp(0, calc((var(--p) - .1) / .36), 1); }
.deck .oc {
  position: absolute; top: 50%; left: 50%; width: min(92%, 23rem);
  --rest: translate(-50%, -50%) translate(var(--sx, 0%), var(--sy, 0%));
  transform: var(--rest)
    translate3d(calc(var(--x) * (1 - var(--q))), calc(var(--y) * (1 - var(--q))), calc(var(--z) * (1 - var(--q)) + var(--z0, 0px)))
    rotateX(calc(18deg * (1 - var(--q)))) rotate(calc(var(--r) * (1 - var(--q))));
  will-change: transform;
}
.deck .oc-main { --sy: -36%; z-index: 3; }
.deck .oc-quiet { --sy: 78%; z-index: 2; }
.deck .oc-back { z-index: 1; --z0: -140px; opacity: calc(.25 + .35 * var(--q)); filter: saturate(.6); }
.deck .oc-back:first-child { --z0: -260px; }
.oc {
  background: var(--surface-elevated); border: 1px solid var(--line); border-radius: 1.25rem;
  padding: 1.15rem 1.3rem; box-shadow: var(--e3);
}
.oc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.oc-num small { display: block; font-size: .8125rem; color: var(--text-secondary); line-height: 1.4; }
.oc-num strong { display: block; font-family: var(--font-app); font-weight: 600; font-size: 2.6rem; line-height: 1.05; letter-spacing: var(--track-h1); }
.chips { display: grid; justify-items: end; }
.chip {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .85rem; border-radius: var(--r-pill);
  font-family: var(--font-app); font-weight: 600; font-size: .875rem; line-height: 1.4; white-space: nowrap;
}
.chip-soft { background: var(--ready-subtle); color: var(--ready); }
.chip-ready { background: var(--ready-subtle); color: var(--ready); opacity: 0; animation: chip-out var(--loop) linear infinite; }
.chip-coming { background: var(--ready); color: var(--on-ready); animation: chip-in var(--loop) var(--ease-out) infinite; }
.chip-call { background: var(--action-subtle); color: var(--action-text); }
.chip-call::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--action); animation: blink 1.2s ease-in-out infinite; }
.trail {
  list-style: none; padding: .7rem .9rem; margin: .9rem 0 0; border-radius: .9rem; background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
  font-family: var(--font-app); font-weight: 500; font-size: clamp(.8125rem, .6rem + 1.1vw, .9375rem); line-height: 1.4;
}
.trail li { display: inline-flex; align-items: center; gap: .3rem; color: var(--ready); }
.trail li + li::before { content: "·"; color: var(--text-tertiary); margin-inline-end: .2rem; }
.trail .ico { width: 1rem; height: 1rem; }
.trail .off { color: var(--text-tertiary); }
.trail .off .ico { visibility: hidden; }
.oc-main .trail li:nth-child(1) { animation: step-1 var(--loop) linear infinite; }
.oc-main .trail li:nth-child(2) { animation: step-2 var(--loop) linear infinite; }
.oc-main .trail li:nth-child(3) { animation: step-3 var(--loop) linear infinite; }
.oc-main .trail li:nth-child(4) { animation: step-4 var(--loop) linear infinite; }
@media (max-width: 479.98px) {
  .trail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .75rem; }
  .oc .trail li + li::before { content: none; }
  .oc { padding: 1rem 1.1rem; }
  .deck { min-height: 31rem; }
}
.oc-actions { display: flex; gap: .6rem; margin-top: .9rem; }
.oc-actions span {
  flex: 1; display: grid; place-items: center; min-height: 2.5rem; border-radius: var(--r-pill);
  font-family: var(--font-app); font-weight: 600; font-size: .9375rem;
}
.oc-actions .a1 { border: 1.5px solid var(--line); color: var(--text-primary); }
.oc-actions .a2 { background: var(--ink); color: var(--on-inverse); }
.oc-quiet .oc-num strong { font-size: 2.2rem; }
.board-cap { position: absolute; bottom: 0; inset-inline: 0; font-size: .8125rem; color: var(--text-tertiary); text-align: center; }


/* ---------- the story, in the editorial voice ---------- */
.story { --bg: var(--paper); }
.story-step .idx, .s-cap .idx { display: block; font-size: .875rem; }
.step-card h3 { margin-top: var(--sp-3); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); line-height: var(--lh-h2); letter-spacing: var(--track-h2); }
.step-card p { max-width: 28em; }
@media (max-width: 959.98px) {
  .s-cap h3 { margin-top: .3rem; font-size: 1.625rem; line-height: 1.2; }
}
.s-dots { gap: .3rem; }
.s-dots i { width: 1.4rem; height: 2px; border-radius: 0; opacity: .3; background: var(--ink); }
.story[data-scene="tap"] .s-dots [data-for="tap"], .story[data-scene="wait"] .s-dots [data-for="wait"],
.story[data-scene="almost"] .s-dots [data-for="almost"], .story[data-scene="ready"] .s-dots [data-for="ready"],
.story[data-scene="coming"] .s-dots [data-for="coming"] { width: 2.6rem; opacity: 1; background: var(--action); }

.platforms { display: grid; gap: 0 var(--sp-8); margin-top: clamp(2rem, 4vw, 3.5rem); }
.platform { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--rule); padding: var(--sp-5) 0 var(--sp-6); }
.platform h3 { margin-top: var(--sp-2); margin-bottom: var(--sp-2); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.platform p:last-child { color: var(--text-secondary); font-size: 1rem; max-width: 30em; }
@media (min-width: 640px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.screen-option {
  margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); align-items: baseline;
  color: var(--text-secondary); border: 0; padding: 0;
}
.screen-option .mono-label { color: var(--action-text); }

/* ======================================================================
   CASHIER: the order cards float in from depth and settle (after
   restaonline). --p from site.js; without it they are settled.
   ====================================================================== */
.cashier { background-color: var(--surface-sunken); }
.cashier-in { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.cashier-in > * { min-width: 0; }
@media (min-width: 960px) { .cashier-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.legend { list-style: none; padding: 0; margin: 0; display: grid; }
.legend li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--sp-4); align-items: baseline; padding-block: var(--sp-4); border-top: 1px solid var(--rule-soft); }
.legend li:last-child { border-bottom: 1px solid var(--rule-soft); }
.legend b { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-app); font-weight: 600; font-size: 1rem; color: var(--ready); }
.legend b::before { content: ""; width: .5rem; height: .5rem; background: currentColor; flex: none; }
.legend li:last-child b { color: var(--ink); }
.legend li:last-child b::before { background: var(--ready); border-radius: 50%; }
.legend span { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }
.call-out { margin-top: var(--sp-6); color: var(--text-secondary); max-width: 34em; }
.call-out strong { color: var(--text-primary); font-weight: 600; }
.oc { border-radius: 14px; }
.board-cap { font-family: var(--font-mono); font-size: .75rem; letter-spacing: var(--track-mono); }

/* ---------- features: three columns, the drawing on a plate, plain lines ---------- */
.feats { display: grid; gap: clamp(3rem, 5vw, 0rem) 0; }
.feat .feat-fig {
  display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: var(--sp-5);
  background-color: var(--surface-sunken); border-radius: var(--r-sm); overflow: hidden;
}
.feat-fig svg { width: 62%; height: auto; transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .feat:hover .feat-fig svg { transform: translateY(-6px) rotate(-3deg); } }
.feat .idx { display: block; font-size: .875rem; }
.feat h3 { margin-top: var(--sp-2); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: var(--track-h2); }
.lines { list-style: none; padding: 0; margin-top: var(--sp-5); }
.lines li { padding-block: .7rem; border-top: 1px solid var(--rule-soft); font-size: .9688rem; line-height: 1.55; }
.lines li:last-child { border-bottom: 1px solid var(--rule-soft); }
@media (min-width: 960px) {
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat { padding-inline: var(--sp-6); border-inline-start: 1px solid var(--rule-soft); }
  .feat:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .feat:last-child { padding-inline-end: 0; }
}

/* ---------- pricing: the number is the hero of the section ---------- */
.pricing-in { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.pricing-in > * { min-width: 0; }
@media (min-width: 960px) { .pricing-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
/* The riyal symbol sits to the LEFT of the number on one baseline in both
   languages: ltr row, reversed so the number (first in the DOM) carries the
   baseline. */
.price {
  direction: ltr; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .12em;
  width: max-content; margin-top: var(--sp-2);
  font-family: var(--font-display); font-weight: var(--w-display); line-height: .9;
  font-size: clamp(6.5rem, 3rem + 14vw, 15rem); letter-spacing: -.03em;
}
html[dir="rtl"] .price { margin-inline-start: 0; }
.riyal { height: .5em; width: .447em; flex: none; }
.price-note { margin-top: var(--sp-4); color: var(--text-secondary); }
.trial-days { list-style: none; padding: 0; margin-top: var(--sp-8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; max-width: 26rem; }
.trial-days li { display: grid; gap: .45rem; }
.trial-days i { position: relative; display: block; height: .5rem; background: var(--surface-sunken); overflow: hidden; }
.trial-days i::after {
  content: ""; position: absolute; inset: 0; background: var(--action);
  transform-origin: var(--start); animation: day-fill 5s var(--ease-out) both infinite; animation-delay: calc(var(--n) * 650ms);
}
.trial-days span { font-family: var(--font-mono); font-size: .75rem; color: var(--text-secondary); letter-spacing: var(--track-mono); }
html[lang="en"] .trial-days span { text-transform: uppercase; }
html[dir="rtl"] .trial-days span { text-align: right; }
.trial-cap { margin-top: var(--sp-3); font-size: .9375rem; color: var(--text-secondary); }
.start { border-top: 1px solid var(--rule); padding-top: var(--sp-5); }
.start h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.15; }
.start-steps { list-style: none; padding: 0; margin-block: var(--sp-6) var(--sp-8); }
.start-steps li { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); align-items: baseline; padding-block: var(--sp-4); border-top: 1px solid var(--rule-soft); }
.start-steps li:last-child { border-bottom: 1px solid var(--rule-soft); }
@media (max-width: 479.98px) { .start .btn { width: 100%; } }
.price-inline { direction: ltr; unicode-bidi: isolate; display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: .12em; font-weight: 600; }
.price-inline .riyal { height: .9em; width: .805em; }

/* ---------- faq: hairline rows, a plus that turns into a cross ---------- */
.faq-in { display: grid; gap: var(--sp-8); }
.faq-in > * { min-width: 0; }
.sh-side { border-top: 1px solid var(--rule); padding-top: var(--sp-5); }
.sh-side h2 { margin-top: var(--sp-4); }
@media (min-width: 960px) {
  .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--sp-14); align-items: start; }
  .sh-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 1.5rem; align-items: baseline; gap: var(--sp-2);
  padding-block: var(--sp-5); font-family: var(--font-display); font-weight: var(--w-display);
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.625rem); line-height: 1.3; -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .q, .faq-item[open] .q { color: var(--action-text); }
.faq-item summary .idx { font-size: .8125rem; }
.plus { position: relative; align-self: center; width: 1rem; height: 1rem; justify-self: end; transition: transform 300ms var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-body { padding: 0 0 var(--sp-6); padding-inline-start: calc(2.75rem + var(--sp-2)); color: var(--text-secondary); max-width: 40em; }
.faq-item[open] .faq-body { animation: drop 280ms var(--ease-out) both; }
@media (max-width: 479.98px) { .faq-body { padding-inline-start: 0; } }

/* ---------- contact: an ink band, the number set large ---------- */
.contact {
  background-color: var(--ink); background-image: var(--grain-light); color: var(--on-inverse);
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3rem, 5vw, 4rem);
}
.contact .sh-label { color: var(--on-inverse-secondary); border-top: 1px solid var(--line-inverse); padding-top: var(--sp-5); }
.contact .idx { color: var(--accent-on-inverse); }
.contact h2 { margin-top: var(--sp-5); font-size: clamp(2.25rem, 1.2rem + 4vw, 5rem); line-height: var(--lh-h2); letter-spacing: var(--track-h2); max-width: 14em; }
.contact-in { display: grid; gap: var(--sp-8); align-items: end; margin-top: clamp(2.5rem, 5vw, 4rem); }
.contact-in > * { min-width: 0; }
@media (min-width: 960px) { .contact-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.contact-number {
  display: inline-block; justify-self: start; color: var(--on-inverse); text-decoration: none;
  font-family: var(--font-display); font-weight: var(--w-display); line-height: 1; letter-spacing: -.02em;
  font-size: clamp(3rem, 1rem + 9vw, 9rem); font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--accent-on-inverse), var(--accent-on-inverse)) no-repeat 0 100% / 0 2px;
  padding-bottom: .08em; transition: background-size 500ms var(--ease-out), color 200ms ease;
}
.contact-number:hover { background-size: 100% 2px; color: var(--accent-on-inverse); }
.contact-number:focus-visible { outline-color: var(--accent-on-inverse); }
.contact .lead { color: var(--on-inverse-muted); margin-top: 0; }
.contact-side .btn { margin-top: var(--sp-6); }
@media (max-width: 479.98px) { .contact-side .btn { width: 100%; } }
.contact-lines { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-14); margin-top: clamp(3rem, 6vw, 5rem); padding-top: var(--sp-5); border-top: 1px solid var(--line-inverse); }
.contact-lines dt { font-family: var(--font-mono); font-size: .75rem; color: var(--on-inverse-secondary); letter-spacing: var(--track-mono); }
html[lang="en"] .contact-lines dt { text-transform: uppercase; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-inverse); }
.contact-lines a:focus-visible { outline-color: var(--accent-on-inverse); }

/* ---------- footer, ending on the giant wordmark ---------- */
.footer {
  background-color: var(--ink); background-image: var(--grain-light); color: var(--on-inverse);
  padding-top: clamp(2.5rem, 5vw, 4rem); overflow: hidden;
}
.footer-top { display: grid; gap: var(--sp-8); border-top: 1px solid var(--line-inverse); padding-top: var(--sp-8); }
.footer-brand img { height: 2.5rem; width: auto; }
.footer-tagline { margin-top: var(--sp-4); font-family: var(--font-display); font-size: 1.375rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--on-inverse); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--accent-on-inverse); }
.footer-links a:focus-visible { outline-color: var(--accent-on-inverse); }
.footer-bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--line-inverse); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-6); font-size: .875rem; color: var(--on-inverse-muted); }
@media (max-width: 480px) { .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem 1.5rem; } }
@media (min-width: 640px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-links { flex-direction: column; gap: 0; }
}
/* The wordmark runs off the bottom edge and drifts as the page reaches it
   (--p from site.js; .5 without it). */
.foot-word {
  margin: clamp(2rem, 5vw, 4rem) 0 0; white-space: nowrap; text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: var(--w-display); line-height: .78; letter-spacing: var(--track-h1);
  font-size: clamp(5rem, 22vw, 22rem); color: var(--on-inverse);
  margin-bottom: -.12em; transform: translateX(calc((var(--p, .5) - .5) * -12%));
}
html[lang="ar"] .foot-word { line-height: 1.2; margin-bottom: -.16em; font-size: clamp(4.5rem, 20vw, 20rem); }

/* ======================================================================
   SCROLL-DRIVEN: reveals and the reading bar, only where the browser has
   view and scroll timelines; elsewhere the content simply stands there.
   ====================================================================== */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both; animation-timeline: view();
    animation-range: entry calc(var(--i, 0) * 7%) entry calc(70% + var(--i, 0) * 7%);
  }
  .progress { display: block; animation: grow-x linear both; animation-timeline: scroll(root); }
}


/* ---------- keyframes ---------- */
/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes day-fill { 0% { transform: scaleX(0); } 10%, 72% { transform: scaleX(1); opacity: 1; } 84%, 100% { transform: scaleX(1); opacity: 0; } }

/* the demo phone's 10 s story */
@keyframes show-ready { 0%, 48% { opacity: 0; } 51%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes tick-1 { 0%, 13% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes tick-2 { 0%, 13% { opacity: 0; } 15%, 27% { opacity: 1; } 29%, 100% { opacity: 0; } }
@keyframes tick-3 { 0%, 27% { opacity: 0; } 29%, 39% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes tick-4 { 0%, 39% { opacity: 0; } 41%, 96% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fill { 0% { transform: scaleX(.08); } 48% { transform: scaleX(1); } 96% { transform: scaleX(1); } 100% { transform: scaleX(.08); } }
@keyframes buzz {
  0%, 50% { transform: rotate(0); }
  51% { transform: rotate(-2.5deg); } 52% { transform: rotate(2.5deg); }
  53% { transform: rotate(-2.5deg); } 54% { transform: rotate(2.5deg); }
  55% { transform: rotate(-1.5deg); } 56% { transform: rotate(1.5deg); }
  57%, 61% { transform: rotate(0); }
  62% { transform: rotate(-2deg); } 63% { transform: rotate(2deg); }
  64% { transform: rotate(-1deg); } 65%, 100% { transform: rotate(0); }
}
@keyframes ring   { 0%, 50% { opacity: 0; transform: scale(.85); } 51% { opacity: .9; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes ring-2 { 0%, 55% { opacity: 0; transform: scale(.85); } 56% { opacity: .8; transform: scale(.9); } 75%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes ring-3 { 0%, 60% { opacity: 0; transform: scale(.85); } 61% { opacity: .7; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes toast { 0%, 50% { opacity: 0; transform: translateY(-140%) scale(.96); } 54%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-140%) scale(.96); } }

/* the cashier card's 8 s story */
@keyframes step-1 { 0%, 8% { color: var(--text-tertiary); } 10%, 94% { color: var(--ready); } 97%, 100% { color: var(--text-tertiary); } }
@keyframes step-2 { 0%, 26% { color: var(--text-tertiary); } 28%, 94% { color: var(--ready); } 97%, 100% { color: var(--text-tertiary); } }
@keyframes step-3 { 0%, 44% { color: var(--text-tertiary); } 46%, 94% { color: var(--ready); } 97%, 100% { color: var(--text-tertiary); } }
@keyframes step-4 { 0%, 62% { color: var(--text-tertiary); } 64%, 94% { color: var(--ready); } 97%, 100% { color: var(--text-tertiary); } }
@keyframes chip-out { 0%, 62% { opacity: 1; } 64%, 96% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes chip-in { 0%, 62% { opacity: 0; transform: scale(.8); } 65% { opacity: 1; transform: scale(1.08); } 68%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.8); } }

/* the stand */

@keyframes s-ring { 0% { opacity: .9; transform: scale(.88); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes shake {
  0%, 100% { transform: rotate(0); } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); }
  30% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 50% { transform: rotate(-1.5deg); } 60% { transform: rotate(1.5deg); } 70% { transform: rotate(0); }
}
@keyframes stamp-turn { to { transform: rotate(360deg); } }

/* ---------- preferences ---------- */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  body::before { display: none; }
}
@media (prefers-contrast: more) {
  .nav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--ink); }
  body::before { display: none; }
  :root { --rule-soft: rgba(27, 22, 19, .5); }
  .menu-links, .oc { border-color: var(--text-secondary); }
}
/* Reduced motion: nothing moves, and every animated piece shows its final,
   meaningful state (the Ready phone, the ticked trail, «جاي»). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .toast, .rings, .s-rings, .progress { display: none; }
  .deck { --q: 1 !important; }
  .foot-word { transform: none; }
}
