/* tokens.css */
/* FALCO marketing v2 — design tokens.
   Colors sampled from the mockups (Desktop/new site proposals). Contrast ratios
   are measured by tools/contrast.mjs (run it after changing a color). */

/* ---------- fonts ---------- */
@font-face { font-family: 'Cairo'; src: url('/fonts/Cairo-Bold.woff2?v=90b01b11') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/fonts/Cairo-SemiBold.woff2?v=3f542b56') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/fonts/IBMPlexSansArabic-Regular.woff2?v=00ebe82d') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2?v=4ad0e0cd') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
/* Handwritten accent ("Falco Script"): Aref Ruqaa (Arabic) + Caveat (Latin), both
   SIL OFL 1.1, subset by tools/subset-fonts.py. unicode-range keeps each file
   off the wire unless a tagline actually uses that script. The Arabic face is
   declared last so it wins the shared space/bullet code points; otherwise every
   Arabic tagline would also download the Latin file just for its spaces. */
@font-face {
  font-family: 'Falco Script'; src: url('/fonts/FalcoScript-lat.woff2?v=3b8a38b4') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC;
}
@font-face {
  font-family: 'Falco Script'; src: url('/fonts/FalcoScript-ar.woff2?v=4dbba975') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0020, U+00A0, U+2022, U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  /* ---------- color: ink (dark surfaces) ---------- */
  --ink-950: #05070b;   /* header, hero, footer */
  --ink-900: #0b0f1a;   /* dark sections */
  --ink-800: #141a28;   /* cards on dark */
  --ink-700: #1f2636;
  --line-dark: rgba(255, 255, 255, 0.1);

  /* ---------- color: gold ---------- */
  --gold-300: #fcc869;  /* gradient start, accents on dark */
  --gold-400: #f8bd4c;
  --gold-500: #f5b335;  /* gradient end, text accent on dark: 10.9:1 on ink-950 */
  --gold-600: #e3a127;
  --grad-gold: linear-gradient(100deg, var(--gold-300) 0%, var(--gold-500) 100%);
  --gold-display: #94661f; /* LARGE text only on white/paper (>= 24px or 19px bold): 5.0:1 white, 4.7:1 paper */
  --gold-text: #7a5418;    /* small gold text (overlines, links) on white/paper: 6.8:1 / 6.3:1 */
  --gold-tint: #f7efe1;    /* icon discs on light */

  /* ---------- color: light surfaces + text ---------- */
  --paper: #f6f7f9;
  --paper-2: #eef0f4;     /* stats band */
  --surface: #ffffff;
  --line: #e4e7ec;
  --text: #11131a;         /* 18.6:1 on white */
  --text-2: #4f5562;       /* 7.5:1 on white, 7.0:1 on paper, 6.6:1 on paper-2 */
  --text-on-dark: #f3f4f7;
  --text-on-dark-2: #b9bfcc; /* 10.9:1 on ink-950 */

  /* ---------- type ---------- */
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Falco Script', 'Cairo', cursive;
  --fs-overline: 0.78rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  --fs-h1: clamp(1.9rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-display: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
  --fs-script: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  --lh-tight: 1.25;
  --lh-body: 1.75;   /* Arabic needs the taller line box */

  /* ---------- space (4px base) ---------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --gutter: 16px;
  --container: 1200px;
  --section-y: clamp(48px, 6vw, 88px);
  --header-h: 68px;

  /* ---------- shape + depth ---------- */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(17, 19, 26, 0.06), 0 2px 8px rgba(17, 19, 26, 0.05);
  --sh-md: 0 6px 24px rgba(17, 19, 26, 0.08);
  --sh-lg: 0 18px 50px rgba(5, 7, 11, 0.28);
  --sh-gold: 0 8px 24px rgba(245, 179, 53, 0.28);

  /* ---------- motion ---------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;

  /* Handwritten tagline tilt; mirrored for RTL below so it always rises toward the line end. */
  --tilt: -7deg;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
}

[dir='rtl'] { --tilt: 7deg; }

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* base.css */
/* Base: reset, typography, layout primitives, utilities.
   RTL rule: logical properties only (margin-inline-*, inset-inline-*, text-align:start).
   Never mirror photos; only .icon--dir glyphs flip in RTL. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: clip; /* full-bleed decorations never cause horizontal scroll */
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-tight); text-wrap: balance; }
p { text-wrap: pretty; }
bdi { unicode-bidi: isolate; }

