/* Yalla Jeye public site (yallajeye.app).
 *
 * The look comes from the brand's own artwork: the logo's yellow letters on
 * ruby, its ink outline and hard offset shadow, and the scooter rider. Colour
 * tokens mirror packages/yj_design_system (app_colors.dart); the typeface is
 * the apps' DM Sans.
 *
 * The page CSP is style-src 'self' and script-src 'self': no inline styles, no
 * style="" attributes, no inline scripts anywhere. Bump the ?v= on every
 * <link>/<script> that references this file or site.js when either changes
 * (they are cached for a year). */

@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* colour (AppColors) */
  --ruby: #A31724;            /* rubyRed */
  --ruby-bright: #BE182C;     /* the logo's outline red */
  --ruby-deep: #7F1418;       /* the logo's shadow red */
  --ruby-tint: #FCECEE;       /* primaryLight */
  --ruby-border: #F0CDD2;     /* rubyBorder */
  --yellow: #FFC700;          /* schoolBusYellow */
  --yellow-deep: #E0AC00;
  --ink: #1A1A1A;             /* carbonBlack */
  --ink-2: #525252;           /* textSecondary, 7.8:1 on white */
  --ink-3: #767676;           /* placeholder only, 4.5:1 on white */
  --canvas: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;       /* surfaceSecondary */
  --cement: #EDEAE5;          /* cement */
  --line: #E6E6E6;
  --line-2: #D6D6D6;
  --field-line: #8A8A8A;      /* resting control border, 3.4:1 on white */
  --success: #2E7D32;
  --success-tint: #E8F5E9;
  --error: #C62828;
  --error-tint: #FFEBEE;
  --error-border: #F2C7C7;
  --whatsapp: #25D366;        /* WhatsApp's own green, contact button only */

  /* space (AppSpacing) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --control-h: 54px;          /* controlHeightLg */
  --gutter: 20px;

  /* radius (AppRadius) */
  --r-sm: 8px; --r-control: 14px; --r-card: 16px; --r-lg: 24px; --r-pill: 999px;

  /* the logo's outline + hard shadow, reused on the things you can press or fill in */
  --bw: 2.5px;
  --lift: 5px;

  /* type */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-big: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --t-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  --t-h2: 1.5rem;
  --t-h3: 1.25rem;
  --t-title: 1.125rem;
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-caption: .8125rem;

  --measure: 40rem;
  --page: 1240px;
  --focus: var(--ruby);

  color-scheme: light;
}
@media (max-width: 359.98px) { :root { --gutter: 16px; } }
@media (min-width: 600px) { :root { --gutter: 32px; --lift: 8px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-5); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: var(--ruby); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--ink); }
strong { font-weight: 700; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 10;
  background: var(--ink); color: var(--surface); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip:focus-visible { top: var(--s-3); outline-color: var(--yellow); }

.wrap {
  width: 100%; max-width: var(--page); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.h-big { font-size: var(--t-big); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.h-big span { display: block; }

/* ---- header / footer -------------------------------------------------- */
/* The header is ruby. The logo is the original yellow-and-red artwork, drawn
   as a sticker (logo-sticker.svg): its red outline would disappear into this
   red, so the file gives it a thin white contour all round and a white
   extrusion to the lower right, a hard shadow like the one the buttons and
   the form panel stand on. */
.top { background: var(--ruby); padding: var(--s-4) 0; --focus: var(--yellow); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  color: #FFFFFF; font-weight: 700; text-decoration: none;
  border: 2px solid #FFFFFF; border-radius: var(--r-pill);
}
.lang:hover { background: #FFFFFF; color: var(--ruby); text-decoration: none; }
.brand { display: inline-flex; flex: none; border-radius: var(--r-sm); }
.brand img { width: 92px; height: auto; }
.top--home { padding: var(--s-5) 0 var(--s-2); }
.top--home .brand img { width: 116px; }
@media (min-width: 600px) {
  .brand img { width: 104px; }
  .top--home { padding: var(--s-6) 0 var(--s-3); }
  .top--home .brand img { width: 152px; }
}

.foot { padding: var(--s-6) 0 max(var(--s-7), env(safe-area-inset-bottom)); font-size: var(--t-small); color: var(--ink-2); }
.foot__row { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .foot__row { grid-template-columns: 1fr auto; align-items: start; } }
.foot__who { display: grid; gap: var(--s-1); }
.foot__name { color: var(--ink); font-weight: 700; }
.foot__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.foot__links a, .foot__who a { color: var(--ink); display: inline-block; padding: 6px 0; font-weight: 600; }
.foot__links a[aria-current="page"] { color: var(--ruby); font-weight: 700; }
/* Inner pages: a rule between the page and its footer. The home page ends on
   the two colour blocks, which do that job. */
main:not(:has(.partners)) + .foot { border-top: var(--bw) solid var(--ink); margin-top: var(--s-8); }

/* ---- buttons ---------------------------------------------------------- */
/* Outlined and standing on a hard shadow, like the logo's letters. Pressing
   one pushes it down onto the shadow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-5);
  background: var(--ruby); color: #FFFFFF;
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center;
  border: var(--bw) solid var(--ink); border-radius: var(--r-control); cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: background-color .15s ease, transform .08s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--ruby-bright); text-decoration: none; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-control); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; background: var(--ruby-bright); }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFD52E; }
.btn--quiet { background: var(--surface); color: var(--ink); }
.btn--quiet:hover { background: var(--surface-2); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- home: hero ------------------------------------------------------- */
.hero { background: var(--ruby); color: #FFFFFF; padding: var(--s-5) 0 var(--s-7); overflow: hidden; --focus: var(--yellow); }
@supports (overflow: clip) { .hero { overflow: clip; } }
.hero__grid { display: grid; gap: var(--s-5); grid-template-areas: "copy" "rider" "join"; }
.hero__copy { grid-area: copy; }
.hero__rider { grid-area: rider; }
.hero__join { grid-area: join; scroll-margin-top: var(--s-4); }
.hero__join { position: relative; z-index: 1; } /* the road passes behind the form */
@media (min-width: 1040px) {
  .hero { padding: var(--s-6) 0 var(--s-9); }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(24rem, 36vw, 29rem)); grid-template-rows: auto 1fr;
    grid-template-areas: "copy join" "rider join";
    column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: var(--s-6);
  }
}
/* The headline is sized from the width of its own column, so the longest line
   ("Zahle’s all-in-one local commerce") fits on one: two lines wherever the
   column is wide enough, balanced wrapping on a phone. */
.hero__copy { container-type: inline-size; }
.hero__title {
  color: var(--yellow);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em;
}
@supports (font-size: 1cqi) { .hero__title { font-size: clamp(1.75rem, 6.1cqi, 2.75rem); } }
@container (min-width: 29rem) { .hero__title span { display: block; } }
.hero__lede { margin-top: var(--s-5); font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; max-width: 31rem; }

/* The rider, on a road marked in the logo's yellow. He rides in once. */
.hero__rider { position: relative; display: flex; justify-content: flex-end; padding-bottom: 5px; }
.rider { display: block; width: min(58%, 18rem); }
.rider img { width: 100%; }
.hero__rider::after {
  content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px);
}
@media (min-width: 1040px) {
  .hero__rider { align-self: start; justify-content: flex-start; padding-inline-start: 12%; margin-top: var(--s-7); }
  .rider { width: min(80%, 25rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__rider img { animation: ride-in 1.1s cubic-bezier(.16, .84, .3, 1) .15s backwards; }
  /* The app's rider bob (600 ms, ease in and out, back and forth). */
  .rider { animation: bob .6s ease-in-out infinite alternate; }
}
@keyframes ride-in { from { transform: translateX(-80vw); } to { transform: none; } }
@keyframes bob { from { transform: none; } to { transform: translateX(3px); } }

/* ---- panels + forms --------------------------------------------------- */
.panel {
  background: var(--surface); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  padding: var(--s-5) var(--s-4);
  --focus: var(--ruby);
}
@media (min-width: 480px) { .panel { padding: var(--s-6); } }
.panel__head { margin-bottom: var(--s-5); }
.panel__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.panel__lede { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.panel:has(.done:not([hidden])) .panel__head { display: none; }

.form { display: grid; gap: 20px; }
/* Name and area sit side by side when the panel itself is wide enough. */
.panel { container-type: inline-size; }
.form__pair { display: grid; gap: 20px var(--s-3); }
.form__pair-hint { margin-top: calc(var(--s-3) * -1); }
@container (min-width: 22rem) {
  .form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-2); align-items: end; }
  .form__pair-hint { grid-column: 1 / -1; margin-top: 0; }
}
.field { display: grid; gap: var(--s-2); }
.choice__legend { margin-bottom: var(--s-3); }
.field__label, .choice__legend { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field__hint { font-size: var(--t-caption); line-height: 1.45; color: var(--ink-2); }
.field__error {
  display: flex; gap: var(--s-2); align-items: flex-start;
  font-size: var(--t-small); line-height: 1.4; font-weight: 600; color: var(--error);
}
.field__error::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; background: var(--error); color: #FFFFFF;
  font-size: 12px; font-weight: 700; line-height: 1;
}

.input, .textarea {
  width: 100%; min-height: var(--control-h);
  font: 400 1.0625rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-control);
  padding: 0 var(--s-4);
}
.textarea { padding: var(--s-3) var(--s-4); min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus-visible, .textarea:focus-visible { outline: 3px solid var(--ruby); outline-offset: 2px; border-radius: var(--r-control); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error); }

/* Phone: a fixed +961 hint in front of the number, hidden once the person
   types their own country code. */
.phone {
  display: flex; align-items: stretch; min-height: var(--control-h);
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-control);
}
.phone:focus-within { outline: 3px solid var(--ruby); outline-offset: 2px; }
.phone--invalid { border-color: var(--error); }
.phone__cc {
  flex: none; display: flex; align-items: center; padding: 0 var(--s-3) 0 var(--s-4);
  font-weight: 700; color: var(--ink); border-right: 2px solid var(--ink);
}
.phone--invalid .phone__cc { border-right-color: var(--error); }
.phone--intl .phone__cc { display: none; }
.phone .input { border: 0; min-height: 0; flex: 1 1 auto; min-width: 0; background: transparent; }
.phone .input:focus-visible { outline: 0; } /* the wrapper carries the ring */

/* Role / app choice: tappable tiles, a real radio group underneath. The
   chosen tile is filled yellow and stands on a shadow; the others lie flat
   with a lighter border, so the choice does not depend on colour alone. */
.choice { display: grid; gap: var(--s-3); }
.choice__options { display: grid; gap: var(--s-2); }
.choice__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.option__tile {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 56px; padding: var(--s-3) var(--s-4);
  border: 2px solid var(--field-line); border-radius: var(--r-card); background: var(--surface);
  font-weight: 700; font-size: var(--t-small); line-height: 1.2; color: var(--ink);
  transition: background-color .12s ease, transform .12s ease;
}
.choice__options--3 .option__tile {
  height: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-height: 92px; gap: var(--s-2); padding: var(--s-3);
}
@media (max-width: 379.98px) { .choice__options--3 .option__tile { font-size: var(--t-caption); padding: 10px; } }
.option__tile svg { width: 24px; height: 24px; flex: none; }
.option:hover .option__tile { border-color: var(--ink); }
.option input:checked + .option__tile {
  border-color: var(--ink); background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px);
}
.option input:focus-visible + .option__tile { outline: 3px solid var(--ruby); outline-offset: 3px; }
.choice__hint { font-size: var(--t-small); color: var(--ink-2); min-height: 1.5em; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px;
  border: 2px solid var(--ink); border-radius: 7px; background: var(--surface);
  display: grid; place-items: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease;
}
.check input::after {
  content: ""; width: 12px; height: 7px; margin-top: -3px;
  border-left: 2.5px solid #FFFFFF; border-bottom: 2.5px solid #FFFFFF;
  transform: rotate(-45deg) scale(0); transition: transform .12s ease;
}
.check input:checked { background: var(--ruby); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 3px solid var(--ruby); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--error); }
.check a { color: var(--ink); font-weight: 600; }

