@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("fonts/noto-kufi-arabic-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* BARQ brand: yellow, black and white. Arabic first. One loud thing per page: the yellow Riyadh hero. */
:root {
  --amber: #ffb406;
  --ink: #191919;
  --paper: #ffffff;
  --chalk: #f3f3f1;
  --muted: #5c5c5c;
  --line: rgba(25, 25, 25, .12);
  --muted-on-ink: #bdbdbd;
  --body: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --display: "Archivo", "Noto Kufi Arabic", system-ui, sans-serif;
  --radius: 14px;
  /* Al Sadu weave and the stepped Najdi parapet, drawn in the brand colours. */
  --sadu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Crect width='56' height='28' fill='%23191919'/%3E%3Cpath d='M0 28L14 14L28 28L42 14L56 28Z' fill='%23ffb406'/%3E%3Cpath d='M0 0L14 14L28 0L42 14L56 0Z' fill='%23fff'/%3E%3Cpath d='M14 9L19 14L14 19L9 14ZM42 9L47 14L42 19L37 14Z' fill='%23191919'/%3E%3Cpath d='M28 11L31 14L28 17L25 14Z' fill='%23ffb406'/%3E%3C/svg%3E");
  --parapet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M4 16V12H8V8H12V4H20V8H24V12H28V16Z' fill='%23191919'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--paper); }
[dir="rtl"] body { font-size: 18px; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.01em; }
[dir="ltr"] h1, [dir="ltr"] h2 { font-stretch: 88%; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(42px, 5.4vw, 78px); line-height: 1.04; }
[dir="rtl"] h1 { line-height: 1.3; }
h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.1; }
[dir="rtl"] h2 { line-height: 1.4; }
h3 { font-size: 21px; line-height: 1.35; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 2px solid var(--ink); border-radius: 999px; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s; }
.button:hover { transform: translateY(-1px); }
.button.ink { background: var(--ink); color: var(--paper); }
.button.light { background: var(--paper); color: var(--ink); }
.ink .button.ink, .platform .button.ink { background: var(--ink); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.text-link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* Header */
.site-header { position: relative; z-index: 3; }
.bar { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 38px; width: auto; }
.brand .word { height: 19px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-inline-end: auto; font-weight: 500; font-size: 16px; }
.site-nav a, .signin, .lang { text-decoration: none; }
.site-nav a:hover, .signin:hover, .lang:hover { text-decoration: underline; text-underline-offset: 5px; }
.bar-actions { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: 16px; }

/* Hero: Riyadh in brand yellow, couriers on the roads */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--amber); min-height: min(100svh, 900px); padding-bottom: 56px; }
.riyadh { direction: ltr; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.riyadh text { font-family: var(--body); }
.riyadh .trail { stroke-linecap: round; stroke-linejoin: round; }
.riyadh .door { transition: fill .3s; }
.riyadh .door.arrived { fill: var(--ink); }
.riyadh .chip text { font-family: var(--body); font-variant-numeric: tabular-nums; }
.riyadh .chip.done rect { fill: var(--paper); }
.riyadh .chip.done text { fill: var(--ink); }
.scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--amber) 0 30%, rgba(255, 180, 6, .86) 46%, rgba(255, 180, 6, 0) 66%); }
[dir="rtl"] .scrim { background: linear-gradient(270deg, var(--amber) 0 30%, rgba(255, 180, 6, .86) 46%, rgba(255, 180, 6, 0) 66%); }
.hero-body { padding-top: clamp(16px, 4vh, 56px); }
.hero-body > * { max-width: 600px; }
.hero h1 { max-width: 11ch; }
[dir="ltr"] .hero h1 { max-width: 14ch; }
.hero .sub { margin-top: 16px; font-size: 20px; max-width: 34ch; }
.cta-note { margin-top: 12px; font-size: 15px; font-weight: 500; }
.map-caption { position: absolute; inset-inline-end: 24px; bottom: 16px; font-size: 13px; opacity: .55; margin: 0; }