/* Latin digits everywhere (matches the apps' latin_digits). */
:lang(ar) { font-variant-numeric: lining-nums; }

/* ---------- focus ---------- */
/* Ink ring on light surfaces, gold ring on dark ones: >= 3:1 against both. */
:focus-visible { outline: 3px solid var(--ink-950); outline-offset: 2px; border-radius: 4px; }
:is(.site-header, .site-footer, .hero__banner, .hero--home, .hero--banner, .hero--compact, .section--dark, .section--image, .cta-band, .demo-dark) :focus-visible {
  outline-color: var(--gold-400);
}
main:focus { outline: none; }

.skip-link {
  position: absolute; inset-inline-start: var(--sp-4); top: -100px; z-index: 100;
  background: var(--gold-500); color: var(--ink-950); font-weight: 700;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--sp-2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--prose { max-width: calc(780px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink-900); color: var(--text-on-dark); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; } }

.button-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-block: var(--sp-5); }

/* ---------- type helpers ---------- */
.overline {
  font-family: var(--font-display);
  font-size: var(--fs-overline);
  font-weight: 700;
  color: var(--gold-text);
  margin-block-end: var(--sp-2);
}
/* Latin overlines are spaced capitals; Arabic must never get letter-spacing (breaks joining). */
.overline:not(:lang(ar)) { text-transform: uppercase; letter-spacing: 0.14em; }
.overline--dark, .section--dark .overline, .section-heading--dark .overline { color: var(--gold-500); }

.text-accent { color: var(--gold-display); }
.section--dark .text-accent, .section-heading--dark .text-accent, .hero .text-accent, .cta-band .text-accent { color: var(--gold-500); }

.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 70ch; margin-block-end: var(--sp-5); }
.h2 { font-size: var(--fs-h2); margin-block: var(--sp-6) var(--sp-4); }
.h3 { font-size: var(--fs-h3); margin-block-end: var(--sp-2); }

.prose { max-width: 75ch; }
.prose p, .prose ul { margin-block-end: var(--sp-4); color: var(--text-2); }
.prose ul { padding-inline-start: var(--sp-5); }

/* ---------- icons ---------- */
.icon { flex: none; }
[dir='rtl'] .icon--dir { transform: scaleX(-1); }

/* components.css */
/* Shared components. One block per component, named after its template function.
   Breakpoints: 480 (large phone), 640 (phablet), 768 (tablet), 1024 (desktop). */

/* Light cards inside dark sections keep the ink focus ring. */
:is(.section--dark, .demo-dark) .card--light :focus-visible,
.hero .order-bar__row :focus-visible { outline-color: var(--ink-950); }

/* =========================================================== header() */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 11, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.site-header__bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.site-header__brand { display: flex; flex: none; padding-block: 6px; }
.logo--header { height: 46px; width: auto; }
@media (min-width: 768px) { .logo--header { height: 54px; } }

.site-nav { display: none; flex: 1; justify-content: center; }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.site-nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--text-on-dark); transition: color var(--dur) var(--ease);
}
.site-nav__list a:hover { color: var(--gold-300); }
.site-nav__list a[aria-current='page'] { color: var(--gold-500); }
.site-nav__list a[aria-current='page']::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 2px;
  background: var(--grad-gold); border-radius: 2px;
}

.site-header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--sp-3); }
.btn.site-header__signin { display: none; }
@media (min-width: 480px) { .btn.site-header__signin { display: inline-flex; } }
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .site-header__actions { margin-inline-start: 0; }
}

