/* Layout: an orange first screen with one hook and one call to action, then
   white sections and black bands: BipBip's orange, white and black. The
   token names (--yellow, --orange, --sun) are kept so every rule below still
   reads its colour from one place. Photos sit small, in a white mat. */
:root {
  color-scheme: light;
  --yellow: #FF8A1F;          /* BipBip orange; ink on it: 6.8:1 */
  --orange: #F26B0F;          /* deeper orange, gradient end */
  --sun: #FFB066;             /* light orange */
  --yellow-ink: #5A2A00;      /* quieter text on orange: 5.1:1 */
  --ink: #15171C;
  --ink-2: #3A3F4A;           /* body on white: 10.6:1 */
  --ink-3: #565C68;           /* secondary on white: 6.6:1, on tint: 6.2:1 */
  --white: #FFFFFF;
  --tint: #F5F6F7;
  --rule: #E3E5E8;
  --ink-rule: #2C3038;
  --ink-mat: #23262D;
  --on-ink: #F3F4F6;
  --on-ink-2: #B9BEC7;        /* on ink: 9.7:1 */
  --green: #0E7A55;
  --land: #ECEDEF;

  --font-ar: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-lat: "Manrope", "Segoe UI", system-ui, sans-serif;

  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.4rem, 1.15rem + .9vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.3vw, 3.9rem);

  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 7vw, 96px);
  --radius: 24px;
  --mat: 0 1px 0 rgba(21, 23, 28, .04), 0 22px 44px -26px rgba(21, 23, 28, .38);
  --ease: cubic-bezier(.23, 1, .32, 1);        /* strong ease-out */
  --slide-w: clamp(272px, 30vw, 372px);

  --z-sticky: 10;
  --z-skip: 20;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font-lat); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- icons ---------- */
svg use, .ico, .ico-lg, .brand-mark svg, .tile-ico svg, .t-ico svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 28px; height: 28px; flex: none; color: var(--ink); }
.back { transform: scaleX(-1); }
html[dir="rtl"] .back { transform: none; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- header ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--z-sticky);
  background: var(--yellow);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--rule), 0 10px 30px -24px rgba(21, 23, 28, .35); }
.nav:not(.scrolled) .lang { background: rgba(255, 255, 255, .5); }
.nav:not(.scrolled) .nav-links a { color: var(--ink); }
.nav:not(.scrolled) .brand-mark { background: var(--ink); color: var(--yellow); }
.nav-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2.1; }
.brand-name { font-family: var(--font-lat); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 26px); margin-inline-start: auto; }
.nav-links a {
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  padding-block: 10px; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 50% 100% / 0 3px;
  transition: background-size .25s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background-size: 100% 3px; color: var(--ink); }
.lang { display: flex; gap: 2px; background: var(--tint); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink);
  min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.lang button:active { transform: scale(.94); }
