/* Courier (agent A, round 4): one parcel from Noor to Zahraa in the courier's small car; he collects the cash
   at her door and sends it to Noor by transfer, which lands in her bank. The camera rides along. */
.courier { --sky1: #EAF6F2; --sky2: #D9F1F6; --mark: #A3E4EE; }
.courier .cu-sky { background: linear-gradient(180deg, #E4F4F2 0%, #D6EEF4 55%, #CFE7EE 100%); }
.courier .cu-sun { position: absolute; top: 9%; inset-inline-end: 34%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #FFF6D8 0 38%, rgba(255,240,196,.55) 39% 60%, rgba(255,240,196,0) 61%); opacity: .85; }

/* ---------- the travelling street ---------- */
.courier .cu-view { position: absolute; inset: 0; pointer-events: none; }
.courier .cu-scene { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 720px 0; }
.courier[dir="rtl"] .cu-scene { transform: scaleX(-1); }
.courier .cu-layer { position: absolute; will-change: transform; }
.courier .cu-layer > svg { display: block; overflow: visible; }
.courier .cu-far { left: -420px; top: -18px; opacity: .9; }
.courier .cu-mid { left: -700px; top: -6px; }
.courier .cu-near { left: -700px; top: 10px; }
.courier .cu-actors { left: 0; top: 0; width: 1px; height: 1px; }
.courier .cu-a, .courier .cu-thing { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.courier .cu-a > svg, .courier .cu-flip > svg, .courier .cu-bump > svg { display: block; overflow: visible; }
.courier .cu-thing > svg { display: block; filter: drop-shadow(0 3px 3px rgba(6,20,28,.18)); }
.courier .cu-cash { z-index: 3; }
.courier .cu-parcel { z-index: 2; }
.courier .cu-mus { z-index: 1; }
.courier .cu-car > svg, .courier .cu-drv > svg { display: block; overflow: visible; }

/* ---------- the transfer: a chip leaves the courier's phone and lands in Noor's bank ---------- */
.courier .cu-ui { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; }
.courier .cu-chip { position: absolute; left: 0; top: 0; width: 210px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 20px;
  background: #FFFFFF; color: #0F1D22; font-size: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 2px #0BBAD8, 0 10px 24px -8px rgba(6,20,28,.35); will-change: transform; }
.courier .cu-chip i { display: grid; place-items: center; }
.courier .cu-chip i svg { width: 30px; height: 18px; }
.courier .cu-bank { position: absolute; top: 528px; width: 268px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px;
  background: #FFFFFF; box-shadow: 0 1px 2px rgba(6,20,28,.12), 0 16px 34px -14px rgba(6,20,28,.4); box-sizing: border-box;
  opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .3s ease, transform .5s var(--spring); }
.courier .cu-bank.on { opacity: 1; transform: none; }
.courier .cu-bank-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #E3F7FA; color: #0A8A9C; }
.courier .cu-bank-t { display: grid; line-height: 1.25; min-width: 0; }
.courier .cu-bank-t b { font-size: 15px; font-weight: 800; color: #0F1D22; }
.courier .cu-bank-t small { font-size: 13px; font-weight: 600; color: #4A6275; }
.courier .cu-bank-ok { flex: none; margin-inline-start: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #1E8449; color: #fff; transform: scale(0); transition: transform .45s var(--spring) .25s; }
.courier .cu-bank.on .cu-bank-ok { transform: none; }
.courier .cu-bank-ok svg { width: 14px; height: 14px; }

/* ---------- copy ---------- */
.courier .cu-copy { position: absolute; inset-inline-start: 96px; top: 96px; width: 720px; }
.courier .cu-copy .eyebrow img { width: 30px; height: 30px; border-radius: 9px; background: #fff; padding: 4px; box-shadow: var(--shadow-1); }
.courier .cu-copy .h2 { font-size: 56px; max-width: 13em; }
.courier .cu-copy .lead { margin-top: 14px; font-size: 19px; max-width: 32em; }
.courier .cu-facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 10px 24px; }
.courier .cu-facts li { position: relative; padding-inline-start: 16px; font-size: 15px; font-weight: 700; color: var(--ink); max-width: 14em; line-height: 1.35; }
.courier .cu-facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 8px; height: 8px; border-radius: 2px; background: var(--c500); }

/* ---------- step captions on the road ---------- */
.courier .cu-beats { position: absolute; inset-inline-start: 96px; top: 838px; width: 1260px; }
.courier .cu-beats .beats { gap: 6px 18px; }
.courier .kc .pr, .courier .kc .fing { opacity: 0 !important; }
.courier .cu-beats .beats { --ink: #FFFFFF; --ink-2: #E3ECEF; --ink-3: #C6D5DB; }
.courier .cu-beats .beats li i { background: #F4D35E; }

/* ---------- the live phone ---------- */
.courier .cu-phone { position: absolute; inset-inline-end: 56px; top: 98px; }
.courier .cu-phone .phone { --pz: .8; }
.courier[lang="ar"] .cu-p-en, .courier:not([lang="ar"]) .cu-p-ar { display: none; }

/* ---------- narrow: copy, the street, the steps, the phone ---------- */
html.kp-narrow .courier .kframe { display: flex; flex-direction: column; align-items: stretch; padding: 88px 0 40px; }
html.kp-narrow .courier .cu-copy { position: static; width: auto; padding: 0 20px; order: 1; }
html.kp-narrow .courier .cu-copy .h2 { font-size: 38px; }
html.kp-narrow .courier .cu-copy .lead { font-size: 17px; }
html.kp-narrow .courier .cu-facts { flex-wrap: wrap; }
html.kp-narrow .courier .cu-facts li { max-width: none; }
html.kp-narrow .courier .cu-view { position: relative; inset: auto; width: 720px; height: 470px; overflow: hidden; margin: 18px auto 0; zoom: .54; order: 2; }
html.kp-narrow .courier .cu-scene, html.kp-narrow .courier .cu-ui { left: -150px; top: -430px; }
html.kp-narrow .courier[dir="rtl"] .cu-scene, html.kp-narrow .courier[dir="rtl"] .cu-ui { left: -570px; }
html.kp-narrow .courier .cu-beats { position: static; width: auto; padding: 16px 20px 0; order: 3; }
html.kp-narrow .courier .cu-beats .beats { --ink: #0F1D22; --ink-2: #2A3F4D; --ink-3: #4A6275; gap: 6px 16px; }
html.kp-narrow .courier .cu-beats .beats li { font-size: 14px; }
html.kp-narrow .courier .cu-beats .beats li i { background: var(--c500); }
html.kp-narrow .courier .cu-phone { position: static; order: 4; display: flex; justify-content: center; margin-top: 22px; }
html.kp-narrow .courier .cu-phone .phone { --pz: .72; }
@media (max-width: 359px) { html.kp-narrow .courier .cu-view { zoom: .46; } }
@media (min-width: 420px) { html.kp-narrow .courier .cu-view { zoom: .6; } }
@media (min-width: 520px) { html.kp-narrow .courier .cu-view { zoom: .75; } }
@media (min-width: 640px) { html.kp-narrow .courier .cu-view { zoom: .9; } }

@media (prefers-reduced-motion: reduce) {
  .courier .cu-layer, .courier .cu-a, .courier .cu-thing, .courier .cu-chip { transition: none !important; }
}
/* narrow: the scene is drawn small, so its words grow back to a readable size */
html.kp-narrow .courier .cu-bank { scale: 1.45; transform-origin: 0 50%; }
html.kp-narrow .courier[dir="rtl"] .cu-bank { transform-origin: 100% 50%; }
html.kp-narrow .courier .cu-chip { scale: 1.35; }

/* small phones (round 5): the drawing fits the screen width, nothing cut at the edge */
@media (max-width: 389px) { html.kp-narrow .courier .cu-view { zoom: 0.5; } }
@media (max-width: 359px) { html.kp-narrow .courier .cu-view { zoom: 0.444; } }

/* phones, told full screen (kphone-story.js, story/courier.js): the whole 1440 x 900 scene,
   moved by the story's camera; the old phone crop and the enlarged cards are undone */
html.kp-narrow .courier[data-kst] .cu-scene, html.kp-narrow .courier[data-kst] .cu-ui,
html.kp-narrow .courier[dir="rtl"][data-kst] .cu-scene, html.kp-narrow .courier[dir="rtl"][data-kst] .cu-ui { left: 0; top: 0; }
html.kp-narrow .courier[data-kst] .cu-bank, html.kp-narrow .courier[data-kst] .cu-chip { scale: 1.15; }
html.kp-narrow .courier[data-kst] .kbleed.cu-sky { inset: 0; }