/* language switcher (<details>) */
.lang-switch { position: relative; display: none; }
@media (min-width: 1024px) { .lang-switch { display: block; } }
.lang-switch > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding-inline: 10px; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { color: var(--gold-300); }
.lang-switch[open] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 170px; z-index: 60;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  padding: 6px; box-shadow: var(--sh-lg);
}
.lang-switch__menu a { display: block; padding: 10px 14px; border-radius: var(--r-sm); }
.lang-switch__menu a:hover { background: var(--ink-700); }
.lang-switch__menu a[aria-current='true'] { color: var(--gold-500); }

/* mobile menu (<details>, works without JS) */
.mobile-menu > summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); cursor: pointer; color: var(--text-on-dark);
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__close, .mobile-menu[open] .mobile-menu__open { display: none; }
.mobile-menu[open] .mobile-menu__close { display: block; }
.mobile-menu__panel {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--ink-950); border-block-start: 1px solid var(--line-dark);
  padding: var(--sp-2) var(--gutter) var(--sp-5); box-shadow: var(--sh-lg);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
/* A closed <details> still lays out its content in Chromium (::details-content is
   only content-visibility: hidden), which pushed the sign-in button past the
   inline edge at 375px. Take the panel out of layout until the menu opens. */
.mobile-menu:not([open]) > .mobile-menu__panel { display: none; }
.mobile-menu__list a {
  display: flex; align-items: center; min-height: 52px;
  border-block-end: 1px solid var(--line-dark);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.mobile-menu__list a[aria-current='page'] { color: var(--gold-500); }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }
.mobile-menu__langs a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px;
  border: 1px solid var(--line-dark); border-radius: var(--r-pill);
}
.mobile-menu__langs a[aria-current='true'] { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink-950); }
.mobile-menu__signin { width: 100%; margin-block-start: var(--sp-4); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* =========================================================== button() */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 8px 22px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; line-height: 1.25;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--sm { min-height: 44px; padding: 6px 16px; font-size: 0.875rem; gap: 8px; white-space: nowrap; }
.btn--lg { min-height: 56px; padding: 10px 30px; font-size: 1.05rem; }
.btn--gold { background: var(--grad-gold); color: var(--ink-950); box-shadow: var(--sh-gold); }
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(245, 179, 53, 0.38); }
.btn--outline { border-color: var(--gold-600); color: var(--gold-text); background: transparent; }
.btn--outline:hover { background: var(--gold-tint); }
.btn--outline-light { border-color: var(--gold-500); color: var(--gold-300); background: transparent; }
.btn--outline-light:hover { background: rgba(245, 179, 53, 0.12); }
.btn--ghost { color: inherit; background: transparent; }
.btn:active { transform: translateY(0); }