.track { margin-top: 28px; padding: 20px; background: var(--paper); border-radius: var(--radius); max-width: 520px; box-shadow: 0 18px 40px -18px rgba(25, 25, 25, .45); }
.track label { display: block; font: 800 19px/1.3 var(--display); margin-bottom: 10px; }
.track-field { display: flex; gap: 10px; }
.track-field input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: 10px; font: 500 17px var(--body); color: var(--ink); background: var(--chalk); }
.track-field input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.track-field .button { border-radius: 10px; }
.track-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.sadu { height: 28px; background: var(--sadu) repeat-x; background-size: 56px 28px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.chalk { background: var(--chalk); }
.section.ink { background: var(--ink); color: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.lede { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.ink .lede { color: var(--muted-on-ink); }
.najdi::before { content: ""; position: absolute; inset-inline: 0; top: -15px; height: 16px; background: var(--parapet) repeat-x; background-size: 32px 16px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

/* Services on one time axis */
.ruler { --name: 230px; }
.axis { position: relative; height: 28px; margin-inline-start: calc(var(--name) + 32px); border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.axis span { position: absolute; inset-inline-start: calc(var(--at) * 1%); transform: translateX(-50%); bottom: 6px; white-space: nowrap; }
[dir="rtl"] .axis span { transform: translateX(50%); }
.axis span:first-child { transform: none; }
.axis span:last-child { transform: none; inset-inline-start: auto; inset-inline-end: 0; }
.tiers { list-style: none; margin: 0; padding: 0; }
.tier { display: grid; grid-template-columns: var(--name) 1fr; column-gap: 32px; row-gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tier-name h3 { font-size: 26px; }
.promise { font-weight: 700; color: var(--muted); }
.track-bar { position: relative; height: 14px; background: var(--chalk); border-radius: 999px; }
.track-bar .fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--to, 100) * 1%); background: var(--ink); border-radius: 999px; }
.track-bar .fill::after { content: ""; position: absolute; inset-inline-end: -6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--amber); border: 4px solid var(--ink); }
.tier .note { grid-column: 2; color: var(--muted); font-size: 16px; }
.tier.open .fill { background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 24px); }
.tier.open .fill::after { display: none; }
.tier.custom { margin-top: 28px; padding: 28px; border: 0; border-radius: var(--radius); background: var(--amber); grid-template-columns: calc(var(--name) - 28px) 1fr; }
.tier.custom .promise { color: var(--ink); font-size: 18px; }
.tier.custom output { font: 800 22px var(--display); }
.tier.custom .track-bar { background: rgba(25, 25, 25, .14); }
.tier.custom .fill::after { display: none; }
.tier.custom input[type="range"] { position: absolute; inset: -14px -14px; width: calc(100% + 28px); height: 42px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.tier.custom input[type="range"]::-webkit-slider-runnable-track { height: 42px; background: transparent; }
.tier.custom input[type="range"]::-moz-range-track { height: 42px; background: transparent; }
.tier.custom input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: 4px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); }
.tier.custom input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 5px solid var(--ink); }
.tier.custom .note { color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; margin-top: 10px; }
.tier.custom .note p { max-width: 54ch; }
.partners { margin-top: 56px; }
.partners h3 { font-size: 16px; color: var(--muted); font-family: var(--body); font-weight: 700; }
.partners ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font: 800 26px var(--display); }

/* Sign-up in five minutes: three equal columns, each under its stretch of the stopwatch */
.stopwatch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.stopwatch .seg { position: relative; height: 14px; background: var(--ink); border-radius: 999px; }
.stopwatch .seg:nth-child(3) { background: var(--amber); }
.stopwatch .tick { position: absolute; top: 22px; inset-inline-start: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.stopwatch .tick.end { inset-inline-start: auto; inset-inline-end: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; align-items: flex-start; }
.steps h3 { margin-top: 24px; font-size: 24px; }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 34ch; flex: 1; }
.steps .time { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.vignette { align-self: stretch; display: flex; flex-direction: column; gap: 10px; justify-content: center; height: 190px; padding: 18px; background: var(--paper); border-radius: var(--radius); border: 2px solid var(--ink); }
.vignette .field { padding: 7px 12px; border-radius: 8px; background: var(--chalk); font-size: 14px; color: var(--muted); }
.vignette .otp { display: flex; gap: 6px; justify-content: flex-end; }
[dir="rtl"] .vignette .otp { justify-content: flex-start; }
.vignette .otp i { font-style: normal; width: 34px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--ink); font-weight: 700; }
.vignette .signature { height: 64px; width: 100%; }
.vignette .check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.vignette .check::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--amber); font-size: 15px; }
.vignette .mini-order { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: var(--chalk); font-size: 15px; }
.vignette .sent { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--amber); font-weight: 700; font-size: 14px; }
.signin-prompt a { font-weight: 700; text-underline-offset: 4px; }

