/* Tunideli public site ("vitrine") — one stylesheet for home, content pages, tracking and auth.
   Direction: Swiss-minimal, Tunisian red used for actions and accents only (docs/DESIGN-SYSTEM.md).
   Logical properties everywhere so Arabic (dir=rtl) mirrors without overrides. */

:root {
  --red: #E70013; --red-700: #B00810; --red-900: #7F0109; --red-50: #FFF1F2; --red-100: #FFE4E6; --red-200: #F9C7CC;
  --ink: #111827; --ink-2: #1F2A3D; --muted: #536072; --faint: #8A94A6;
  --line: #E7EAF0; --line-2: #D5DBE5; --bg: #FFFFFF; --bg-soft: #F6F7F9;
  --night: #0E1522; --night-2: #182235; --night-line: #263248; --night-text: #C9D2DF;
  --ok: #0B6B3F; --ok-50: #E7F6EE; --warn: #7A4A05; --warn-50: #FBF0DE;
  --info: #075985; --info-50: #E3F2FB; --danger: #B42318; --danger-50: #FDECEC;
  --radius-sm: 10px; --radius: 14px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .18);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -20px rgba(16, 24, 40, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px; --gutter: 16px; --header-h: 68px;
  --focus: var(--red);
}
:root[lang^="ar"] { --font: "Tajawal", "Inter", system-ui, "Segoe UI", Tahoma, Arial, sans-serif; }
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 72px; } }
@media (min-width: 1280px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:lang(ar) body, body:lang(ar) { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
a { color: var(--red-700); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.on-dark, .on-red { --focus: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; } .icon--lg { width: 24px; height: 24px; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(231, 0, 19, .65); }
.btn--primary:hover { background: var(--red-700); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--red-700); }
.btn--white:hover { background: var(--red-50); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; border-radius: 14px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red-700); text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 36px; width: auto; }
@media (min-width: 768px) { .brand img { height: 44px; } }
.site-header .btn { white-space: nowrap; }
.nav-main { display: none; margin-inline-start: 12px; }
.nav-main ul { display: flex; gap: 2px; list-style: none; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; border-radius: 10px; color: var(--ink-2);
  font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color .18s, color .18s; }
.nav-main a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-main a[aria-current="page"] { color: var(--red-700); background: var(--red-50); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.site-header__actions .btn--login, .site-header__actions .lang { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--ink); }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__inner { padding-block: 12px 24px; display: grid; gap: 16px; }
.mobile-nav nav ul { list-style: none; display: grid; gap: 2px; }
.mobile-nav nav ul a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 12px;
  border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.mobile-nav nav ul a:hover, .mobile-nav nav ul a[aria-current="page"] { background: var(--red-50); color: var(--red-700); }
.mobile-nav__cta { display: grid; gap: 10px; }
.mobile-nav__label { margin-bottom: 8px; }
main:focus { outline: none; }
@media (max-width: 479px) { .site-header__actions .btn--become { display: none; } }
@media (min-width: 1200px) {
  .nav-main { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .site-header__actions .btn--login, .site-header__actions .lang { display: inline-flex; }
}

/* Language switch (native <details>) */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: .875rem; color: var(--ink-2); border: 1px solid transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--bg-soft); border-color: var(--line); }
.lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 190px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; list-style: none; z-index: 60; }
.lang__menu a, .lang-pills a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--red-50); color: var(--red-700); }
.lang__code { font-size: .75rem; font-weight: 800; color: var(--muted); }
.lang-pills { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.lang-pills a { border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; }
.lang-pills a[aria-current="true"] { border-color: var(--red); color: var(--red-700); background: var(--red-50); }

/* ---------- Flash + alerts ---------- */
.flash { padding-block: 16px 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-weight: 500; }
.alert + .alert { margin-top: 8px; }
.alert .icon { margin-top: 2px; }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; list-style: disc; }
.alert--success { background: var(--ok-50); border-color: #A7DDBF; color: var(--ok); }
.alert--error { background: var(--danger-50); border-color: #F5B5B5; color: #8F1C14; }
.alert--warning { background: var(--warn-50); border-color: #EBCB91; color: var(--warn); }
.alert--info { background: var(--info-50); border-color: #A9D3EE; color: var(--info); }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section--soft { background: var(--bg-soft); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
.section-head .lead { margin-top: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--red-700); font-weight: 700;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--red); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9375rem; }
.section--night .eyebrow { color: #FF8F99; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 62ch; }
@media (min-width: 768px) { .lead { font-size: 1.125rem; } }
.section--night .lead { color: var(--night-text); }
.dots-bg { background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(17, 24, 39, .09) 1px, transparent 1.2px); background-size: 22px 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 40px 56px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-block: 72px 88px; } }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.25rem, 4.2vw + 1rem, 4rem); line-height: 1.05; letter-spacing: -.035em; }
:lang(ar) .hero h1 { line-height: 1.3; letter-spacing: 0; }
.hero h1 .accent { color: var(--red); display: block; }
.hero__sub { margin-top: 20px; font-size: 1.0625rem; color: var(--ink-2); max-width: 58ch; }
@media (min-width: 768px) { .hero__sub { font-size: 1.1875rem; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__cta .btn { flex: 0 0 auto; } }
.checklist { display: grid; gap: 10px; margin-top: 24px; list-style: none; }
@media (min-width: 640px) { .checklist--inline { display: flex; flex-wrap: wrap; gap: 10px 22px; } }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.checklist .icon { width: 22px; height: 22px; padding: 4px; border-radius: 99px; background: var(--ok-50); color: var(--ok); stroke-width: 3; }

/* Tracking card ("parcel label") */
.track-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.track-card__head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px dashed var(--line-2); }
.track-card__badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; flex: none; }
.track-card__head h2 { font-size: 1.25rem; letter-spacing: -.01em; }
.track-card__head p { font-size: .9375rem; color: var(--muted); margin-top: 2px; }
.track-card__body { padding: 20px 22px 22px; }
.track-form label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 8px; }
.track-form__row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .track-form__row { flex-direction: row; } .track-form__row .btn { flex: none; } }
.track-form .hint { margin-top: 10px; }
.stages { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.stages__title { font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
:lang(ar) .stages__title { letter-spacing: 0; font-size: .9375rem; }
.stages ol { list-style: none; display: grid; gap: 0; margin-top: 12px; }
.stages li { position: relative; display: flex; align-items: center; gap: 12px; padding-block: 7px; font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
.stages li::before { content: ""; width: 12px; height: 12px; border-radius: 99px; border: 2px solid var(--red); background: #fff; flex: none; z-index: 1; }
.stages li:last-child::before { background: var(--red); }
.stages li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 5px; top: 50%; height: 100%; border-inline-start: 2px dashed var(--red-200); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row > .field + .field { margin-top: 0; }
.field label, .label { font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.req { color: var(--red-700); font-weight: 700; }
.opt { color: var(--muted); font-weight: 500; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff;
  font-size: 1rem; line-height: 1.4; transition: border-color .18s, box-shadow .18s; }
.input::placeholder { color: var(--faint); }
.input:hover { border-color: #B9C2D0; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(231, 0, 19, .14); }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
textarea.input { min-height: 150px; resize: vertical; }
textarea.input[rows="3"] { min-height: 96px; }
select.input { appearance: none; padding-inline-end: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
[dir="rtl"] select.input { background-position: left 14px center; }
.input-group { display: flex; align-items: stretch; }
.input-group__addon { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--bg-soft); color: var(--ink-2); font-weight: 700; }
.input-group .input { border-radius: 0 12px 12px 0; min-width: 0; }
.input--code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-weight: 700; }
.hint { font-size: .875rem; color: var(--muted); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: .875rem; font-weight: 600; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.password-wrap { position: relative; }
.password-wrap .input { padding-inline-end: 56px; }
.password-toggle { position: absolute; inset-inline-end: 3px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 10px; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.password-toggle[hidden] { display: none; }
.password-toggle .icon--hide { display: none; }
.password-toggle[aria-pressed="true"] .icon--show { display: none; }
.password-toggle[aria-pressed="true"] .icon--hide { display: block; }

/* ---------- Cards / features ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card--pad-lg { padding: 28px; }
@media (min-width: 768px) { .card--pad-lg { padding: 36px; } }
.icon-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red-700); flex: none; }
.icon-tile .icon { width: 22px; height: 22px; }
.feature-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.feature { display: grid; gap: 12px; align-content: start; }
.feature h3 { font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.3; }
.feature p { color: var(--muted); font-size: .9375rem; }
.feature--accent { background: var(--red-50); border-color: var(--red-100); }
@media (max-width: 639px) {
  .feature, .audience .card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .feature > .icon-tile, .audience .card > .icon-tile { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .feature > :not(.icon-tile), .audience .card > :not(.icon-tile) { grid-column: 2; }
}
.feature--accent .icon-tile { background: var(--red); color: #fff; }
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .split__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.split__aside h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); }
.split__aside .lead { margin-top: 14px; }
.split__aside .btn { margin-top: 28px; }
.split__note { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

/* ---------- Steps (route) ---------- */
.steps { position: relative; display: grid; gap: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; inset-inline-start: 23px; top: 24px; bottom: 24px; border-inline-start: 2px dashed var(--red-200); }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 14px; }
.step__pin { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.125rem; box-shadow: 0 8px 18px -10px rgba(231, 0, 19, .8); }
.step h3 { font-size: 1.125rem; line-height: 1.3; margin-top: 2px; }
.step p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.step__icon { display: inline-flex; color: var(--red-700); margin-bottom: 6px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .steps::before { inset-inline: 24px; top: 24px; bottom: auto; border-inline-start: 0; border-top: 2px dashed var(--red-200); }
  .step { grid-template-columns: 1fr; gap: 18px; padding-block: 0; }
}

/* ---------- Audience (customers) ---------- */
.audience { display: grid; gap: 14px; }
@media (min-width: 640px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .audience { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.audience .card { display: grid; gap: 12px; align-content: start; }
.audience h3, .audience .h3 { font-size: 1.0625rem; line-height: 1.3; }
.audience p { color: var(--muted); font-size: .9375rem; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.section-head--center + * + .section-actions, .section-actions--center { justify-content: center; }

/* ---------- Apps ---------- */
.apps-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.app-card { display: grid; gap: 24px; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .app-card { grid-template-columns: minmax(0, 1fr) 164px; padding: 28px; } }
@media (min-width: 1280px) { .app-card { grid-template-columns: minmax(0, 1fr) 184px; } }
.app-card__head { display: flex; gap: 14px; align-items: center; }
.app-card__icon { width: 60px; height: 60px; border-radius: 16px; flex: none; box-shadow: var(--shadow-md); }
.app-card h3 { color: var(--ink) !important; font-size: 1.375rem; letter-spacing: -.015em; }
.app-card__for { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.app-card__features { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.app-card__features li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); }
.app-card__features .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; stroke-width: 3; }
.app-card__actions { margin-top: 22px; display: grid; gap: 12px; }
.app-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--muted); }
.app-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.app-card__qr { display: none; align-items: center; gap: 14px; margin-top: 4px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 14px; }
.app-card__qr .qr { width: 120px; height: 120px; flex: none; }
.app-card__qr p { font-size: .875rem; color: var(--muted); }
@media (min-width: 768px) and (hover: hover) { .app-card__qr { display: flex; } }
.app-card__shot { display: none; margin: 0; align-self: center; }
@media (min-width: 640px) { .app-card__shot { display: block; } }
.phone { width: 100%; max-width: 184px; margin-inline: auto; padding: 7px; border-radius: 28px;
  background: #0B0F19; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px #2A3142; }
.phone img { width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 22px; background: #F4F6F9; }
.phone__caption { margin-top: 10px; text-align: center; font-size: .75rem; color: var(--muted); }
.install { margin-top: 24px; border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-2); }
.install summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  cursor: pointer; list-style: none; color: #fff; font-weight: 700; }
.install summary::-webkit-details-marker { display: none; }
.install summary .icon { transition: transform .2s; }
.install[open] summary .icon { transform: rotate(180deg); }
.install__body { padding: 0 20px 20px; }
.install ol { counter-reset: n; list-style: none; display: grid; gap: 12px; }
.install li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.install li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--red); color: #fff; font-weight: 800; }
.install__note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #E7ECF3; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s, box-shadow .18s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--red-700); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 20px 20px; color: var(--ink-2); max-width: 75ch; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.375rem; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; gap: 24px; padding: 36px 24px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%); color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 56px; } }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .08); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.625rem, 2vw + 1rem, 2.375rem); }
.cta-band p { margin-top: 12px; color: rgba(255, 255, 255, .92); font-size: 1.0625rem; max-width: 56ch; }
.cta-band__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions .btn { flex: 1 1 auto; }
.cta-band a.cta-band__phone { color: #fff; font-weight: 700; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 36px 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .page-hero { padding-block: 56px 64px; } }
.page-hero h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); max-width: 24ch; }
.page-hero .lead { margin-top: 14px; }
.page-hero + .section { padding-top: 40px; }
@media (min-width: 1024px) { .page-hero + .section { padding-top: 56px; } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-700); text-decoration: underline; }

/* ---------- Prose / legal ---------- */
.legal { display: grid; gap: 32px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; } }
.toc { display: none; }
@media (min-width: 1024px) { .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.toc p { font-weight: 700; font-size: .8125rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
:lang(ar) .toc p { letter-spacing: 0; }
.toc ol { list-style: none; display: grid; gap: 2px; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 8px 14px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--red-700); border-inline-start-color: var(--red); }
.prose { max-width: 74ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; }
.prose section + section { margin-top: 36px; }
.prose h2 { font-size: 1.375rem; margin-bottom: 12px; letter-spacing: -.01em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-inline-start: 22px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.note-box { margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .9375rem; color: var(--muted); max-width: 74ch; }
.values { display: grid; gap: 14px; margin-top: 8px; }
.values .feature p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.about-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
  .about-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.about-aside { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; } }
.contact-methods { display: grid; gap: 16px; list-style: none; margin-top: 20px; }
.contact-method { display: flex; gap: 14px; align-items: center; }
.contact-method__label { font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
:lang(ar) .contact-method__label { letter-spacing: 0; font-size: .875rem; }
.contact-method__value { font-weight: 700; color: var(--ink); font-size: 1.0625rem; text-decoration: none; overflow-wrap: anywhere; }
a.contact-method__value { display: inline-flex; align-items: center; min-height: 44px; }
a.contact-method__value:hover { color: var(--red-700); text-decoration: underline; }
.map { margin-top: 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card h2 { font-size: 1.5rem; }
.form-card .lead { font-size: 1rem; margin-top: 6px; }
.form-card form { margin-top: 24px; }
.form-actions { margin-top: 24px; display: grid; gap: 12px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; color: var(--muted); }

/* ---------- Tracking page ---------- */
.track-search { max-width: 760px; }
.track-result { display: grid; gap: 20px; }
@media (min-width: 1024px) { .track-result { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; } }
.track-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.track-status h2 { font-size: 1.5rem; }
.track-id { font-size: .9375rem; color: var(--muted); margin-top: 4px; }
.track-id strong { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .875rem; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.chip--info { background: var(--info-50); color: var(--info); }
.chip--ok { background: var(--ok-50); color: var(--ok); }
.chip--warn { background: var(--warn-50); color: var(--warn); }
.chip--danger { background: var(--danger-50); color: #8F1C14; }
.chip--muted { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.stepper { list-style: none; display: grid; gap: 0; margin-top: 28px; }
.stepper li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; padding-block: 8px; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--line-2); background: #fff; color: #fff; }
.stepper__dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: calc(50% + 14px); height: calc(100% - 28px); border-inline-start: 2px solid var(--line-2); }
.stepper .is-done { color: var(--ink-2); }
.stepper .is-done .stepper__dot { background: var(--red); border-color: var(--red); }
.stepper .is-done:not(:last-child)::after { border-color: var(--red); }
.stepper .is-current { color: var(--ink); font-weight: 800; }
.stepper .is-current .stepper__dot { box-shadow: 0 0 0 5px var(--red-100); }
@media (min-width: 768px) {
  .stepper { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stepper li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding-block: 0; align-content: start; }
  .stepper li:not(:last-child)::after { inset-inline-start: calc(50% + 14px); top: 13px; height: 0; width: calc(100% - 28px); border-inline-start: 0; border-top: 2px solid var(--line-2); }
  .stepper .is-done:not(:last-child)::after { border-color: var(--red); }
}
.track-search { margin-top: 28px; }
.track-history { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.track-history h3 { font-size: 1.0625rem; margin-bottom: 16px; }
.timeline { list-style: none; display: grid; gap: 0; }
.kv + .form-note { margin-top: 12px; }
.card .section-actions { margin-top: 16px; }
.timeline li { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding-bottom: 20px; }
.timeline li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; margin-inline-start: 2px; border-radius: 99px; background: var(--line-2); }
.timeline li:first-of-type::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-100); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 7px; top: 22px; bottom: 2px; border-inline-start: 2px solid var(--line); }
.timeline time { display: block; font-size: .875rem; color: var(--muted); }
.timeline strong { display: block; color: var(--ink); }
.kv { list-style: none; display: grid; gap: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.kv li:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv strong { text-align: end; }
.amount { font-variant-numeric: tabular-nums; color: var(--red-700); font-size: 1.25rem; }
.aside-stack { display: grid; gap: 16px; }
.aside-stack h2 { font-size: 1.125rem; margin-bottom: 8px; }
.empty-state { text-align: center; max-width: 560px; margin-inline: auto; }
.empty-state img { margin: 0 auto 8px; width: 220px; }
.empty-state h2 { font-size: 1.5rem; }
.empty-state p { margin-top: 10px; color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; }
.notice--warn { background: var(--warn-50); color: var(--warn); }
.notice--danger { background: var(--danger-50); color: #8F1C14; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding-block: 56px 28px; font-size: .9375rem; }
.site-footer a { color: #E6EBF2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand, .footer-col--contact { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } .footer-col--contact { grid-column: auto; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; text-decoration: none !important; }
.footer-logo img { width: 40px; height: 40px; border-radius: 11px; }
.footer-brand p { margin-top: 14px; max-width: 42ch; }
.footer-col h2 { color: #fff; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
:lang(ar) .footer-col h2 { letter-spacing: 0; font-size: .9375rem; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col li a, .footer-col li > span { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.footer-col .icon { color: #FF8F99; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .875rem; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.footer-langs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--night-line); }
.footer-langs a[aria-current="true"] { border-color: #FF8F99; color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.auth-panel { display: none; position: relative; overflow: hidden; background: var(--night); color: var(--night-text); padding: 48px; }
@media (min-width: 1024px) { .auth-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; } }
.auth-panel::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 56px solid rgba(231, 0, 19, .22); pointer-events: none; }
.auth-panel h2 { color: #fff; font-size: 2.25rem; max-width: 16ch; }
.auth-panel p { margin-top: 14px; font-size: 1.0625rem; max-width: 40ch; }
.auth-panel .checklist li { color: #E6EBF2; }
.auth-panel .checklist .icon { background: rgba(255, 255, 255, .1); color: #7EE2A8; }
.auth-panel a { color: #fff; }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg-soft); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); background: #fff; border-bottom: 1px solid var(--line); }
.auth-top .brand img { height: 34px; }
@media (min-width: 1024px) { .auth-top { justify-content: flex-end; background: transparent; border-bottom: 0; } .auth-top .brand { display: none; } }
.auth-top .lang { display: inline-flex; }
.auth-flash { margin-bottom: 20px; }
.auth-panel .link-arrow { color: #fff; }
.icon--back { transform: scaleX(-1); }
[dir="rtl"] .icon--back { transform: none; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px var(--gutter) 48px; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 22px; }
@media (min-width: 640px) { .auth-card { padding: 36px; } }
.auth-card--wide { max-width: 620px; }
.auth-card h1 { font-size: 1.75rem; letter-spacing: -.02em; }
.auth-card .lead { font-size: 1rem; margin-top: 8px; }
.auth-card form { margin-top: 24px; }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9375rem; }
.auth-alt a { font-weight: 700; }
.auth-alt p + p, .auth-alt form + p { margin-top: 6px; }
.auth-alt form { display: flex; align-items: center; justify-content: center; gap: 4px 8px; flex-wrap: wrap; }
.auth-card > .alert { margin-top: 20px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.auth-links a { font-weight: 600; font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.signup-steps { list-style: none; display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.signup-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg-soft); }
[dir="rtl"] .signup-steps li { padding: 6px 6px 6px 12px; }
.signup-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--line-2); color: var(--ink); font-size: .75rem; }
.signup-steps .is-current { background: var(--red-50); color: var(--red-700); }
.signup-steps .is-current b { background: var(--red); color: #fff; }
.auth-foot { padding: 16px var(--gutter) 24px; font-size: .8125rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .cta-band, .mobile-nav { display: none !important; } }