/* =========================================================== iconDisc() */
.icon-disc { display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.icon-disc--sm { width: 36px; height: 36px; }
.icon-disc--md { width: 48px; height: 48px; }
.icon-disc--lg { width: 60px; height: 60px; }
.icon-disc--tint { background: var(--gold-tint); color: var(--gold-text); }
.icon-disc--gold { background: var(--grad-gold); color: var(--ink-950); }
.icon-disc--gold-soft { background: #fff3dc; color: var(--gold-text); border: 3px solid var(--surface); }
.icon-disc--outline { border: 1.5px solid var(--gold-500); color: var(--gold-500); }
.icon-disc--dark { background: var(--ink-950); color: var(--gold-500); }
.icon-disc--light { background: var(--surface); color: var(--gold-text); box-shadow: var(--sh-sm); }
.icon-disc--plain { color: var(--gold-display); }

/* =========================================================== sectionHeading() */
.section-heading {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-3) var(--sp-6); margin-block-end: var(--sp-6);
}
.section-heading__text { max-width: 660px; }
.section-heading__title { font-size: var(--fs-h2); color: var(--text); }
.section-heading__lead { margin-block-start: var(--sp-3); color: var(--text-2); font-size: var(--fs-lead); }
.section-heading--dark .section-heading__title { color: #fff; }
.section-heading--dark .section-heading__lead { color: var(--text-on-dark-2); }
.section-heading--center { justify-content: center; text-align: center; }
.section-heading--center .section-heading__text { margin-inline: auto; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link-more:hover { color: var(--gold-text); }
.section-heading--dark .link-more { color: #fff; }
.section-heading--dark .link-more:hover { color: var(--gold-300); }

/* =========================================================== breadcrumb() */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-small); margin-block-end: var(--sp-3); list-style: none; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '/'; opacity: 0.6; }
.breadcrumb a, .breadcrumb span[aria-current] { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb--dark { color: var(--text-on-dark-2); }
.breadcrumb--dark a:hover { color: var(--gold-300); }
.breadcrumb--dark [aria-current='page'] { color: #fff; }
.breadcrumb--light { color: var(--text-2); }
.breadcrumb--light [aria-current='page'] { color: var(--text); }

/* =========================================================== storeBadges() */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px;
  border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color var(--dur) var(--ease);
}
.store-badge:hover { border-color: var(--gold-500); }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-badge__top { font-size: 0.65rem; opacity: 0.9; }
.store-badge__name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.store-badges--light .store-badge { border-color: #000; }
.store-badges--lg .store-badge { min-height: 58px; padding: 8px 20px; border-radius: 12px; gap: 12px; }
.store-badges--lg .store-badge__top { font-size: 0.72rem; }
.store-badges--lg .store-badge__name { font-size: 1.3rem; }

/* =========================================================== tagline() */
.script-tagline {
  display: inline-flex; flex-direction: column; width: fit-content;
  font-family: var(--font-script); font-weight: 600; font-size: var(--fs-script); line-height: 1.15;
  color: var(--gold-300); transform: rotate(var(--tilt)); transform-origin: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.script-tagline:lang(ar) { line-height: 1.6; font-weight: 700; }
.script-tagline__swoosh { align-self: end; width: 62%; height: 14px; margin-block-start: -2px; }
[dir='rtl'] .script-tagline__swoosh { transform: scaleX(-1); }
.script-tagline--ink { color: var(--gold-display); text-shadow: none; }

/* =========================================================== pageHero() */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: var(--text-on-dark); }
.hero__img, .hero__banner > .hero__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0.86) 55%, rgba(5, 7, 11, 0.95) 100%);
}
@media (min-width: 768px) {
  .hero__scrim { background: linear-gradient(to right, rgba(5, 7, 11, 0.96) 0%, rgba(5, 7, 11, 0.86) 36%, rgba(5, 7, 11, 0.28) 68%, rgba(5, 7, 11, 0.08) 100%); }
  [dir='rtl'] .hero__scrim { background: linear-gradient(to left, rgba(5, 7, 11, 0.96) 0%, rgba(5, 7, 11, 0.86) 36%, rgba(5, 7, 11, 0.28) 68%, rgba(5, 7, 11, 0.08) 100%); }
}
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; padding-block: var(--sp-7); }
.hero__content { max-width: 600px; }
.hero__title { font-size: var(--fs-h1); color: #fff; margin-block: var(--sp-2) var(--sp-4); }
.hero__lead { color: #d3d7df; font-size: var(--fs-lead); max-width: 54ch; margin-block-end: var(--sp-5); }
.hero__rule { display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--grad-gold); margin-block: var(--sp-2) var(--sp-4); }
.hero__cta { margin-block-start: var(--sp-4); }
.hero__tagline { align-self: flex-end; margin-block-start: var(--sp-6); }
@media (min-width: 1024px) {
  .hero__tagline { position: absolute; inset-inline-end: var(--gutter); bottom: var(--sp-7); margin: 0; }
}
/* Banner heroes have a person on the inline-end side of the photo: keep the
   handwritten line under the copy instead of over the subject. */
@media (min-width: 1024px) {
  .hero--banner .hero__tagline { position: static; align-self: flex-start; margin-block-start: var(--sp-2); }
}

/* Home hero. The photo is 2.4:1 with the falcon on the inline-end side and the
   Laayoune skyline beside it, so on wide screens the hero keeps close to that
   ratio (no extra zoom) and the scrim only darkens the text side. On phones the
   photo becomes a band at the top and the copy sits on solid ink below it. */
.hero--home .hero__inner { min-height: clamp(520px, 41.6vw, 680px); }
@media (min-width: 768px) {
  .hero--home .hero__scrim { background: linear-gradient(to right, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.82) 30%, rgba(5, 7, 11, 0.38) 50%, rgba(5, 7, 11, 0.06) 66%, rgba(5, 7, 11, 0) 100%); }
  [dir='rtl'] .hero--home .hero__scrim { background: linear-gradient(to left, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.82) 30%, rgba(5, 7, 11, 0.38) 50%, rgba(5, 7, 11, 0.06) 66%, rgba(5, 7, 11, 0) 100%); }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .hero--home .hero__content { max-width: 500px; }
  /* Narrower than the photo: crop the back of the falcon's head so the beak clears the copy.
     Overrides the slot's inline focal point, hence !important. */
  [dir='rtl'] .hero--home .hero__img { object-position: 85% 46% !important; }
  [dir='ltr'] .hero--home .hero__img { object-position: 15% 46% !important; }
}
@media (max-width: 767px) {
  .hero--home .hero__img { height: 300px; bottom: auto; }
  .hero--home .hero__scrim { background: linear-gradient(to bottom, rgba(5, 7, 11, 0.1) 0, rgba(5, 7, 11, 0.35) 150px, rgba(5, 7, 11, 0.92) 260px, var(--ink-950) 300px); }
  .hero--home .hero__inner { min-height: 0; padding-block-start: 210px; }
}
/* Gold light beam: a soft shaft just past the falcon's beak, never across its face. */
.hero__beam {
  position: absolute; z-index: -1; top: -20%; inset-inline-end: 47%; width: 90px; height: 150%;
  background: linear-gradient(180deg, transparent 0%, rgba(252, 200, 105, 0.42) 40%, rgba(245, 179, 53, 0.12) 75%, transparent 100%);
  transform: rotate(16deg); mix-blend-mode: screen; opacity: 0.6; pointer-events: none;
}
[dir='rtl'] .hero__beam { transform: rotate(-16deg); }
@media (max-width: 767px) { .hero__beam { display: none; } }