/* BARQ 2 */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin: 40px 0 0; }
.features dt { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.features dt::before { content: ""; width: 12px; height: 12px; background: var(--amber); transform: rotate(45deg); flex: none; }
.features dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.ink .features dd { color: var(--muted-on-ink); }
.features dd a { color: inherit; font-weight: 700; }
.batch { margin: 0; }
.batch svg { width: 100%; height: auto; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; }
.batch figcaption { margin-top: 14px; font: 800 20px var(--display); color: var(--amber); }

/* Couriers */
.couriers .split { align-items: start; }
.fleet { position: relative; margin: 72px 0 0; padding-top: 150px; }
.fleet .skyline { position: absolute; inset-inline: 0; bottom: 9px; width: 100%; height: 340px; }
.fleet .skyline g { fill-opacity: .13; }
.vehicles { position: relative; display: grid; grid-template-columns: 1.25fr 1fr 1fr .8fr; align-items: end; gap: 0; border-bottom: 3px solid var(--ink); padding-bottom: 6px; }
.vehicles img { width: 100%; height: auto; }
.vehicles .caddy, .vehicles .car { margin-inline-start: -8%; width: 108%; }
.features.list { grid-template-columns: 1fr; gap: 0; }
.features.list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.soon { font-weight: 700; padding: 12px 20px; border: 2px dashed var(--ink); border-radius: 999px; }

/* Platform, coming soon */
.platform { background: var(--chalk); padding: 64px 0 80px; }
.platform-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.platform h2 { font-size: clamp(26px, 3vw, 38px); }
.platform p { margin-top: 10px; max-width: 60ch; font-size: 18px; }
.tag { align-self: start; padding: 6px 16px; border-radius: 999px; background: var(--ink); color: var(--amber); font-weight: 700; font-size: 15px; }

/* Footer */
.site-footer { position: relative; background: var(--ink); color: var(--paper); padding: 72px 0 40px; font-size: 16px; }
.legacy { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: center; padding: 24px 28px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); margin-bottom: 64px; }
.legacy h2 { font-size: 20px; }
.legacy p { margin-top: 6px; color: var(--muted-on-ink); max-width: 60ch; }
.legacy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legacy a { color: var(--amber); font-weight: 700; text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .word { height: 28px; width: auto; }
.footer-brand p { margin-top: 16px; color: var(--muted-on-ink); }
.site-footer h2 { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--amber); letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--muted-on-ink); font-size: 14px; }

/* Privacy page: Arabic shown first, English at #en */
.doc-top { background: var(--amber); padding-bottom: 48px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-top: 40px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 64px); }
.doc-head p { margin-top: 8px; font-weight: 500; }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a { padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; text-decoration: none; }
.doc { max-width: 760px; padding: 64px 0 96px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
[dir="rtl"] .doc h2 { line-height: 1.5; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 8px; }
.doc code { font-size: .9em; }
#en.doc, .title-en { direction: ltr; text-align: left; margin-left: 0; margin-right: auto; }
.doc-page:has(#en:target) .doc-head { flex-direction: row-reverse; }
.doc-page .title-en, .doc-page #en { display: none; }
.doc-page:has(#en:target) .title-en, .doc-page:has(#en:target) #en { display: block; }
.doc-page:has(#en:target) .title-ar, .doc-page:has(#en:target) #ar { display: none; }
.doc-page .lang-switch a:first-child, .doc-page:has(#en:target) .lang-switch a:last-child { background: var(--ink); color: var(--paper); }
.doc-page:has(#en:target) .lang-switch a:first-child { background: none; color: var(--ink); }

/* Tablet */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .bar-actions { margin-inline-start: auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .platform-row { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
}

/* Phone: the map gets its own band above the words */
@media (max-width: 760px) {
  body, [dir="rtl"] body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .bar { min-height: 68px; gap: 12px; }
  .signin { display: none; }
  .bar-actions { gap: 12px; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .riyadh { top: 68px; height: 330px; }
  .scrim, [dir="rtl"] .scrim { background: linear-gradient(180deg, var(--amber) 0 68px, rgba(255, 180, 6, 0) 90px 280px, var(--amber) 398px); }
  .hero-body { padding-top: 250px; }
  .hero .sub { font-size: 18px; }
  .map-caption { top: 300px; bottom: auto; }
  .track { box-shadow: none !important; }
  .track-field { flex-direction: column; }
  .ruler { --name: 0px; }
  .axis { margin-inline-start: 0; font-size: 12px; }
  .tier, .tier.custom { grid-template-columns: 1fr; }
  .tier .note { grid-column: 1; }
  .tier.custom { padding: 22px 18px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .stopwatch { display: none; }
  .features { grid-template-columns: 1fr; }
  .fleet { padding-top: 70px; margin-top: 40px; }
  .fleet .skyline { height: 160px; }
  .vehicles { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .vehicles .caddy, .vehicles .car { margin: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