@media (hover: hover) { .lang button:hover:not([aria-pressed="true"]) { background: var(--rule); } }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.lang button[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.97); }
  .btn-ink:hover { box-shadow: 0 16px 30px -14px rgba(21, 23, 28, .75); }
  .btn-line:hover { background: var(--ink); color: var(--white); }
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 1.05rem; }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 0 10px 24px -14px rgba(21, 23, 28, .7); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ---------- photos: small, matted, quiet ---------- */
.media { position: relative; overflow: hidden; background: var(--tint); }
.media img, .slide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--yellow); overflow: hidden;
  padding-block: clamp(20px, 4vw, 48px) clamp(80px, 9vw, 130px);
}
/* the white wave the page rises out of */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 80px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C240 8 480 0 720 22s480 56 720 22V80H0z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-art { order: -1; min-width: 0; display: grid; place-items: center; }
.hero-copy { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--white); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14, 122, 85, .16); }
h1 { font-size: var(--step-4); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; margin-block: 18px; }
html[lang="ar"] h1 { font-weight: 900; letter-spacing: 0; line-height: 1.22; }
h1 > span { display: block; }
h1 .hl {
  width: fit-content; padding-inline: .06em;
  background: linear-gradient(transparent 60%, var(--white) 60%, var(--white) 92%, transparent 92%);
}
.lead { font-size: var(--step-1); font-weight: 600; color: var(--ink); max-width: 36ch; margin-bottom: 28px; line-height: 1.5; }
html[lang="ar"] .lead { line-height: 1.8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-line { background: rgba(255, 255, 255, .35); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1.5px solid rgba(21, 23, 28, .14); }
.trust li { display: flex; align-items: center; gap: 12px; }
.t-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--white); color: var(--ink); display: grid; place-items: center; }
.t-ico svg { width: 22px; height: 22px; }
.trust b { display: block; font-size: 1.12rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
html[dir="rtl"] .trust b[dir="ltr"] { text-align: right; }
.trust small { display: block; color: var(--yellow-ink); font-weight: 600; font-size: .86rem; line-height: 1.3; }

/* the burger floats on the hero's own yellow; its edges dissolve into it */
.burger { margin: 0; width: min(440px, 100%); }
.burger img {
  width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-12px); } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes burger-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.burger { animation: burger-in 1s var(--ease) .05s both; }

/* ---------- shared section type ---------- */
.block { padding-block: var(--section); }
.tint { background: var(--tint); }
.ink { background: var(--ink); color: var(--on-ink); }
h2 { font-size: var(--step-3); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.3; }
.ink h2 { color: var(--white); }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 800; }
.sub { font-size: 1.08rem; color: var(--ink-2); max-width: 54ch; margin-top: 12px; }
.ink .sub { color: var(--on-ink-2); }
.body { font-size: 1.05rem; color: var(--ink-2); max-width: 56ch; margin-top: 14px; }
.head { margin-bottom: clamp(26px, 4vw, 40px); }
.head.center { text-align: center; }
.head.center .sub { margin-inline: auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tile-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.tile-ico svg { width: 24px; height: 24px; }

/* ---------- services as slides ---------- */
.slide-nav { display: flex; gap: 10px; flex: none; }
.round {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.round:active { transform: scale(.94); }
@media (hover: hover) { .round:hover { background: var(--ink); color: var(--white); } }
.slider { position: relative; }
.slides-track {
  --edge: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--edge); scrollbar-width: none;
  padding-inline: var(--edge); padding-block: 14px 26px;
}
.slides-track::-webkit-scrollbar { display: none; }
.slides-track:focus-visible { outline-offset: -3px; }
.slide {
  flex: 0 0 var(--slide-w); scroll-snap-align: start; display: flex; flex-direction: column; cursor: pointer;
  background: var(--white); border: 1px solid var(--rule); border-radius: 28px; padding: 10px;
  box-shadow: var(--mat);
  transition: transform .5s var(--ease), background-color .45s var(--ease), box-shadow .5s var(--ease), border-color .45s var(--ease);
}
.slide:not(.is-active) .slide-photo img { filter: saturate(.85); }
.slide.is-active {
  transform: translateY(-6px); border-color: transparent;
  background: linear-gradient(160deg, var(--yellow), var(--orange));
  box-shadow: 0 30px 60px -32px rgba(150, 85, 0, .6);
}
@media (hover: hover) and (pointer: fine) { .slide:not(.is-active):hover { transform: translateY(-3px); } }
.slide-photo { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--tint); }
.slide-body { padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.slide-n { font-weight: 800; font-size: .82rem; color: var(--ink-3); letter-spacing: .08em; }
.slide.is-active .slide-n { color: var(--yellow-ink); }
html[dir="rtl"] .slide-n { text-align: right; }
.slide h3 { display: flex; align-items: center; gap: 10px; font-size: 1.28rem; }
.slide p { color: var(--ink-2); }
.slide.is-active p { color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.chips li { border: 1.5px solid rgba(21, 23, 28, .3); border-radius: 999px; padding: 2px 11px; font-weight: 700; font-size: .84rem; }
.chips li:last-child { border-style: dashed; }
.slides-dots { display: flex; justify-content: center; gap: 2px; }
.dot-btn { width: 30px; height: 30px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.dot-btn::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--rule); transition: width .3s var(--ease), background-color .3s var(--ease); }
.dot-btn[aria-current]::before { width: 26px; background: var(--ink); }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.num-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 30px; }
.num-group h3 { display: inline-block; font-size: .92rem; color: var(--on-ink); background: var(--ink-rule); padding: 5px 14px; border-radius: 999px; }
.num-group.goal h3 { background: var(--yellow); color: var(--ink); }
.num-group dl { margin: 14px 0 0; display: grid; }
.num-group dl > div { display: flex; flex-direction: column; border-top: 1px solid var(--ink-rule); padding-block: 12px; }
.num-group dd { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num-group.goal dd { color: var(--yellow); }
html[dir="rtl"] .num-group dd[dir="ltr"] { text-align: right; }
.num-group dt { color: var(--on-ink-2); margin-top: 6px; font-size: .95rem; }
.num-photo { margin: 0; justify-self: center; width: min(420px, 100%); }
.num-photo .media { aspect-ratio: 4 / 3; border-radius: 26px; border: 8px solid var(--ink-mat); }
.num-photo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--on-ink-2); font-weight: 600; font-size: .95rem; }
.num-photo figcaption .ico { color: var(--yellow); }