.hero--banner .hero__inner { min-height: clamp(400px, 34vw, 470px); }
/* Phones: show the banner photo as a clear band on top (a full-height cover
   under a dark scrim turned the courier into a silhouette), copy below on ink. */
@media (max-width: 767px) {
  .hero--banner .hero__img { height: 230px; bottom: auto; }
  .hero--banner .hero__scrim { background: linear-gradient(to bottom, rgba(5, 7, 11, 0.15) 0, rgba(5, 7, 11, 0.4) 120px, rgba(5, 7, 11, 0.92) 200px, var(--ink-950) 230px); }
  .hero--banner .hero__inner { min-height: 0; padding-block-start: 170px; }
}
.hero--compact { background: radial-gradient(120% 140% at 85% 0%, #1b2233 0%, var(--ink-950) 60%); }
[dir='rtl'] .hero--compact { background: radial-gradient(120% 140% at 15% 0%, #1b2233 0%, var(--ink-950) 60%); }
.hero--compact .hero__inner { padding-block: var(--sp-7) var(--sp-6); }
.hero--compact .hero__title { font-size: var(--fs-h2); margin-block-end: 0; }
.hero--compact .hero__lead { margin-block: var(--sp-3) 0; }

.hero--title-band { background: var(--surface); color: var(--text); }
.hero__band { padding-block: var(--sp-5) var(--sp-4); text-align: center; }
.hero__band-title { font-size: var(--fs-display); color: var(--gold-display); line-height: 1.15; }
.hero__banner { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: var(--text-on-dark); }
.hero__banner .hero__inner { min-height: clamp(340px, 30vw, 400px); }

/* =========================================================== orderBar() */
.order-bar { max-width: 580px; margin-block: var(--sp-2) var(--sp-6); }
.order-bar__label { display: block; margin-block-end: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.order-bar__row { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-lg); }
.order-bar__field { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.order-bar__field select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 48px; cursor: pointer;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text);
  padding-inline: 46px 40px; font-weight: 600;
}
.order-bar__field select:focus-visible { outline: 3px solid var(--ink-950); outline-offset: -2px; }
.order-bar__pin { position: absolute; inset-inline-start: 16px; color: var(--gold-600); pointer-events: none; }
.order-bar__chev { position: absolute; inset-inline-end: 14px; color: var(--text-2); pointer-events: none; }
.order-bar__cta { flex: none; }
@media (min-width: 480px) {
  .order-bar__row { flex-direction: row; border-radius: var(--r-pill); }
}

/* =========================================================== trustBadges() */
.trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); list-style: none; padding: 0; }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge > span { display: flex; flex-direction: column; line-height: 1.35; }
.trust-badge strong { font-family: var(--font-display); font-size: 0.92rem; color: #fff; }
.trust-badge > span > span { font-size: 0.84rem; color: var(--text-on-dark-2); }
.trust-badge__icon { color: var(--gold-500); }
@media (min-width: 768px) {
  .trust-badges { display: flex; flex-wrap: wrap; gap: var(--sp-4) 0; }
  .trust-badge { padding-inline-end: var(--sp-5); margin-inline-end: var(--sp-5); border-inline-end: 1px solid rgba(255, 255, 255, 0.18); }
  .trust-badge:last-child { border: 0; margin: 0; padding: 0; }
}
.trust-badges--light strong { color: var(--text); }
.trust-badges--light .trust-badge > span > span { color: var(--text-2); }
.trust-badges--light .trust-badge__icon { color: var(--gold-display); }
.trust-badges--light .trust-badge { border-color: var(--line); }

/* =========================================================== statsBand() */
.stats { background: var(--paper-2); padding-block: var(--sp-6) var(--sp-7); }
.stats .section-heading { margin-block-end: var(--sp-5); }
.stats .section-heading__title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
.stats__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.stat__text { display: flex; flex-direction: column; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); line-height: 1.25; color: var(--text); }
.stat__label { font-size: 0.875rem; color: var(--text-2); }
@media (min-width: 1024px) {
  .stats__list { grid-template-columns: repeat(var(--stats-n, 4), minmax(0, 1fr)); }
  .stats--band .stat { flex-direction: row; text-align: start; gap: 14px; }
  .stats--band .stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: var(--sp-5); }
  .stats--row .stat + .stat { border-inline-start: 1px solid var(--line); }
}
.stats--row .stats__list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 1024px) { .stats--row .stats__list > :last-child:nth-child(odd) { grid-column: auto; } }

