/* ==========================================================================
   Tawssil Maroc — système graphique « TAWSSIL FLOW »
   Mobile-first · propriétés logiques (fonctionne en LTR et en RTL)
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --navy: #102A56;
  --navy-2: #0B1F42;
  --blue: #1769E0;
  --teal: #0DC9BF;
  --amber: #FFB547;
  --soft: #F6F9FD;
  --graphite: #26364A;
  --muted: #5B6B82;
  --line: #E1E8F2;
  --white: #fff;
  --ok: #0F9D74;
  --err: #D23C4B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(16, 42, 86, .06), 0 4px 14px rgba(16, 42, 86, .06);
  --shadow-2: 0 2px 6px rgba(16, 42, 86, .08), 0 18px 40px rgba(16, 42, 86, .12);
  --grad: linear-gradient(100deg, var(--teal), var(--blue));
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Plex Arabic", "Inter", system-ui, Tahoma, Arial, sans-serif;
  --wrap: 1180px;
  --header-h: 68px;
}

*, *::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: 16px; line-height: 1.6;
  color: var(--graphite); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.55rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #C9D6EA; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }
.section--navy .eyebrow { color: var(--teal); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #AFC3E0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- icons ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir="rtl"] .ic-flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 6px 18px rgba(23, 105, 224, .25); white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23, 105, 224, .32); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 20px; height: 20px; }
.btn--amber { --bg: var(--amber); --fg: var(--navy); box-shadow: 0 6px 18px rgba(255, 181, 71, .35); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--navy); box-shadow: none; }
.btn--white { --bg: #fff; --fg: var(--navy); box-shadow: none; }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.btn--outline-light:hover { border-color: #fff; box-shadow: none; }
.btn--wa { --bg: #1FAF5A; --fg: #fff; box-shadow: 0 6px 18px rgba(31, 175, 90, .3); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .94rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }
html[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(4px); }

/* ---------- demo banner ---------- */
.demo-bar { background: var(--navy-2); color: #C9D6EA; font-size: .84rem; text-align: center; padding: 8px 16px; }
.demo-bar strong { color: var(--amber); font-weight: 600; }
.demo-bar[hidden] { display: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(16,42,86,.06); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 40px; height: 40px; }
.brand-word { font-family: var(--font); font-weight: 800; font-size: 1.32rem; letter-spacing: -.035em; color: var(--navy); direction: ltr; }
.brand-word span { color: var(--teal); }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: 8px 11px; border-radius: 10px; color: var(--graphite); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); background: rgba(23,105,224,.08); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: .92rem; }
.lang-switch:hover { background: var(--soft); }
.lang-switch .ic { width: 18px; height: 18px; }
.menu-btn { width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }

.mobile-nav { position: fixed; inset: calc(var(--header-h) + var(--bar-h, 0px)) 0 0 0; z-index: 99; background: #fff; padding: 20px 20px 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-nav li a { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.mobile-nav .btn { width: 100%; margin-top: 10px; }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-actions .btn:not(.btn--ghost) { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); background:
  radial-gradient(900px 500px at 85% -10%, rgba(13,201,191,.16), transparent 60%),
  radial-gradient(800px 520px at -10% 110%, rgba(23,105,224,.12), transparent 60%), var(--soft); }