/* ---------- app showcase: four devices laid on a tilted plane ---------- */
.showcase { position: relative; overflow: hidden; }
.iso-stage { position: relative; height: 640px; }
.iso-stage::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 31, .5), rgba(242, 107, 15, .16) 60%, transparent);
  filter: blur(10px);
}
.iso {
  position: absolute; left: 50%; top: 50%; display: flex; gap: 44px; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(42deg) rotateZ(-30deg) scale(.86);
}
html[dir="rtl"] .iso { transform: translate(-50%, -50%) rotateX(42deg) rotateZ(30deg) scale(.86); }
.iso-col { display: flex; flex-direction: column; gap: 44px; transform-style: preserve-3d; }
.iso-col-2 { margin-top: 160px; }
.dev {
  position: relative; width: 236px; height: 486px; padding: 9px; border-radius: 40px; background: var(--white);
  box-shadow: 0 0 0 1px #E9E9EB, 0 2px 0 #E9E9EB, 30px 34px 60px -16px rgba(120, 72, 0, .32);
}
.dev { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .dev:hover { transform: translateZ(26px); box-shadow: 0 0 0 1px #E9E9EB, 0 2px 0 #E9E9EB, 48px 56px 70px -18px rgba(120, 72, 0, .3); }
}
/* the four devices settle onto the plane once, when the showcase arrives */
@keyframes dev-in { from { opacity: 0; transform: translateZ(70px) translateY(40px); } }
.iso-stage.play .dev { animation: dev-in .9s var(--ease) both; }
.iso-stage.play .iso-col-2 .dev:first-child { animation-delay: .08s; }
.iso-stage.play .iso-col:first-child .dev:last-child { animation-delay: .16s; }
.iso-stage.play .iso-col-2 .dev:last-child { animation-delay: .24s; }
.dev::before { content: ""; position: absolute; top: 17px; left: 50%; width: 64px; height: 17px; margin-left: -32px; border-radius: 10px; background: var(--ink); z-index: 2; }
.dev-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--tint); font-size: 12px; }
.dev-screen svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* customer home */
.s-home { background: linear-gradient(170deg, var(--yellow), var(--orange)); padding: 46px 14px 14px; }
.sh-top { display: flex; align-items: center; justify-content: space-between; }
.sh-loc { display: flex; align-items: center; gap: 8px; }
.sh-loc > svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.sh-loc small { display: block; font-size: 9px; color: var(--yellow-ink); line-height: 1.2; }
.sh-loc b { font-size: 12px; line-height: 1.2; }
.sh-bag { width: 32px; height: 32px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.sh-bag svg { width: 17px; height: 17px; }
.sh-search { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--white); border-radius: 999px; padding: 10px 14px; color: var(--ink-3); font-size: 11px; }
.sh-search svg { width: 15px; height: 15px; flex: none; }
.bubbles { position: relative; height: 270px; margin: 16px -14px 0; }
.bub {
  position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 10px 18px -10px rgba(110, 60, 0, .55);
  left: calc(50% - 32px + var(--x)); top: calc(50% - 32px + var(--y));
}
.bub svg { width: 22px; height: 22px; }
.bub i { font-style: normal; font-size: 8.5px; font-weight: 800; line-height: 1.1; }
.bub-c { --x: 0px; --y: 0px; width: 84px; height: 84px; left: calc(50% - 42px); top: calc(50% - 42px); background: var(--ink); color: var(--white); }
.bub-c svg { color: var(--yellow); width: 26px; height: 26px; }
.b1 { --x: 0px; --y: -82px; }
.b2 { --x: 71px; --y: -41px; }
.b3 { --x: 71px; --y: 41px; }
.b4 { --x: 0px; --y: 82px; }
.b5 { --x: -71px; --y: 41px; }
.b6 { --x: -71px; --y: -41px; }