/* =========================================================== card() + variants */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: var(--sp-5); color: var(--text); }
.card--dark { background: var(--ink-800); border-color: var(--line-dark); color: var(--text-on-dark); }

/* serviceTile() — home category grid */
.grid--tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 640px) { .grid--tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.service-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-sm); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.service-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.service-tile__link { display: block; height: 100%; }
.service-tile__media { position: relative; display: block; aspect-ratio: 1 / 0.85; background: var(--paper); }
.service-tile__img { width: 100%; height: 100%; object-fit: contain; padding: 14px 14px 6px; }
.service-tile__icon { position: absolute; bottom: -18px; inset-inline-start: 12px; }
.service-tile__name { display: block; padding: 26px 14px 0; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.service-tile__short { display: block; padding: 0 14px 14px; font-size: 0.82rem; color: var(--text-2); }

/* serviceCard() — services grid */
.service-card { padding: 0; overflow: hidden; }
.service-card__media { position: relative; margin: 8px 8px 0; }
.service-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; padding: 10px; background: var(--paper); border-radius: 12px; }
.service-card__icon { position: absolute; bottom: -24px; inset-inline-start: 14px; }
.service-card__body { padding: 34px 18px 20px; }
.service-card__title { font-size: 1.12rem; margin-block-end: 6px; }
.service-card__text { color: var(--text-2); font-size: 0.95rem; }