html[dir="rtl"] .hero { background:
  radial-gradient(900px 500px at 15% -10%, rgba(13,201,191,.16), transparent 60%),
  radial-gradient(800px 520px at 110% 110%, rgba(23,105,224,.12), transparent 60%), var(--soft); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { display: block; }
.hero .lead { margin-bottom: 28px; }
.hero-signature { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--font-ar); font-weight: 600; font-size: 1.02rem; direction: rtl; }
.hero-signature i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* hero visual */
.hv { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; }
.hv-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-flow .path-bg { stroke: rgba(16,42,86,.1); }
.hv-flow .path { stroke: url(#hvgrad); stroke-dasharray: 8 12; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -40; } }
.hv-node { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); color: var(--navy); }
.hv-node::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(13,201,191,.4); animation: pulse 2.4s ease-out infinite; }
.hv-node.a { inset-inline-start: 2%; top: 12%; color: var(--amber); }
.hv-node.b { inset-inline-end: 1%; bottom: 8%; color: var(--blue); }
@keyframes pulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.phone { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); width: 62%; max-width: 310px; aspect-ratio: 9 / 17.5; background: var(--navy); border-radius: 38px; padding: 10px; box-shadow: 0 30px 60px rgba(16,42,86,.28), 0 0 0 1px rgba(255,255,255,.04) inset; }
html[dir="rtl"] .phone { transform: translate(50%, -50%); }
.phone-screen { height: 100%; border-radius: 30px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.ps-top { background: var(--navy); color: #fff; padding: 22px 18px 18px; }
.ps-top small { display: block; color: #9FB4D6; font-size: .72rem; }
.ps-code { font-family: var(--font); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; direction: ltr; text-align: start; }
.ps-tag { display: inline-block; margin-top: 8px; background: rgba(255,181,71,.16); color: var(--amber); font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.ps-route { display: flex; align-items: center; gap: 8px; padding: 16px 18px 6px; font-size: .78rem; color: var(--muted); }
.ps-route b { color: var(--navy); }
.ps-route .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.ps-route .bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 62%; background: var(--grad); border-radius: 6px; animation: grow 3s ease-in-out infinite alternate; }
@keyframes grow { from { width: 30%; } to { width: 72%; } }
.ps-steps { list-style: none; margin: 0; padding: 10px 18px; flex: 1; }
.ps-steps li { position: relative; display: flex; gap: 10px; padding-block: 8px; font-size: .78rem; color: var(--muted); }
.ps-steps li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; position: relative; z-index: 1; }
.ps-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 6px; top: 25px; bottom: -9px; width: 2px; background: var(--line); }
.ps-steps li.done::before { background: var(--teal); border-color: var(--teal); }
.ps-steps li.done:not(:last-child)::after { background: var(--teal); }
.ps-steps li.now::before { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.15); }
.ps-steps li b { display: block; color: var(--navy); font-size: .82rem; }
.ps-cta { margin: 0 14px 14px; padding: 11px; border-radius: 14px; background: var(--soft); text-align: center; font-size: .75rem; color: var(--navy); font-weight: 600; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-2); font-size: .82rem; color: var(--navy); font-weight: 600; animation: floaty 5s ease-in-out infinite; }
.float-card .ic { color: var(--teal); }
.float-card small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.float-card.c1 { inset-inline-end: 0; top: 18%; }
.float-card.c2 { inset-inline-start: 0; bottom: 20%; animation-delay: -2.5s; }
.float-card.c2 .ic { color: var(--amber); }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.parcel { position: absolute; width: 74px; height: 74px; inset-inline-end: 8%; top: 2%; filter: drop-shadow(0 14px 22px rgba(16,42,86,.2)); animation: floaty 6s ease-in-out infinite -1s; }