/* rider: a new offer */
.s-driver { background: linear-gradient(170deg, var(--sun), var(--yellow)); padding: 44px 16px 16px; display: flex; flex-direction: column; }
.sd-online { align-self: flex-start; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; background: var(--white); padding: 6px 11px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.sd-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sd-hero { display: grid; place-items: center; height: 170px; }
.sd-ring { width: 124px; height: 124px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255, 255, 255, .45), 0 0 0 28px rgba(255, 255, 255, .2); }
.sd-ring svg { width: 58px; height: 58px; stroke-width: 1.6; }
.sd-k { font-size: 11px; font-weight: 800; color: var(--yellow-ink); }
.sd-name { font-size: 19px; line-height: 1.3; }
.sd-facts { display: flex; gap: 6px; margin: 10px 0 0; }
.sd-facts span { white-space: nowrap; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .75); padding: 4px 9px; border-radius: 9px; }
.sd-facts .fee { background: var(--ink); color: var(--yellow); }
.sd-actions { margin-top: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 7px; }
.sd-actions span { text-align: center; font-size: 12px; font-weight: 800; padding: 11px 0; border-radius: 14px; }
.sd-actions .ok { background: var(--ink); color: var(--white); }
.sd-actions .no { background: rgba(255, 255, 255, .8); }

