/* GATO public site — one stylesheet. Colours are the GATO dashboard tokens (web/src/ui/tokens.css). Light theme only. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 600 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --navy: #163B63;
  --navy-deep: #102D4C;
  --navy-ink: #0C2440;
  --navy-50: #EEF3F8;
  --navy-100: #DCE6F1;
  --orange: #F26A21;
  --orange-action: #C84F16;
  --orange-hover: #B8460F;
  --orange-50: #FEF1E9;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --sunken: #F1F4F8;
  --text: #17212B;
  --text-2: #5F6B7A;
  --border: #E3E8EF;
  --success: #16A36A;
  --on-navy: #FFFFFF;
  --on-navy-2: rgba(255, 255, 255, 0.84);
  --on-navy-line: rgba(255, 255, 255, 0.18);
  --focus: 0 0 0 3px rgba(52, 120, 201, 0.45);
  --focus-dark: 0 0 0 2px #FFFFFF, 0 0 0 4px rgba(52, 120, 201, 0.95);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shadow-frame: 0 30px 60px -20px rgba(12, 36, 64, 0.45), 0 12px 24px -12px rgba(12, 36, 64, 0.25);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --top-h: 68px;
}
:lang(ar) {
  --font-display: "Plex Arabic", "Archivo", system-ui, sans-serif;
  --font-body: "Plex Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--navy-ink); text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0.02em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic--big { width: 48px; height: 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 8px; border: 0;
  background: var(--orange-action); color: #fff; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn--ghost-light:focus-visible, .top .btn:focus-visible { box-shadow: var(--focus-dark); }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h); transition: background-color .25s ease, box-shadow .25s ease; }
.top.is-solid { background: var(--navy-deep); box-shadow: 0 1px 0 var(--on-navy-line), 0 8px 24px rgba(12, 36, 64, 0.25); }
.top__in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 8px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 20px; height: 20px; }
.brand__mark--ink { width: 22px; height: 22px; border-radius: 5px; background: #111; }
.brand__mark--ink svg { width: 14px; height: 14px; }
.brand__name { font: 800 19px/1 "Archivo", var(--font-display); font-stretch: 125%; letter-spacing: 0.08em; }
.brand:focus-visible { box-shadow: var(--focus-dark); }
.top__nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.top__nav a:not(.btn) { color: var(--on-navy-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 6px; }
.top__nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.top__nav a:not(.btn):focus-visible { box-shadow: var(--focus-dark); }
.top__lang { margin-inline-end: 8px; }
.top__lang:lang(ar) { font-family: "Plex Arabic", sans-serif; }
.top__menu { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.top__menu:focus-visible { box-shadow: var(--focus-dark); }
.top__menu-bars, .top__menu-bars::before, .top__menu-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .2s ease, opacity .2s ease; }
.top__menu-bars::before, .top__menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.top__menu-bars::before { top: -6px; } .top__menu-bars::after { top: 6px; }
.top__menu[aria-expanded="true"] .top__menu-bars { background: transparent; }
.top__menu[aria-expanded="true"] .top__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.top__menu[aria-expanded="true"] .top__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- photos (with slow intro-style zoom) ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .photo[data-zoom] { transform: scale(1); transition: transform 18s linear; }
  .is-inview .photo[data-zoom] { transform: scale(1.08); }
}
.photo--ph {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, transparent 14px 28px),
    radial-gradient(120% 90% at 30% 20%, #2a5a8c 0%, var(--navy) 45%, var(--navy-ink) 100%);
  color: rgba(255, 255, 255, 0.92);
}
.photo__ph-tag { align-self: flex-start; font: 600 12px/1 var(--font-mono); padding: 6px 8px; border-radius: 4px; background: rgba(242, 106, 33, 0.9); color: #fff; }
.photo__ph-text { font-weight: 500; max-width: 34ch; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(900px, 100svh); display: grid; color: #fff; background: var(--navy-ink); isolation: isolate; overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo .photo--ph { justify-content: flex-start; padding-top: calc(var(--top-h) + 20px); align-items: flex-end; text-align: end; }
.feat__photo .photo--ph, .offline__photo .photo--ph, .demo__card .photo--ph { justify-content: flex-start; }
.photo--tracking { object-position: 50% 30%; }
.photo--dispatch { object-position: 40% 50%; }
.photo--hero { object-position: 50% 20%; }
/* Wide screens: the photo fills the end 56% so both people stay visible; copy sits on solid navy. */
@media (min-width: 1081px) {
  .hero__photo { inset: 0 0 0 44%; }
  [dir="rtl"] .hero__photo { inset: 0 44% 0 0; }
  .hero::after { background: linear-gradient(90deg, var(--navy-ink) 0%, var(--navy-ink) 44%, rgba(12, 36, 64, 0.45) 46%, rgba(12, 36, 64, 0) 52%), linear-gradient(0deg, rgba(12, 36, 64, 0.55) 0%, transparent 30%); }
  [dir="rtl"] .hero::after { background: linear-gradient(270deg, var(--navy-ink) 0%, var(--navy-ink) 44%, rgba(12, 36, 64, 0.45) 46%, rgba(12, 36, 64, 0) 52%), linear-gradient(0deg, rgba(12, 36, 64, 0.55) 0%, transparent 30%); }
  .hero__in { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 0; }
  .hero__copy { padding-inline-end: 32px; }
  .hero__lead { max-width: 42ch; }
  .hero .hero__title { font-size: clamp(44px, 4.4vw, 72px); }
  .hero .hero__title:lang(ar) { font-size: clamp(40px, 4.1vw, 66px); }
  .hero { min-height: min(820px, 100svh); }
  .photo--hero { object-position: 0% 20%; transform-origin: 0% 20%; }
  .track-card { justify-self: start; width: 320px; margin-inline-start: 28px; margin-bottom: -40px; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 36, 64, 0.94) 0%, rgba(16, 45, 76, 0.82) 38%, rgba(16, 45, 76, 0.25) 70%, rgba(16, 45, 76, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 36, 64, 0.65) 0%, transparent 35%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgba(12, 36, 64, 0.94) 0%, rgba(16, 45, 76, 0.82) 38%, rgba(16, 45, 76, 0.25) 70%, rgba(16, 45, 76, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 36, 64, 0.65) 0%, transparent 35%);
}
.hero__in {
  max-width: calc(var(--max) + 2 * var(--gutter)); width: 100%; margin: 0 auto; padding: calc(var(--top-h) + 72px) var(--gutter) 140px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end;
}
.hero__title {
  color: #fff; font-weight: 800; font-stretch: 112%; font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.025em; max-width: 13ch;
}
:lang(ar) .hero__title { font-weight: 700; line-height: 1.25; letter-spacing: 0; font-size: clamp(40px, 5.6vw, 76px); max-width: 14ch; }
.hero__lead { margin-top: 28px; max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-navy-2); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.track-card {
  background: rgba(255, 255, 255, 0.97); color: var(--text); border-radius: 12px; padding: 20px 22px 16px;
  box-shadow: 0 24px 60px rgba(4, 16, 32, 0.45); border-top: 4px solid var(--orange);
}
.track-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.track-card__title { font-weight: 700; color: var(--navy-ink); font-size: 15px; }
.track-card__head .code { color: var(--text-2); font-size: 12px; }
.track-card__list { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.track-card__list li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 0 0 12px 22px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
[dir="rtl"] .track-card__list li { padding: 0 22px 12px 0; }
.track-card__list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-100); box-shadow: 0 0 0 2px #fff; z-index: 1; }
.track-card__list li::after { content: ""; position: absolute; inset-inline-start: 7px; top: 12px; bottom: -2px; width: 2px; background: var(--navy-100); }
.track-card__list li:last-child::after { display: none; }
.track-card__list li .t { font: 500 12px/1.6 var(--font-mono); color: var(--text-2); }
.track-card__list li.is-now { color: var(--navy-ink); font-weight: 600; }
.track-card__list li.is-now::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.track-card__note { font-size: 12px; color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__cta { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__lead { animation-delay: .12s; } .hero__cta { animation-delay: .2s; }
  .track-card__list li { animation: tick .45s ease-out both; }
  .track-card__list li:nth-child(1) { animation-delay: .5s; } .track-card__list li:nth-child(2) { animation-delay: .75s; }
  .track-card__list li:nth-child(3) { animation-delay: 1s; } .track-card__list li:nth-child(4) { animation-delay: 1.25s; }
  .track-card__list li:nth-child(5) { animation-delay: 1.5s; }
  .track-card { animation: rise .8s .3s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- capability strip ---------- */
.strip { position: relative; z-index: 2; max-width: calc(var(--max) + 2 * var(--gutter)); margin: -64px auto 0; padding: 0 var(--gutter); }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(12, 36, 64, 0.35); overflow: hidden; }
.strip__list li { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--navy-ink); border-inline-start: 1px solid var(--border); }
.strip__list li:first-child { border-inline-start: 0; }
.strip__list .ic { color: var(--orange-action); width: 26px; height: 26px; }

/* ---------- feature sections ---------- */
.feat {
  --photo-span: 1 / 9; --body-span: 10 / 14; --media-span: 2 / 9;
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) repeat(12, minmax(0, calc(var(--max) / 12))) minmax(var(--gutter), 1fr);
  grid-template-rows: auto auto;
  column-gap: 0; padding: 120px 0 112px;
}
.feat--flip { --photo-span: 7 / 15; --body-span: 2 / 6; --media-span: 7 / 14; }
.feat--sunken { background: var(--sunken); }
.feat__photo { grid-column: var(--photo-span); grid-row: 1; height: clamp(440px, 46vw, 620px); overflow: hidden; position: relative; border-start-end-radius: 16px; border-end-end-radius: 16px; }
.feat--flip .feat__photo { border-radius: 0; border-start-start-radius: 16px; border-end-start-radius: 16px; }
.feat__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 36, 64, 0.5), transparent 45%); pointer-events: none; }
.feat__body { grid-column: var(--body-span); grid-row: 1 / 3; align-self: center; padding-block: 24px; }
.feat__body h2 { font-weight: 750; font-stretch: 108%; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -0.015em; margin-top: 18px; }
:lang(ar) .feat__body h2 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.feat__lead { margin-top: 20px; color: var(--text-2); max-width: 60ch; }
.feat__media { grid-column: var(--media-span); grid-row: 2; margin-top: -150px; position: relative; z-index: 2; }
.feat__media--phone { grid-column: var(--media-span); display: flex; justify-content: center; margin-top: -320px; }
.feat__media--label { display: flex; justify-content: center; margin-top: -230px; }