/* ---------- track band ---------- */
.track-band { position: relative; z-index: 2; margin-top: -24px; }
@media (min-width: 960px) { .track-band { margin-top: -44px; } }
.track-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-2); padding: clamp(20px, 3.5vw, 32px); display: grid; gap: 18px; align-items: center; border: 1px solid var(--line); }
.track-card h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; }
.track-card p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .track-card { grid-template-columns: .8fr 1.2fr; } }
.track-form { display: flex; flex-wrap: wrap; gap: 10px; }
.track-form .field { flex: 1 1 240px; margin: 0; }
.track-form .btn { flex: 0 0 auto; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 600; color: var(--navy); font-size: .94rem; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .84rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--navy); background: #fff; transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] select.input { background-position: 22px 50%, 16px 50%; }
.input:hover { border-color: #C3CFE0; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,224,.14); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(210,60,75,.1); }
.input-ltr { direction: ltr; text-align: start; }
html[dir="rtl"] .input-ltr { text-align: right; }
.hint { font-size: .84rem; color: var(--muted); }
.error-msg { font-size: .86rem; color: var(--err); font-weight: 600; min-height: 0; }
.error-msg:empty { display: none; }
.form-grid { display: grid; gap: 0 18px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--graphite); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-1); }
.form-card h2 { font-size: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.fieldset-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 8px 0 16px; padding: 0; }
html[lang="ar"] .fieldset-title { font-weight: 700; }
.fieldset-title .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy); background: #fff; transition: all .15s; }
.chip span .ic { width: 18px; height: 18px; }
.chip input:checked + span { border-color: var(--blue); background: rgba(23,105,224,.08); color: var(--blue); }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .94rem; border: 1px solid; }
.notice .ic { margin-top: 2px; }
.notice--info { background: #EEF5FF; border-color: #CFE0FB; color: #1A3E7A; }
.notice--warn { background: #FFF6E6; border-color: #FFE0A8; color: #7A4E00; }
.notice--ok { background: #E9F8F2; border-color: #BCEBD8; color: #0B5E46; }
.notice--err { background: #FDECEE; border-color: #F6C6CC; color: #8E1F2C; }
.notice p { margin: 0; }
.notice strong { display: block; margin-bottom: 2px; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card .link-arrow { margin-top: 6px; }
.card-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(23,105,224,.09); color: var(--blue); }
.card-ic.teal { background: rgba(13,201,191,.12); color: #089C94; }
.card-ic.amber { background: rgba(255,181,71,.18); color: #B87400; }
.card-ic.navy { background: var(--navy); color: #fff; }
.card .badge { position: absolute; top: 18px; inset-inline-end: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.badge--amber { background: rgba(255,181,71,.16); color: #8A5700; border-color: rgba(255,181,71,.4); }
.badge--teal { background: rgba(13,201,191,.12); color: #067A74; border-color: rgba(13,201,191,.35); }

/* ---------- timeline (how it works) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; position: relative; }
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-ic { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); flex: none; transition: background .4s, color .4s; }
.step-ic::after { counter-increment: s; content: counter(s); position: absolute; top: -4px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: .74rem; font-weight: 800; display: grid; place-items: center; font-family: var(--font); }
.step h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.steps.is-visible .step-ic { background: var(--navy); color: #fff; }
.steps.is-visible .step:nth-child(2) .step-ic { transition-delay: .25s; }
.steps.is-visible .step:nth-child(3) .step-ic { transition-delay: .5s; }
.steps.is-visible .step:nth-child(4) .step-ic { transition-delay: .75s; }
.steps.is-visible .step:nth-child(5) .step-ic { transition-delay: 1s; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .step { flex-direction: column; text-align: center; align-items: center; padding: 26px 16px; border: 0; background: transparent; }
  .steps::before { content: ""; position: absolute; top: 52px; inset-inline: 10%; height: 3px; border-radius: 3px; background: var(--line); }
  .steps::after { content: ""; position: absolute; top: 52px; inset-inline-start: 10%; height: 3px; width: 0; border-radius: 3px; background: var(--grad); transition: width 1.6s cubic-bezier(.6,.1,.2,1); }
  .steps.is-visible::after { width: 80%; }
  .step-ic { width: 56px; height: 56px; background: #fff; box-shadow: var(--shadow-1); }
}

/* ---------- split / feature ---------- */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.feature-list { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list li .ic { color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 1px; stroke-width: 2.6; }
.section--navy .feature-list li { color: #C9D6EA; }
.feature-list b { color: var(--navy); display: block; }
.section--navy .feature-list b { color: #fff; }
.feature-list small { color: var(--muted); font-size: .92rem; }
.section--navy .feature-list small { color: #9FB4D6; }

/* ecommerce visual */
.ev { position: relative; max-width: 520px; margin-inline: auto; width: 100%; aspect-ratio: 1.05; }
.ev-shop { position: absolute; inset-inline-start: 0; top: 6%; width: 64%; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.25); color: var(--navy); }
.ev-shop-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .92rem; margin-bottom: 12px; }
.ev-shop-head i { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); }
.ev-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-item { border-radius: 14px; background: var(--soft); padding: 10px; font-size: .74rem; color: var(--muted); }
.ev-item i { display: block; aspect-ratio: 1.2; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(135deg, #E6EEF9, #D2E0F5); }
.ev-item:nth-child(2) i { background: linear-gradient(135deg, #DDF7F4, #BFEDE8); }
.ev-item:nth-child(3) i { background: linear-gradient(135deg, #FFF0D6, #FFE1A8); }
.ev-item b { display: block; color: var(--navy); font-size: .8rem; }
.ev-order { position: absolute; inset-inline-end: 0; bottom: 6%; width: 58%; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.3); color: #C9D6EA; font-size: .82rem; }
.ev-order h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.ev-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.ev-row:last-of-type { border: 0; }
.ev-row b { color: #fff; font-weight: 600; }
.ev-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(13,201,191,.16); color: var(--teal); }
.ev-pill.amber { background: rgba(255,181,71,.16); color: var(--amber); }
.ev-link { position: absolute; inset-inline-start: 40%; top: 50%; width: 30%; height: 30%; }

/* ---------- pricing / simulator ---------- */
.sim { position: relative; }
.sim-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; opacity: .6; pointer-events: none; filter: saturate(.6); }
.sim-fields .field { margin: 0; }
.sim-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.sim-lock .notice { max-width: 400px; box-shadow: var(--shadow-2); }

/* ---------- zones / network ---------- */
.net { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.net svg { width: 100%; height: 100%; }
.net .ln { stroke: rgba(13,201,191,.45); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 3s linear infinite; }
.net .dt { fill: #fff; }
.net .dt.hub { fill: var(--amber); }
.net .halo { fill: rgba(13,201,191,.18); transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.city-search { max-width: 460px; }
.city-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.city-list li .ic { width: 16px; height: 16px; color: var(--teal); }

/* ---------- why ---------- */
.why { display: grid; gap: 18px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why { grid-template-columns: repeat(5, 1fr); } }
.why-item { padding: 24px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.why-item .card-ic { background: rgba(13,201,191,.14); color: var(--teal); margin-bottom: 16px; }
.why-item h3 { font-size: 1.04rem; margin-bottom: 6px; }
.why-item p { margin: 0; font-size: .92rem; color: #9FB4D6; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.is-open { box-shadow: var(--shadow-1); border-color: #C9D8EE; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--navy); font-size: 1.04rem; text-align: start; cursor: pointer; }
.faq-q .pm { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); flex: none; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; inset-inline-start: 8px; top: 13px; width: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s; }
.faq-q .pm::after { transform: rotate(90deg); }
.faq-item.is-open .pm { background: var(--navy); }
.faq-item.is-open .pm::before, .faq-item.is-open .pm::after { background: #fff; }
.faq-item.is-open .pm::after { transform: rotate(0); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a[hidden] { display: none; }
.faq-a p:last-child { margin: 0; }
.faq-cat { margin: 36px 0 14px; font-size: 1.1rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 6vw, 72px); background: var(--navy); color: #C9D6EA; text-align: center; }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(13,201,191,.35), transparent 65%); }
.cta::after { content: ""; position: absolute; inset: auto auto -50% -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(23,105,224,.45), transparent 65%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 680px; margin-inline: auto; }
.cta p { max-width: 560px; margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); background: var(--navy); color: #C9D6EA; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(13,201,191,.28), transparent 65%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); max-width: 820px; }
.page-hero .lead { color: #AFC3E0; }
.page-hero .eyebrow { color: var(--teal); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: .86rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #6F86AB; }
.crumbs a { color: #AFC3E0; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.flowline { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--grad); transform-origin: left; animation: flowin 1.2s cubic-bezier(.6,.1,.2,1) both; }
html[dir="rtl"] .flowline { transform-origin: right; }
@keyframes flowin { from { transform: scaleX(0); } }

/* ---------- prose (legal) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.todo { background: rgba(255,181,71,.2); color: #7A4E00; padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .92em; }

/* ---------- tracking result ---------- */
.track-result { margin-top: 26px; }
.tr-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 20px 22px; background: var(--soft); border-bottom: 1px solid var(--line); }
.tr-head .code { font-weight: 800; color: var(--navy); font-size: 1.1rem; direction: ltr; }
.tr-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(23,105,224,.1); color: var(--blue); font-weight: 700; font-size: .9rem; }
.tr-body { padding: 22px; }
.tr-steps { list-style: none; margin: 0; padding: 0; }
.tr-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.tr-steps li:last-child { padding-bottom: 0; }
.tr-steps .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; flex: none; }
.tr-steps .dot .ic { width: 16px; height: 16px; stroke-width: 3; }
.tr-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.tr-steps li.done .dot { background: var(--teal); }
.tr-steps li.done:not(:last-child)::after { background: var(--teal); }
.tr-steps li.now .dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(23,105,224,.15); }
.tr-steps b { color: var(--navy); display: block; }
.tr-steps small { color: var(--muted); }
.tr-steps li.todo-step b { color: var(--muted); font-weight: 600; }
.tr-foot { padding: 16px 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.skeleton { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FC 50%, #EEF2F8 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.contact-list .card-ic { width: 46px; height: 46px; border-radius: 14px; }
.contact-list b { display: block; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #9FB4D6; padding-block: 64px 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .brand-word { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #9FB4D6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 16px 0; max-width: 34ch; }
.footer-sig { font-family: var(--font-ar); color: var(--teal); font-weight: 600; direction: rtl; text-align: start; }
html[dir="ltr"] .footer-sig { text-align: left; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.socials a:hover { background: rgba(255,255,255,.14); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer-bottom button { background: none; border: 0; color: #9FB4D6; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #1FAF5A; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(31,175,90,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float[hidden] { display: none; }

/* ---------- consent ---------- */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 120; max-width: 520px; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(16,42,86,.25); padding: 20px; border: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin-bottom: 6px; }
.consent p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.consent .btn-row { gap: 8px; }

/* ---------- toast ---------- */
.toast-region { position: fixed; inset-inline: 0; top: 84px; z-index: 150; display: grid; justify-items: center; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; max-width: 480px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-2); font-size: .94rem; animation: toastin .25s ease; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1.3fr .7fr; align-items: start; } .sticky { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { background: var(--soft); border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.aside-card h2, .aside-card h3 { font-size: 1.15rem; }
.aside-card ul { padding-inline-start: 1.1em; margin: 0 0 16px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .wa-float, .consent, .demo-bar { display: none !important; } }

@media (min-width: 1360px) { .header-actions .btn--ghost { display: inline-flex; } }
@media (max-width: 959px) {
  .hero { padding-bottom: 72px; }
  .hv { max-width: 400px; }
  .float-card { font-size: .74rem; padding: 9px 11px; }
  .float-card small { display: none; }
  .float-card.c1 { top: 8%; }
  .float-card.c2 { bottom: 6%; }
}
@media (max-width: 420px) { .float-card.c2 { display: none; } .consent { inset-inline: 10px; bottom: 10px; padding: 16px; } }