/* customer: live tracking */
.s-track { background: var(--land); }
.trk-map {
  position: absolute; inset: 0 0 42% 0;
  background:
    linear-gradient(90deg, transparent 46%, #fff 46% 52%, transparent 52%),
    linear-gradient(0deg, transparent 30%, #fff 30% 35%, transparent 35% 70%, #fff 70% 75%, transparent 75%),
    linear-gradient(90deg, transparent 15%, #fff 15% 19%, transparent 19% 80%, #fff 80% 84%, transparent 84%),
    var(--land);
}
.trk-route { position: absolute; inset: 26% 18% 24% 18%; border: 4px solid var(--ink); border-top: 0; border-inline-end: 0; border-radius: 0 0 0 18px; }
html[dir="rtl"] .trk-route { border-radius: 0 0 18px 0; }
.trk-pin { position: absolute; width: 18px; height: 18px; border-radius: 6px; background: var(--ink); }
.trk-a { top: calc(26% - 9px); inset-inline-start: calc(18% - 7px); }
.trk-b { bottom: calc(24% - 9px); inset-inline-end: calc(18% - 9px); background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; }
.trk-moto { position: absolute; bottom: calc(24% - 16px); inset-inline-start: 42%; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.trk-moto svg { width: 18px; height: 18px; }
.trk-sheet { position: absolute; inset-inline: 0; bottom: 0; height: 46%; background: var(--white); border-radius: 22px 22px 0 0; padding: 16px 16px 18px; }
.trk-sheet small { color: var(--ink-3); font-size: 10px; display: block; }
.trk-eta { font-size: 22px; display: block; line-height: 1.2; }
html[dir="rtl"] .trk-eta { text-align: right; }
.trk-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 6px; }
.trk-rail i { height: 4px; border-radius: 4px; background: var(--rule); }
.trk-rail i.on { background: var(--green); }
.trk-sheet p { font-size: 11px; font-weight: 700; color: var(--green); }
.trk-driver { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.trk-driver .av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.trk-driver b { font-size: 12px; display: block; line-height: 1.2; }
.trk-call { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.trk-call svg { width: 15px; height: 15px; }

/* partner: orders console */
.s-partner { padding: 44px 12px 12px; }
.ptn-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.ptn-head b { font-size: 16px; }
.ptn-badge { background: var(--orange); font-weight: 800; font-size: 11px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; }
.ptn-card { background: var(--white); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.ptn-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ptn-row b { font-size: 12px; white-space: nowrap; }
.ptn-card p { font-size: 10.5px; color: var(--ink-3); margin: 6px 0 10px; }
html[dir="rtl"] .ptn-card p[dir="ltr"] { text-align: right; }
.chip { white-space: nowrap; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.chip-new { background: var(--yellow); }
.chip-cook { background: #DCEFE6; color: #0B5E42; }
.ptn-btn { background: var(--ink); color: var(--white); font-size: 11px; font-weight: 800; padding: 6px 14px; border-radius: 999px; }
.ptn-today { background: var(--ink); color: var(--white); border-radius: 16px; padding: 12px 14px; }
.ptn-today small { font-size: 10px; color: var(--on-ink-2); display: block; }
.ptn-today b { font-size: 20px; color: var(--yellow); display: block; }
html[dir="rtl"] .ptn-today b[dir="ltr"] { text-align: right; }

.modes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.modes li { display: flex; gap: 16px; align-items: flex-start; }
.modes p { color: var(--ink-2); margin-top: 4px; }

/* ---------- join ---------- */
.join { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jcard { min-width: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 28px; padding: 10px; box-shadow: var(--mat); }
.jcard .media { aspect-ratio: 16 / 9; border-radius: 20px; }
.jbody { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 16px 16px; }
.jbody h3 { font-size: 1.3rem; }
.jbody p { color: var(--ink-2); }
.jbody .btn, .tag-hiring { margin-top: auto; }
.tag-hiring { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--yellow); font-weight: 800; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.values { list-style: none; margin: 24px 0 0; padding: 0; }
.values li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.values li:first-child { border-top: 1.5px solid var(--ink); }
.values h3 { font-size: 1.15rem; }
.values p { color: var(--ink-2); margin-top: 4px; }
.about-photo { margin: 0; justify-self: center; width: min(440px, 100%); padding: 10px; background: var(--white); border-radius: 28px; box-shadow: var(--mat); }
.about-photo .media { aspect-ratio: 4 / 3; border-radius: 20px; }

/* ---------- start: the closing call ---------- */
.start {
  position: relative; overflow: hidden; text-align: center; padding-block: clamp(60px, 8vw, 104px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%2315171C' stroke-opacity='.09' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(14 16) rotate(-12 18 18) scale(1.5)'%3E%3Cpath d='M4 10a8 6 0 0 1 16 0z M3.5 14h17 M5 17.5h14a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 5 17.5z'/%3E%3C/g%3E%3Cg transform='translate(108 20) rotate(14 18 18) scale(1.5)'%3E%3Cpath d='M5 8h14l-1 12H6z M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/g%3E%3Cg transform='translate(60 92) rotate(-8 18 18) scale(1.5)'%3E%3Cpath d='M3.5 7.5 12 3l8.5 4.5v9L12 21l-8.5-4.5z M3.5 7.5 12 12l8.5-4.5 M12 12v9'/%3E%3C/g%3E%3Cg transform='translate(132 112) rotate(10 18 18) scale(1.4)'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/g%3E%3Cg transform='translate(4 124) rotate(-16 18 18) scale(1.4)'%3E%3Ccircle cx='6' cy='17' r='2.6'/%3E%3Ccircle cx='18' cy='17' r='2.6'/%3E%3Cpath d='M8.6 17h6.8l2-6h-4M12 11H8.5L6 14.5M15 6h2.5l1 5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 180px 180px,
    linear-gradient(170deg, var(--yellow) 0%, var(--orange) 100%);
}
.start-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.start h2 { font-size: var(--step-4); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
html[lang="ar"] .start h2 { letter-spacing: 0; line-height: 1.3; }
.start p { font-size: var(--step-1); max-width: 40ch; }
/* the brand signature: the scooter's two beeps, said once, in ink on orange */
.start .sig { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: var(--step-1); padding: 8px 20px; border-radius: 999px; max-width: none; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--white); cursor: default; }
html[dir="rtl"] .store { padding: 8px 16px 8px 22px; }
.store svg { width: 28px; height: 28px; }
.store svg use { fill: currentColor; stroke: none; }
.store > span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store small { font-size: .74rem; color: var(--on-ink-2); }
.store b { font-family: var(--font-lat); font-size: 1.15rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq > div { border-top: 1.5px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 800; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
@media (hover: hover) { summary:hover::after { background-color: var(--yellow); } }
details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
details p { color: var(--ink-2); padding-bottom: 24px; max-width: 62ch; margin-top: -6px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-2); padding-block: 64px 28px; }
.foot .brand-mark { background: var(--yellow); color: var(--ink); }
.foot .brand-name { color: var(--white); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-tag { margin-top: 14px; max-width: 38ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot nav a { text-decoration: none; font-weight: 600; color: var(--on-ink); padding-block: 8px; }
.foot nav a:hover { color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-rule); font-size: .9rem; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .lang { margin-inline-start: auto; }
}
@media (max-width: 980px) {
  .iso { transform: translate(-50%, -50%) rotateX(42deg) rotateZ(-30deg) scale(.7); }
  html[dir="rtl"] .iso { transform: translate(-50%, -50%) rotateX(42deg) rotateZ(30deg) scale(.7); }
  .iso-stage { height: 540px; }
}
@media (max-width: 900px) {
  .hero-grid, .numbers, .about, .faq { grid-template-columns: 1fr; }
  .burger { width: min(320px, 80%); }
  .join, .modes { grid-template-columns: 1fr; }
  .jcard .media { aspect-ratio: 16 / 8; }
}
@media (max-width: 700px) {
  /* Flat on a phone: a tilted plane this small turns the screens to noise. */
  .iso, html[dir="rtl"] .iso { transform: translate(-50%, -50%) scale(.62); }
  .iso-col-2 { margin-top: 90px; }
  .iso-stage { height: 680px; }
  .num-groups { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .slide-nav { display: none; }      /* phones swipe */
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .burger { width: min(270px, 74%); }
  .btn { width: 100%; }
  .hero .cta-row { width: 100%; }
  .trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding-top: 20px; }
  .trust li { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .t-ico { width: 38px; height: 38px; border-radius: 12px; }
  .trust b { font-size: 1rem; }
  html[dir="rtl"] .trust b[dir="ltr"] { text-align: center; }
  .trust small { font-size: .78rem; }
  .slides-track { align-items: flex-start; }
  .iso, html[dir="rtl"] .iso { transform: translate(-50%, -50%) scale(.56); }
  .iso-stage { height: 620px; }
}
@media (max-width: 380px) {
  .iso, html[dir="rtl"] .iso { transform: translate(-50%, -50%) scale(.5); }
  .iso-stage { height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