/* The honeypot: out of sight and out of the accessibility tree (aria-hidden
   on the wrapper, tabindex -1 on the input). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.counter { font-size: var(--t-caption); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

.alert {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: var(--s-4); border-radius: var(--r-card);
  background: var(--error-tint); border: 2px solid var(--error); color: var(--ink);
  font-size: var(--t-small); line-height: 1.5;
}
.alert svg { width: 24px; height: 24px; color: var(--error); }
.alert strong { display: block; color: var(--error); }

.noscript { font-size: var(--t-body); line-height: 1.55; }
.noscript a { font-weight: 600; }

.done { display: grid; gap: var(--s-4); justify-items: start; }
.done__mark {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); border: var(--bw) solid var(--ink);
}
.done__mark svg { width: 30px; height: 30px; }
.done h3 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.done h3:focus { outline: none; }
.done h3:focus-visible { outline: 3px solid var(--ruby); outline-offset: 4px; }
.done p { color: var(--ink-2); }
.done__phone { color: var(--ink); font-weight: 700; white-space: nowrap; }
.done .btn { margin-top: var(--s-2); }

@media (prefers-reduced-motion: no-preference) {
  .done__mark { animation: pop-in .4s cubic-bezier(.3, 1.4, .5, 1) backwards; }
}
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* The company's record, at the foot of the sign-up panel: an ink block with
   four figures, two by two. The figures size from the panel's width, so
   "Since 2015" stays on one line on a 320 px phone. */
