/* Zyada marketing site: the one stylesheet.
   Binding spec: DESIGN-FINAL.md. Component catalog for page builders: SYSTEM.md.
   Gold is earned: it appears only on the logo tile, the primary action, stamps, the seal and gold-ink time. */

/* 1 tokens ================================================================ */
:root {
  --paper: #FBF9F6;
  --paper-2: #F3EFE8;
  --paper-3: #E9E3D9;
  --ink: #14171D;
  --ink-2: #534C43;
  --ink-3: #6B655A;
  --rule: rgba(20, 23, 29, .14);
  --rule-2: rgba(20, 23, 29, .28);
  --field-edge: rgba(20, 23, 29, .5); /* a form field's boundary: 3.4:1 on paper (a hairline rule is decoration, a field edge is not) */
  --gold: #F0A93B;
  --gold-hover: #E79C2A;
  --on-gold: #14171D;
  --on-gold-2: #5C4413;
  --gold-ink: #8A5A0C;
  --foil: linear-gradient(118deg, #F5CD76 0%, #F0A93B 38%, #E39A2C 62%, #F5CD76 100%);
  --cover: #14171D;
  --cover-ink: #F2EEE6;
  --cover-ink-2: #B5AD9F;
  --cover-rule: rgba(242, 238, 230, .16);
  --focus: #14171D;
  --obj-shadow: 0 1px 2px rgba(58, 40, 14, .10), 0 22px 44px -22px rgba(58, 40, 14, .42), 0 60px 80px -60px rgba(20, 23, 29, .5);
  --plate-filter: saturate(.85) contrast(1.04);

  /* object palettes (product colors, identical in both themes) */
  --scr: #0B0C10;
  --scr-ink: #F3F1EC;
  --scr-dim: #A0A4AE;
  --pass: #2B1E16;
  --pass-ink: #F4EFE6;
  --pass-label: #C9BFB2;
  --till: #FFFDF9;
  --till-dim: #5C554B;
  --till-rule: rgba(20, 23, 29, .18);

  /* type */
  --f-display: "Markazi Text", Georgia, "Times New Roman", serif;
  --f-body: Inter, system-ui, sans-serif;
  --f-ui: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --f-word: Changa, "Plus Jakarta Sans", sans-serif;
  --f-os: "Plus Jakarta Sans", Inter, system-ui, sans-serif; /* the OS stand-in inside mockups */

  /* grid */
  --m: max(20px, 5vw, calc((100vw - 1320px) / 2));
  --g: 24px;
  --col: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12);
  --mast: 72px;
  --sec: clamp(88px, 12vw, 152px);

  /* motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 450ms;
  --dur-4: 620ms;

  color-scheme: light;
}
html[lang="ar"] {
  --f-body: Cairo, system-ui, sans-serif;
  --f-ui: Cairo, system-ui, sans-serif;
  --f-os: Cairo, system-ui, sans-serif;
}

/* 2 base ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* i18n: every string exists twice; the inactive language is removed from rendering and from the a11y tree */
html[lang="en"] [lang="ar"]:not(html),
html[lang="ar"] [lang="en"]:not(html) { display: none !important; }
/* a message the product sends in one language stays visible in both page languages */
html[lang] .bi > [lang]:not(html) { display: inline !important; }
.bi > bdi { white-space: normal; }
/* the language toggle shows the OTHER language */
html[lang="en"] [data-show="en"]:not(html),
html[lang="ar"] [data-show="ar"]:not(html) { display: inline !important; }
html[lang="en"] [data-show="ar"],
html[lang="ar"] [data-show="en"] { display: none !important; }
/* JS-only controls never appear dead; .nojs-only is the counterpart (a fallback line shown only without JS) */
html:not(.js) [data-js-only] { display: none !important; }
.nojs-only { display: none; }
html:not(.js) .nojs-only { display: block; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--mast) + 16px);
  scrollbar-color: var(--rule-2) transparent;
  background: var(--paper);
}
body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold-ink);
  overflow-x: clip;
  transition: background-color 240ms ease, color 240ms ease;
}
html[lang="ar"] body { font-size: 1.1875rem; line-height: 1.85; }

/* paper grain: one fixed layer, never interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

img, svg, video { display: block; max-inline-size: 100%; }
img { block-size: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 500; text-wrap: balance; }
p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
/* a Latin run (product name, URL, phone) never tears across an RTL line break; the longest one fits 320px */
bdi { unicode-bidi: isolate; white-space: nowrap; }
table { border-collapse: collapse; }
/* a defined term: never the default italic (Cairo would fake-slant it; Arabic is never slanted) */
dfn { font-style: normal; font-family: var(--f-ui); font-weight: 600; }

/* body links */
.prose a, a.inline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color var(--dur-1) ease, color var(--dur-1) ease;
}
.prose a:hover, a.inline:hover { text-decoration-color: var(--ink); color: var(--ink); }

.vh {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.num { font-variant-numeric: tabular-nums lining-nums; }

/* 5.1 skip link */
.skip {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: var(--m);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  font: 600 .9375rem/1 var(--f-ui);
  text-decoration: none;
  border-radius: 2px;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* 3 type ================================================================== */
.t-display {
  font: 500 clamp(3.2rem, 1.4rem + 5.4vw, 6rem)/.96 var(--f-display);
  letter-spacing: -.022em;
  max-inline-size: 10.5ch;
}
.t-h2 { font: 500 clamp(2.5rem, 1.5rem + 2.6vw, 4.5rem)/1 var(--f-display); letter-spacing: -.018em; max-inline-size: 22ch; }
.t-h3 { font: 500 clamp(2rem, 1.5rem + 1.2vw, 3.1rem)/1.04 var(--f-display); letter-spacing: -.012em; }
.t-h4 { font: 500 clamp(1.5rem, 1.3rem + .5vw, 1.75rem)/1.15 var(--f-display); letter-spacing: -.006em; }
.t-pull { font: 400 clamp(2rem, 1.4rem + 2.2vw, 3.6rem)/1.15 var(--f-display); letter-spacing: -.014em; text-wrap: balance; }
.t-pull > [lang] > span + span { color: var(--ink-2); } /* the second and third beats */
.t-figure { font: 500 clamp(3rem, 2rem + 3vw, 5rem)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.clock {
  font: 400 clamp(2.5rem, 1.6rem + 2.2vw, 4.5rem)/1 var(--f-display);
  color: var(--gold-ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.t-lead { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-inline-size: 34em; }
.t-small { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.t-caption { font-size: .8125rem; line-height: 1.4; font-weight: 500; color: var(--ink-2); }
.t-ui { font-family: var(--f-ui); font-weight: 500; font-size: .9375rem; }
.risk { font: 500 .875rem/1.5 var(--f-ui); color: var(--ink-2); }
.risk .sep { padding-inline: .5em; color: var(--rule-2); }
.risk__i { white-space: nowrap; } /* an item never breaks inside itself ("Live in / minutes"); the line wraps only at a separator */
.prose { max-inline-size: 52ch; }
.prose p + p { margin-block-start: 1em; }
.prose strong, .t-strong { font-family: var(--f-ui); font-weight: 600; color: var(--ink); }

html[lang="ar"] .t-display { font-size: clamp(3rem, 1.3rem + 5vw, 5.6rem); line-height: 1.18; letter-spacing: 0; font-weight: 600; max-inline-size: 13ch; }
html[lang="ar"] .t-h2 { font-size: clamp(2.3rem, 1.4rem + 2.4vw, 4.1rem); line-height: 1.22; letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .t-h3 { font-size: clamp(1.9rem, 1.4rem + 1.1vw, 2.9rem); line-height: 1.3; letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .t-h4 { line-height: 1.35; letter-spacing: 0; font-weight: 600; }
html[lang="ar"] .t-pull { line-height: 1.35; letter-spacing: 0; font-weight: 500; }
html[lang="ar"] .t-figure, html[lang="ar"] .clock { letter-spacing: 0; }
html[lang="ar"] .t-lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.85; }
html[lang="ar"] .t-small { font-size: 1rem; line-height: 1.8; }
html[lang="ar"] .t-caption { font-size: .875rem; line-height: 1.6; }
html[lang="ar"] .risk { font-size: .9375rem; }
/* H1 modifiers (after the Arabic rules so they outrank html[lang="ar"] .t-display):
   --wide releases the 10.5ch measure for H1s that break on deliberate <br> lines;
   --long is the Learn-page search-phrase H1 (8 to 12 words), a step smaller and also unmeasured. */
.t-display--wide, .t-display--long, html[lang="ar"] .t-display--wide, html[lang="ar"] .t-display--long { max-inline-size: none; }
.t-display--long { font-size: clamp(2.9rem, 1.2rem + 4.6vw, 5.9rem); line-height: 1; }
html[lang="ar"] .t-display--long { font-size: clamp(2.7rem, 1.1rem + 4.4vw, 5.6rem); line-height: 1.22; }

/* 4 grid ================================================================== */
/* The spread: margin | 12 content tracks | margin. Content column n starts on grid line n + 1. */
.spread {
  display: grid;
  grid-template-columns: [full-start] var(--m) [content-start] minmax(0, 1fr) [content-end] var(--m) [full-end];
  align-items: start;
}
.spread > * { grid-column: content; min-inline-size: 0; }
.spread > .bleed { grid-column: full; }
@media (min-width: 860px) {
  .spread {
    grid-template-columns:
      [full-start] minmax(0, calc(var(--m) - var(--g)))
      [content-start] repeat(12, minmax(0, 1fr))
      [content-end] minmax(0, calc(var(--m) - var(--g)))
      [full-end];
    column-gap: var(--g);
  }
}

.section { padding-block-start: var(--sec); }
.section__head { margin-block-end: 40px; }
.section__head .t-lead { margin-block-start: 24px; }
.section--mat { background: var(--paper-2); padding-block-end: var(--sec); }
* + .section--mat { margin-block-start: var(--sec); }
.section--end { padding-block-end: var(--sec); }

/* 5 masthead ============================================================== */
.masthead {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: var(--paper);
  border-block-end: 1px solid var(--rule-2);
  transition: border-color var(--dur-1) ease, background-color 240ms ease;
}
html.js .masthead:not([data-scrolled]) { border-block-end-color: transparent; }
.masthead__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  block-size: var(--mast);
  padding-inline: var(--m);
}
.masthead__brand, .footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  min-inline-size: 44px;
  text-decoration: none;
  color: var(--ink);
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--on-gold);
  font: 700 20px/1 var(--f-word);
}
.tile span { transform: translateY(-2px); }
.wordmark { font: 700 1.375rem/1 var(--f-word); letter-spacing: 0; }
.masthead__nav { margin-inline-start: auto; }
.masthead__nav ul { display: flex; gap: 4px; }
.masthead__nav a, .menu__panel a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 12px;
  font: 500 .9375rem/1 var(--f-ui);
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-1) ease;
}
.masthead__nav a:hover, .masthead__nav a[aria-current="page"] { color: var(--ink); }
.masthead__nav a[aria-current="page"] { text-decoration: underline 2px var(--ink); text-underline-offset: 6px; }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--ink);
  font: 500 .9375rem/1 var(--f-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) ease;
}
@media (hover: hover) and (pointer: fine) { .tbtn:hover { background: var(--paper-2); } }
.tbtn [lang="ar"] { font-family: Cairo, system-ui, sans-serif; font-weight: 600; font-size: 1rem; }
.tbtn [lang="en"] { font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; }
.tbtn svg { inline-size: 20px; block-size: 20px; }
.icon-moon { display: none; }
html[data-theme="night"] .icon-sun { display: none; }
html[data-theme="night"] .icon-moon { display: block; }
.masthead__divider { inline-size: 1px; block-size: 24px; background: var(--rule); margin-inline: 4px; }

/* menu: a <details>, works without JS */
.menu { display: none; }
.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding-inline: 12px;
  font: 500 .9375rem/1 var(--f-ui);
  cursor: pointer;
  border-radius: 2px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__icon { inline-size: 18px; block-size: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.menu__icon .x { display: none; }
.menu[open] .menu__icon .x { display: inline; }
.menu[open] .menu__icon .bars { display: none; }
.menu__panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  padding: 8px var(--m) 24px;
  background: var(--paper);
  border-block: 1px solid var(--rule-2);
  max-block-size: calc(100vh - var(--mast));
  overflow-y: auto;
}
.menu__panel li { border-block-end: 1px solid var(--rule); }
.menu__panel a:not(.btn) {
  display: flex;
  min-block-size: 52px;
  padding-inline: 0;
  font-size: 1.0625rem;
  color: var(--ink);
}
.menu__panel .menu__theme { margin-block-start: 12px; padding-inline: 0; display: none; }
@media (max-width: 1079px) {
  .masthead__nav, .masthead__divider, .masthead__login { display: none; }
  .menu { display: block; }
  .masthead__actions { margin-inline-start: auto; }
}
@media (max-width: 639px) {
  .masthead__bar { gap: 6px; }
  .masthead__actions { gap: 2px; }
  .masthead__actions > [data-theme-toggle] { display: none; }
  .menu__panel .menu__theme { display: inline-flex; }
  .masthead .btn { padding-inline: 14px; } /* DOM order = visual order (WCAG 2.4.3); the bar gap keeps brand and language apart */
  .tbtn, .menu > summary { padding-inline: 9px; }
  /* the menu is its icon here (the word stays its accessible name), so the bar keeps air between brand and action */
  .menu > summary { min-inline-size: 44px; justify-content: center; }
  .menu > summary > [lang] { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 379px) {
  /* the tile carries the brand; the name stays in the link's accessible name */
  .masthead__brand .wordmark { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* 6 buttons+links ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 52px;
  padding-inline: 28px;
  border: 0;
  border-radius: 2px;
  font: 600 1rem/1 var(--f-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-1) ease, opacity var(--dur-1) ease, transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: scale(.98); }
.masthead .btn { min-block-size: 44px; padding-inline: 20px; font-size: .9375rem; }
.btn--primary { background: var(--gold); color: var(--on-gold); }
.btn--ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--gold-hover); }
  .btn--ink:hover { opacity: .88; }
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  min-block-size: 44px;
  font: 600 1rem/1.25 var(--f-ui);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color 200ms ease;
}
.arrow {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-decoration-color: currentColor; }
  .link-arrow:hover .arrow, .keep__row:hover .arrow { transform: translateX(3px); }
  html[dir="rtl"] .link-arrow:hover .arrow, html[dir="rtl"] .keep__row:hover .arrow { transform: scaleX(-1) translateX(3px); }
}

/* 7 objects: phone, pass, till, dash, stamp, seal ========================= */
/* Every object is sized in em off its own font-size, so one number scales the whole thing. */