/* featureCard() */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature__title { font-size: var(--fs-h3); }
.feature__text { font-size: 0.9rem; color: var(--text-2); }
.feature--dark .feature__title { color: #fff; }
.feature--dark .feature__text { color: var(--text-on-dark-2); }
.features--5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); list-style: none; padding: 0; }
@media (min-width: 1024px) {
  .features--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .feature--divided + .feature--divided { border-inline-start: 1px solid var(--line-dark); padding-inline-start: var(--sp-5); }
}

/* contactCard() */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card__title { font-size: 1.12rem; margin-block-start: var(--sp-3); }
.contact-card__subtitle { color: var(--text-2); font-size: 0.9rem; }
.contact-card__value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-block-start: 6px; overflow-wrap: anywhere; }
a.contact-card__value:hover { color: var(--gold-text); }
.contact-card__note { color: var(--text-2); font-size: 0.85rem; }
/* Phones: icon beside the text so a stack of channel cards stays short. */
@media (max-width: 639px) {
  .contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); row-gap: 2px; align-content: center; }
  .contact-card > .icon-disc { grid-row: 1 / span 4; align-self: center; }
  .contact-card > :not(.icon-disc) { grid-column: 2; }
  .contact-card__title { margin-block-start: 0; }
  .contact-card__value { margin-block-start: 2px; }
}

/* appCard() */
.app-card { display: flex; flex-direction: column; gap: var(--sp-4); }
.app-card__head { display: flex; align-items: center; gap: 14px; }
.app-card__logo { width: 72px; height: 72px; border-radius: 18px; }
.app-card__name { font-size: 1.25rem; }
.app-card__audience { color: var(--text-2); font-size: 0.9rem; }
.app-card__headline { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; }
.app-card__phones { display: flex; justify-content: center; padding-block: var(--sp-2); }
.app-card__phones--pair .phone + .phone { margin-inline-start: -44px; margin-block-start: 44px; }
.app-card__text { font-size: 1.02rem; }
.app-card__cta { align-self: stretch; }
.app-card__footnote { text-align: center; color: var(--text-2); font-size: 0.9rem; }

/* =========================================================== phoneFrame() */
.phone {
  --phone-w: 200px;
  position: relative; flex: none; width: var(--phone-w); padding: 7px; margin: 0;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(145deg, #2c3240, #0b0e14);
  box-shadow: var(--sh-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.phone--sm { --phone-w: 150px; }
.phone--lg { --phone-w: 230px; }
@media (min-width: 768px) { .phone--lg { --phone-w: 260px; } }
.phone__screen { position: relative; display: block; aspect-ratio: 9 / 19.5; overflow: hidden; background: #000; border-radius: calc(var(--phone-w) * 0.125); }
.phone__screen::before {
  content: ''; position: absolute; z-index: 1; top: 6px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 14px; border-radius: 10px; background: #05070b;
}
.phone__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Real screenshots start below a black status bar so the CSS notch never covers app UI. */
.phone__img:not(.is-placeholder) { display: block; height: calc(100% - 22px); margin-block-start: 22px; }

/* =========================================================== ctaBand() */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: var(--text-on-dark); padding-block: var(--sp-7); border-block-start: 1px solid rgba(245, 179, 53, 0.22); }
.cta-band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band--image::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(5, 7, 11, 0.95) 25%, rgba(5, 7, 11, 0.7) 65%, rgba(5, 7, 11, 0.35) 100%);
}
[dir='rtl'] .cta-band--image::before { background: linear-gradient(to left, rgba(5, 7, 11, 0.95) 25%, rgba(5, 7, 11, 0.7) 65%, rgba(5, 7, 11, 0.35) 100%); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-6); }
.cta-band__text { flex: 1 1 320px; }
.cta-band__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: #fff; }
.cta-band__lead { color: var(--text-on-dark-2); margin-block-start: var(--sp-2); }
.cta-band__action { flex: none; }
/* Photo bands: the subject (courier) sits on the inline-end side of the photo,
   so on wide screens the copy and its button stay together on the text side
   and the scrim fades out before the subject. */