.trust { margin-top: var(--s-5); padding: var(--s-5) var(--s-3); border-radius: var(--r-card); background: var(--ink); color: #FFFFFF; text-align: center; }
.trust__title { color: var(--yellow); font-size: var(--t-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.trust__title span { display: inline-block; }
.trust__list { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-2); }
.trust__value { display: block; font-size: clamp(1.25rem, 7cqi, 1.625rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.trust__label { display: block; margin-top: 2px; font-size: var(--t-caption); line-height: 1.4; }

/* ---- home: how one order works ---------------------------------------- */
/* Three framed pictures read in order, like a comic strip: left to right on a
   wide screen, top to bottom on a phone. */
.how { padding: var(--s-8) 0; }
@media (min-width: 960px) { .how { padding: var(--s-9) 0; } }
.strip { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 860px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7); } }
.strip__panel {
  counter-increment: step; display: grid; grid-template-rows: auto 1fr;
  border: var(--bw) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
}
.strip__art {
  display: grid; place-items: center; min-height: 15rem; padding: var(--s-5);
  border-bottom: var(--bw) solid var(--ink);
}
.strip__art--cart { background: var(--cement); }
.strip__art--pay { background: var(--yellow); }
.strip__art--door { background: var(--ruby); padding-bottom: 0; align-items: end; }
@media (min-width: 860px) { .strip__art { height: 19rem; } }
.strip__text { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-content: start; padding: var(--s-5); }
.strip__text::before {
  content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #FFFFFF;
  font-weight: 700; font-size: 1.0625rem; line-height: 1;
}
.strip__text h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; padding-top: 4px; }
.strip__text p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.5; }