/* journey event tag — the product's own tracking-history wording */
.event { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; font-weight: 600; color: var(--navy); }
[dir="rtl"] .event { padding: 7px 12px 7px 14px; }
.feat--sunken .event { background: var(--surface); }
.event__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.event--dark { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--on-navy-line); color: #fff; }
.event--dark .event__dot { box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.3); }

.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { position: relative; padding-inline-start: 30px; font-size: 16px; line-height: 1.5; }
.facts li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 5px;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C84F16' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.facts--dark li { color: var(--on-navy-2); }
.facts--dark li::before { background-color: rgba(255, 255, 255, 0.12); }

/* desktop browser frame */
.desk { margin: 0; border-radius: 12px; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow-frame); outline: 1px solid rgba(12, 36, 64, 0.2); }
.desk__bar { height: 26px; display: flex; align-items: center; padding: 0 12px; background: var(--navy-deep); }
.desk__dot { width: 40px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.desk img { width: 100%; height: auto; background: #fff; }

/* phone frame */
.phone { margin: 0; width: 300px; aspect-ratio: 390 / 820; padding: 10px; border-radius: 46px; background: #0d1b2b; box-shadow: var(--shadow-frame), inset 0 0 0 2px #2b3c52; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: #0d1b2b; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* proof-of-delivery illustration (company app) */
.pod { display: flex; flex-direction: column; font-size: 13px; }
.pod__bar { display: flex; justify-content: space-between; align-items: flex-end; padding: 46px 18px 14px; background: var(--navy-deep); color: #fff; font-weight: 700; font-size: 16px; border-bottom: 3px solid var(--orange); }
.pod__stop { font-weight: 500; font-size: 12px; color: var(--on-navy-2); }
.pod__who { padding: 14px 18px; background: #fff; display: grid; gap: 2px; border-bottom: 1px solid var(--border); }
.pod__who strong { font-size: 15px; color: var(--navy-ink); }
.pod__who span { color: var(--text-2); font-size: 12.5px; }
.pod__steps { list-style: none; margin: 12px 12px 0; padding: 0; display: grid; gap: 8px; }
.pod__steps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--border); font-weight: 500; }
.pod__steps .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--success); color: #fff; stroke-width: 3; }
.pod__steps .code { font-size: 11px; color: var(--text-2); }
.pod__steps strong { color: var(--navy-ink); font-size: 13px; }
.pod__thumb { width: 34px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #c9a77f, #8b6a48 60%, #5d4630); }
.pod__sign { grid-template-columns: 22px 1fr !important; }
.pod__sig { grid-column: 1 / -1; width: 100%; height: 46px; background: var(--sunken); border-radius: 8px; padding: 4px 10px; }
.pod__offline { margin: 12px 12px 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #FDF4E6; color: #7a4c06; font-size: 12px; line-height: 1.4; }
.pod__offline .ic { width: 18px; height: 18px; }
.pod__btn { margin: auto 12px 18px; display: grid; place-items: center; min-height: 46px; border-radius: 10px; background: var(--orange-action); color: #fff; font-weight: 600; font-size: 14px; }

/* AWB thermal label — real Code128 + QR from GATO's own encoders */
.awb {
  margin: 0; width: 360px; background: #fff; color: #111; border-radius: 4px; padding: 14px; transform: rotate(-3deg);
  font-family: "Inter", "Plex Arabic", sans-serif; box-shadow: var(--shadow-frame); outline: 1px solid #d8dde4;
  display: grid; gap: 10px;
}
[dir="rtl"] .awb { transform: rotate(3deg); }
.awb__top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2.5px solid #111; padding-bottom: 8px; }
.awb__brand { display: inline-flex; align-items: center; gap: 7px; font: 800 16px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 0.06em; }
.awb__piece { font-weight: 700; font-size: 13px; border: 2px solid #111; padding: 3px 8px; border-radius: 3px; }
.awb__route { display: grid; grid-template-columns: 1fr 1fr 104px; gap: 10px; border-bottom: 2.5px solid #111; padding-bottom: 10px; }
.awb__k { display: block; font-size: 10.5px; font-weight: 600; color: #444; }
.awb__city { display: block; font-weight: 800; font-size: 17px; line-height: 1.15; }
.awb__small { display: block; font-size: 11px; color: #333; margin-top: 2px; }
.awb__sort { background: #111; color: #fff; border-radius: 3px; padding: 6px 8px; display: grid; align-content: center; }
.awb__sort .awb__k { color: #ddd; }
.awb__sortv { white-space: nowrap; font: 800 17px/1.1 "Archivo", sans-serif; font-stretch: 112%; }
.awb__bars { display: grid; gap: 4px; justify-items: center; }
.awb__barcode { width: 100%; height: 70px; }
.awb__num { font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; }
.awb__foot { display: grid; grid-template-columns: 1fr auto 78px; gap: 10px; align-items: center; border-top: 2.5px solid #111; padding-top: 10px; }
.awb__cod { border: 2.5px solid #111; border-radius: 3px; padding: 6px 8px; }
.awb__cod strong { font-size: 18px; }
.awb__w { font-weight: 700; font-size: 14px; }
.awb__qr svg { width: 78px; height: 78px; }

/* ---------- offline / on-site server ---------- */
.offline { position: relative; color: #fff; background: var(--navy-ink); isolation: isolate; overflow: hidden; }
.offline__photo { position: absolute; inset: 0; z-index: -2; }
.offline::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 36, 64, 0.86), rgba(12, 36, 64, 0.95)); }
.offline__in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 128px var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.offline h2 { color: #fff; font-weight: 750; font-stretch: 108%; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; margin-top: 18px; }
:lang(ar) .offline h2 { line-height: 1.35; font-weight: 700; }
.offline .feat__lead { color: var(--on-navy-2); }

.diag { margin: 0; display: grid; gap: 0; }
.diag__office { position: relative; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 16px; padding: 44px 24px 24px; background: rgba(255, 255, 255, 0.04); display: grid; gap: 18px; }
.diag__office-label { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--navy-ink); padding: 0 10px; font-size: 13px; color: var(--on-navy-2); font-weight: 600; }
.diag__server { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--orange-action); font-size: 17px; box-shadow: 0 12px 30px rgba(200, 79, 22, 0.35); }
.diag__server .ic { width: 30px; height: 30px; }
.diag__clients { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; }
.diag__node { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--on-navy-line); font-size: 14.5px; font-weight: 500; }
.diag__link { position: relative; height: 72px; display: grid; place-items: center; }
.diag__link::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed rgba(255, 255, 255, 0.45); }
.diag__link span { position: relative; background: var(--navy-ink); padding: 4px 12px; border-radius: 999px; font-size: 13px; color: #FFD3B8; box-shadow: inset 0 0 0 1px rgba(242, 106, 33, 0.5); }
.diag__cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, 0.35); }
.diag__cloud-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-inline-end: 6px; }
.diag__chip { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--on-navy-2); }

/* ---------- how to start ---------- */
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.start { padding: 128px 0 112px; background: var(--surface); }
.start h2, .faq h2 { font-weight: 750; font-stretch: 108%; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; }
:lang(ar) .start h2, :lang(ar) .faq h2 { line-height: 1.35; font-weight: 700; }
.start__lead { margin-top: 14px; color: var(--text-2); max-width: 56ch; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 0 32px 0 0; }
[dir="rtl"] .steps li { padding: 0 0 0 32px; }
.steps li::after { content: ""; position: absolute; top: 27px; inset-inline-start: 72px; inset-inline-end: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--navy-100) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 22px/1 "Archivo", sans-serif; font-stretch: 112%; }
.steps li:first-child .steps__n { background: var(--orange-action); }
.steps h3 { margin-top: 22px; font-size: 21px; line-height: 1.25; font-weight: 700; }
.steps p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.editions { margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--border); }
.editions__title { font-size: 24px; font-weight: 700; }
.editions__grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edition { padding: 28px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.edition .ic { width: 30px; height: 30px; color: var(--orange-action); }
.edition h4 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.edition p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.editions__price { margin-top: 22px; color: var(--text-2); }
.editions__price a { font-weight: 600; color: var(--orange-action); }

/* ---------- FAQ ---------- */
.faq { padding: 112px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq h2 { position: sticky; top: calc(var(--top-h) + 32px); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 4px; font-weight: 600; font-size: 18px; color: var(--navy-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163B63' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 24px; color: var(--text-2); max-width: 68ch; }

/* ---------- demo ---------- */
.demo { position: relative; color: #fff; background: var(--navy-deep); isolation: isolate; overflow: hidden; }
.demo__card { margin-top: 40px; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 24px 50px rgba(4, 16, 32, 0.45); }
.demo__in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.demo__copy { align-self: center; }
.demo h2 { color: #fff; font-weight: 800; font-stretch: 112%; font-size: clamp(36px, 4vw, 56px); line-height: 1.02; }
:lang(ar) .demo h2 { line-height: 1.3; font-weight: 700; }
.demo__copy > p { margin-top: 18px; color: var(--on-navy-2); max-width: 44ch; }
.demo__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.demo__mail { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.demo__mail:focus-visible { box-shadow: var(--focus-dark); }

.form { position: relative; background: var(--surface); color: var(--text); border-radius: 14px; padding: 32px; box-shadow: 0 30px 70px rgba(4, 16, 32, 0.45); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-ink); }
.field--wide { grid-column: 1 / -1; }
.field small { font-weight: 400; color: var(--text-2); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg);
  font: 400 16px/1.4 var(--font-body); color: var(--text); transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #3478C9; background: #fff; box-shadow: var(--focus); }
.field [aria-invalid="true"] { border-color: #D64545; background: #FCEDED; }
.form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile { margin-top: 16px; }
.form__status { min-height: 1.5em; margin: 14px 0 10px; font-size: 14px; color: #B23232; }
.form__privacy { margin-top: 12px; font-size: 13px; text-align: center; }
.form__privacy a { color: var(--text-2); }
.form__ok { position: absolute; inset: 0; border-radius: 14px; background: var(--surface); display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; }
.form__ok[hidden] { display: none; }
.form__ok .ic { color: var(--success); }
.form__ok h3 { font-size: 24px; }
.form__ok p { color: var(--text-2); }

/* ---------- footer ---------- */
.foot { background: var(--navy-ink); color: var(--on-navy-2); padding: 72px 0 32px; font-size: 15px; }
.foot__in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__brand p { margin-top: 14px; max-width: 36ch; }
.foot__by { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.foot__h { color: #fff; font: 600 15px/1.3 var(--font-body); }
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--on-navy-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot a:focus-visible { box-shadow: var(--focus-dark); }
.foot__rights { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 56px auto 0; padding: 24px var(--gutter) 0; border-top: 1px solid var(--on-navy-line); font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F8B4C; color: #fff; box-shadow: 0 10px 24px rgba(12, 36, 64, 0.35); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { background: #18723E; }
.wa-float:focus-visible { box-shadow: var(--focus-dark); }
.hero .btn .ic, .demo .btn .ic { width: 20px; height: 20px; }

/* ---------- legal / 404 pages ---------- */
.plain { padding: calc(var(--top-h) + 72px) 0 96px; }
.plain h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 750; font-stretch: 108%; line-height: 1.1; }
.plain h2 { font-size: 22px; margin-top: 36px; }
.plain p, .plain li { color: var(--text-2); margin-top: 12px; max-width: 70ch; }
.plain .note { margin-top: 20px; padding: 14px 16px; border-radius: 8px; background: #FDF4E6; color: #7a4c06; }
.plain-top { background: var(--navy-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .strip__list { grid-template-columns: repeat(3, 1fr); }
  .strip__list li:nth-child(4) { border-inline-start: 0; }
  .strip__list li:nth-child(n+4) { border-top: 1px solid var(--border); }
  .hero__in { grid-template-columns: 1fr; align-items: start; }
  .track-card { max-width: 380px; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  body { font-size: 16px; }
  .top__menu { display: block; }
  .top__nav {
    position: fixed; inset: var(--top-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px; background: var(--navy-deep); box-shadow: 0 16px 30px rgba(4, 16, 32, 0.4);
    display: none;
  }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .top__nav .btn { margin-top: 8px; min-height: 50px; }
  .top.menu-open { background: var(--navy-deep); }

  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 36, 64, 0.55) 0%, rgba(12, 36, 64, 0.88) 45%, rgba(12, 36, 64, 0.97) 100%) !important; }
  .hero__in { padding: calc(var(--top-h) + 120px) var(--gutter) 112px; gap: 36px; }
  .hero__title { font-size: clamp(38px, 10.5vw, 56px); }
  :lang(ar) .hero__title { font-size: clamp(34px, 9vw, 52px); }
  .track-card { max-width: none; }

  .strip { margin-top: -56px; }
  .strip__list { grid-template-columns: 1fr 1fr; }
  .strip__list li { padding: 18px 16px; font-size: 14px; border-inline-start: 0; }
  .strip__list li:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .strip__list li:nth-child(n+3) { border-top: 1px solid var(--border); }

  .feat { display: flex; flex-direction: column; padding: 72px 0 80px; }
  .feat__photo { order: 1; height: auto; aspect-ratio: 4 / 3; border-radius: 0 !important; }
  .feat__media { order: 2; margin: -72px var(--gutter) 0; }
  .feat__media--phone, .feat__media--label { margin-top: -120px; }
  .feat__body { order: 3; padding: 40px var(--gutter) 0; }
  .phone { width: 260px; }
  .awb { width: min(340px, 100%); }

  .offline__in, .demo__in { grid-template-columns: 1fr; padding-top: 88px; padding-bottom: 88px; gap: 48px; }
  .form { padding: 22px; }
  .form__grid { grid-template-columns: 1fr; }

  .start { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { padding: 0 0 0 76px !important; min-height: 56px; }
  [dir="rtl"] .steps li { padding: 0 76px 0 0 !important; }
  .steps__n { position: absolute; inset-inline-start: 0; top: 0; }
  .steps h3 { margin-top: 0; }
  .steps li::after { top: 64px; bottom: -30px; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--navy-100) 0 8px, transparent 8px 14px); }
  .editions__grid { grid-template-columns: 1fr; }
  .faq { padding: 80px 0; }
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq h2 { position: static; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
  .diag__clients { grid-template-columns: 1fr; }
  .diag__clients::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.top__nav--plain { display: flex !important; position: static !important; flex-direction: row !important; padding: 0 !important; box-shadow: none !important; background: none !important; }
.plain__cta { margin-top: 28px; }