@media (min-width: 1024px) {
  .cta-band--image .cta-band__inner { justify-content: flex-start; }
  .cta-band--image .cta-band__text { flex: 0 1 560px; }
  .cta-band--image::before { background: linear-gradient(to right, rgba(5, 7, 11, 0.95) 30%, rgba(5, 7, 11, 0.6) 62%, rgba(5, 7, 11, 0.15) 85%, rgba(5, 7, 11, 0.05) 100%); }
  [dir='rtl'] .cta-band--image::before { background: linear-gradient(to left, rgba(5, 7, 11, 0.95) 30%, rgba(5, 7, 11, 0.6) 62%, rgba(5, 7, 11, 0.15) 85%, rgba(5, 7, 11, 0.05) 100%); }
}

/* =========================================================== section variants used by home */
.section--image { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: var(--text-on-dark); }
.section__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.section__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(5, 7, 11, 0.8), rgba(5, 7, 11, 0.92)); }
@media (min-width: 768px) {
  .section__scrim { background: linear-gradient(to right, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.82) 45%, rgba(5, 7, 11, 0.35) 100%); }
  [dir='rtl'] .section__scrim { background: linear-gradient(to left, rgba(5, 7, 11, 0.95) 0%, rgba(5, 7, 11, 0.82) 45%, rgba(5, 7, 11, 0.35) 100%); }
}
.section--image__inner { position: relative; }
.section__tagline { display: flex; margin-inline-start: auto; margin-block-start: var(--sp-6); }

.eco-apps { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); list-style: none; padding: 0; }
@media (min-width: 640px) { .eco-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }
/* Phones: the three apps become a swipe row (scroll-snap) with a peek of the next card. */
@media (max-width: 639px) {
  .eco-apps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; gap: var(--sp-4);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-block-end: var(--sp-3); scrollbar-width: none;
  }
  .eco-apps::-webkit-scrollbar { display: none; }
  .eco-app { scroll-snap-align: start; padding: var(--sp-4); border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.03); }
  .eco-app .phone { --phone-w: 168px; }
}
.eco-app { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.eco-app__meta { display: flex; align-items: center; gap: 12px; width: 100%; }
.eco-app__name { font-size: 1.05rem; color: #fff; }
.eco-app__for { font-size: 0.85rem; color: var(--text-on-dark-2); }
.eco-app__text { font-size: 0.9rem; color: var(--text-on-dark-2); width: 100%; }

/* =========================================================== footer() */
.site-footer { background: var(--ink-950); color: var(--text-on-dark-2); padding-block: var(--sp-7) var(--sp-5); border-block-start: 1px solid rgba(245, 179, 53, 0.18); }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.25fr 1.4fr; }
  .site-footer__brand { grid-column: auto; }
}
.logo--footer { height: 84px; width: auto; }
.site-footer__tagline { margin-block-start: var(--sp-3); font-size: var(--fs-small); }
.site-footer__title { font-size: 0.95rem; color: #fff; margin-block-end: var(--sp-3); }
.site-footer__col ul a { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer__col:last-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .site-footer__col:last-child { grid-column: auto; } }
.social-links { display: flex; gap: var(--sp-2); margin-block-end: var(--sp-4); }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; color: #fff; }
.social-links a:hover { border-color: var(--gold-500); }
.site-footer__available { font-size: var(--fs-small); margin-block-end: var(--sp-2); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-5);
  margin-block-start: var(--sp-7); padding-block-start: var(--sp-4); border-block-start: 1px solid var(--line-dark); font-size: 0.82rem;
}

/* =========================================================== 404 */
.not-found__grid { display: grid; gap: var(--sp-7); }
.not-found__block { text-align: center; }
.not-found__title { font-size: var(--fs-h2); margin-block-end: var(--sp-2); }
.not-found__block p { color: var(--text-2); margin-block-end: var(--sp-4); }

/* =========================================================== component reference page only */
.demo-dark { background: var(--ink-900); color: var(--text-on-dark); border-radius: var(--r-md); padding: var(--sp-4); }
.demo-pad { padding: var(--sp-6); margin-block-end: var(--sp-5); }
.demo-gap { margin-block-start: var(--sp-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
