/* kayrides.com — built on the charte tokens (brand/tokens/kay-tokens.css).
   Inks: encre / porcelaine + their tints. Pétrole only where a car arrives. */

@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('fonts/GeneralSans-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --encre: #101418;
  --porcelaine: #FAFAF8;
  --petrole: #0E5A5E;
  --petrole-clair: #3FB8AF;
  --encre-70: #565959;
  --encre-45: #919293;
  --encre-20: #CBCCCB;
  --encre-8: #E7E8E6;
  --porcelaine-70: #B4B5B5;
  --porcelaine-45: #797C7D;
  --porcelaine-20: #3F4245;
  --porcelaine-8: #23262A;

  --bg: var(--porcelaine);
  --fg: var(--encre);
  --fg-2: var(--encre-70);
  --fg-3: var(--encre-45);
  --line: var(--encre-20);
  --surface: var(--encre-8);
  --arrivee: var(--petrole);

  --font: 'General Sans', 'IBM Plex Sans Arabic', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 18px;
  --pill: 100px;
  --pose: cubic-bezier(.2, 0, 0, 1);
  --depart: cubic-bezier(.4, 0, 1, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--encre); --fg: var(--porcelaine); --fg-2: var(--porcelaine-70); --fg-3: var(--porcelaine-45);
    --line: var(--porcelaine-20); --surface: var(--porcelaine-8); --arrivee: var(--petrole-clair);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--font); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { --font: 'IBM Plex Sans Arabic', 'General Sans', Tahoma, sans-serif; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── type ─────────────────────────────────────────── */
.caption { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
html[lang="ar"] .caption { letter-spacing: 0; font-size: 14px; }
.display { font-weight: 700; font-size: clamp(46px, 7.6vw, 108px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.h1 { font-weight: 700; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.h3 { font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
html[lang="ar"] :is(.display, .h1, .h2, .h3) { letter-spacing: 0; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 34em; margin: 0; }
.muted { color: var(--fg-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: var(--pill); border: 2px solid var(--fg);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--pose), background-color 120ms var(--pose), color 120ms var(--pose);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
  border-radius: var(--pill); background: var(--fg); color: var(--bg); text-decoration: none;
  transition: transform 120ms var(--pose);
}
.store:active { transform: scale(.98); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 14px; opacity: .72; letter-spacing: .04em; }
.store strong { display: block; font-size: 17px; line-height: 20px; font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.on-dark .store { background: var(--porcelaine); color: var(--encre); }

/* ── nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 240ms var(--pose);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; color: var(--fg); }
.logo svg { width: 92px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--fg-2); transition: color 120ms var(--pose); }
.nav-links a:hover { color: var(--fg); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.lang button {
  border: 0; background: none; cursor: pointer; height: 32px; min-width: 38px; padding: 0 10px;
  border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--fg-2);
}
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-end { margin-inline-start: auto; }
  .nav-end .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; inset-inline: 0; top: 76px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; font-size: 20px; color: var(--fg); border-bottom: 1px solid var(--surface); }
}

/* ── hero ─────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 128px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { display: grid; gap: 28px; }
.hero .display .soft { color: var(--fg-3); }
.meaning { display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--fg-2); }
.meaning b { color: var(--fg); font-weight: 600; }
.meaning i { font-style: normal; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; }
}

/* ── phone mockup ─────────────────────────────────── */
.phone {
  --w: min(360px, 82vw);
  width: var(--w); aspect-ratio: 9 / 19.2; position: relative;
  border-radius: calc(var(--w) * .15); padding: calc(var(--w) * .035);
  background: var(--encre); box-shadow: 0 40px 80px -30px rgba(16,20,24,.45), 0 0 0 1px var(--porcelaine-20) inset;
}
.phone-screen { position: relative; height: 100%; border-radius: calc(var(--w) * .12); overflow: hidden; background: var(--porcelaine); color: var(--encre); }
.phone-notch { position: absolute; top: calc(var(--w) * .035 + 10px); left: 50%; translate: -50% 0; width: 30%; height: 26px; border-radius: 20px; background: var(--encre); z-index: 3; }
.map { position: absolute; inset: 0; }
.map .road { stroke: var(--encre-8); stroke-width: 10; fill: none; stroke-linecap: round; }
.map .road.minor { stroke-width: 5; }
.map .block { fill: #F1F1EE; }
.map .sea { fill: var(--encre-8); }
.map .route { stroke: var(--encre); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .route-ghost { stroke: var(--encre-20); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 1 9; }
.map .you { fill: var(--encre); }
.map .you-ring { fill: none; stroke: var(--encre); stroke-width: 2; opacity: .25; }
.map .arrive { fill: var(--petrole); opacity: 0; transition: opacity 180ms var(--pose); }
.map.arrived .arrive { opacity: 1; }
.car { transition: none; }
.sheet {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
  background: var(--porcelaine); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 10px 30px -10px rgba(16,20,24,.25), 0 0 0 1px var(--encre-8);
  display: grid; gap: 14px;
}
.sheet-row { display: flex; align-items: center; gap: 12px; }
.sheet-status { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-70); display: flex; align-items: center; gap: 8px; }
html[lang="ar"] .sheet-status { letter-spacing: 0; }
.sheet-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--petrole); }
.sheet-eta { margin-inline-start: auto; font-weight: 700; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sheet-eta small { font-size: 14px; font-weight: 600; color: var(--encre-70); letter-spacing: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--encre-8); display: grid; place-items: center; font-weight: 700; flex: none; }
.sheet-driver { line-height: 1.3; font-size: 15px; }
.sheet-driver b { font-weight: 600; display: block; }
.sheet-driver span { color: var(--encre-70); font-size: 13px; }
.plate { margin-inline-start: auto; border: 1.5px solid var(--encre); border-radius: 8px; padding: 3px 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; direction: ltr; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions span { height: 42px; border-radius: var(--pill); display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--encre-8); }
.sheet-actions span:first-child { background: var(--encre); color: var(--porcelaine); }

/* driver offer mockup */
.offer-screen { background: var(--encre); color: var(--porcelaine); padding: 64px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.offer-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--porcelaine-70); }
.online { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--porcelaine-20); border-radius: var(--pill); padding: 6px 12px; color: var(--porcelaine); font-weight: 600; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--porcelaine); }
.earn { margin-top: 10px; }
.earn .caption { color: var(--porcelaine-70); }
.earn-num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.earn-num small { font-size: 18px; color: var(--porcelaine-70); font-weight: 600; letter-spacing: 0; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 90px; margin-top: 4px; }
.bars i { display: block; background: var(--porcelaine-20); border-radius: 6px 6px 2px 2px; }
.bars i.today { background: var(--porcelaine); }
.offer-card { margin-top: auto; background: var(--porcelaine); color: var(--encre); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; }
.offer-head b { font-size: 18px; }
.offer-price { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.offer-price small { font-size: 13px; color: var(--encre-70); font-weight: 600; }
.offer-stops { display: grid; gap: 10px; font-size: 14px; position: relative; padding-inline-start: 22px; }
.offer-stops::before { content: ''; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--encre-20); }
.offer-stops div { position: relative; }
.offer-stops div::before { content: ''; position: absolute; inset-inline-start: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--porcelaine); border: 2px solid var(--encre); }
.offer-stops div:last-child::before { background: var(--encre); }
.offer-stops span { color: var(--encre-70); font-size: 12px; display: block; }
.offer-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.offer-actions span { height: 46px; border-radius: var(--pill); display: grid; place-items: center; font-weight: 600; font-size: 15px; border: 2px solid var(--encre); }
.offer-actions span:last-child { background: var(--encre); color: var(--porcelaine); }
.timer { height: 4px; border-radius: 4px; background: var(--encre-8); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--encre); transform-origin: left; animation: timer 12s linear infinite; }
html[dir="rtl"] .timer i { transform-origin: right; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── sections ─────────────────────────────────────── */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .caption { grid-column: 1 / -1; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 440px;
  padding: 28px; border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.card .num { font-size: 13px; font-weight: 700; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.card p { margin: 0; color: var(--fg-2); }
.card-art { margin-top: auto; height: 170px; display: grid; place-items: end start; }
.card-art svg { width: 100%; height: 100%; }
.card-art .ink { stroke: var(--fg); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-art .ink-soft { stroke: var(--fg-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 7; }
.card-art .fill { fill: var(--fg); }
.card-art .fill-bg { fill: var(--bg); }
.card-dark { background: var(--encre); color: var(--porcelaine); }
.card-dark p { color: var(--porcelaine-70); }
.card-dark .num { color: var(--porcelaine-45); }
.card-dark .card-art { --fg: var(--porcelaine); --fg-3: var(--porcelaine-45); --bg: var(--encre); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.benefit { padding: 32px 28px 8px 0; display: grid; gap: 14px; align-content: start; }
.benefit + .benefit { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.benefit .icon { width: 28px; height: 28px; stroke: var(--fg); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit p { margin: 0; color: var(--fg-2); font-size: 16px; }
@media (max-width: 960px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit, .benefit + .benefit { padding-inline: 0; border-inline-start: 0; }
  .benefit + .benefit { border-top: 1px solid var(--line); }
}

/* city (dark band) */
.on-dark { background: var(--encre); color: var(--porcelaine); --fg: var(--porcelaine); --fg-2: var(--porcelaine-70); --fg-3: var(--porcelaine-45); --line: var(--porcelaine-20); --surface: var(--porcelaine-8); --bg: var(--encre); }
.city .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.city-copy { display: grid; gap: 28px; }
.districts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.districts li { border: 1px solid var(--porcelaine-20); border-radius: var(--pill); padding: 8px 16px; font-size: 15px; font-weight: 600; }
.districts li.soon { color: var(--porcelaine-45); border-style: dashed; }
.city-map { aspect-ratio: 1 / 1; width: 100%; border-radius: var(--radius); background: var(--porcelaine-8); position: relative; overflow: hidden; }
.city-map svg { width: 100%; height: 100%; }
.city-map .coast { fill: none; stroke: var(--porcelaine-45); stroke-width: 1.5; }
.city-map .ocean-line { fill: none; stroke: var(--porcelaine-20); stroke-width: 1; }
.city-map .street { fill: none; stroke: var(--porcelaine-20); stroke-width: 1.5; stroke-linecap: round; }
.city-map .street.major { stroke: var(--porcelaine-45); stroke-width: 2.5; }
.city-map .pin { fill: var(--porcelaine); }
.city-map .pin-ring { fill: none; stroke: var(--porcelaine); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.city-map text { fill: var(--porcelaine-70); font: 600 13px var(--font); }
.city-map .sea-label { fill: var(--porcelaine-45); font-size: 11px; letter-spacing: .3em; }
@media (prefers-reduced-motion: no-preference) {
  .city-map .pin-ring { animation: ping 3.2s var(--pose) infinite; }
  .city-map .pin-ring:nth-of-type(2n) { animation-delay: 1.1s; }
  .city-map .pin-ring:nth-of-type(3n) { animation-delay: 2.2s; }
}
@keyframes ping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
@media (max-width: 960px) { .city .wrap { grid-template-columns: 1fr; } }

/* drivers */
.drivers .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.drivers-copy { display: grid; gap: 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks svg { width: 22px; height: 22px; stroke: var(--fg); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--fg-2); font-size: 16px; }
@media (max-width: 960px) { .drivers .wrap { grid-template-columns: 1fr; } .drivers .hero-visual { order: 2; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { border-top: 2px solid var(--fg); padding-top: 24px; display: grid; gap: 12px; align-content: start; }
.step .n { font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.step p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 40px; } }

/* faq */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform 240ms var(--pose), background-color 120ms var(--pose); }
.faq summary .plus svg { width: 16px; height: 16px; stroke: var(--fg); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--fg); }
.faq details[open] summary .plus svg { stroke: var(--bg); }
.faq details p { margin: 0 0 24px; color: var(--fg-2); max-width: 40em; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }

/* final cta */
.cta { text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 32px; }
.cta-logo { width: min(520px, 80%); color: var(--fg); }
.cta .stores { justify-content: center; }

/* footer */
.footer { padding-block: 64px 40px; border-top: 1px solid var(--line); font-size: 15px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--fg-2); }
.footer a:hover { color: var(--fg); }
.footer .logo svg { width: 110px; }
.footer .about { color: var(--fg-2); max-width: 24em; margin: 20px 0 0; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
@media (max-width: 860px) { .footer .grid { grid-template-columns: 1fr 1fr; } .footer .grid > :first-child { grid-column: 1 / -1; } }

/* reveal on scroll — pose easing, no bounce */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--pose), transform 600ms var(--pose); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 80ms; } .js .reveal.d2 { transition-delay: 160ms; } .js .reveal.d3 { transition-delay: 240ms; }
}

/* ── legal pages ──────────────────────────────────── */
.legal { padding-block: clamp(48px, 7vw, 96px) 96px; }
.legal .wrap { max-width: 820px; }
.legal .h1 { margin: 16px 0 12px; }
.legal .updated { color: var(--fg-3); font-size: 15px; margin: 0 0 48px; }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 48px 0 12px; }
html[lang="ar"] .legal h2 { letter-spacing: 0; }
.legal p, .legal li { color: var(--fg-2); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--fg); }
.legal [data-lang-block] { display: none; }
html[lang="fr"] .legal [data-lang-block="fr"], html[lang="ar"] .legal [data-lang-block="ar"], html[lang="en"] .legal [data-lang-block="en"] { display: block; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* mockup text never wraps — the phone is a picture, not a layout */
.sheet-status, .sheet-eta, .plate, .sheet-driver b, .sheet-driver span { white-space: nowrap; }
.sheet-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; letter-spacing: .1em; }
.sheet-status > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.sheet-driver { min-width: 0; overflow: hidden; }
.sheet-driver span { display: block; overflow: hidden; text-overflow: ellipsis; }
.plate { flex: none; }
/* screenshots / no-JS crawlers: everything visible */
@media print { .js .reveal { opacity: 1; transform: none; } }

/* the sheet's single grid column must not grow to its no-wrap content (overflowed on iPhone) */
.sheet { grid-template-columns: minmax(0, 1fr); }
.sheet-row { min-width: 0; }
.sheet-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet-actions span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 8px; }
@media (max-width: 480px) {
  .sheet { padding: 14px; gap: 12px; inset-inline: 8px; bottom: 8px; }
  .sheet-status { font-size: 10px; letter-spacing: .08em; }
  .sheet-eta { font-size: 22px; }
  .sheet-eta small { font-size: 12px; }
  .avatar { width: 36px; height: 36px; font-size: 14px; }
  .sheet-driver { font-size: 14px; }
  .sheet-driver span { font-size: 12px; }
  .plate { font-size: 11px; padding: 2px 6px; }
  .sheet-actions span { height: 38px; font-size: 13px; }
  .offer-screen { padding: 56px 14px 14px; }
  .earn-num { font-size: 36px; }
  .offer-card { padding: 14px; gap: 12px; }
}