/* 7.1 phone */
.phone {
  position: relative;
  flex: none;
  inline-size: 19.5em;
  block-size: 40em;
  padding: .55em;
  border-radius: 3.3em;
  background: linear-gradient(160deg, #3b3a37, #1b1b1a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--obj-shadow);
  font-family: var(--f-os);
  color: var(--scr-ink);
}
.phone::before, .phone::after { /* side keys */
  content: "";
  position: absolute;
  inline-size: 3px;
  background: #2a2927;
  border-radius: 2px;
}
.phone::before { inset-inline-end: -2px; inset-block-start: 10em; block-size: 4.8em; }
.phone::after { inset-inline-start: -2px; inset-block-start: 7.6em; block-size: 2.4em; box-shadow: 0 3.4em 0 #2a2927, 0 6.2em 0 #2a2927; }
.phone__screen {
  position: relative;
  block-size: 100%;
  border-radius: 2.7em;
  overflow: hidden;
  background: var(--scr);
  isolation: isolate;
  direction: ltr; /* hardware chrome is not mirrored; text inside sets its own dir */
}
.phone__island {
  position: absolute; z-index: 30;
  inset-block-start: .7em; inset-inline-start: 50%;
  inline-size: 5.6em; block-size: 1.6em;
  margin-inline-start: -2.8em;
  border-radius: 1em;
  background: #000;
}
.phone__status {
  position: absolute; z-index: 29;
  inset-inline: 0; inset-block-start: 0;
  block-size: 3em;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 2em 1.7em;
  font: 600 .82em/1 "Plus Jakarta Sans", Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  color: currentColor;
}
.phone__status svg { inline-size: 4.1em; block-size: 1em; fill: currentColor; }
.phone__status--light { color: #14171D; }
.phone__home {
  position: absolute; z-index: 30;
  inset-block-end: .5em; inset-inline-start: 50%;
  inline-size: 6em; block-size: .25em; margin-inline-start: -3em;
  border-radius: 1em; background: rgba(255, 255, 255, .85);
}
.phone__home--dark { background: rgba(20, 23, 29, .8); }
.layer { position: absolute; inset: 0; transition: opacity var(--dur-2) ease; }

/* 7.2 lock screen */
.lock { color: #fff; direction: inherit; }
.lock::before { /* wallpaper: the only photo inside a device */
  content: "";
  position: absolute; inset: -8%;
  background: url("../img/pour-sm.jpg") 62% 45% / cover;
  filter: brightness(.45) saturate(.8) blur(6px);
}
.lock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 4, 0) 40%, rgba(8, 6, 4, .45)); }
.lock > * { position: absolute; z-index: 2; }
.lock__pad { inset-block-start: 3.35em; inset-inline-start: 50%; inline-size: 1em; block-size: 1.1em; margin-inline-start: -.5em; fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.6; }
.lock__date {
  inset-inline: 0; inset-block-start: 4.7em;
  text-align: center;
  font: 500 .95em/1.2 var(--f-os);
  color: rgba(255, 255, 255, .8);
}
.lock__clock {
  inset-inline: 0; inset-block-start: 1.28em;
  text-align: center;
  font: 500 4.6em/1 "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: #fff;
}
html[lang="ar"] .lock__clock { font-family: Cairo, sans-serif; font-weight: 600; letter-spacing: 0; inset-block-start: 1.12em; }
.lock__clock > span > span { display: inline-block; }
.lock__foot { inset-inline: 1.8em; inset-block-end: 2em; display: flex; justify-content: space-between; }
.lock__foot i { inline-size: 2.6em; block-size: 2.6em; border-radius: 50%; background: rgba(255, 255, 255, .26); display: grid; place-items: center; }
.lock__foot svg { inline-size: 1.1em; block-size: 1.1em; fill: none; stroke: #fff; stroke-width: 1.6; }
.lock__stack { inset-inline: .75em; inset-block-start: 16.5em; display: grid; gap: .45em; }
.lock[dir], .lock__stack { direction: inherit; }

/* 7.3 iOS notification */
.notif {
  position: relative;
  display: grid;
  grid-template-columns: 2.3em minmax(0, 1fr);
  column-gap: .7em;
  align-items: center;
  padding: .8em .9em;
  border-radius: 1.45em;
  background: rgba(236, 233, 226, .86);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  color: #14171D;
  font-family: var(--f-os);
  text-align: start;
}
.notif__icon, .roundel {
  display: grid; place-items: center;
  inline-size: 2.3em; block-size: 2.3em;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
}
.notif__icon svg, .roundel svg { inline-size: 58%; block-size: 58%; fill: currentColor; }
/* a shop with no glyph gets its initial, as a bilingual pair: <b lang="en">B</b><b lang="ar">م</b> */
.roundel > b { font: 700 1.05em/1 var(--f-word); transform: translateY(-1px); }
/* product ink set on each line, so a page-level paragraph colour can never leak into the mock */
.notif__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; font: 600 .82em/1.3 var(--f-os); color: #14171D; }
.notif__age { font-weight: 500; font-size: .88em; color: #4A443B; white-space: nowrap; }
.notif__text { font: 400 .82em/1.3 var(--f-os); color: #14171D; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="ar"] .notif__head, html[lang="ar"] .notif__text { line-height: 1.5; }
.notif-stack { display: grid; }
.notif-stack > .notif { grid-area: 1 / 1; }
.notif-stack > .notif:nth-child(2) { transform: translateY(.55em) scale(.955); opacity: .85; z-index: -1; }
.notif-stack:not(.notif-stack--list) > .notif:nth-child(2) > * { visibility: hidden; } /* only its edge peeks; its text must not show through the front card */
.notif-stack > .notif:nth-child(n+3) { display: none; }
.notif-stack--list { gap: .45em; }
.notif-stack--list > .notif { grid-area: auto; }
.notif-stack--list > .notif:nth-child(n) { transform: none; opacity: 1; z-index: auto; display: grid; }

/* 7.4 wallet sheet (the Wallet app) */
.wallet-sheet { background: #F6F2EA; color: #14171D; padding: 3.6em .8em 1em; direction: inherit; }
.wallet-sheet__title { display: flex; justify-content: space-between; align-items: center; padding: 0 .3em .7em; font: 700 1.5em/1 var(--f-os); }
.wallet-sheet__title svg { inline-size: .8em; block-size: .8em; fill: none; stroke: #14171D; stroke-width: 2; }
.wallet-sheet .pass { inline-size: 100%; box-shadow: 0 .6em 1.2em -.8em rgba(30, 20, 10, .6); }
.wallet-sheet__caption { margin-block-start: .9em; text-align: center; font: 500 .7em/1.3 var(--f-os); color: #5C554B; }

/* 7.5 join form (inside a phone) */
.join { background: #FBF9F6; color: #14171D; padding: 3.6em 1.25em 1em; direction: inherit; font-family: var(--f-os); }
.join__url { position: absolute; inset-block-end: 1.3em; inset-inline: 3.2em; block-size: 1.9em; border-radius: .7em; background: #ECE7DF; display: grid; place-items: center; font: 500 .68em/1 "Plus Jakarta Sans", sans-serif; color: #5C554B; direction: ltr; }
.join .roundel { inline-size: 3em; block-size: 3em; margin-block: .6em .9em; }
.join .pass { inline-size: 100%; } /* a pass on the web join or rewards screen fills it, as in the Wallet sheet */
.join__title { font: 700 1.3em/1.2 var(--f-os); letter-spacing: -.01em; }
html[lang="ar"] .join__title { letter-spacing: 0; line-height: 1.45; }
.join__label { display: block; margin-block: 1.1em .4em; font: 500 .72em/1.2 var(--f-os); color: #5C554B; }
.join__field { display: flex; align-items: center; gap: .6em; block-size: 2.9em; padding-inline: .8em; border: 1px solid #D9D3C8; border-radius: 8px; background: #fff; font: 600 .92em/1 "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums; direction: ltr; }
.join__field span { color: #5C554B; padding-inline-end: .6em; border-inline-end: 1px solid #D9D3C8; }
.join__check { display: flex; gap: .6em; align-items: flex-start; margin-block-start: .85em; font: 500 .72em/1.4 var(--f-os); color: #3F3A33; }
.join__check i { flex: none; inline-size: 1.5em; block-size: 1.5em; border-radius: .35em; border: 1.5px solid rgba(20, 23, 29, .38); display: grid; place-items: center; }
.join__check i.is-on { background: #14171D; border-color: #14171D; }
.join__check svg { inline-size: 1em; block-size: 1em; fill: none; stroke: #fff; stroke-width: 2.2; }
.join__opt { margin-block-start: .9em; font: 500 .68em/1.4 var(--f-os); color: #6B645A; }
.join__add { margin-block-start: 1.7em; block-size: 3.1em; border-radius: .7em; background: #0B0C10; color: #fff; display: flex; align-items: center; justify-content: center; gap: .55em; font: 600 .88em/1 var(--f-os); }
.join__add svg { inline-size: 1.5em; block-size: 1.1em; }
.join__google { margin-block-start: 1em; text-align: center; font: 600 .7em/1 var(--f-os); color: #14171D; text-decoration: underline; text-underline-offset: .2em; }

/* 7.6 wallet pass */
.pass {
  --pc: var(--pass);
  --pt: var(--pass-ink);
  --pl: var(--pass-label);
  --pr: rgba(244, 239, 230, .32);
  position: relative;
  inline-size: 19em;
  padding: 1em 1.05em 1.1em;
  border-radius: .9em;
  background: var(--pc);
  color: var(--pt);
  font-family: var(--f-os);
  text-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background-color var(--dur-3) ease;
}
.pass--free { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--obj-shadow); }
.pass--paper { --pc: #F6F2EA; --pt: #14171D; --pl: #5C554B; --pr: rgba(20, 23, 29, .3); box-shadow: inset 0 0 0 1px rgba(20, 23, 29, .1), var(--obj-shadow); }
.pass__head { display: flex; align-items: center; gap: .6em; }
.pass__head .roundel { inline-size: 2.2em; block-size: 2.2em; }
.pass__name { flex: 1; min-inline-size: 0; font: 600 1em/1.2 var(--f-os); }
.pass__field { display: flex; flex-direction: column; gap: .25em; min-inline-size: 0; }
.pass__field small { font: 600 .6em/1.1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--pl); }
html[lang="ar"] .pass__field small { font-family: Cairo, sans-serif; letter-spacing: 0; text-transform: none; font-size: .68em; }
.pass__field b { font: 600 1em/1.2 var(--f-os); font-variant-numeric: tabular-nums lining-nums; }
.pass__head .pass__field { text-align: end; }
.pass__row { display: flex; justify-content: space-between; gap: 1em; margin-block-start: 1em; }
.pass__row .pass__field:last-child:not(:first-child) { text-align: end; }
.pass__strip {
  display: grid;
  grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  gap: .6em;
  margin-block-start: 1em;
  padding: .9em;
  border-radius: .5em;
  background: rgba(255, 255, 255, .12);
}
.pass--paper .pass__strip { background: rgba(20, 23, 29, .05); }
.pass__hero { /* Apple strip image with the primary field on it */
  position: relative;
  margin: 1em -1.05em 0;
  padding: 1em 1.05em;
  min-block-size: 6.4em;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: url("../img/pour-sm.jpg") 60% 45% / cover;
  overflow: hidden;
}
.pass__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 10, .78), rgba(20, 14, 10, .35)); }
html[dir="rtl"] .pass__hero::before { background: linear-gradient(270deg, rgba(20, 14, 10, .78), rgba(20, 14, 10, .35)); }
.pass__hero > * { position: relative; }
.pass__hero b { font-size: 2.3em; line-height: 1.05; font-weight: 600; }
.pass__qr { margin: 1em auto 0; inline-size: 8.4em; padding: .6em; border-radius: 8px; background: #fff; color: #14171D; text-align: center; }
.pass__qr svg { inline-size: 100%; block-size: auto; aspect-ratio: 1; fill: #14171D; }
.pass__qr span { display: block; margin-block-start: .5em; font: 500 .65em/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; }

/* 7.7 stamp disc and seal */
.stamp {
  position: relative;
  display: grid; place-items: center;
  inline-size: 2.6em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--foil);
  box-shadow: inset 0 0 0 .09em rgba(255, 255, 255, .55), inset 0 0 0 .18em rgba(120, 74, 10, .35), 0 .06em .12em rgba(58, 40, 14, .35);
  color: rgba(58, 40, 14, .85);
  overflow: hidden;
}
.pass__strip .stamp { inline-size: 100%; }
.stamp svg { inline-size: 46%; block-size: 46%; fill: currentColor; }
.stamp::after { /* the single light sweep, parked off the disc */
  content: "";
  position: absolute; inset: -10% -40%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.stamp--empty { background: transparent; box-shadow: none; border: 1.5px dashed var(--pr, var(--rule-2)); color: currentColor; }
.stamp--empty svg { opacity: .35; }
.stamp--empty::after, .stamp--reward::after { display: none; }
.stamp--reward { background: rgba(240, 169, 59, .1); box-shadow: none; border: 1.5px dashed var(--gold); color: var(--gold); }
.pass--paper .stamp--reward { color: var(--gold-ink); }
.stamp--free { inline-size: 72px; font-size: 16px; transform: rotate(-9deg); box-shadow: inset 0 0 0 .09em rgba(255, 255, 255, .55), inset 0 0 0 .18em rgba(120, 74, 10, .35), var(--obj-shadow); }
.slot { position: relative; display: grid; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--pr, var(--rule-2)); }
.slot > .stamp { position: absolute; inset: -1.5px; inline-size: auto; }

.seal {
  position: relative;
  display: grid; place-items: center;
  inline-size: 76px; block-size: 76px;
  border-radius: 50%;
  background: var(--foil);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), inset 0 0 0 4px rgba(120, 74, 10, .3), 0 2px 4px rgba(0, 0, 0, .3), 0 14px 28px -14px rgba(0, 0, 0, .6);
  transform: rotate(-9deg);
}
.seal::before { /* debossed inner ring */
  content: "";
  position: absolute; inset: 19%;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(90, 55, 8, .45), 0 1px 0 rgba(255, 240, 200, .6);
}
.seal span { font: 700 38px/1 var(--f-word); color: rgba(58, 40, 14, .9); transform: translateY(-3px); text-shadow: 0 1px 0 rgba(255, 236, 190, .55); }

/* 7.8 till: a landscape tablet with the web till on it */
.till {
  position: relative;
  inline-size: 26em;
  padding: .5em;
  border-radius: 1.6em;
  background: #1b1b1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--obj-shadow);
  font-family: var(--f-os);
}
.till::before { content: ""; position: absolute; inset-block-start: 50%; inset-inline-end: .2em; inline-size: .22em; block-size: .22em; margin-block-start: -.11em; border-radius: 50%; background: #3a3936; }
.till__page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1.2em;
  aspect-ratio: 25 / 16.6;
  padding: 1em 1.2em 1.1em;
  border-radius: 1.2em;
  background: var(--till);
  color: #14171D;
  text-align: start;
}
.till__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-block-end: .75em; margin-block-end: .9em; border-block-end: 1px solid var(--till-rule); font: 600 .78em/1.2 var(--f-os); }
.till__top span { font-weight: 500; color: var(--till-dim); }
.till__member { display: flex; flex-direction: column; gap: .55em; }
.till__label { font: 500 .66em/1.3 var(--f-os); color: var(--till-dim); }
.till__found { display: flex; align-items: center; gap: .6em; }
.till__found .roundel { inline-size: 2.4em; block-size: 2.4em; }
.till__found b { display: block; font: 600 .8em/1.3 var(--f-os); }
.till__found em { display: block; font-style: normal; color: var(--till-dim); font-weight: 500; }
.till__phone { display: block; font: 500 .72em/1.3 "Plus Jakarta Sans", sans-serif; color: var(--till-dim); font-variant-numeric: tabular-nums; word-spacing: .2em; } /* at this size the dial-code space all but vanishes ("+2010") */
.till__chip { align-self: flex-start; padding: .35em .6em; border-radius: 6px; background: var(--paper-3, #E9E3D9); background: #EFEAE1; font: 600 .66em/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .04em; color: #14171D; }
.till__progress { margin-block-start: auto; display: flex; gap: .35em; align-items: center; font: 500 .66em/1.3 var(--f-os); color: var(--till-dim); }
.till__progress i { inline-size: 1.4em; block-size: 1.4em; border-radius: 50%; border: 1px dashed rgba(20, 23, 29, .35); }
.till__progress i.is-on { border: 0; background: var(--foil); }
.till__sale { display: flex; flex-direction: column; padding-inline-start: 1.2em; border-inline-start: 1px solid var(--till-rule); }
.till__amount { display: flex; align-items: baseline; gap: .15em; margin-block: .15em .5em; padding-block-end: .35em; border-block-end: 1px solid var(--till-rule); font: 500 3em/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.till__amount small { font: 500 .3em/1 var(--f-os); color: var(--till-dim); letter-spacing: 0; }
.till__btn { display: grid; place-items: center; min-block-size: 2.6em; margin-block-start: auto; border-radius: 2px; background: var(--gold); color: var(--on-gold); font: 600 .82em/1 var(--f-os); }
.till__ok { display: flex; align-items: center; gap: .4em; align-self: flex-start; margin-block-start: .6em; padding: .45em .65em; border-radius: 8px; background: #E4F2E8; color: #1E6B3A; font: 600 .7em/1 var(--f-os); }
.till__ok svg { inline-size: 1.15em; block-size: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* 7.9 dashboard fragment */
/* a light product panel in both themes: it carries its own ink tokens so any .t-caption, .t-small or ledger inside stays dark */
.dash { --ink: #14171D; --ink-2: #5C554B; --rule: var(--till-rule); --rule-2: rgba(20, 23, 29, .3); padding: 20px; border: 1px solid var(--till-rule); border-radius: 10px; background: var(--till); color: #14171D; box-shadow: var(--obj-shadow); }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; }
.dash__tile { padding: 16px 18px; }
.dash__tile:nth-child(odd) { border-inline-end: 1px solid var(--till-rule); }
.dash__tile:nth-child(-n+2) { border-block-end: 1px solid var(--till-rule); }
.dash__tile b { display: block; font: 500 2.25rem/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; margin-block-start: 6px; }
.dash__tile > span { display: block; font: 500 .8125rem/1.4 var(--f-body); color: var(--till-dim); } /* block: an inline label would take the tile's Arabic body strut (35px) as its leading */
.dash__spark { inline-size: 96px; aspect-ratio: 120 / 22; margin-block-start: 10px; fill: rgba(20, 23, 29, .6); } /* the 12-bar sparkline at its drawn proportion, never stretched to the tile */
.dash .ledger { margin-block-start: 12px; }
.dash__caption { margin-block-start: 12px; }
.facts__object > .dash { justify-self: stretch; }
@media (max-width: 1079px) { .facts__object > .dash { max-inline-size: 30rem; } } /* stacked: a panel keeps a panel's width, not the page's */

/* 7.10 printed objects: Review Us QR card, paper stamp card */
.print-card { inline-size: 15em; padding: 1.4em 1.3em 1.2em; border-radius: 2px; background: #FFFDF9; color: #14171D; box-shadow: var(--obj-shadow); text-align: center; font-family: var(--f-os); }
.print-card .roundel { margin: 0 auto .7em; }
.print-card__title { font: 500 1.6em/1.1 var(--f-display); color: #14171D; } /* product ink: never a theme token */
html[lang="ar"] .print-card__title { font-weight: 600; line-height: 1.35; }
.print-card__sub { margin-block: .3em 1em; font: 500 .72em/1.4 var(--f-os); color: #5C554B; }
.print-card svg.qr { inline-size: 8em; block-size: 8em; margin-inline: auto; fill: #14171D; }
.print-card__foot { margin-block-start: .9em; padding-block-start: .7em; border-block-start: 1px solid var(--till-rule); font: 600 .62em/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5C554B; }
html[lang="ar"] .print-card__foot { letter-spacing: 0; text-transform: none; font-family: Cairo, sans-serif; font-size: .7em; }
.paper-card { --pr: rgba(20, 23, 29, .4); inline-size: 19em; padding: 1.2em; border-radius: 2px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink); font-family: var(--f-body); }
.paper-card__name { font: 500 1.4em/1.1 var(--f-display); margin-block-end: .8em; }
.paper-card .pass__strip { background: none; padding: 0; }
.paper-card .stamp--empty { border-color: var(--pr); }

/* 7.11 the Wallet app's card stack and the back of a pass (wallet-loyalty-card) */
/* the Wallet app: cards stacked, newest in front */
.wl-stack { display: grid; }
.wl-card { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; block-size: 4.4em; margin-block-end: -1.55em; padding: .8em 1.05em; border-radius: .9em; box-shadow: 0 -.1em .5em rgba(20, 14, 10, .16); }
.wl-card b { font: 600 .82em/1.2 var(--f-os); }
.wl-card span { font: 500 .72em/1.3 "Plus Jakarta Sans", Inter, sans-serif; font-variant-numeric: tabular-nums; opacity: .78; }
.wl-card svg { display: inline-block; inline-size: 1em; block-size: 1em; margin-inline: .25em; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wl-card--bank { background: linear-gradient(135deg, #3B3E45, #1F2227); color: #F3F1EC; }
.wl-card--board { background: #FFFDF9; color: #14171D; box-shadow: inset 0 0 0 1px rgba(20, 23, 29, .1), 0 -.1em .5em rgba(20, 14, 10, .14); }
.wl-stack .pass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 -.15em .7em rgba(20, 14, 10, .25), 0 .6em 1.2em -.8em rgba(30, 20, 10, .6); }

/* the back of the pass (Apple's info side) */
.wl-back { inline-size: 19em; padding: 1em 1.05em .3em; border-radius: .9em; background: #FFFDF9; color: #14171D; font-family: var(--f-os); text-align: start; box-shadow: inset 0 0 0 1px rgba(20, 23, 29, .1), var(--obj-shadow); }
.wl-back__head { display: flex; align-items: center; gap: .6em; padding-block-end: .75em; border-block-end: 1px solid rgba(20, 23, 29, .14); }
.wl-back__head .roundel { inline-size: 1.9em; block-size: 1.9em; }
.wl-back__head b { flex: 1; font: 600 .95em/1.2 var(--f-os); }
.wl-back__head i { display: grid; place-items: center; inline-size: 1.45em; block-size: 1.45em; border-radius: 50%; border: 1.5px solid #14171D; font: 700 .72em/1 "Plus Jakarta Sans", Inter, sans-serif; }
.wl-back dl > div { padding-block: .55em; border-block-end: 1px solid rgba(20, 23, 29, .1); }
.wl-back dl > div:last-child { border: 0; }
.wl-back dt { font: 600 .6em/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5C554B; }
.wl-back dd { margin-block-start: .25em; font: 500 .8em/1.35 var(--f-os); }
.wl-back u { text-decoration-color: rgba(20, 23, 29, .4); text-underline-offset: .16em; }
html[lang="ar"] .wl-back dt { font-family: Cairo, sans-serif; letter-spacing: 0; text-transform: none; font-size: .68em; }
html[lang="ar"] .wl-back dd { line-height: 1.55; }

/* 7.12 the Express till: the web till as a page on a phone (loyalty-program-for-shops) */
.xt { display: flex; flex-direction: column; padding: 3.4em 1.15em 1.6em; background: var(--till); color: #14171D; font-family: var(--f-os); direction: inherit; text-align: start; }
html[dir="rtl"] .xt { direction: rtl; }
.xt__top { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; padding-block-end: .8em; border-block-end: 1px solid var(--till-rule); }
.xt__top b { font: 700 1.25em/1.2 var(--f-os); letter-spacing: -.01em; }
html[lang="ar"] .xt__top b { letter-spacing: 0; }
.xt__top > span { font: 500 .72em/1.2 var(--f-os); color: var(--till-dim); }
.xt__mode { display: flex; justify-content: space-between; align-items: center; padding-block: .85em; border-block-end: 1px solid var(--till-rule); font: 600 .82em/1.3 var(--f-os); }
.xt__mode small { display: block; font-weight: 500; font-size: .85em; color: var(--till-dim); }
/* Express is a shop setting (owner or branch manager), so the till shows its state, not a switch */
.xt__on { flex: none; padding: .4em .7em; border-radius: 8px; background: #E4F2E8; color: #1E6B3A; font: 600 .9em/1 var(--f-os); }
.xt__member { display: flex; align-items: center; gap: .65em; padding-block: .95em .8em; }
.xt__member .roundel { inline-size: 2.4em; block-size: 2.4em; }
.xt__member b { display: block; font: 600 .8em/1.35 var(--f-os); }
.xt__member em { font-style: normal; font-weight: 500; color: var(--till-dim); }
.xt__member .till__phone { margin-block-start: .15em; }
.xt__dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .35em; padding: .7em; border-radius: .5em; background: #F3EEE5; }
.xt__dots i { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(20, 23, 29, .35); }
.xt__dots i.is-on { border: 0; background: var(--foil); box-shadow: inset 0 0 0 .09em rgba(255, 255, 255, .5), inset 0 0 0 .18em rgba(120, 74, 10, .3); }
.xt__dots i.is-gift { border: 1.5px dashed #8A5A0C; }
.xt__count { margin-block-start: .5em; font: 500 .7em/1.3 var(--f-os); color: var(--till-dim); }
.xt__log { margin-block-start: 1.1em; border-block-start: 1px solid var(--till-rule); }
.xt__log li { display: flex; justify-content: space-between; gap: .6em; padding-block: .62em; border-block-end: 1px solid var(--till-rule); font: 500 .72em/1.3 var(--f-os); }
.xt__log li > span:last-child { color: var(--till-dim); font-variant-numeric: tabular-nums; }
.xt__log-h { margin-block-start: 1.2em; margin-block-end: .4em; font: 600 .66em/1.2 var(--f-os); color: var(--till-dim); }
.xt__btn { display: grid; place-items: center; min-block-size: 3.6em; margin-block-start: auto; border-radius: 2px; background: var(--gold); color: var(--on-gold); font: 700 1em/1 var(--f-os); }
.xt .till__ok { margin-block-start: .9em; align-self: center; font-size: .78em; }
.queue-pull { margin-block-start: 28px; padding-block-start: 20px; border-block-start: 1px solid var(--rule); font: 400 clamp(1.4rem, 1.2rem + .6vw, 1.8rem)/1.25 var(--f-display); max-inline-size: 26ch; }
html[lang="ar"] .queue-pull { font-weight: 500; line-height: 1.55; }

/* 7.13 a customer record in the dashboard's palette (loyalty-program-for-shops) */
.crm { inline-size: 100%; max-inline-size: 30rem; padding: 0; overflow: hidden; }
.crm__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-block-end: 1px solid var(--till-rule); font: 600 .8125rem/1.3 var(--f-ui); color: var(--till-dim); }
.crm__id { display: flex; align-items: center; gap: 14px; padding: 18px 20px 16px; }
.crm__id .roundel { inline-size: 44px; block-size: 44px; font-size: 18px; }
.crm__id b { display: block; font: 500 1.75rem/1.1 var(--f-display); }
html[lang="ar"] .crm__id b { font-weight: 600; line-height: 1.35; }
.crm__id p > span { font: 500 .8125rem/1.3 var(--f-ui); color: var(--till-dim); font-variant-numeric: tabular-nums; }
.crm .dash__grid { border-block: 1px solid var(--till-rule); }
.crm .dash__tile b { font-size: 1.9rem; }
html[lang="ar"] .crm .dash__tile b { font-weight: 600; line-height: 1.3; font-size: 1.7rem; }
.crm__note { margin: 16px 20px 0; padding: 12px 14px; border-radius: 8px; background: #F3EEE5; }
.crm__note .t-caption { color: var(--till-dim); }
.crm__note p:last-child { margin-block-start: 4px; font: 600 .9375rem/1.4 var(--f-ui); }
.crm .ledger { margin: 8px 20px 18px; }
.regs > li { padding-block: 14px; }
.regs .t-small { margin: 0; max-inline-size: 52ch; }
.regs-consent { margin-block-start: 24px; max-inline-size: 52ch; }
.regs-more { margin-block-start: 12px; }

/* 7.14 the Support ticket (Contact): product UI, light in both themes */
.ticket { inline-size: min(100%, 29rem); font-family: var(--f-os); text-align: start; }
.ticket__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block-end: 14px; margin-block-end: 16px; border-block-end: 1px solid var(--till-rule); font: 700 1.05rem/1.2 var(--f-os); }
.ticket__bar span { font: 500 .8125rem/1.2 var(--f-os); color: var(--till-dim); }
.ticket__f { display: grid; gap: 6px; margin-block-end: 14px; }
.ticket__f > span:first-child { font: 500 .75rem/1.2 var(--f-os); color: var(--till-dim); }
.ticket__in { padding: 10px 12px; border: 1px solid #D9D3C8; border-radius: 8px; background: #fff; font: 500 .875rem/1.5 var(--f-os); color: #14171D; }
.ticket__in svg { inline-size: 12px; block-size: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(90deg); }
.ticket__sel { display: flex; justify-content: space-between; align-items: center; }
.ticket__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 .75rem/1 var(--f-os); }
.ticket__files > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #D9D3C8; border-radius: 8px; }
.ticket__files svg { inline-size: 11px; block-size: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.ticket__chip { color: var(--till-dim); font-weight: 500; background: #F2ECE2; border-color: transparent !important; }
.ticket__btns { display: flex; gap: 6px; font: 600 .8125rem/1 var(--f-os); }
.ticket__btns span { padding: 10px 14px; border-radius: 2px; }
.ticket__cancel { color: var(--till-dim); }
.ticket__send { background: var(--gold); color: var(--on-gold); }

/* 7.15 the counter screen (Features): a spare phone showing the check-in code */
.fx-counter { background: #FBF9F6; color: #14171D; display: grid; align-content: center; justify-items: center; gap: .8em; padding: 3.4em 1.6em 2.4em; text-align: center; font-family: var(--f-os); direction: inherit; }
.fx-counter .roundel { inline-size: 2.8em; block-size: 2.8em; }
.fx-counter__shop { font: 600 .8em/1.2 var(--f-os); color: #5C554B; }
.fx-counter__title { font: 700 1.45em/1.2 var(--f-os); }
.fx-counter svg.qr { inline-size: 12.5em; block-size: 12.5em; margin-block: .4em; padding: .7em; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 23, 29, .12); fill: #14171D; }
.fx-counter__timer { font: 600 .78em/1 var(--f-os); color: #5C554B; font-variant-numeric: tabular-nums; }

/* 7.16 the Wallet sheet's other passes (How it works): they collapse into a stack of top edges at the foot, as in Apple Wallet */
.hiw-others { position: absolute; inset-inline: .8em; inset-block-end: 0; display: grid; }
.hiw-others__pass { display: flex; justify-content: space-between; gap: 1em; block-size: 2.4em; padding: .7em .9em 0; border-radius: .75em .75em 0 0; box-shadow: 0 -.25em .7em -.35em rgba(30, 20, 10, .4); }
.hiw-others__pass + .hiw-others__pass { margin-block-start: -.6em; block-size: 3.2em; }
.hiw-others__pass > * { font: 600 .62em/1.2 var(--f-os); }
.hiw-others__pass b { font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: .04em; }
.hiw-others__pass--bank { background: #23302F; color: #EDEAE3; }
.hiw-others__pass--board { background: #DCD5C8; color: #14171D; }

/* 8 sections ============================================================== */

/* 8.1 cover (hero) */
.hero { position: relative; border-block-end: 1px solid var(--rule); }
.hero__copy { padding-block: 40px 56px; }
.hero__head { padding-block-start: 40px; }
.hero__deck { margin-block-start: 32px; padding-block-start: 24px; border-block-start: 1px solid var(--rule-2); display: grid; gap: 28px; }
.hero__deck .t-lead { color: var(--ink); }
.hero .cta-row { margin-block-start: 36px; }
.hero .risk { margin-block-start: 16px; }
.hero__plate { grid-column: full; position: relative; margin: 0; --k: 12.5px; font-size: var(--k); block-size: calc(40em + 72px); }
.hero__plate > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 40%; filter: var(--plate-filter); }
.hero__plate .phone { position: absolute; z-index: 2; inset-block-start: 32px; inset-inline-start: var(--m); }
.hero__plate .pass { position: absolute; z-index: 3; inset-inline-end: var(--m); inset-block-end: 28px; font-size: 12px; inline-size: 19em; }
.hero__plate .phone .notif { font-size: 1em; }
.hero__plate .phone .lock__foot { visibility: hidden; } /* the pass covers that corner: no half-hidden torch or camera button */
@media (min-width: 640px) and (max-width: 859px) {
  .hero__plate .phone { inset-inline-start: calc(50% - 16em); }
  .hero__plate .pass { inset-inline-end: calc(50% - 17em); }
}
@media (min-width: 860px) {
  .hero { min-block-size: min(calc(100svh - var(--mast)), 900px); }
  /* one cap line on every page: the copy starts at --hero-top instead of floating to the middle of the cover, and a
     breadcrumb sits inside that top margin (44px row + 24px), so a page with crumbs sets its H1 where Home does */
  .hero { --hero-top: clamp(76px, 8vh, 112px); }
  .hero__copy { grid-column: 2 / span 7; grid-row: 1; padding-block: var(--hero-top) 64px; align-self: start; }
  .hero__head { padding-block-start: var(--hero-top); } /* a long-H1 cover (Learn) whose head spans the spread */
  .hero__copy > .crumbs:first-child, .hero__head > .crumbs:first-child { margin-block: -68px 24px; }
  .hero__deck { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); column-gap: var(--g); }
  .hero__deck .ledger { padding-inline-start: 20px; border-inline-start: 1px solid var(--rule); }
  .hero__plate {
    grid-column: 10 / -1; grid-row: 1;
    align-self: stretch;
    block-size: auto;
    min-block-size: 620px;
    --k: clamp(12px, calc((min(100svh, 980px) - var(--mast) - 170px) / 40), 18px);
  }
  .hero__plate .phone { inset-block-start: clamp(40px, 7vh, 88px); inset-inline-start: calc(-1 * (var(--col) + var(--g)) + .5em); }
  /* the pass hangs off the phone's lower edge; a taller pass (stamp strip + reward row) is lifted just enough to end
     44px above the cover's foot. The plate is a size container so cqh is its height; translate's % is the pass's own. */
  .hero__plate { container-type: size; }
  .hero__plate .pass {
    inset-inline-start: calc(-1 * var(--col) - 2em); inset-inline-end: auto; inset-block-end: auto;
    inset-block-start: calc(clamp(40px, 7vh, 88px) + 40.6em);
    translate: 0 min(0px, calc(100cqh - 44px - clamp(40px, 7vh, 88px) - 40.6em - 100%));
    font-size: calc(var(--k) * .86);
  }
  .hero__deck:not(:has(.ledger)) { grid-template-columns: minmax(0, 1fr); } /* a lone lead takes the full deck */
}
@media (min-width: 860px) and (max-width: 1079px) {
  /* copy in columns 1 to 7, the plate from 9 as on desktop; the phone (in column 8) is capped to the room left of the trim edge */
  .hero__copy { grid-column: 2 / span 7; }
  .hero__deck { grid-template-columns: 1fr; }
  .hero__deck .ledger { padding-inline-start: 0; border-inline-start: 0; }
  .hero__plate { --k: clamp(11px, min(calc((min(100svh, 980px) - var(--mast) - 170px) / 40), calc((100vw - var(--m) - 7 * (var(--col) + var(--g)) - 24px) / 20)), 18px); }
}
.hero--mat { background: var(--paper-2); } /* the cover on the mat (Pricing): no photo, the object sits on paper-2 */
.hero__plate--mat { background: var(--paper-2); } /* a plate with no photo: the phone and pass stand on the mat */
html[dir="rtl"] .hero__plate > img { transform: scaleX(-1); }

/* the hero mat: a paper-2 panel that bleeds off the trim and holds an object in flow (a phone, a card pair) which hangs
   one column into the gutter. Size the object with font-size on the mat. Stacks full-bleed under the copy below 1080. */
.hero__mat { grid-column: full; position: relative; margin: 0; padding-block: 48px 32px; display: grid; justify-items: center; background: var(--paper-2); }
.hero__mat > figcaption { margin-block-start: 16px; max-inline-size: 36ch; text-align: center; }
@media (min-width: 1080px) {
  .hero__mat { grid-column: 10 / -1; grid-row: 1; align-self: stretch; align-content: center; justify-items: start; padding-block: 48px; }
  .hero__mat > * { margin-inline-start: calc(-1 * (var(--col) + var(--g)) + .5em); }
  .hero__mat > figcaption { text-align: start; }
}

/* breadcrumb: a caption-size ordered list; each separator sits inside the preceding <li>, aria-hidden, so the list reads
   as its real item count. The separator is dir="ltr" + .flip-rtl: '›' is bidi-mirrored, so it must be pinned LTR and
   flipped by CSS to point the right way in Arabic. Markup:
   <nav class="crumbs t-caption" aria-label="Breadcrumb"><ol><li><a href="index.html">…</a><span class="crumbs__sep flip-rtl" dir="ltr" aria-hidden="true">›</span></li><li><span aria-current="page">…</span></li></ol></nav> */
.crumbs { margin-block-end: 16px; }
.crumbs ol, .crumbs li { display: flex; flex-wrap: wrap; align-items: center; }
.crumbs a, .crumbs li > span:not(.crumbs__sep) { display: inline-flex; align-items: center; min-block-size: 44px; }
.crumbs a { min-inline-size: 44px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule-2); transition: color var(--dur-1) ease, text-decoration-color var(--dur-1) ease; }
.crumbs a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.crumbs__sep { display: inline-block; padding-inline: .6em; color: var(--ink-3); }

/* "On this page": a caption over a wrapping row of underlined UI links, 44px rows. For long pages. */
.toc { margin-block-start: 40px; padding-block-start: 16px; border-block-start: 1px solid var(--rule); }
.toc ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block-start: 4px; }
.toc a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; font: 500 .9375rem/1.3 var(--f-ui); color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--rule-2); transition: color var(--dur-1) ease; }
.toc a:hover { color: var(--ink); text-decoration-color: currentColor; }
html[lang="ar"] .toc a { font-size: 1rem; }

/* on a short laptop screen the three-line H1 is capped by height so the CTA stays above the fold (1366x768, 1280x800) */
@media (min-width: 860px) {
  .hero--home .t-display { font-size: min(clamp(3.2rem, 1.4rem + 5.4vw, 6rem), 11vh); }
  html[lang="ar"] .hero--home .t-display { font-size: min(clamp(3rem, 1.3rem + 5vw, 5.6rem), 9.4vh); }
}

/* 8.2 the loop */
.loop__stage { position: relative; }
.moment {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-block-size: 78vh;
  padding-block: 72px;
  border-block-end: 1px solid var(--rule);
}
.moment:last-child { border-block-end: 0; }
.moment__time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-block-end: 28px; }
.moment__time time { display: inline-flex; }
.moment__day { font: 500 .9375rem/1.4 var(--f-ui); color: var(--ink-2); }
.moment .t-h3 { max-inline-size: 15ch; }
.moment__body { margin-block-start: 20px; max-inline-size: 44ch; color: var(--ink-2); }
.moment__stamp { margin-inline-start: 16px; align-self: center; } /* sits by the time label */
.moment--quiet { background: var(--paper-2); box-shadow: 0 0 0 100vmax var(--paper-2); clip-path: inset(0 -100vmax); }
.loop__beats { padding-block: var(--sec) 0; }


.rig-wrap { position: relative; z-index: 3; display: grid; place-items: center; }
.rig {
  --k: 16px;
  position: relative;
  font-size: var(--k);
  inline-size: 36em;
  block-size: 42em;
}
.rig .phone { position: absolute; inset-inline-end: 0; inset-block-start: 0; }
.rig > .pass { position: absolute; z-index: 4; inset-inline-start: .5em; inset-block-start: 26.5em; inline-size: 19.5em; font-size: .95em; transition: opacity var(--dur-2) ease, transform 700ms var(--ease-drawer); }
.rig .till { position: absolute; z-index: 5; inset-inline-start: 0; inset-block-start: 22em; font-size: .92em; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rig .lock__stack { inset-block-start: 15.6em; }
.rig__caption { margin-block-start: 16px; text-align: center; }
.rig .lock__stack { display: grid; }
.rig .lock__stack > .notif { grid-area: 1 / 1; }
[data-step="1"] .rig .phone__home, [data-step="2"] .rig .phone__home { background: rgba(20, 23, 29, .8); }

/* step machine: data-step on [data-rig]; no-JS markup ships step 3 */
.rig .layer { opacity: 0; }
[data-step="1"] .rig .s-join, [data-step="2"] .rig .s-wallet, [data-step="3"] .rig .s-lock, [data-step="4"] .rig .s-lock { opacity: 1; }
.rig .notif { opacity: 0; transform: translateY(-2.2em) scale(.94); filter: blur(8px); transition: opacity 420ms ease, transform 820ms var(--ease-drawer), filter var(--dur-4) ease; }
[data-step="3"] .rig .n-stamp, [data-step="4"] .rig .n-winback { opacity: 1; transform: none; filter: none; }
[data-step="4"] .rig .n-winback { transition-delay: 120ms; }
.rig .till { opacity: 0; transform: translate(-6%, 4%); }
html[dir="rtl"] .rig .till { transform: translate(6%, 4%); }
[data-step="2"] .rig .till, html[dir="rtl"] [data-step="2"] .rig .till { opacity: 1; transform: none; } /* the rtl pair outranks the rtl start offset */
[data-step="2"] .rig > .pass { opacity: 0; transform: translateY(1.2em); }
.rig .slot .stamp { opacity: 0; }
[data-step="3"] .rig .slot .stamp, [data-step="4"] .rig .slot .stamp { opacity: 1; }
.rig .when-4, [data-step="4"] .rig .when-3 { display: none; }
[data-step="4"] .rig .when-4 { display: inline; }
.is-cut, .is-cut * { transition: none !important; }
[data-step="4"] .rig-wrap { background-color: var(--paper-2); }

@media (min-width: 860px) {
  .loop__stage { border-block-start: 1px solid var(--rule-2); }
  .loop__moments { grid-column: 2 / span 5; grid-row: 1; }
  .rig-wrap {
    grid-column: 8 / span 6; grid-row: 1;
    position: sticky; inset-block-start: calc(var(--mast) + 16px);
    block-size: calc(100vh - var(--mast) - 16px);
    align-content: center;
    background: transparent !important;
  }
  .rig { --k: min(16px, calc((100vh - var(--mast) - 90px) / 43), calc(var(--col) * 6.3 / 36)); }
  .moment:last-child { min-block-size: calc(100vh - var(--mast)); }
}
@media (max-width: 859px) {
  .rig-wrap {
    grid-column: full;
    order: -1;
    position: sticky; inset-block-start: var(--mast);
    block-size: calc(min(45vh, 360px) + 32px); /* the stage, plus a caption rail */
    padding-block-start: 16px;
    align-content: start;
    overflow: hidden;
    background: var(--paper);
    border-block: 1px solid var(--rule);
    transition: background-color var(--dur-2) ease;
  }
  .rig { --k: min(9px, calc((min(45vh, 360px) - 16px) / 36.5)); -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent); mask-image: linear-gradient(180deg, #000 86%, transparent); }
  .rig__caption { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 6; margin: 0; padding: 7px var(--m) 8px; background: inherit; border-block-start: 1px solid var(--rule); text-align: start; }
  .moment { min-block-size: 70vh; padding-block: 48px; }
  /* home: the band ends at 36.5em of a 42em rig, so the pass and the till lift clear of the caption rail and the fade;
     the band takes the top half of the screen, so a shorter moment keeps each step's text close to the phone it changes */
  .rig > .pass { inset-block-start: 23.5em; }
  .rig .till { inset-block-start: 21em; }
  :where(#loop) .moment { min-block-size: 56vh; }
  .moment__time { margin-block-end: 18px; }
  .moment__stamp { display: none; }
  .moment--quiet { padding-block-end: 88px; }
  /* ponytail: on very short screens (landscape phones) the band unsticks instead of rendering per-moment phones; upgrade path: add a static phone per moment. */
  @media (max-height: 639px) { .rig-wrap { position: relative; inset-block-start: auto; } }
}

/* 8.3 enemies / comparison tables */
.compare { inline-size: 100%; text-align: start; }
.compare caption { text-align: start; }
.compare th, .compare td { text-align: start; vertical-align: top; padding-inline-end: 24px; }
.compare thead th { padding-block: 16px; border-block-end: 1px solid var(--rule-2); font: 500 clamp(1.35rem, 1.2rem + .5vw, 1.75rem)/1.15 var(--f-display); color: var(--ink); }
html[lang="ar"] .compare thead th { font-weight: 600; line-height: 1.35; }
.compare tbody th { padding-block: 14px; font: 600 .9375rem/1.45 var(--f-ui); color: var(--ink); }
.compare tbody td { padding-block: 14px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.compare tbody tr { border-block-end: 1px solid var(--rule); }
.compare .is-us { color: var(--ink); }
.compare thead .is-us { position: relative; }
.compare thead .is-us::before { content: ""; position: absolute; inset-inline: 0 24px; inset-block-start: -1px; block-size: 2px; background: var(--ink); } /* ink, like the current-page underline: gold stays rationed */
.compare tbody td.is-us { font-weight: 500; }
.compare__verdict td { padding-block: 32px 0; }
.compare__verdict .t-pull { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem); max-inline-size: 34ch; }
.compare__verdict tr, .compare tbody tr.compare__verdict { border: 0; }
@media (min-width: 860px) {
  .compare { table-layout: fixed; }
  .compare col:first-child { inline-size: 22%; }
}
@media (max-width: 859px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare tbody th { display: block; }
  .compare thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { padding-block: 24px 8px; border-block: 0; }
  .compare tbody tr + tr { border-block-start: 1px solid var(--rule-2); }
  .compare tbody th { padding: 0 0 8px; font: 500 1.5rem/1.15 var(--f-display); }
  html[lang="ar"] .compare tbody th { font-weight: 600; line-height: 1.35; }
  .compare td { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-block-end: 1px solid var(--rule); }
  html[lang="ar"] .compare td::before { content: attr(data-th-ar); }
  .compare td::before { content: attr(data-th); flex: none; inline-size: 40%; font: 500 .875rem/1.45 var(--f-ui); color: var(--ink-2); }
  .compare td.is-us::before { color: var(--ink); font-weight: 600; }
  .compare td:last-child { border-block-end: 0; }
  .compare tbody tr.compare__verdict { padding-block-start: 32px; }
  .compare__verdict td { display: block; padding: 0; border: 0; }
  .compare__verdict td::before { display: none; }
}

/* 8.4 pull (the three beats) */
.section--pull .t-pull { grid-column: content; }
@media (min-width: 860px) { .section--pull .t-pull { grid-column: 3 / span 10; } }
/* the pull quote: one lexicon line between two --rule-2 hairlines, once per Learn page, never the same line twice;
   beats after the first (inner spans) fall to --ink-2. In a spread it sits in columns 2 to 10; in the read column it
   hangs 8ch into both margins. Markup: <blockquote class="pullquote"><p class="t-pull">…</p></blockquote> */
.pullquote { margin: 72px 0 0; padding-block: 32px; border-block: 1px solid var(--rule-2); }
@media (min-width: 860px) { .spread > .pullquote { grid-column: 3 / 12; } }

/* 8.5 facts beside object */
.rule-list { border-block-start: 1px solid var(--rule-2); }
.rule-list > li { padding-block: 20px; border-block-end: 1px solid var(--rule); }
.rule-list > li:last-child { border-block-end-color: var(--rule-2); }
.rule-list .t-h4 { font-size: clamp(1.35rem, 1.2rem + .4vw, 1.6rem); }
.rule-list .t-small { margin-block-start: 6px; max-inline-size: 48ch; }
.rule-list .t-caption { margin-block-start: 6px; } /* a row's plan tag, plain text */
/* sanctioned past five rows only as two columns: a long list (final copy runs to 7 or 8 rules) reads as two short ones */
@media (min-width: 860px) {
  .rule-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-content: start; }
  /* three short facts a row (Privacy); the last row closes on the heavier rule */
  .rule-list--3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; align-content: start; }
  .rule-list--3col > li:nth-last-child(-n+3) { border-block-end-color: var(--rule-2); }
}
.facts__object { display: grid; justify-items: center; align-content: start; }
.facts__aside { margin-block-start: 28px; max-inline-size: 48ch; }
.facts__aside + .facts__aside { margin-block-start: 12px; }
.facts__list > .inset { margin-block-start: 32px; }
@media (min-width: 860px) {
  .section--facts { grid-template-rows: auto 1fr; }
  .section--facts .section__head, .section--facts .facts__list { grid-column: 2 / span 6; }
  .section--facts .facts__object { grid-column: 9 / span 5; grid-row: 1 / span 2; align-self: start; padding-block-start: 16px; position: sticky; inset-block-start: calc(var(--mast) + 40px); }
  .section--facts.is-mirrored .section__head, .section--facts.is-mirrored .facts__list { grid-column: 8 / span 6; }
  .section--facts.is-mirrored .facts__object { grid-column: 2 / span 5; }
}
@media (max-width: 859px) { .facts__object { margin-block: 8px 48px; } }
.facts__object .till { font-size: clamp(11px, calc((100vw - 2 * var(--m)) / 26.6), 20px); }
.facts__object .phone { font-size: clamp(12px, 3.6vw, 15px); }
.facts__caption { margin-block-start: 20px; text-align: center; }
@media (min-width: 860px) {
  .facts__object .till { font-size: min(20px, calc((var(--col) * 5 + var(--g) * 4) / 26.6)); }
  .facts__object .phone { font-size: min(15px, calc((100vh - var(--mast) - 140px) / 40), calc((var(--col) * 5 + var(--g) * 4) / 21)); }
}

/* shop page (the /m menu page, inside a phone) */
.shop-page { background: #FBF9F6; color: #14171D; padding: 3.2em .9em 1em; font-family: var(--f-os); direction: inherit; }
.shop-page__cover { block-size: 6em; margin-inline: -.9em; background: url("../img/pour-sm.jpg") 60% 45% / cover; filter: saturate(.85); }
.shop-page__id { display: flex; align-items: center; gap: .6em; margin-block: -1.2em .9em; padding-inline: .2em; position: relative; }
.shop-page__id .roundel { inline-size: 2.6em; block-size: 2.6em; box-shadow: 0 0 0 .2em #FBF9F6; }
.shop-page__id p { padding-block-start: 1.1em; }
.shop-page__id b { display: block; font: 700 1.05em/1.2 var(--f-os); }
.shop-page__id span:not(.roundel) { font: 500 .72em/1.2 var(--f-os); color: #5C554B; }
.shop-page__offer { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .7em .8em; border-radius: 8px; background: #F2ECE2; font: 600 .78em/1.3 var(--f-os); }
.shop-page__claim { flex: none; padding: .45em .7em; border-radius: 2px; background: var(--gold); color: var(--on-gold); font-size: .9em; }
.shop-page__items { margin-block-start: .6em; }
.shop-page__items li { display: flex; justify-content: space-between; gap: .6em; padding-block: .75em; border-block-end: 1px solid rgba(20, 23, 29, .1); font: 500 .8em/1.2 var(--f-os); }
.shop-page__items b { font-weight: 600; font-variant-numeric: tabular-nums; }
.beyond__caption { margin-block-start: 24px; }

/* 8.6 the mechanics index + specimen (radios + :has; JS only adds hover preview) */
.index { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.index legend { padding: 0; }
.index__list { border-block: 1px solid var(--rule-2); }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 8px var(--g);
  align-items: baseline;
  padding-block: 22px;
  border-block-end: 1px solid var(--rule);
  cursor: pointer;
}
.index__row:last-child { border-block-end: 0; }
.index__row input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; margin: 0; }
.index__row:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.index__name { position: relative; justify-self: start; color: var(--ink-2); font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.6rem); transition: color var(--dur-2) ease; }
.index__name::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px; block-size: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
html[dir="rtl"] .index__name::after { transform-origin: right; }
.index__row:has(input:checked) .index__name { color: var(--ink); }
.index__row:has(input:checked) .index__name::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .index__row:hover .index__name { color: var(--ink); } }
.index__ex { color: var(--ink-2); }
.specimen { margin: 0; padding: 32px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); display: grid; justify-items: center; gap: 20px; }
.specimen .pass { font-size: 17.5px; inline-size: 19.4em; max-inline-size: 100%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--obj-shadow); }
.specimen figcaption { text-align: center; }
.face { display: none; }
.mech:not([data-preview]):has(input[value="stamps"]:checked) .face--stamps,
.mech:not([data-preview]):has(input[value="points"]:checked) .face--points,
.mech:not([data-preview]):has(input[value="cashback"]:checked) .face--cashback,
.mech:not([data-preview]):has(input[value="welcome"]:checked) .face--welcome,
.mech[data-preview="stamps"] .face--stamps, .mech[data-preview="points"] .face--points,
.mech[data-preview="cashback"] .face--cashback, .mech[data-preview="welcome"] .face--welcome { display: block; animation: face-in var(--dur-3) var(--ease-out); }
/* no :has() support: show the stamps face */
@supports not selector(:has(*)) { .face--stamps { display: block; } }
@keyframes face-in { from { opacity: 0; transform: translateY(6px); } }
.mech:has(input[value="olive"]:checked) .specimen .pass { --pc: #2F3B2A; }
.mech:has(input[value="ink"]:checked) .specimen .pass { --pc: #1E2536; }
.mech:has(input[value="brick"]:checked) .specimen .pass { --pc: #6B2A2A; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; border: 0; margin: 0; padding: 0; }
.swatches legend { float: inline-start; margin-inline-end: 8px; padding: 0; line-height: 44px; }
.swatches label { position: relative; display: grid; place-items: center; inline-size: 44px; block-size: 44px; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; margin: 0; }
.swatches i { inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow var(--dur-1) ease; }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.swatches input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 6px; }
.mech__note { margin-block-start: 16px; }
.mech__boost { margin-block-start: 72px; }
.mech__boost .t-h3 { margin-block-end: 24px; }
.mech__boost .rule-list > li, .rule-list--paired > li { display: grid; gap: 4px 24px; } /* paired: title beside body from 860 */
.mech__more { margin-block-start: 32px; }
@media (min-width: 860px) {
  .mech .section__head, .mech__main { grid-column: 2 / span 7; }
  .mech__main { grid-row: 2; }
  .mech__side { grid-column: 10 / span 4; grid-row: 2; position: sticky; inset-block-start: calc(var(--mast) + 32px); }
  .mech__boost .rule-list > li, .rule-list--paired > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: baseline; }
  .mech__boost .rule-list .t-small, .rule-list--paired .t-small { margin: 0; }
  /* the specimen column is four tracks: the pass scales to it (it may hang 12px into the mat's padding) */
  .specimen .pass { font-size: min(17.5px, calc((var(--col) * 4 + var(--g) * 3 - 40px) / 19.4)); }
}
@media (max-width: 859px) {
  .index__row { grid-template-columns: 1fr; padding-block: 18px; }
  .mech__side { margin-block: 0 32px; }
  .specimen { padding: 24px 16px; }
  .specimen .pass { font-size: min(16px, calc((100vw - 2 * var(--m) - 34px) / 19.4)); }
}
/* Features chapter one: .mech__side stretches to the row there, so its own sticky never moves; pin the specimen inside it.
   ponytail: the height guard keeps the swatches on screen; short or narrow viewports keep the static flow. */
@media (min-width: 1080px) and (min-height: 700px) { :where(#card) .mech__side .specimen { position: sticky; inset-block-start: 96px; } }

/* 8.7 beyond loyalty: three uneven rows */
.beyond__rows { border-block-start: 1px solid var(--rule-2); }
.beyond__row { display: grid; gap: 20px; padding-block: 48px; border-block-end: 1px solid var(--rule); align-items: center; }
.beyond__row:last-child { border-block-end: 0; }
.beyond__row .t-small { max-inline-size: 40ch; }
.beyond__row > p { color: var(--ink-2); max-inline-size: 42ch; } /* direct child only: a <p> inside a product object keeps its own ink */
.beyond__object { display: grid; justify-items: center; }
.beyond__object .pass { font-size: 15px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--obj-shadow); }
.beyond__object .phone { font-size: 12px; block-size: 26em; border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.beyond__object .phone .phone__screen { border-end-start-radius: 0; border-end-end-radius: 0; }
.beyond__object--crop { overflow: hidden; margin-block-end: -48px; padding-block-start: 8px; }
.beyond__object .print-card { font-size: 14px; }
@media (min-width: 860px) {
  .beyond__rows { grid-column: content; }
  .beyond__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .beyond__row > h3 { grid-column: 1 / span 4; }
  .beyond__row > p { grid-column: 5 / span 4; }
  .beyond__row > .beyond__object { grid-column: 9 / span 4; justify-self: end; }
}

/* home: the lead row (the menu page with a claimed code laid over it) and the short row */
.beyond__copy > p { color: var(--ink-2); max-inline-size: 42ch; }
.beyond__copy > h3 + p { margin-block-start: 16px; }
.beyond__copy > p + p { margin-block-start: 12px; }
.beyond__row--lead { padding-block: 56px 64px; }
.beyond__row--short { padding-block: 40px; }
.beyond__stage { position: relative; justify-items: end; font-size: min(15px, calc((100vw - 2 * var(--m)) / 24)); }
.beyond__stage .phone { font-size: 1em; block-size: 40em; border-radius: 3.3em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--obj-shadow); }
.beyond__stage .phone .phone__screen { border-radius: 2.7em; }
.beyond__stage .pass { position: absolute; z-index: 3; font-size: .8em; inset-inline-start: 0; inset-block-end: 4.4em; }
@media (min-width: 860px) {
  .beyond__row--lead > .beyond__copy, .beyond__row--short > .beyond__copy { grid-column: 1 / span 5; }
  .beyond__row--lead > .beyond__stage { grid-column: 7 / -1; justify-self: stretch; justify-items: center; font-size: min(15px, calc((var(--col) * 6 + var(--g) * 5) / 27)); }
  /* the claimed code, on its card, laid over the menu's lower start corner: its end edge meets the phone's centre line */
  .beyond__stage .pass { font-size: .93em; inset-inline-start: calc(50% - 19em); inset-block-end: 3.6em; }
  .beyond__row--short > .beyond__object { grid-column: 7 / span 3; justify-self: start; }
}

/* 8.8 the Free plate (pricing teaser, pricing hero) */
.plate-free { padding: clamp(28px, 3vw, 44px); border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); }
.plate-free__label { font: 600 1rem/1 var(--f-ui); }
.plate-free__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-block: 18px 28px; }
.plate-free__forever { font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.4rem)/1 var(--f-display); color: var(--gold-ink); }
.plate-free .btn { margin-block-start: 28px; inline-size: 100%; }
.plate-free .risk { margin-block-start: 12px; text-align: center; }
.pricing__custom { margin-block-start: 40px; }
.pricing__never { margin-block-start: 24px; }
@media (min-width: 860px) {
  .pricing .spread { grid-template-rows: auto 1fr; }
  .pricing .section__head, .pricing__copy { grid-column: 2 / span 6; }
  .pricing__copy { grid-row: 2; }
  .pricing .plate-free { grid-column: 9 / span 5; grid-row: 1 / span 2; }
}
@media (max-width: 859px) { .pricing .plate-free { margin-block: 8px 40px; } }

/* 8.8b pricing.html: two choices, where Free stops, what you never pay for, moving up (DESIGN-FINAL 5.14b, 5.14c, 9.4).
   Public pricing is two choices: Free forever (dominant, itemised) and Custom plan (one quiet panel). */
/* the cover: H1, then the choices; from 1080 the lead hangs in the Custom column, on the same hairline */
.hero--choices { padding-block-end: clamp(56px, 8vw, 112px); }
.hero--choices .hero__copy { padding-block-end: 24px; }
.choices__lead { margin-block-end: 36px; color: var(--ink); }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.choice--free { padding: 32px; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper); }
.choice__head { padding-block-end: 24px; border-block-end: 1px solid var(--rule); }
.choice__line { margin-block-start: 12px; max-inline-size: 30em; }
.choice__price { display: grid; justify-items: start; gap: 8px; margin-block: 28px; }
.choice__price .t-figure { font-size: clamp(4rem, 2.4rem + 4.4vw, 7.25rem); line-height: .9; }
.choice__forever { font: 400 clamp(1.6rem, 1.35rem + .8vw, 2.25rem)/1 var(--f-display); color: var(--gold-ink); }
html[lang="ar"] .choice__price .t-figure { font-size: clamp(3.4rem, 2.2rem + 3.6vw, 6rem); font-weight: 600; line-height: 1.15; }
html[lang="ar"] .choice__forever { font-weight: 500; line-height: 1.3; }
.choice--free .ledger { border-block: 1px solid var(--rule-2); }
.choice__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-block-start: 28px; }
.choice__act .btn { inline-size: 100%; }
.choice__act .risk { inline-size: 100%; margin: 0; text-align: center; } /* .hero .risk adds a top margin meant for the cover CTA row */
.choice--custom { margin-block-start: 32px; padding-block-start: 24px; border-block-start: 1px solid var(--rule); }
.choice__note { margin-block-start: 12px; max-inline-size: 28ch; color: var(--ink-2); }
.choice--custom .link-arrow { margin-block-start: 12px; }
@media (min-width: 640px) {
  .choice--free { padding: 48px; }
  .choice__act .btn { inline-size: auto; }
  .choice__act .risk { inline-size: auto; text-align: start; }
}
@media (min-width: 860px) {
  .hero--choices { min-block-size: 0; }
  .hero--choices .hero__copy { grid-column: 2 / span 8; padding-block-end: 32px; }
  .choices__lead { grid-column: 2 / span 7; grid-row: 2; margin-block-end: 48px; }
  .hero--choices .choices { grid-row: 3; }
  .choices { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .choice--free { grid-column: 1 / span 8; }
  /* the quiet panel: no box, a hairline on its inline-start edge, its heading level with Free's (border + padding) */
  .choice--custom { grid-column: 9 / span 4; align-self: stretch; margin: 0; padding: 49px 0 0; padding-inline-start: 32px; border-block-start: 0; border-inline-start: 1px solid var(--rule); }
}
@media (min-width: 1080px) {
  .hero--choices .hero__copy { padding-block-end: 64px; }
  .choices__lead { grid-column: 10 / span 4; grid-row: 1; align-self: end; margin: 0; padding-block: 0 64px; padding-inline-start: 32px; border-inline-start: 1px solid var(--rule); }
  .hero--choices .choices { grid-row: 2; }
  /* Free as a printed price card: the figure on its own side, the itemised terms on the other */
  .choice--free { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); column-gap: 48px; align-items: start; }
  .choice__head { grid-column: 1 / -1; }
  .choice__price, .choice__terms { margin: 32px 0 0; }
}

/* what free includes: five short lists */
.free__lede { margin-block-start: 16px; max-inline-size: 31ch; color: var(--ink-2); }
.free__group { break-inside: avoid; padding-block: 22px 36px; border-block-start: 1px solid var(--rule-2); }
.free__group .t-h4 { margin-block-end: 10px; }
@media (min-width: 860px) and (max-width: 1079.98px) { .free__groups { columns: 2; column-gap: calc(var(--col) + 2 * var(--g)); } }
/* three columns: the tallest group (Bringing them back) runs down column three, so both rows of hairlines line up */
@media (min-width: 1080px) {
  .free__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
  .free__group { padding-inline-end: var(--g); }
  .free__group:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
}

/* where Free stops (.limits): Free's ceiling as a ledger beside the limit gauge. Replaces the plan comparison table. */
.limits .ledger { border-block: 1px solid var(--rule-2); }
.limits .ledger dd.is-custom { font-weight: 400; color: var(--ink-2); }
/* the line where Free stops: a double rule before the first row that needs a custom plan */
.limits .ledger__row:has(+ .ledger__row--stop) { border-block-end: 0; }
.ledger__row--stop { border-block-start: 3px double var(--rule-2); }
.limits__notes { display: grid; gap: 8px; margin-block-start: 20px; }
.limits__notes .t-small { max-inline-size: 52ch; }
.limits__gauge { margin: 64px 0 0; padding-block-start: 20px; border-block-start: 1px solid var(--rule-2); }
/* a printed rule: one 2px hairline, faint tenths, four ticks rising toward the limit. No gold: nothing is earned here. */
.limits__rule { position: relative; block-size: 76px; border-block-end: 2px solid var(--rule-2); background: repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 10%) left bottom / 100% 7px no-repeat; }
.limits__tick { position: absolute; inset-block-end: 0; inset-inline-start: var(--at); display: flex; flex-direction: column; align-items: center; translate: -50% 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .limits__tick { translate: 50% 0; }
.limits__tick::after { content: ""; inline-size: 1.5px; block-size: var(--h); margin-block-start: 8px; background: currentColor; }
.limits__tick:nth-child(1) { --at: 50%; --h: 16px; }
.limits__tick:nth-child(2) { --at: 75%; --h: 26px; }
.limits__tick:nth-child(3) { --at: 90%; --h: 36px; }
.limits__tick--end { --h: 60px; inset-inline-start: auto; inset-inline-end: 0; color: var(--ink); }
.limits__tick--end, html[dir="rtl"] .limits__tick--end { translate: none; }
.limits__tick--end::after { inline-size: 2px; }
.limits__ends { display: flex; justify-content: space-between; margin-block-start: 10px; font-variant-numeric: tabular-nums; }
.limits__ends > :last-child { color: var(--ink); font-weight: 600; }
.limits__gauge .t-h4 { margin-block-start: 32px; }
.limits__gauge .t-small { margin-block-start: 10px; max-inline-size: 46ch; }
@media (min-width: 860px) {
  .limits .section__head, .limits__ledger { grid-column: 2 / span 6; }
  .limits__gauge { grid-column: 9 / span 5; grid-row: 2; margin: 0; align-self: start; position: sticky; inset-block-start: calc(var(--mast) + 48px); } /* the shorter column travels with the ledger instead of leaving paper under it */
}

/* what you never pay for: the page's one cost ledger, set large */
.never .ledger__row { flex-wrap: wrap; padding-block: 18px 20px; }
.never .ledger .ledger__row dt, .never .ledger .ledger__row dd { font: 500 clamp(1.35rem, 1.2rem + .5vw, 1.75rem)/1.2 var(--f-display); }
.never .ledger .ledger__row dt { color: var(--ink); }
.never .ledger .ledger__row dd.never__why { flex-basis: 100%; margin-block-start: 6px; text-align: start; font: 400 .9375rem/1.5 var(--f-body); color: var(--ink-2); }
html[lang="ar"] .never .ledger .ledger__row dt, html[lang="ar"] .never .ledger .ledger__row dd { font-weight: 600; line-height: 1.4; }
html[lang="ar"] .never .ledger .ledger__row dd.never__why { font-weight: 400; font-size: 1rem; line-height: 1.8; }
.never .ledger { border-block: 1px solid var(--rule-2); }
@media (min-width: 860px) { .never .section__head, .never .ledger { grid-column: 3 / span 10; } }

/* moving to a custom plan keeps everything: the same card, unchanged */
.move .pass { font-size: clamp(13px, 3.8vw, 17px); }
.move .facts__list .t-small { margin-block-start: 16px; }
.same-line { margin-block-start: 28px; padding-block-start: 20px; border-block-start: 1px solid var(--rule-2); }
.same-line .sep { padding-inline: .1em; color: var(--ink-3); }
.same-line > span > span:not(.sep) { white-space: nowrap; }
/* the home teaser: "See pricing" follows the never-charged line it expands; the Custom plan panel closes the column */
:where(#pricing) .pricing__copy > .link-arrow { margin-block-start: 16px; }
.pricing__copy .choice--custom { margin-block-start: 48px; }

/* 8.9 paragraph sections (trust, ladder) */
.section--paragraph .prose { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.6; max-inline-size: 60ch; color: var(--ink-2); }
html[lang="ar"] .section--paragraph .prose { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.9; }
.section--paragraph .link-arrow { margin-block-start: 20px; }
@media (min-width: 860px) {
  .section--paragraph .section__head { grid-column: 2 / span 5; }
  .section--paragraph .paragraph__body { grid-column: 7 / span 7; padding-block-start: 12px; }
}

/* 8.10 timetable (How it works): three columns, clocks in a hanging margin */
.timetable { display: grid; gap: 56px; }
.timetable__col .t-h3 { margin-block-end: 20px; }
.timetable .rule-list > li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; }
.timetable .rule-list .clock { font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem); line-height: 1.15; }
@media (min-width: 1080px) { .timetable { grid-column: content; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); } }

/* How it works: who does what, three lanes across one illustrative week; the cover's counter QR; the steps */
.lanes { margin: 0; }
.lanes__axis, .lanes__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--g); }
.lanes__axis { padding-block-end: 10px; }
.lanes__rows { border-block: 1px solid var(--rule-2); }
.lanes__row + .lanes__row { border-block-start: 1px solid var(--rule); }
.lanes__who { padding-block: 22px; }
.lanes__who .t-small { margin-block-start: 4px; max-inline-size: 32ch; }
.lanes__days, .lanes__track { display: grid; grid-template-columns: minmax(0, 2fr) repeat(7, minmax(0, 1.75fr)); }
.lanes__days > :nth-child(2) { grid-column: span 7; }
.lanes__days > * { padding-inline: 10px; }
.lanes__days > .lanes__day { padding-block-start: 6px; padding-inline: 0; text-align: center; color: var(--ink-3); }
.lanes__track > span { display: flex; align-items: center; justify-content: space-around; min-block-size: 80px; border-inline-start: 1px solid var(--rule); background: linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat; }
.lanes__track > span:first-child { background-color: var(--paper-2); }
.lanes__bar { inline-size: 64%; block-size: 8px; border-radius: 2px; background: var(--ink); }
.lanes__track i { inline-size: 1.5px; block-size: 22px; background: var(--ink-2); }
.lanes__track .stamp { font-size: 12px; }
.lanes__note { margin-block-start: 14px; }
.hiw-group { margin-block: 32px 12px; }
.hiw-group:first-child { margin-block-start: 0; }
.hiw-after { margin-block-start: 40px; }
.hiw-more { margin-block-start: 32px; }
/* hero: the printed join QR stands on the mat behind the phone, so the cover reads counter, then phone, then pass.
   ponytail: shown from 1200, where the mat has room beside the phone; below that the phone and pass carry the mat. */
.hiw-counter { display: none; }
@media (min-width: 1200px) {
  /* tucked 2em behind the phone's far edge (the phone ends 20 phone-em past -(col + g); 1 card-em = .74 phone-em) */
  .hiw-counter { display: block; position: absolute; z-index: 1; inset-inline-start: calc(25em - var(--col) - var(--g)); inset-block-start: calc(clamp(40px, 7vh, 88px) + 9em); font-size: calc(var(--k) * .74); }
}
/* the join and reward screens hold their content in the middle of the screen, not stopped halfway; on the cover the
   pass covers the screen's lower 9em, so the form centres in the part left in view */
.hiw-hero .join, #rewards .join { display: flex; flex-direction: column; justify-content: center; padding-block: 3em 3.6em; }
.hiw-hero .join { padding-block-end: 9em; }
@media (max-width: 859px) { .hiw-hero .join { padding-block-end: 12em; } } /* the stacked cover's pass rides higher */
.hiw-hero .join > .roundel, #rewards .join > .roundel { align-self: flex-start; }
@media (max-width: 859px) {
  .lanes__axis, .lanes__row { grid-template-columns: minmax(0, 1fr); }
  .lanes__axis > :first-child { display: none; }
  .lanes__who { padding-block: 18px 8px; }
  .lanes__track > span { min-block-size: 56px; }
  .lanes__days, .lanes__track { grid-template-columns: minmax(0, 3fr) repeat(7, minmax(0, 1.75fr)); }
  .lanes__days > * { padding-inline: 6px; }
  .lanes__days > .lanes__day { font-size: .75rem; color: var(--ink-2); }
}
/* stacked below 1080, the two step lists read as one continued list */
@media (max-width: 1079px) {
  .hiw-you .timetable { row-gap: 0; }
  .hiw-you .timetable__col + .timetable__col .rule-list { border-block-start: 0; }
  .hiw-you .timetable__col:last-child { margin-block-start: 48px; }
}

/* 8.11 chapter (Features) + read column (Learn) */
.folio { margin-block-end: 16px; }
.section--read .read { font-size: 1.0625rem; }
.read { max-inline-size: 68ch; }
.read h2 { margin-block: 64px 20px; }
.read h3 { margin-block: 40px 12px; }
.read p + p, .read ul, .read ol { margin-block-start: 1em; }
.read ul li { position: relative; padding-inline-start: 1.1em; }
.read ul li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .75em; inline-size: .4em; block-size: 1px; background: var(--ink-2); }
.read .pullquote { margin-block: 48px; }
/* the house list outside the read column: short capability lists, the same hairline dash */
.dash-list li { position: relative; padding-block: 5px; padding-inline-start: 1.3em; max-inline-size: 46ch; }
.dash-list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: calc(5px + .8em); inline-size: .6em; block-size: 1px; background: var(--ink-2); }
html[lang="ar"] .dash-list li::before { inset-block-start: calc(5px + .92em); }
@media (min-width: 860px) {
  .section--read .read { grid-column: 4 / span 7; }
  .section--read .pullquote { margin-inline: -8ch; }
}

/* Features: the pass front and back on the cover, chapter parts, the campaign stage */
.fx-deck .t-lead { text-wrap: balance; }
/* the pass, front and back */
.fx-cover { margin: 0 0 56px; display: grid; justify-items: center; gap: 20px; font-size: clamp(10px, calc((100vw - 40px) / 31), 15px); }
.fx-pair { position: relative; inline-size: 31em; block-size: 30.5em; }
.fx-pair > .pass { position: absolute; }
.fx-pair > .pass--paper { inset-block-start: 0; inset-inline-start: 0; inline-size: 17.5em; }
.fx-pair > .pass--free { inset-block-start: 14.5em; inset-inline-end: 0; inline-size: 18.5em; }
.fx-back__msg { margin-block: 1em .4em; padding: .75em .85em; border-radius: .5em; background: rgba(20, 23, 29, .05); }
.fx-back__msg b { font-weight: 500; font-size: .92em; line-height: 1.35; }
.fx-back ul { margin-block-start: .2em; }
.fx-back li { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding-block: .6em; border-block-end: 1px solid rgba(20, 23, 29, .12); font: 500 .88em/1.25 var(--f-os); }
.fx-back li:last-child { border-block-end: 0; padding-block-end: 0; }
.fx-back li .arrow { inline-size: .9em; block-size: .9em; color: #5C554B; }
@media (min-width: 1080px) {
  .fx-cover { grid-column: 9 / -2; grid-row: 1; align-self: center; justify-self: end; margin: 0; font-size: clamp(11px, 1.15vw, 17px); }
}
.fx-toc .section__head .t-small { margin-block-start: 20px; max-inline-size: 36ch; }
/* chapter parts */
.fx-sub { margin-block: -8px 24px; max-inline-size: 48ch; }
.fx-ex > span { display: block; }
.fx-ex > span + span { margin-block-start: 6px; }
.fx-part { padding-block-start: 96px; }
.fx-example { margin-block-start: 48px; }
.fx-example .t-h4 { margin-block-start: 10px; max-inline-size: 32ch; }
.fx-limits { margin-block-start: 48px; padding-block-start: 16px; border-block-start: 3px double var(--rule-2); max-inline-size: 60ch; }
.fx-limits li { margin-block-start: 10px; }
.fx-group + .fx-group { margin-block-start: 64px; }
.fx-group > .t-h3 { margin-block-end: 20px; }
@media (min-width: 860px) {
  .fx-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; }
  .beyond__row > .fx-items { grid-column: 5 / span 4; }
}
.fx-items > div + div { margin-block-start: 24px; }
.fx-items .t-h4 { margin-block-end: 6px; }
.fx-items p + p { margin-block-start: 8px; }
.beyond .beyond__row > h3 { align-self: start; }
.fx-items .t-caption { margin-block-start: 6px; }
/* segment to lock screen: the campaign as one diagram */
.fx-stage { display: grid; justify-items: center; align-items: center; gap: 20px; margin-block: 8px 56px; padding: 32px 20px 0; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.fx-stage .dash { inline-size: min(100%, 23rem); justify-self: center; }
.fx-stage .ledger__title { margin-block-end: 4px; }
.fx-stage .till__btn { margin-block-start: 16px; font-size: .9rem; }
.fx-stage .phone { font-size: 12px; block-size: 27em; border-end-start-radius: 0; border-end-end-radius: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.fx-stage .phone__screen { border-end-start-radius: 0; border-end-end-radius: 0; }
.fx-stage .lock__stack { inset-block-start: 15.6em; }
html[dir] .fx-stage > .arrow { inline-size: 28px; block-size: 28px; color: var(--ink-2); transform: rotate(90deg); }
@media (min-width: 860px) {
  .fx-stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 40px; padding: 56px 56px 0; }
  .fx-stage .dash { justify-self: end; margin-block-end: 56px; }
  .fx-stage .phone { font-size: 13px; justify-self: start; }
  html[dir="ltr"] .fx-stage > .arrow { transform: none; }
  html[dir="rtl"] .fx-stage > .arrow { transform: scaleX(-1); }
}
.fx-stage__caption { margin-block: -40px 48px; }

/* 8.12 video inset (How it works only; two-ink filter keeps violet off the page) */
.inset { position: relative; margin: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2); }
.inset video { inline-size: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: url(#twoink); background: #14171D; }
.inset__toggle { position: absolute; inset-block-end: 32px; inset-inline-end: 32px; display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 2px; background: var(--ink); color: var(--paper); cursor: pointer; }
.inset__toggle svg { inline-size: 16px; block-size: 16px; fill: currentColor; }
.inset__toggle .i-play, .inset.is-paused .inset__toggle .i-pause { display: none; }
.inset.is-paused .inset__toggle .i-play { display: block; }

/* 8.13 forms (Contact) */
.form { display: grid; gap: 20px; }
.form .btn { justify-self: start; }
.field { display: grid; gap: 8px; align-content: start; } /* align-content: a field beside one with a hint line never stretches */
fieldset.field { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.field label, .field legend { font: 500 .9375rem/1.3 var(--f-ui); color: var(--ink); }
.field legend { padding: 0; margin-block-end: 8px; }
.req { font-weight: 400; color: var(--ink-2); } /* the "(required)" marker after a label */
.field .t-caption { margin-block-start: -2px; } /* a hint line under an input */
.form__pair { display: grid; gap: 20px; align-items: start; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  inline-size: 100%;
  min-block-size: 52px;
  padding: 14px 16px;
  border: 1px solid var(--field-edge);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--f-body);
  transition: border-color var(--dur-1) ease;
}
.field textarea { resize: vertical; min-block-size: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; border-color: var(--ink); }
.field__error { display: none; align-items: center; gap: 8px; font: 500 .875rem/1.4 var(--f-ui); color: var(--ink); }
.field__error svg { inline-size: 16px; block-size: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; }
.field.is-invalid .field__error { display: flex; }
.field.is-invalid input:not([type="radio"]):not([type="checkbox"]), .field.is-invalid textarea, .field.is-long textarea { border-color: var(--ink); border-width: 2px; padding: 13px 15px; }
/* the length guard: a message over data-max shows .field__long and offers copy instead of opening the mail app */
.field__long, .field.is-invalid .field__error.field__long { display: none; }
.field.is-long .field__error.field__long { display: flex; }
/* the topic radios: bordered 52px options; the focus ring and the checked state belong to the whole option */
.topics { display: grid; gap: 8px; }
.topics label { display: flex; align-items: center; gap: 12px; min-block-size: 52px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: 2px; background: var(--paper); font: 400 .9375rem/1.35 var(--f-body); cursor: pointer; transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease; }
html[lang="ar"] .topics label { font-size: 1rem; line-height: 1.5; }
.topics input { flex: none; inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--ink); }
.topics label:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.topics label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.topics label:has(input:focus-visible) input { outline: 0; }
@media (hover: hover) and (pointer: fine) { .topics label:hover { border-color: var(--ink-2); } }
@media (min-width: 640px) { .topics, .form__pair { grid-template-columns: 1fr 1fr; } }
/* without JS the mailto form is hidden: a real mailto button and the same two hints stand in for it */
html:not(.js) .c-write .c-nojs { display: grid; gap: 20px; justify-items: start; }
.c-nojs .t-lead { color: var(--ink); }
.form__send { display: grid; gap: 12px; justify-items: start; margin-block-start: 8px; }
.form__after { display: grid; gap: 12px; justify-items: start; padding-block: 16px 4px; border-block-start: 1px solid var(--rule); }
.form__after[hidden] { display: none; }
.form__copies { display: flex; flex-wrap: wrap; gap: 8px; }
.form__privacy { padding-block-start: 16px; border-block-start: 1px solid var(--rule); }
.tbtn--ruled { border: 1px solid var(--rule-2); font-weight: 600; } /* a secondary text button that needs an edge (Copy address) */
.contact-figure { font: 500 clamp(1.75rem, 1.2rem + 1.8vw, 3rem)/1.1 var(--f-display); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-block-size: 44px; } /* the main targets: 44px tall at least */
.contact-figure:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Contact: channels and doors in the cover, the start ledger, the split, the form on its mat, the promises */
/* hero: copy and the two channels, then the three doors (desktop places them by grid-row; phones follow the DOM) */
.channels { padding-block: 8px 48px; }
.channels__now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-block-end: 16px; }
.channel { display: grid; justify-items: start; gap: 8px; padding-block: 20px 22px; border-block-start: 1px solid var(--rule-2); }
.channel .t-small { max-inline-size: 40ch; }
.channel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
/* Copy address: a text button in .link-arrow's grammar, not a box; .tbtn keeps the 44px hit area */
.c-copy { padding-inline: 0; font: 600 1rem/1.25 var(--f-ui); color: var(--ink-2); text-decoration: underline 1px var(--rule-2); text-underline-offset: .2em; transition: text-decoration-color 200ms ease, color 200ms ease; }
.c-copy [lang] { font: inherit; }
@media (hover: hover) and (pointer: fine) { .c-copy:hover { background: none; color: var(--ink); text-decoration-color: currentColor; } }
.doors { border-block-start: 1px solid var(--rule-2); }
.doors a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding-block: 20px; border-block-end: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.doors li:last-child a { border-block-end: 0; }
.doors .t-small { grid-column: 1; }
.doors .t-h4 { text-decoration: underline 1px transparent; text-underline-offset: .15em; transition: text-decoration-color 200ms ease; }
.doors a:hover .t-h4 { text-decoration-color: var(--rule-2); }
.doors .arrow { grid-column: 2; grid-row: 1; inline-size: 20px; block-size: 20px; }
/* the contact cover hugs its content instead of filling the viewport, so the doors rule sits just under the channels */
.c-hero { min-block-size: 0; }
@media (min-width: 860px) {
  .c-hero { grid-template-rows: 1fr auto; }
  .c-hero .channels { grid-column: 10 / span 4; grid-row: 1; align-self: center; padding-block: clamp(40px, 7vh, 88px) 64px; }
  .doors { grid-column: 2 / span 12; grid-row: 2; }
  .doors ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
  .doors a { padding-block: 22px 30px; border-block-end: 0; }
  .doors li + li { padding-inline-start: var(--g); border-inline-start: 1px solid var(--rule); }
}
/* phones: the channels (clock, email, phone) come straight after the lead, then the three doors (DOM order) */
@media (max-width: 859px) {
  .c-hero .channels { padding-block-start: 0; }
  .doors li:last-child a { border-block-end: 1px solid var(--rule-2); }
}
/* 860 to 1079: the channels stand beside the H1 instead of dropping below it and leaving the cover's end half empty */
@media (min-width: 860px) and (max-width: 1079px) {
  .c-hero .hero__copy { grid-column: 2 / span 6; }
  .c-hero .channels { grid-column: 8 / span 6; }
}

/* running a shop: the start ledger + the custom-plan note on one side, the mailto form on its mat on the other */
.c-new .ledger { inline-size: min(100%, 26rem); }
.c-new .cta-row { margin-block-start: 28px; }
.c-new .risk { margin-block-start: 14px; }
.c-more { margin-block-start: 48px; padding-block-start: 28px; border-block-start: 1px solid var(--rule-2); }
.c-more p { margin-block-start: 14px; max-inline-size: 48ch; color: var(--ink-2); }
.c-more .cta-row { margin-block-start: 12px; }

.c-zyada .facts__list .t-small { max-inline-size: 46ch; }
.c-zyada .link-arrow { margin-block-start: 16px; }

/* card holders: who answers what, drawn as two brackets on one pass */
.split { --gap: clamp(64px, 7vw, 112px); display: grid; gap: 48px; }
.split__card { display: grid; justify-items: center; gap: 20px; margin: 0; }
.split__frame { position: relative; font-size: min(16px, calc((100vw - 2 * var(--m)) / 19.4)); }
.split .pass__shop { position: relative; }
.bracket { display: none; }
.split__col .t-h3 { margin-block-end: 20px; }
.split__tip { margin-block-start: 24px; max-inline-size: 44ch; }
.split__col .link-arrow { margin-block-start: 16px; }
@media (min-width: 1080px) {
  .split { grid-column: 2 / span 12; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: var(--gap); align-items: center; }
  .bracket { display: block; position: absolute; inline-size: .8em; border: 1px solid var(--ink-2); pointer-events: none; }
  .bracket::after { content: ""; position: absolute; inset-block-start: 50%; inline-size: calc(var(--gap) - 1.4em + 1px); block-size: 1px; background: var(--ink-2); }
  .bracket--shop { inset-block: 0; inset-inline-start: -2.45em; border-inline-end: 0; }
  .bracket--shop::after { inset-inline-end: 100%; }
  .bracket--us { inset-block: 0; inset-inline-end: -1.4em; border-inline-start: 0; }
  .bracket--us::after { inset-inline-start: 100%; }
}

/* the form on its mat; what to include is two hints under the message, not a second column */
.c-write { margin-block-start: 64px; padding: clamp(24px, 3.2vw, 44px); background: var(--paper-2); border-radius: 2px; }
.c-write .t-h3 { margin-block-end: 28px; }
.c-write .nojs-only { margin-block-end: 8px; }
.c-write .form__copies { gap: 0 28px; }
.c-hints { display: grid; gap: 4px; }
.c-hints li { position: relative; padding-inline-start: 14px; }
.c-hints li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .75em; inline-size: 6px; block-size: 1px; background: var(--ink-3); }
.c-safety { display: flex; gap: 10px; margin-block-start: 24px; padding-block-start: 16px; border-block-start: 1px solid var(--rule-2); color: var(--ink); }
.c-safety svg { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: .2em; fill: none; stroke: currentColor; stroke-width: 1.75; }
@media (min-width: 1080px) {
  .c-new__main { grid-column: 2 / span 5; position: sticky; inset-block-start: calc(var(--mast) + 32px); }
  .c-write { grid-column: 8 / span 6; grid-row: 1; margin-block-start: 0; }
}
@media (min-width: 860px) and (max-width: 1079.98px) {
  .c-new__main, .c-write { grid-column: 2 / span 10; }
}

/* promises */
.c-promise li p { color: var(--ink-2); max-inline-size: 52ch; }
.c-promise .c-quiet { margin-block-start: 28px; max-inline-size: 52ch; }

/* 8.14 plates: a photo that bleeds off one trim edge (per-plate object-position inline on the img) */
.plate { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
:where(.spread) > .plate { grid-column: full; } /* only a spread has the named lines; elsewhere an unknown line name would drop the plate into an implicit track */
.plate > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; filter: var(--plate-filter); }
/* a side plate: on phones it sits between the head and the list; from 860 it spans both rows of a facts section, 4:5, sticky */
.plate--side { margin-block: 8px 40px; }
@media (min-width: 860px) {
  .plate--bleed-end { grid-column: 9 / full-end; border-start-start-radius: 2px; border-end-start-radius: 2px; }
  .plate--bleed-start { grid-column: full-start / 7; border-start-end-radius: 2px; border-end-end-radius: 2px; }
  .plate--side { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 5; position: sticky; inset-block-start: calc(var(--mast) + 40px); }
}

/* 8.15 catalog: lays specimens side by side on _components.html only (never on a page) */
.kit { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 40px; }
.kit > * { flex: 1 0 auto; min-inline-size: 0; max-inline-size: min(100%, 32rem); }
.kit > * > .t-caption:first-child { margin-block-end: 14px; }
.kit--objects { font-size: 12px; }
.kit + .kit { margin-block-start: 48px; }
.kit .rig { --k: 9px; -webkit-mask-image: none; mask-image: none; }

/* 8.16 Learn: wallet-loyalty-card (hero mat beside the copy from 860, the rail, the two sides, the lock-screen plate) */
/* hero object: the phone wallet on a mat that bleeds off the trim */
.wl-mat { --k: min(13px, calc((100vw - 40px) / 21)); font-size: var(--k); padding-block: 32px 24px; }
/* this page shows the mat beside the copy from 860 (site.css .hero__mat waits for 1080) */
@media (min-width: 860px) and (max-width: 1079px) {
  .wl-mat { grid-column: 10 / -1; grid-row: 1; align-self: stretch; align-content: center; justify-items: start; padding-block: 48px; --k: 13px; }
  .wl-mat > * { margin-inline-start: calc(-1 * (var(--col) + var(--g)) + .5em); }
  .wl-mat > figcaption { text-align: start; }
}
@media (min-width: 1080px) { .wl-mat { padding-block: 48px; --k: clamp(12px, calc((min(100svh, 980px) - var(--mast) - 190px) / 40), 16px); } }

/* how it works: one rail, three moments; the node is the card's own state */
.wl-rail { display: grid; gap: 48px; margin-block-start: 8px; }
.wl-rail > li { position: relative; padding-block-start: 48px; border-block-start: 1px solid var(--rule-2); }
.wl-node { position: absolute; inset-block-start: -21px; inset-inline-start: 0; font-size: 16px; }
.wl-node.stamp--empty { background: var(--paper); }
.wl-node.stamp--reward { background: linear-gradient(rgba(240, 169, 59, .1), rgba(240, 169, 59, .1)), var(--paper); }
.wl-rail .t-h3 { margin-block-end: 14px; }
.wl-rail li > p:not(.wl-proof) { color: var(--ink-2); max-inline-size: 42ch; }
.wl-proof { margin-block-start: 16px; padding-block-start: 12px; border-block-start: 1px solid var(--rule); font: 600 .9375rem/1.45 var(--f-ui); max-inline-size: 40ch; }
.wl-proof + .wl-proof { margin-block-start: 0; padding-block-start: 6px; border: 0; }
@media (min-width: 1080px) {
  .wl-rail { grid-column: content; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); border-block-start: 1px solid var(--rule-2); }
  .wl-rail > li { border: 0; }
}

/* what's on the card: two specimens, front and back */
.wl-sides { display: grid; gap: 64px; }
.wl-side .t-h3 { margin-block-end: 20px; }
.wl-specimen { display: grid; place-items: center; margin-block-end: 8px; padding: 40px 16px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); font-size: min(15px, calc((100vw - 2 * var(--m) - 34px) / 19.2)); }
.wl-specimen .pass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), var(--obj-shadow); }
.wl-note { margin-block-start: 32px; }
@media (min-width: 860px) {
  .wl-sides { grid-column: content; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); }
  .wl-specimen { min-block-size: 34em; align-content: center; }
}

/* the comparison article and its table */
.read > h2:first-child { margin-block-start: 0; }
.wl-def { color: var(--ink); }
.read p.wl-next { margin-block-start: 8px; }
.wl-glance { margin-block-start: 96px; }
.wl-glance .t-h3 { margin-block-end: 8px; }
.wl-glance__sub { margin-block-end: 24px; }

/* the lock screen: the phone stands on a photo plate that bleeds off the trim */
.wl-lockfig { grid-column: full; margin: 8px 0 48px; }
.wl-lockplate { position: relative; display: grid; justify-items: center; padding-block: 40px; }
.wl-lockplate > img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; filter: var(--plate-filter); }
.wl-lockplate .phone { font-size: clamp(11px, 3.3vw, 14px); }
.wl-lockfig figcaption { margin-block-start: 12px; padding-inline: var(--m); }
.wl-mock { display: flex; align-items: center; gap: 10px; margin-block-start: 12px; font: 400 1.25rem/1.3 var(--f-display); color: var(--ink); }
html[lang="ar"] .wl-mock { font-weight: 500; line-height: 1.5; }
.wl-mock .roundel { flex: none; inline-size: 22px; block-size: 22px; }
.wl-rules { margin-block-start: 48px; }
.wl-rules .t-h3 { margin-block-end: 12px; }
.wl-rules .t-caption { margin-block-start: 16px; }
@media (min-width: 860px) {
  .wl-lock { grid-template-rows: auto 1fr; }
  .wl-lock .section__head, .wl-lock__list { grid-column: 2 / span 6; }
  .wl-lockfig { grid-column: 9 / full-end; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; margin: 0; }
  .wl-lockplate { flex: 1; display: block; justify-items: start; padding-block: 56px; }
  .wl-lockplate > img { border-start-start-radius: 2px; border-end-start-radius: 2px; }
  .wl-lockrig { position: sticky; inset-block-start: calc(var(--mast) + 40px); }
  .wl-lockplate .phone { inset-inline-start: calc(-1 * (var(--col) + var(--g))); font-size: min(14px, calc((100vh - var(--mast) - 120px) / 40)); }
  .wl-lockfig figcaption { padding-inline: 0; }
}
html[dir="rtl"] .wl-lockplate > img { transform: scaleX(-1); }

/* the photo question */
.wl-big { margin-block-end: 32px; }
.wl-small { margin-block-start: 24px; }

/* phones: the spec rows are a paired .rule-list; the foot sets the prose beside the try line */
.wl-phones__foot { display: grid; gap: 32px; margin-block-start: 40px; }
.wl-phones__foot .prose p { color: var(--ink-2); }
.wl-try .t-h4 { margin-block-end: 20px; max-inline-size: 22ch; }
@media (min-width: 860px) {
  .wl-phones__foot { grid-column: content; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: calc(var(--col) + 2 * var(--g)); }
}
/* privacy: the six facts are a .rule-list--3col; then the one promise */
.wl-close { margin-block-start: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
@media (min-width: 860px) { .wl-close { grid-column: content; } }

/* 8.17 Learn: digital-stamp-card (paper card beside its pass, costs, reminders, rules, switching) */
.ds-hero .hero__deck { gap: 16px; }
.ds-proof { color: var(--ink); }

/* hero object: the paper card drawn flat in ink, the same card as a wallet pass laid over it */
.ds-mat { font-size: min(13px, calc((100vw - 40px) / 29.5)); }
.ds-pair { display: grid; inline-size: 28em; }
.ds-paper { position: relative; z-index: 1; justify-self: start; }
.ds-paper .paper-card__name { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.ds-paper .paper-card__name small { font: 500 .5em/1.2 var(--f-body); color: var(--ink-2); }
.ds-paper__rule { margin-block: -.5em .2em; font: 500 .8em/1.3 var(--f-body); color: var(--ink-2); }
.ds-pass { position: relative; z-index: 2; justify-self: end; margin-block-start: -1.7em; }
/* a rubber-stamp impression: ink double ring, never foil (gold is earned on the pass) */
.stamp.ds-ink { background: none; box-shadow: inset 0 0 0 .15em var(--paper), inset 0 0 0 .23em currentColor; border: 1.5px solid currentColor; color: var(--ink); }
.stamp.ds-ink::after { display: none; }
.ds-ink:nth-child(2) { opacity: .78; } .ds-ink:nth-child(3) { opacity: .9; } .ds-ink:nth-child(4) { opacity: .7; }
.ds-ink:nth-child(5) { opacity: .62; filter: blur(.5px); translate: .08em .05em; } .ds-ink:nth-child(6) { opacity: .86; } .ds-ink:nth-child(7) { opacity: .74; }
.ds-paper .ds-last svg { opacity: .8; }
@media (min-width: 1080px) {
  .ds-mat { font-size: clamp(12px, calc((min(100svh, 980px) - var(--mast) - 230px) / 37), 15px); }
  .ds-mat > * { margin-inline-start: calc(-1 * (var(--col) + var(--g)) + 1.2em); } /* the card pair hangs a little less than a phone */
}

/* what paper costs: list beside a bleeding plate */
.ds-costs li p { color: var(--ink-2); max-inline-size: 54ch; }
.ds-costs .t-strong { display: block; margin-block-end: 6px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem); line-height: 1.15; }
html[lang="ar"] .ds-costs .t-strong { font-weight: 600; line-height: 1.4; }
@media (min-width: 860px) {
  .ds-paper-sec { grid-template-rows: auto 1fr auto; }
  .ds-paper-sec .section__head, .ds-paper-sec .ds-costs { grid-column: 2 / span 6; }
}

/* reminders: five moments, each beside the note it sends */
.ds-notes { border-block-start: 1px solid var(--rule-2); }
.ds-notes > li { display: grid; gap: 12px var(--g); padding-block: 32px; border-block-end: 1px solid var(--rule); }
.ds-notes > li:last-child { border-block-end-color: var(--rule-2); }
.ds-notes > li > p { color: var(--ink-2); max-inline-size: 46ch; }
.ds-screen { position: relative; isolation: isolate; overflow: hidden; margin-block-start: 8px; padding: 1.15em .9em; border-radius: 1.2em; background: var(--scr); font-size: 15px; }
.ds-screen::before { content: ""; position: absolute; inset: -12%; z-index: -1; background: url("../img/pour-sm.jpg") var(--wp, 62% 40%) / cover; filter: brightness(.42) saturate(.8) blur(6px); }
.ds-notes__foot { display: grid; gap: 16px; margin-block-start: 32px; }
.ds-notes__foot p { max-inline-size: 62ch; }
@media (min-width: 860px) {
  .ds-notes, .ds-notes__foot { grid-column: content; }
  .ds-notes > li { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .ds-notes h3 { grid-column: 1 / span 4; }
  .ds-notes > li > p { grid-column: 5 / span 4; }
  .ds-screen { grid-column: 9 / span 4; margin: 0; }
  .ds-notes__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .ds-notes__foot > * { grid-column: 5 / span 8; }
}

/* rules and rewards */
.ds-kinds { display: grid; gap: 64px; }
.ds-kind .specimen { min-block-size: 25em; align-content: center; font-size: 1rem; }
.ds-kind .t-h3 { margin-block: 32px 12px; }
.ds-kind p { color: var(--ink-2); max-inline-size: 46ch; }
.ds-kinds__foot { margin-block-start: 32px; display: grid; gap: 8px; }
.ds-tune { display: grid; gap: 64px; margin-block-start: 96px; }
.ds-tune .t-h3 { margin-block-end: 8px; }
.ds-tune .t-caption { margin-block-end: 24px; }
.ds-tune .link-arrow { margin-block-start: 24px; }
@media (min-width: 860px) {
  .ds-kinds { grid-column: content; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); }
  .ds-kinds__foot { grid-column: content; }
  .ds-tune { grid-column: content; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .ds-dials { grid-column: 1 / span 7; }
  .ds-setups { grid-column: 9 / span 4; }
}

/* switching: stages labelled by time, then the line for the cashier */
.ds-stages { display: grid; gap: 8px; border-block-start: 1px solid var(--rule-2); }
.ds-stages > li { padding-block: 24px; border-block-end: 1px solid var(--rule); }
.ds-when { margin-block-end: 12px; font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.4rem)/1.1 var(--f-display); color: var(--gold-ink); }
html[lang="ar"] .ds-when { font-weight: 500; line-height: 1.4; }
.ds-stages p:not(.ds-when) { color: var(--ink-2); max-inline-size: 44ch; }
.ds-line { display: grid; gap: 48px; margin-block-start: 96px; padding-block: 48px; border-block: 1px solid var(--rule-2); align-items: center; }
.ds-line blockquote { margin: 0; }
.ds-line .t-h4 { margin-block-end: 24px; }
.ds-line .t-pull { max-inline-size: 26ch; }
.ds-line .t-caption { margin-block-start: 24px; }
.ds-line__card { display: grid; justify-items: center; }
.ds-line__card .print-card { font-size: 14px; }
.ds-honest { margin-block-start: 32px; max-inline-size: 60ch; }
@media (min-width: 1080px) {
  .ds-stages { grid-column: content; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
  .ds-stages > li { border: 0; padding-block: 24px 0; }
}
@media (min-width: 860px) {
  .ds-line, .ds-honest { grid-column: content; }
  .ds-line { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
  .ds-line__quote { grid-column: 1 / span 8; }
  .ds-line__card { grid-column: 10 / span 3; }
}

/* the plates' frames (their crops stay on the page) */
.ds-plate { aspect-ratio: 4 / 3; }
.ds-cover .cover__plate { overflow: hidden; }
/* before/after: the paper card reads at a glance. Stamped spots are ink impressions with the cup knocked out, empty ones dashed. */
.ds-paper { font-size: 1.28em; border-color: var(--rule-2); }
.ds-paper .stamp.ds-ink { background: var(--ink); border: 0; box-shadow: none; color: var(--paper); opacity: .85; filter: none; }
.ds-paper .stamp.ds-ink svg { opacity: 1; }
.ds-paper .stamp--empty { border-color: var(--rule-2); }
/* the printed reward spot: a solid ring and an inked word, where the pass has its gold reward stamp */
.ds-paper .ds-last { border-style: solid; border-width: 2px; border-color: var(--ink-2); }
.ds-paper .ds-last span { font: 600 .74em/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
html[lang="ar"] .ds-paper .ds-last span { font-size: .78em; text-transform: none; letter-spacing: 0; }
/* the closing line of "what paper costs" keeps to the text column, clear of the sticky plate beside it */
@media (min-width: 860px) { .ds-paper-sec > .pullquote { grid-column: 2 / span 6; } }
/* the phone fit for the tablet till: the whole 26em tablet sits inside the gutters (338-342px at 360-390), its small labels nudged down so they keep their line */
@media (max-width: 639px) {
  #stamps .facts__object { justify-items: start; }
  #stamps .facts__object .till { font-size: clamp(12px, calc((100vw - 2 * var(--m)) / 26.6), 20px); }
  #stamps .till__top, #stamps .till__label, #stamps .till__progress { font-size: .9em; }
}

/* 8.18 Learn: loyalty-program-for-shops (cover with a jump ledger, the trade index, rules of thumb, hours) */
/* cover: crumbs, a two-line H1, then the intro beside a ledger of trades that doubles as the jump list */
.sh-hero { min-block-size: 0; }
.sh-hero__deck { display: grid; gap: 48px var(--g); margin-block-start: 36px; padding-block: 28px 72px; border-block-start: 1px solid var(--rule-2); }
.sh-sub { font: 400 clamp(1.65rem, 1.3rem + 1vw, 2.3rem)/1.18 var(--f-display); letter-spacing: -.01em; max-inline-size: 22ch; }
html[lang="ar"] .sh-sub { font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.sh-intro .t-lead { margin-block-start: 20px; }
.sh-intro .cta-row { margin-block-start: 32px; }
.sh-intro .risk { margin-block-start: 16px; }
.jump__title { margin-block-end: 10px; }
.jump ol { border-block: 1px solid var(--rule-2); }
.jump li + li { border-block-start: 1px solid var(--rule); }
.jump a { display: flex; align-items: baseline; gap: 0 12px; min-block-size: 44px; padding-block: 8px; color: var(--ink); text-decoration: none; }
.jump__t { flex: 1; display: flex; align-items: baseline; min-inline-size: 0; font: 500 clamp(1.25rem, 1.1rem + .35vw, 1.45rem)/1.25 var(--f-display); }
html[lang="ar"] .jump__t { font-weight: 600; line-height: 1.5; }
.jump__t::after { content: ""; flex: 1; min-inline-size: 16px; margin-inline-start: 10px; border-block-end: 1px dotted var(--rule-2); transform: translateY(-.3em); }
.jump__m { flex: none; font: 500 .875rem/1.3 var(--f-ui); color: var(--ink-2); }
html[lang="ar"] .jump__m { font-size: .9375rem; }
.jump a:hover .jump__t > [lang] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: var(--rule-2); }

/* the trade index: rail, rule, object; nine blocks with the same five parts */
.trades { border-block-start: 1px solid var(--rule-2); }
.trades-note { margin-block-start: 20px; }
.trade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--g); padding-block: 56px; border-block-end: 1px solid var(--rule); scroll-margin-block-start: calc(var(--mast) + 8px); }
.trade__h { font: 500 clamp(1.9rem, 1.5rem + 1vw, 2.6rem)/1.05 var(--f-display); letter-spacing: -.012em; }
html[lang="ar"] .trade__h { font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.trade__mech { display: block; margin-block-start: 10px; font: 600 .9375rem/1.3 var(--f-ui); letter-spacing: 0; color: var(--ink-2); }
html[lang="ar"] .trade__mech { font-size: 1rem; }
.trade__label { color: var(--ink-2); }
.trade__rule { margin-block-start: 6px; font: 400 clamp(1.75rem, 1.35rem + 1.1vw, 2.5rem)/1.15 var(--f-display); letter-spacing: -.012em; max-inline-size: 20ch; }
html[lang="ar"] .trade__rule { font-weight: 500; line-height: 1.45; letter-spacing: 0; max-inline-size: 28ch; }
.trade__dl { margin-block-start: 28px; border-block-start: 1px solid var(--rule); }
.trade__dl > div { display: grid; gap: 4px var(--g); padding-block: 14px; border-block-end: 1px solid var(--rule); }
.trade__dl > div:last-child { border-block-end: 0; }
.trade__dl dt { font: 600 .875rem/1.5 var(--f-ui); color: var(--ink); }
html[lang="ar"] .trade__dl dt { font-size: .9375rem; }
.trade__dl dd { margin: 0; color: var(--ink-2); max-inline-size: 52ch; }
.trade__obj { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; gap: 22px; }
.trade__obj .pass { font-size: 14.5px; inline-size: 19em; max-inline-size: 100%; }
.setup { inline-size: 19em; max-inline-size: 100%; font-size: 14.5px; }
.setup .t-caption { font-size: .8125rem; }
.setup__line { margin-block-start: 6px; padding-block-start: 10px; border-block-start: 3px double var(--rule-2); font: 600 .9375rem/1.35 var(--f-ui); }
/* each setting is one unit: lines break only between settings (after a hairline), never inside "1 per EGP" */
.setup__line > [lang] > span { display: inline-block; }
.setup__line { overflow: hidden; }
.setup__line > [lang] { display: flex; flex-wrap: wrap; margin-inline-start: -.86em; }
.setup__line > [lang] > span::before { content: ""; display: inline-block; inline-size: 1px; block-size: .95em; margin-inline: .55em .3em; vertical-align: -.12em; background: var(--rule-2); }
html[lang="ar"] .setup__line { font-size: 1rem; line-height: 1.5; }
/* two trades carry a plate; the pass is set down over its inner corner, across the gutter */
.trade__obj--plate .plate { grid-column: 1; justify-self: stretch; margin-inline: calc(-1 * var(--m)); aspect-ratio: 4 / 3; }
.trade__obj--plate .pass { position: relative; z-index: 2; margin-block-start: -6.5em; }
.coda { display: grid; gap: 28px var(--g); padding-block: 48px 0; }
.coda__row { display: grid; gap: 6px var(--g); }
.coda__row .t-h4 { font-size: clamp(1.35rem, 1.2rem + .4vw, 1.6rem); }
.coda__row p:last-child { color: var(--ink-2); max-inline-size: 60ch; }
@media (min-width: 860px) {
  .sh-hero__head, .sh-hero__deck { grid-column: 2 / span 12; }
  .sh-hero__deck { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sh-intro { grid-column: 1 / span 6; }
  .jump { grid-column: 8 / span 5; }
  .match-wrap { grid-column: 2 / span 11; }
  .match col.match__how { inline-size: 52%; }
  .match col.match__to { inline-size: 6%; }
  .trades, .trades-head { grid-column: 2 / span 12; }
  .trade, .coda__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .trade__rail, .trade__body { grid-column: 1 / span 7; }
  .coda__row > * { grid-column: 1 / span 9; }
  .trade__obj { grid-column: 8 / span 5; grid-row: 1 / span 2; justify-items: end; }
  .trade__obj--plate .plate { margin-inline: 0 calc(-1 * var(--m)); border-start-start-radius: 2px; border-end-start-radius: 2px; }
  .trade__obj--plate .pass { margin-inline-start: calc(-1 * var(--g) + 8px); }
  .trade__obj--plate { justify-items: start; }
  .trade__dl > div { grid-template-columns: 8.5em minmax(0, 1fr); }
}
@media (min-width: 1080px) {
  .trade__rail, .coda__row > :first-child { grid-column: 1 / span 3; grid-row: 1; }
  .trade__body { grid-column: 4 / span 5; grid-row: 1; }
  .trade__obj { grid-column: 9 / span 4; grid-row: 1; }
  /* a plate row is ~500px tall beside ~200px of words: the words ride with the scroll instead of leaving a hole */
  .trade__rail, .trade__body { align-self: start; position: sticky; inset-block-start: calc(var(--mast) + 48px); }
  .coda__row > :last-child { grid-column: 4 / span 8; }
}
@media (max-width: 859px) {
  .trade { padding-block: 44px; }
  .trade__obj--plate .pass { margin-inline-start: 0; }
  .trade__dl > div { grid-template-columns: 1fr; }
  .match thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .match, .match tbody, .match tr, .match th, .match td { display: block; }
  .match tbody th { padding-block: 20px 6px; color: var(--ink); }
  .match tbody td { padding-block: 0 20px; }
  .match td.match__to { display: none; }
}

/* a section head with the page's one free-standing stamp beside it */
.section__head--stamp { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--g); }
.section__head--stamp .stamp--free { flex: none; margin-block-start: 8px; margin-inline-end: 12px; }

/* slow hours: a week strip that follows the chosen example (radios + :has, no JS) */
.hours-demo { display: grid; gap: 28px; }
.week-wrap { padding: 28px clamp(16px, 2.4vw, 32px) 24px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); }
.week-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-block-end: 20px; }
.week-read b { font: 500 clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem)/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
html[lang="ar"] .week-read b { font-weight: 600; letter-spacing: 0; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem); line-height: 1.3; }
.week-read > span, .week-read > b { display: none; }
.week { display: grid; grid-template-columns: 3.3em repeat(16, minmax(0, 1fr)); gap: 3px; align-items: center; }
html[lang="ar"] .week { grid-template-columns: 4.4em repeat(16, minmax(0, 1fr)); }
.week__d { font: 500 .8125rem/1.2 var(--f-ui); color: var(--ink-2); }
.week__ax { font: 500 .75rem/1.2 var(--f-ui); color: var(--ink-2); white-space: nowrap; padding-block-end: 4px; }
.week i { block-size: 26px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); transition: background-color var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.hours-demo:has(#wk-cafe:checked) .k-c, .hours-demo:has(#wk-bake:checked) .k-b,
.hours-demo:has(#wk-wash:checked) .k-w, .hours-demo:has(#wk-rest:checked) .k-r { background: var(--gold); box-shadow: inset 0 0 0 1px rgba(120, 74, 10, .3); }
.hours-demo:has(#wk-cafe:checked) .r-c, .hours-demo:has(#wk-bake:checked) .r-b,
.hours-demo:has(#wk-wash:checked) .r-w, .hours-demo:has(#wk-rest:checked) .r-r { display: inline; }
@supports not selector(:has(*)) { .week .k-c { background: var(--gold); } .week-read .r-c { display: inline; } }
.week-cap { margin-block-start: 14px; }
.wk .index__name { font-size: clamp(1.4rem, 1.2rem + .5vw, 1.75rem); }
.wk .index__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); padding-block: 16px; }
.hours-side .rule-list > li { padding-block: 14px; }
.hours-tell { margin-block-start: 28px; max-inline-size: 46ch; }
@media (min-width: 860px) {
  .hours .section__head { grid-column: 2 / span 7; }
  .hours-demo { grid-column: 2 / span 7; }
  .hours-side { grid-column: 10 / span 4; grid-row: 2; padding-block-start: 4px; }
}
@media (max-width: 859px) {
  .hours-side { margin-block-start: 48px; }
  .week { gap: 2px; }
  .week i { block-size: 22px; }
  .week__ax { font-size: .6875rem; }
  .wk .index__row { grid-template-columns: 1fr; gap: 2px; }
}

/* 8.19 Learn: loyalty-program-egypt (cover with a glance row, the stall, the till, fits, seasons, the start card) */
.lp-hero { min-block-size: 0; }
.lp-hero__text { margin-block-start: 36px; padding-block-start: 28px; border-block-start: 1px solid var(--rule-2); }
.lp-hero__text .t-lead { color: var(--ink); }
.lp-hero .facts__object { margin-block: 48px 0; }
.glance { display: grid; gap: 8px var(--g); margin-block-start: 64px; padding-block: 18px 22px; border-block-start: 1px solid var(--rule); }
.glance ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--g); }
.glance li { font: 500 1.375rem/1.2 var(--f-display); }
.glance li:last-child { grid-column: 1 / -1; }
html[lang="ar"] .glance li { font-weight: 600; line-height: 1.5; }
.stall__text { max-inline-size: 60ch; margin-block: 24px 20px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.stall__till { display: grid; gap: 20px var(--g); margin-block-start: 72px; }
.versus__sms { margin-block-start: 64px; padding-block-start: 28px; border-block-start: 1px solid var(--rule); }
.versus__sms .prose { max-inline-size: 60ch; color: var(--ink-2); }
.fits { border-block: 1px solid var(--rule-2); }
.fits > div { display: grid; gap: 6px var(--g); padding-block: 22px; }
.fits > div + div { border-block-start: 1px solid var(--rule); }
.fits dd { margin: 0; color: var(--ink-2); max-inline-size: 54ch; }
.fits__aside { margin: 48px 0 0; }
.fits__aside .specimen { justify-items: stretch; }
.fits__aside .ledger dd bdi { font-variant-numeric: tabular-nums lining-nums; }
.seasons > li { display: grid; gap: 4px var(--g); }
.seasons .clock { font-size: clamp(1.5rem, 1.3rem + .5vw, 1.75rem); line-height: 1.15; } /* the timetable clock: gold marks when */
@media (min-width: 600px) and (max-width: 859px) { .seasons > li { grid-template-columns: 9.5rem minmax(0, 1fr); align-items: baseline; } }
.start-card { position: relative; }
.start-card .print-card { font-size: 17px; }
@media (min-width: 860px) { .start-card .print-card { font-size: 20px; } }
.start-card .stamp--free { position: absolute; inset-block-start: -22px; inset-inline-end: -30px; }
.start .cta-row { margin-block-start: 36px; }
.gulf { margin-block-start: 88px; padding-block-start: 24px; border-block-start: 1px solid var(--rule-2); }
.gulf .t-small { margin-block-start: 10px; max-inline-size: 60ch; }
@media (min-width: 860px) {
  .lp-hero > * { grid-column: 2 / span 12; }
  .lp-hero > .lp-hero__text { grid-column: 2 / span 6; grid-row: 2; }
  .lp-hero > .facts__object { grid-column: 9 / span 5; grid-row: 2; margin-block: 64px 0; }
  .glance { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); align-items: baseline; }
  .glance ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .glance li:last-child { grid-column: auto; }
  .glance li + li { padding-inline-start: var(--g); border-inline-start: 1px solid var(--rule); }
  .stall .section__head { grid-column: 2 / span 7; }
  .stall__till { grid-column: 2 / span 12; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .stall__till .t-h3 { grid-column: 1 / span 3; align-self: start; position: sticky; inset-block-start: calc(var(--mast) + 48px); }
  .stall__till .rule-list { grid-column: 4 / span 9; }
  .versus__sms { grid-column: 2 / span 12; }
  .fit .section__head, .fits { grid-column: 2 / span 7; }
  .fits > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: baseline; }
  .fits__aside { grid-column: 10 / span 4; grid-row: 2; margin: 0; position: sticky; inset-block-start: calc(var(--mast) + 40px); }
  /* one row per season on the page grid: when (gold) | season (ink) | what to do */
  .seasons { grid-column: 2 / span 12; }
  .seasons > li { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .seasons > li > div { display: contents; }
  .seasons .clock { grid-column: 1 / span 3; }
  .seasons .t-h4 { grid-column: 4 / span 2; }
  .seasons .t-small { grid-column: 6 / span 6; margin: 0; max-inline-size: 62ch; text-wrap: pretty; } /* a reading measure, not the 48ch rule-list cap */
  .gulf { grid-column: 2 / span 6; }
}

/* 9 tables+faq+ledger ===================================================== */
/* 9.1 ledger: itemised rows with a hairline leader */
.ledger__title { margin-block-end: 8px; font-size: clamp(1.25rem, 1.15rem + .3vw, 1.4rem); }
.ledger__row { display: flex; align-items: baseline; gap: 0 12px; padding-block: 10px; border-block-end: 1px solid var(--rule); }
.ledger__row:last-child { border-block-end: 0; }
.ledger dt { flex: 1; display: flex; align-items: baseline; min-inline-size: 0; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.ledger dt::after { content: ""; flex: 1; min-inline-size: 16px; margin-inline: 8px 0; border-block-end: 1px dotted var(--rule-2); transform: translateY(-.3em); }
.ledger dd { flex: none; font: 500 .9375rem/1.4 var(--f-body); color: var(--ink); text-align: end; font-variant-numeric: tabular-nums lining-nums; }
.ledger__row--total { margin-block-start: 4px; border-block-start: 3px double var(--rule-2); }
.ledger__row--total dt { color: var(--ink); }
.ledger__row--total dd { font: 500 1.375rem/1.1 var(--f-display); }
html[lang="ar"] .ledger dt { font-size: 1rem; line-height: 1.6; }
html[lang="ar"] .ledger dd { font-size: 1rem; line-height: 1.6; font-weight: 600; font-variant-numeric: normal; }
/* Arabic-Indic digits have no glyphs in Inter: in either language they are set in Cairo at 600, and without tabular figures (Cairo's tnum digits draw small and light), so they hold beside the labels */
.ledger dd .ar-digits { font-family: Cairo, system-ui, sans-serif; font-size: 1.0625rem; font-weight: 600; font-variant-numeric: normal; }
html[lang="ar"] .ledger__row--total dd { font-size: 1.375rem; font-weight: 600; }
html[lang="ar"] .hero .ledger__row { padding-block: 6px; }
html[lang="ar"] .hero .ledger dt, html[lang="ar"] .hero .ledger dd { line-height: 1.5; }
html[lang="ar"] .hero .cta-row { margin-block-start: 28px; }
@media (max-width: 639px) {
  .ledger--wrap .ledger__row { flex-wrap: wrap; }
  .ledger--wrap dd { flex-basis: 100%; text-align: start; }
  .ledger--wrap dt::after { display: none; }
}

.ledger__close { margin-block-start: 10px; padding-block-start: 12px; border-block-start: 1px solid var(--rule); }

/* 9.2 FAQ */
.faq__list { border-block: 1px solid var(--rule-2); }
.faq__item + .faq__item { border-block-start: 1px solid var(--rule); }
.faq__item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  list-style: none;
  cursor: pointer;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: none; inline-size: 16px; block-size: 16px; transform: translateY(2px); transition: transform 200ms var(--ease-out); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 0; inline-size: 16px; block-size: 1.5px; margin-block-start: -.75px; background: var(--ink); }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus { transform: translateY(2px) rotate(45deg); }
.faq__answer { padding-block: 8px 24px; max-inline-size: 65ch; color: var(--ink-2); } /* 8px clears the summary focus ring */
.faq__more { margin-block-start: 24px; }
.faq__more a.inline { display: inline-block; padding-block: 13px; margin-block: -13px; } /* a 44px hit area on a t-small line */
@media (min-width: 860px) {
  .section--faq .section__head { grid-column: 2 / span 4; position: sticky; inset-block-start: calc(var(--mast) + 32px); }
  .section--faq .faq__body { grid-column: 6 / span 8; }
}

/* 9.3 keep reading */
.keep { border-block-start: 1px solid var(--rule-2); }
.keep__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  padding-block: 24px;
  border-block-end: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.keep__row .t-h4 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: transparent; transition: text-decoration-color 200ms ease; }
.keep__row:hover .t-h4 { text-decoration-color: var(--rule-2); }
.keep__row .t-small { grid-column: 1; }
.keep__row .arrow { grid-column: 2; grid-row: 1 / span 2; inline-size: 20px; block-size: 20px; }
@media (min-width: 860px) {
  .section--keep .section__head { grid-column: 2 / span 4; }
  .section--keep .keep { grid-column: 6 / span 8; }
  .keep__row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; }
  .keep__row .t-small { grid-column: 2; }
  .keep__row .arrow { grid-column: 3; grid-row: 1; }
}

/* 9.4 the match table (receipt to reward) and the stamp-card compare variant */
/* match the reward to the receipt: a two-column ruled table, boosters under a double rule */
.match { inline-size: 100%; text-align: start; }
.match th, .match td { text-align: start; vertical-align: baseline; }
.match thead th { padding-block: 0 14px; border-block-end: 1px solid var(--rule-2); font: 600 .9375rem/1.3 var(--f-ui); color: var(--ink-2); }
.match tbody th { padding-block: 22px; padding-inline-end: var(--g); font-weight: 400; color: var(--ink-2); max-inline-size: 40ch; }
.match tbody td { padding-block: 22px; }
.match tbody tr + tr { border-block-start: 1px solid var(--rule); }
.match tbody + tbody { border-block-start: 3px double var(--rule-2); }
.match tbody:last-child { border-block-end: 1px solid var(--rule-2); }
.match__m { display: block; font: 500 clamp(1.6rem, 1.3rem + .8vw, 2.1rem)/1.1 var(--f-display); color: var(--ink); }
html[lang="ar"] .match__m { font-weight: 600; line-height: 1.4; }
.match td .t-small { display: block; margin-block-start: 4px; }
.match__arrow { inline-size: 20px; block-size: 20px; color: var(--ink-3); }
.match-foot { display: grid; gap: 8px; margin-block-start: 28px; }
.match-foot p:first-child { font: 500 clamp(1.3rem, 1.15rem + .4vw, 1.6rem)/1.3 var(--f-display); }
html[lang="ar"] .match-foot p:first-child { font-weight: 600; line-height: 1.5; }

/* the ledger table: two columns of argument */
.ds-compare-note { margin-block-start: 24px; }
@media (min-width: 860px) { .ds-compare col:first-child { inline-size: 20%; } }
.faq__more .link-arrow { margin-inline-end: 12px; }

/* 10 cover+footer ========================================================= */
.cover {
  --ink: var(--cover-ink);
  --ink-2: var(--cover-ink-2);
  --rule: var(--cover-rule);
  --rule-2: rgba(242, 238, 230, .3);
  --focus: var(--gold);
  --gold-ink: #E9B355;
  --paper: var(--cover);
  background: var(--cover);
  color: var(--cover-ink);
}
.cover__copy { padding-block: 88px 64px; }
.cover .seal { margin-block-end: 40px; }
.cover .t-h2 { max-inline-size: 14ch; }
.cover .t-lead { margin-block-start: 24px; max-inline-size: 40ch; }
.cover .cta-row { margin-block-start: 40px; }
.cover .risk { margin-block-start: 16px; }
.cover__object { display: grid; grid-template-rows: auto 1fr; }
.cover__object:not(:has(.live-clock)) { grid-template-rows: minmax(0, 1fr); } /* no clock (every page but Home): the plate takes the whole band */
.live-clock { padding-block: 0 32px; }
.live-clock .t-figure { color: var(--gold-ink); }
.live-clock .t-caption { margin-block-start: 10px; }
.cover__plate { position: relative; margin: 0; min-block-size: 300px; }
.cover__plate img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 70% 50%; filter: var(--plate-filter); }
@media (min-width: 860px) {
  .cover { align-items: stretch; }
  .cover__copy { grid-column: 2 / span 6; grid-row: 1; padding-block: 128px; }
  .cover__object { grid-column: 9 / -1; grid-row: 1; }
  .cover__object .live-clock { padding-block: 128px 40px; }
  .cover__plate { min-block-size: 380px; }
}
@media (max-width: 859px) {
  .cover__object { grid-column: full; }
  .cover__object .live-clock { padding-inline: var(--m); }
}

.footer { padding-block: 64px 32px; border-block-start: 1px solid var(--rule-2); }
.footer__inner { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__about { grid-column: 1 / -1; }
.footer__about .t-small { margin-block-start: 16px; max-inline-size: 30ch; }
.footer__col h2 { margin-block-end: 8px; font: 600 .9375rem/1.3 var(--f-ui); }
.footer__col a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; padding-block: 8px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: color var(--dur-1) ease; }
html[lang="ar"] .footer__col a { font-size: 1rem; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--rule); }
@media (min-width: 860px) {
  .footer__inner { grid-column: content; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; }
  .footer__about { grid-column: auto; }
  .footer__base { grid-column: content; }
}
@media (max-width: 379px) { .footer__inner { grid-template-columns: 1fr; } }

/* 11 motion =============================================================== */
/* Moment 1: the welcome arrives (CSS-timed so it can never get stuck hidden) */
html.js .hero .notif { animation: arrive 820ms var(--ease-drawer) 650ms both, unblur var(--dur-4) ease 650ms both; }
html.js .hero .pass { animation: settle var(--dur-3) var(--ease-out) 950ms both; }
@keyframes arrive { from { opacity: 0; transform: translateY(-2.2em) scale(.94); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes unblur { from { filter: blur(8px); } to { filter: blur(0); } }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }

/* Moment 2: the stamp is pressed */
@keyframes press {
  0% { transform: scale(1.55); opacity: 0; filter: blur(6px); }
  55% { transform: scale(.93); opacity: 1; filter: blur(0); }
  78% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes press-free {
  0% { transform: rotate(-9deg) scale(1.55); opacity: 0; filter: blur(6px); }
  55% { transform: rotate(-9deg) scale(.93); opacity: 1; filter: blur(0); }
  78% { transform: rotate(-9deg) scale(1.03); }
  100% { transform: rotate(-9deg) scale(1); opacity: 1; }
}
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
.is-pressing .rig .slot .stamp, .rig .slot .stamp.is-pressing { animation: press var(--dur-4) var(--ease-out) 700ms both; }
.is-pressing .rig .slot .stamp::after { animation: sweep 900ms var(--ease-out) 1000ms both; }
.is-pressing .moment .stamp--free { animation: press-free var(--dur-4) var(--ease-out) 700ms both; }
.is-pressing .moment .stamp--free::after { animation: sweep 900ms var(--ease-out) 1000ms both; }

/* Moment 3: the till rings the sale */
@keyframes tap { 50% { transform: scale(.97); } }
.is-ringing .till__btn { animation: tap var(--dur-1) ease 1s; }
.is-ringing .till__ok { animation: settle var(--dur-2) var(--ease-out) 1.2s both; }

/* No scroll-reveal entrances (DESIGN-FINAL 6): every object is on the page from the start. site.js only marks a [data-reveal]
   block .is-in as it arrives, so its notification stack drops in (the moment-1/moment-3 grammar) and its till rings */
html.zy-reveal [data-reveal] .notif-stack--list > .notif { transition: opacity var(--dur-3) ease, transform 700ms var(--ease-drawer); }
html.zy-reveal [data-reveal]:not(.is-in) .notif-stack--list > .notif { opacity: 0; transform: translateY(-1.2em) scale(.96); }
html.zy-reveal [data-reveal] .notif-stack--list > .notif:nth-child(2) { transition-delay: 90ms; }
html.zy-reveal [data-reveal] .notif-stack--list > .notif:nth-child(3) { transition-delay: 180ms; }

/* Reduced motion (system setting, or localStorage zy-motion=off via .rm): no travel, 150ms crossfades only */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, text-decoration-color !important; transition-duration: 150ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, text-decoration-color !important; transition-duration: 150ms !important; transition-delay: 0s !important; }
html.rm .rig .notif, html.rm .rig .till, html.rm [data-reveal], html.rm [data-reveal] .notif { transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rig .notif, .rig .till, [data-reveal], [data-reveal] .notif { transform: none !important; filter: none !important; }
}

/* 12 rtl ================================================================== */
html[dir="rtl"] .arrow, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
/* an arrow that points down the page (in-page contents rows): same in both directions */
html[dir] .arrow--down { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { html[dir] a:hover .arrow--down { transform: rotate(90deg) translateX(3px); } }
html[dir="rtl"] .lock__stack, html[dir="rtl"] .lock__date, html[dir="rtl"] .notif { direction: rtl; }
html[dir="rtl"] .wallet-sheet, html[dir="rtl"] .join, html[dir="rtl"] .till__page { direction: rtl; }
html[dir="rtl"] .join__field, html[dir="rtl"] .join__url { direction: ltr; }
/* the /m menu page reads RTL like the join, wallet and till screens; its status bar stays hardware LTR */
html[dir="rtl"] .shop-page { direction: rtl; }
html[dir="rtl"] .shop-page .phone__status { direction: ltr; }
html[lang="ar"] .moment__day, html[lang="ar"] .plate-free__label { font-size: 1rem; }

/* 13 night ================================================================ */
/* Night is the same paper after close: warm lacquer-black card stock, gold allowed as text. */
html[data-theme="night"] {
  --paper: #11100E;
  --paper-2: #1A1815;
  --paper-3: #24211D;
  --ink: #F2EEE6;
  --ink-2: #ABA396;
  --ink-3: #8F877A;
  --rule: rgba(242, 238, 230, .13);
  --rule-2: rgba(242, 238, 230, .26);
  --field-edge: rgba(242, 238, 230, .45);
  --gold-ink: #E9B355;
  --cover: #1A1815;
  --focus: #F0A93B;
  --obj-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -20px rgba(0, 0, 0, .7), 0 60px 90px -50px rgba(0, 0, 0, .8);
  --plate-filter: saturate(.85) contrast(1.04) brightness(.86);
  color-scheme: dark;
}
html[data-theme="night"] body::before { mix-blend-mode: screen; opacity: .035; }
html[data-theme="night"] .cover { border-block: 1px solid var(--cover-rule); }
html[data-theme="night"] .btn--ink { background: var(--ink); color: #11100E; }
html[data-theme="night"] .till, html[data-theme="night"] .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), var(--obj-shadow); }
html[data-theme="night"] .paper-card { --pr: rgba(242, 238, 230, .4); } /* the card is drawn in page ink, so its rings follow the theme */
/* printed paper (counter card, dashboard sheet, paper pass) is night card stock, not the brightest thing on the page */
html[data-theme="night"] :is(.print-card, .dash, .pass--paper) {
  --ink: #F2EEE6; --ink-2: #ABA396; --rule: rgba(242, 238, 230, .13); --rule-2: rgba(242, 238, 230, .26);
  --till-rule: var(--rule); --till-dim: var(--ink-2);
  --pc: var(--paper-2); --pt: var(--ink); --pl: var(--ink-2); --pr: var(--rule-2);
  background: var(--paper-2); border-color: var(--rule); color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .6);
}
/* on a mat that is already paper-2, the object steps up one sheet so it still reads as an object */
html[data-theme="night"] :is(.section--mat, .hero--mat, .hero__plate--mat, .hero__mat, .moment--quiet, .fx-stage, .inset, .c-write) :is(.print-card, .dash, .pass--paper) { --pc: var(--paper-3); background: var(--paper-3); }
html[data-theme="night"] :is(.print-card__title, .print-card__sub, .print-card__foot, .ticket__in) { color: inherit; }
html[data-theme="night"] :is(.print-card__sub, .print-card__foot) { color: var(--ink-2); }
html[data-theme="night"] .print-card svg.qr { fill: var(--ink); }
html[data-theme="night"] .dash__spark { fill: rgba(242, 238, 230, .55); }
html[data-theme="night"] .pass--paper .pass__strip, html[data-theme="night"] .crm__note, html[data-theme="night"] .ticket__chip { background: rgba(242, 238, 230, .05); }
html[data-theme="night"] .ticket__in { border-color: var(--rule-2); background: var(--paper); }
html[data-theme="night"] .ticket__files > span { border-color: var(--rule-2); }
/* product screens stay light at night (they are the product's own UI), but dimmed like a lit screen in a dark room, not paper-white holes */
html[data-theme="night"] :is(.till, .xt, .join, .fx-counter, .shop-page, .wl-back) { filter: brightness(.86); }

/* 14 print ================================================================ */
@media print {
  body::before, .masthead, .skip, .rig-wrap, [data-js-only], .inset__toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .cover { background: #fff; color: #000; --ink: #000; --ink-2: #333; }
  .section, .cover__copy { padding-block: 24px; }
  .moment { min-block-size: 0; }
  .faq__answer { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  html.zy-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
}