/* Small stand-ins for the app's cart and payment screens. */
.mock {
  width: min(100%, 15.5rem); display: grid; gap: 6px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-card);
  box-shadow: 4px 4px 0 var(--ink); padding: var(--s-3) var(--s-4) var(--s-4);
  font-size: .875rem; line-height: 1.3;
}
.mock__shop { margin-top: 6px; font-size: .75rem; font-weight: 700; color: var(--ruby); }
.mock__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-weight: 600; }
.mock__qty {
  flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--surface-2); font-size: .75rem; font-weight: 700;
}
.mock__total { margin-top: var(--s-2); padding: 8px var(--s-3); border-radius: 10px; background: var(--yellow); font-weight: 700; text-align: center; }
.mock__opt {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-3); border: 2px solid var(--line-2); border-radius: 10px; font-weight: 600;
}
.mock__opt:first-child { margin-top: var(--s-1); }
.mock__opt--on { border-color: var(--ink); background: var(--ruby); color: #FFFFFF; font-weight: 700; }
.mock__cur { justify-self: start; display: inline-flex; margin-top: var(--s-2); border: 2px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; font-size: .75rem; font-weight: 700; }
.mock__cur span { padding: 4px 12px; }
.mock__cur-on { background: var(--ink); color: #FFFFFF; }

.doorstep { width: min(100%, 20rem); }
.doorstep__floor { fill: none; stroke: var(--ink); stroke-width: 5; }
.doorstep__door { fill: var(--ruby-deep); stroke: var(--ink); stroke-width: 4; }
.doorstep__inset { fill: none; stroke: var(--ink); stroke-width: 3; opacity: .55; }
.doorstep__knob { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.doorstep__bag { stroke: var(--ink); stroke-width: 4; }
.doorstep__bag--a { fill: #FFFFFF; }
.doorstep__bag--b { fill: var(--yellow); }
.doorstep__bag--c { fill: var(--cement); }
.doorstep__handle { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }

/* ---- home: Yalla Requests --------------------------------------------- */
.ask { background: var(--yellow); padding: var(--s-8) 0; --focus: var(--ink); }
.ask__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .ask { padding: var(--s-9) 0; }
  .ask__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-8); }
}
.ask__copy p { margin-top: var(--s-5); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; max-width: 33rem; }
.chat { display: grid; gap: var(--s-4); max-width: 26rem; width: 100%; }
@media (min-width: 900px) { .chat { justify-self: end; } }
.chat__msg {
  max-width: 88%; padding: var(--s-3) var(--s-4) var(--s-4);
  border: var(--bw) solid var(--ink); border-radius: 20px;
  box-shadow: 4px 4px 0 var(--ink); font-weight: 600; line-height: 1.4;
}
.chat__who { display: block; margin-bottom: 2px; font-size: var(--t-caption); font-weight: 700; }
.chat__msg--me { justify-self: end; background: var(--surface); border-end-end-radius: 4px; }
.chat__msg--me .chat__who { color: var(--ink-2); }
.chat__msg--us { justify-self: start; background: var(--ruby); color: #FFFFFF; border-end-start-radius: 4px; }
.chat__msg--us .chat__who { color: var(--yellow); }

/* ---- home: shops and drivers ------------------------------------------ */
/* Two full-width colour blocks. Each block's outer padding lines its text up
   with the page column (a percentage here is of the block's own half). */
.partners { display: grid; --focus: var(--yellow); }
.partner { padding: var(--s-8) max(var(--gutter), env(safe-area-inset-right)) var(--s-8) max(var(--gutter), env(safe-area-inset-left)); color: #FFFFFF; }
.partner--shop { background: var(--ink); }
.partner--driver { background: var(--yellow); color: var(--ink); --focus: var(--ink); }
@media (min-width: 860px) {
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { padding-top: var(--s-9); padding-bottom: var(--s-9); }
  .partner--shop { padding-inline: max(var(--gutter), calc(100% - var(--page) / 2 + var(--gutter))) var(--s-8); }
  .partner--driver { padding-inline: var(--s-8) max(var(--gutter), calc(100% - var(--page) / 2 + var(--gutter))); }
}
.partner h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.partner p { margin-top: var(--s-4); max-width: 28rem; font-size: 1.125rem; line-height: 1.5; }
.partner .btn { margin-top: var(--s-6); }
.partner--shop .btn { box-shadow: 0 4px 0 var(--ruby); }
.partner--shop .btn:active { box-shadow: 0 0 0 var(--ruby); }

/* ---- home: what you can order ------------------------------------------ */
.cats { background: var(--cement); padding: var(--s-8) 0; }
.cats__list { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 640px) { .cats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cats__item {
  display: grid; gap: var(--s-3); align-content: start; min-width: 0; padding: var(--s-4);
  background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-card);
  font-weight: 700; line-height: 1.25;
}
.cats__item svg { width: 32px; height: 32px; fill: none; stroke: var(--ruby); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- home: app screenshots --------------------------------------------- */
/* A swipeable row on a phone, a grid of three on a wide screen. */
.app { background: var(--cement); padding: var(--s-8) 0; }
.app__note { margin-top: var(--s-4); color: var(--ink-2); max-width: 33rem; }
.shots {
  list-style: none; margin-top: var(--s-5); padding: var(--s-2) var(--s-1) var(--s-4);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 16rem); gap: var(--s-5);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shots li { scroll-snap-align: start; min-width: 0; }
/* The phone frame is part of each picture (transparent outside it), so the
   shadow follows the phone's outline. */
.shot img { width: 100%; filter: drop-shadow(4px 4px 0 rgb(26 26 26 / .22)); }
.shot figcaption { margin-top: var(--s-4); font-weight: 700; line-height: 1.35; }
@media (min-width: 900px) {
  .app { padding: var(--s-9) 0; }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 17rem)); justify-content: center; gap: var(--s-7) var(--s-8); overflow: visible; margin-top: var(--s-7); }
}

/* ---- home: sign-up reminder -------------------------------------------- */
.register { background: var(--ruby); color: var(--yellow); padding: var(--s-8) 0; --focus: var(--yellow); }
.register__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }

/* ---- home: questions --------------------------------------------------- */
.faq { padding: var(--s-8) 0; }
.faq__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .faq { padding: var(--s-9) 0; } .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-8); } }
.faq__head p { margin-top: var(--s-4); color: var(--ink-2); }
.faq__head a { color: var(--ink); font-weight: 700; }
.faq__list { display: grid; gap: var(--s-3); }
.faq__item { border: var(--bw) solid var(--ink); border-radius: var(--r-card); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: var(--control-h); padding: var(--s-3) var(--s-4); cursor: pointer; list-style: none;
  font-weight: 700; line-height: 1.35; border-radius: var(--r-control); touch-action: manipulation;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--ruby); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__item p { padding: 0 var(--s-4) var(--s-4); color: var(--ink-2); }

/* ---- home: WhatsApp button --------------------------------------------- */
/* Fixed to the bottom corner. The page keeps room under focused controls and
   under the footer so the button never sits on top of them for good. */
.wa {
  position: fixed; z-index: 9; inset-inline-end: max(var(--s-4), env(safe-area-inset-right)); bottom: max(var(--s-4), env(safe-area-inset-bottom));
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--whatsapp); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.wa:hover { filter: brightness(1.08); }
.wa:focus-visible { border-radius: 50%; outline: 3px solid var(--ink); outline-offset: 3px; }
.wa svg { width: 32px; height: 32px; }
.wa__bubble { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.wa__phone { fill: currentColor; }
html:has(.wa) { scroll-padding-bottom: 96px; }
body:has(.wa) .foot { padding-bottom: calc(var(--s-9) + env(safe-area-inset-bottom)); }

/* ---- Arabic ------------------------------------------------------------ */
/* DM Sans has no Arabic letters, so the device's Arabic face takes over.
   Letter spacing would break the joins between letters, and Arabic needs more
   room above and below than the tight Latin headlines. */
html[lang="ar"] { --font: "DM Sans", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .hero__title { line-height: 1.25; }
html[lang="ar"] :is(.h-big, .partner h2) { line-height: 1.3; }
[dir="rtl"] .hero__rider img { scale: -1 1; } /* he rides the other way, in from the right */

/* ---- inner pages (legal, delete account, 404) ------------------------- */
.page { padding-top: var(--s-6); }
@media (min-width: 900px) { .page { padding-top: var(--s-7); } }
.page__head { max-width: var(--measure); }
.page__title { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.page__lede { margin-top: var(--s-4); font-size: var(--t-title); color: var(--ink-2); line-height: 1.55; }
.page__meta { margin-top: var(--s-4); font-size: var(--t-small); color: var(--ink-2); }

/* Legal layout: contents list beside the text on wide screens. */
.doc { margin-top: var(--s-6); display: grid; gap: var(--s-6); }
@media (min-width: 1000px) {
  .doc--toc { grid-template-columns: 15rem minmax(0, var(--measure)); gap: var(--s-8); align-items: start; }
  .doc--toc .toc { position: sticky; top: var(--s-5); order: -1; }
}
.toc { font-size: var(--t-small); border-left: 2px solid var(--line); padding-left: var(--s-4); }
.toc h2 { font-size: var(--t-small); font-weight: 700; color: var(--ink); margin-bottom: var(--s-2); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ruby); text-decoration: underline; }

/* Long-form prose: legal text poured in from docs/legal/*.md. */
.prose { max-width: var(--measure); font-size: var(--t-body); line-height: 1.65; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line);
  font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { text-wrap: balance; margin-top: var(--s-6); font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.prose h4 { margin-top: var(--s-5); font-size: var(--t-title); font-weight: 600; line-height: 1.35; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--s-2); }
.prose li > ul, .prose li > ol { margin-top: var(--s-2); }
.prose ul li::marker { color: var(--ruby); }
.prose ol li::marker { color: var(--ink-2); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: var(--s-5) 0 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-card);
  background: var(--ruby-tint); color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
/* Numbered clauses (terms): the number hangs in the margin, visible text. */
.prose { --clause: 2.75rem; }
@media (min-width: 600px) { .prose { --clause: 3rem; } }
.prose .clause { position: relative; padding-left: var(--clause); }
.prose .clause__n { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink-2); }
.prose .clause + ul { padding-left: calc(var(--clause) + 1.4em); }
.prose address, .prose .contact { font-style: normal; }
.prose a { overflow-wrap: anywhere; }
.prose code { font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-card); }
.table-wrap:focus-visible { outline: 3px solid var(--ruby); outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.table-wrap tbody th { font-weight: 600; color: var(--ink); }
.table-wrap tbody th strong { font-weight: 700; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
@media (min-width: 640px) {
  .table-wrap tbody th { min-width: 9rem; }
}
/* Narrow screens: each row becomes a small card (row header on top, then its
   cells, each labelled with its column when the table has 3+ columns). The
   explicit ARIA roles in the markup keep it a table for screen readers. */
@media (max-width: 639.98px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .table-wrap tbody tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap tbody th, .table-wrap tbody td { padding: 0; border: 0; }
  .table-wrap tbody td { margin-top: var(--s-1); color: var(--ink-2); }
  .table-wrap tbody td[data-label]::before {
    content: attr(data-label); display: block; margin-top: var(--s-2);
    font-size: var(--t-caption); font-weight: 600; color: var(--ink);
  }
}
.table-wrap caption { caption-side: top; text-align: left; padding: var(--s-3) var(--s-4); font-weight: 600; color: var(--ink-2); }

.holding {
  max-width: var(--measure); padding: var(--s-5); border-radius: var(--r-card);
  background: var(--surface-2); color: var(--ink);
}

/* Delete-account page: the in-app route sits beside the details on wide
   screens, and right under the introduction on narrow ones. */
.split { margin-top: var(--s-6); display: grid; gap: var(--s-7); }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .split__aside { grid-column: 2; grid-row: 1; position: sticky; top: var(--s-5); }
  .split__main { grid-column: 1; grid-row: 1; }
}
.split__main > .sections:first-child { margin-top: 0; }
.steps-card {
  max-width: var(--measure);
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  padding: var(--s-5) var(--s-4);
}
@media (min-width: 480px) { .steps-card { padding: var(--s-6); } }
.steps-card h2 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.steps-card > p { margin-top: var(--s-2); color: var(--ink); }
.steps { list-style: none; padding: 0; margin-top: var(--s-5); display: grid; gap: var(--s-3); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #FFFFFF;
  font-weight: 700; font-size: .875rem; margin-top: -3px;
}
.steps-card .steps__after { margin-top: var(--s-5); font-size: var(--t-small); color: var(--ink); }

.sections { margin-top: var(--s-7); display: grid; gap: var(--s-6); max-width: var(--measure); }
.sect h2 { text-wrap: balance; font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.sect > p { margin-top: var(--s-3); color: var(--ink-2); }
.ledger {
  list-style: none; padding: 0; margin-top: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.ledger li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start;
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line);
  font-size: var(--t-small); line-height: 1.5; color: var(--ink-2);
}
.ledger li:last-child { border-bottom: 0; }
.ledger li strong { display: block; color: var(--ink); font-size: 1rem; }
.ledger svg { width: 22px; height: 22px; margin-top: 2px; }
.ledger--gone svg { color: var(--ruby); }
.ledger--kept svg { color: var(--ink-2); }
.ledger--stop svg { color: var(--error); }
.request { margin-top: var(--s-7); max-width: var(--measure); scroll-margin-top: var(--s-5); }
.request > h2 { text-wrap: balance; font-size: var(--t-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.request > p { margin-top: var(--s-3); color: var(--ink-2); }
.request .panel { margin-top: var(--s-5); }
.request__sub { margin-top: var(--s-6); font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.request__table { margin-top: var(--s-3); }
.sect .ledger + p { margin-top: var(--s-4); color: var(--ink-2); }

/* 404 */
.lost { padding-top: var(--s-7); display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 800px) { .lost { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); padding-top: var(--s-8); } }
.lost__art { max-width: 320px; width: 70%; margin: 0 auto; }
.lost .btn { margin-top: var(--s-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}
@media (forced-colors: active) {
  .option input:checked + .option__tile { border-width: 4px; }
  .check input:checked { background: Highlight; }
  .strip__text::before { forced-color-adjust: none; }
}
