/* ==========================================================================
   Jemly — Official website stylesheet
   Brand: navy #0B1D3A · accent #FF6A00 / #FFB020 · clean white
   Arabic-first (RTL), fully logical properties.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #081428;
  --navy: #0b1d3a;
  --navy-700: #12294a;
  --navy-600: #1b3760;
  --orange: #ff6a00;
  --orange-600: #e85c00;
  --amber: #ffb020;
  --ink: #0c1929;
  --body: #55647c;
  --muted: #7c8aa0;
  --line: #e7ecf4;
  --line-strong: #d7dfec;
  --surface: #f6f8fc;
  --surface-2: #eef3fa;
  --white: #ffffff;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 29, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.06), 0 1px 2px rgba(11, 29, 58, 0.04);
  --shadow-md: 0 16px 40px -18px rgba(11, 29, 58, 0.28), 0 2px 8px rgba(11, 29, 58, 0.05);
  --shadow-lg: 0 40px 90px -40px rgba(11, 29, 58, 0.4), 0 8px 24px -12px rgba(11, 29, 58, 0.12);

  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --header-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.85;
}

html[lang="ar"] {
  --font-display: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { line-height: 1.35; letter-spacing: 0; font-weight: 700; }
p { margin: 0; }

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
}

.section { padding-block: clamp(64px, 8vw, 116px); position: relative; }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 12.5px; }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}
html[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, var(--amber), var(--orange)); }

.h-display {
  font-size: clamp(30px, 4.1vw, 46px);
  letter-spacing: -0.032em;
}
html[lang="ar"] .h-display { font-size: clamp(26px, 3.6vw, 40px); }

.lede {
  color: var(--body);
  font-size: clamp(15.5px, 1.15vw, 17px);
  max-width: 56ch;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .lede { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 650;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, #ff7d1a, var(--orange) 55%, #f05c00);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(255, 106, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 16px 32px -14px rgba(255, 106, 0, 0.9); transform: translateY(-1px); }

.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(11, 29, 58, 0.8);
}
.btn--navy:hover { background: var(--navy-700); transform: translateY(-1px); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }

.btn--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.18); }

.btn--sm { padding: 10px 17px; font-size: 13.5px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -24px rgba(11, 29, 58, 0.6);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
html[lang="ar"] .brand img { height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 8px;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 550;
  color: #33415c;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--navy); background: var(--surface); }
.nav a.is-active { color: var(--navy); font-weight: 650; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav .nav-cta { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.lang-btn svg { width: 15px; height: 15px; opacity: 0.55; transition: transform 0.25s var(--ease); }
.lang.is-open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0.2s;
  z-index: 90;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 550;
  color: #33415c;
  text-align: start;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu button:hover { background: var(--surface); color: var(--navy); }
.lang-menu button[aria-checked="true"] { color: var(--navy); font-weight: 700; background: var(--surface); }
.lang-menu .tick { width: 15px; height: 15px; color: var(--orange); opacity: 0; }
.lang-menu button[aria-checked="true"] .tick { opacity: 1; }
.lang-code {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-5.5px); }
.nav-toggle span::after { transform: translateY(3.8px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-1.8px) rotate(-45deg); }
body.nav-open .nav-toggle span { height: 1.8px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 84px) clamp(40px, 5vw, 70px);
  background:
    radial-gradient(58% 62% at 78% 8%, rgba(255, 176, 32, 0.13), transparent 62%),
    radial-gradient(46% 52% at 12% 4%, rgba(11, 29, 58, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 29, 58, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 22px;
}
html[dir="rtl"] .hero-badge { padding: 6px 6px 6px 14px; }
.hero-badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #fff3e3, #ffe3c9);
  color: #b24a00;
  font-size: 11.5px;
  font-weight: 700;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #15a06a;
  box-shadow: 0 0 0 3px rgba(21, 160, 106, 0.15);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -0.042em;
  line-height: 1.03;
}
html[lang="ar"] .hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.24; letter-spacing: 0; }
.hero h1 .accent {
  position: relative;
  color: var(--navy);
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  bottom: 0.06em;
  height: 0.16em;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  opacity: 0.85;
  z-index: -1;
}
.hero-sub {
  margin-top: 18px;
  color: var(--body);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  max-width: 44ch;
}

/* Tracking card */
.track-card {
  position: relative;
  margin-top: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(215, 223, 236, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.track-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 10px;
}
.track-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.track-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 15px;
  padding-inline: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.track-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11, 29, 58, 0.08);
}
.track-field.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.09);
  animation: shake 0.35s ease;
}
.track-field > svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-inline-end: 10px; }
.track-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding-block: 14px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
  min-width: 0;
}
.track-field input::placeholder { color: #9aa6ba; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.track-submit { flex: none; padding-inline: 24px; }
html[dir="rtl"] .track-submit .arrow { transform: scaleX(-1); }
.track-submit .spinner { display: none; }
.track-card.is-loading .track-submit .label { display: none; }
.track-card.is-loading .track-submit .spinner { display: inline-block; }
.track-card.is-loading .track-submit { pointer-events: none; opacity: 0.85; }

.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.track-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #5b697f;
}
.track-hint svg { width: 14px; height: 14px; flex: none; }
.track-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: var(--navy);
}

/* Result panel inside the hero */
.track-result {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.35s ease, margin 0.4s ease;
}
.track-result.is-open { max-height: 900px; opacity: 1; margin-top: 18px; }
.track-result-inner {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(120deg, #f8fbff, #f3f7fd);
  border-bottom: 1px solid var(--line);
}
.result-top .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}
.result-top .icon-tile svg { width: 20px; height: 20px; }
.result-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result-id span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.result-id strong { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.02em; color: var(--navy); }
.result-status {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  background: #eaf1ff;
  color: #1a3d7c;
  white-space: nowrap;
}
.result-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.result-status[data-tone="progress"] { background: #fff4e5; color: #a34f00; }
.result-status[data-tone="done"] { background: #e8f8f1; color: #0b7a4f; }
.result-status[data-tone="alert"] { background: #fdecea; color: #b42318; }

.timeline { padding: 20px 18px 8px; }
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}
.tl-step:last-child { padding-bottom: 4px; }
.tl-marker { position: relative; display: flex; justify-content: center; }
.tl-marker::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -18px;
  width: 2px;
  background: var(--line);
}
.tl-step:last-child .tl-marker::before { display: none; }
.tl-step.is-done .tl-marker::before { background: linear-gradient(180deg, #15a06a, #8fd8ba); }
.tl-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.3s ease;
}
.tl-dot svg { width: 11px; height: 11px; color: #fff; opacity: 0; transition: opacity 0.25s ease; }
.tl-step.is-done .tl-dot { border-color: #15a06a; background: #15a06a; }
.tl-step.is-done .tl-dot svg { opacity: 1; }
.tl-step.is-current .tl-dot {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.14);
}
.tl-step.is-current .tl-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}
.tl-body { padding-top: 0; }
.tl-title { font-size: 14.5px; font-weight: 650; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-step.is-pending .tl-title { color: var(--muted); font-weight: 550; }
.tl-step.is-current .tl-title { color: var(--orange-600); }
.tl-date { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.tl-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff3e4;
  color: #b24a00;
  border-radius: 5px;
  padding: 1px 6px;
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.result-foot a { color: var(--navy); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.result-foot a:hover { color: var(--orange-600); }
.result-foot svg { width: 13px; height: 13px; }

/* Error / empty states */
.track-state {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 13.8px;
  line-height: 1.55;
}
.track-state--error { background: #fef3f2; border: 1px solid #fbd9d4; color: #912018; }
.track-state--info { background: #f4f8ff; border: 1px solid #dbe6f7; color: #22406e; }
.track-state svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.track-state strong { display: block; font-size: 14px; margin-bottom: 2px; }
.track-state small { color: inherit; opacity: 0.8; }

/* Hero visual: phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.visual-glow {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.24), rgba(255, 106, 0, 0.06) 55%, transparent 70%);
  filter: blur(18px);
  top: 4%;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 2;
  width: min(298px, 78%);
  aspect-ratio: 298 / 610;
  border-radius: 42px;
  background: linear-gradient(160deg, #1a2f52, #071225 60%);
  padding: 10px;
  box-shadow: 0 50px 90px -44px rgba(8, 20, 40, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease);
}
html[dir="rtl"] .phone { transform: rotate(3deg); }
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 33px;
  background: #fbfcff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 18px;
  border-radius: 999px;
  background: #081428;
  z-index: 3;
}
.ps-head {
  background: linear-gradient(150deg, var(--navy) 0%, #123159 100%);
  color: #fff;
  padding: 34px 16px 18px;
  position: relative;
  overflow: hidden;
}
.ps-head::after {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  top: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.45), transparent 65%);
}
.ps-brand { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.ps-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-top: 10px; line-height: 1.2; }
.ps-sub { font-size: 10.5px; opacity: 0.62; margin-top: 3px; }
.ps-body { padding: 14px; display: grid; gap: 9px; flex: 1; }
.ps-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 11px;
  box-shadow: 0 6px 16px -14px rgba(11, 29, 58, 0.5);
}
.ps-id-row { display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.ps-id-row b { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--navy); }
.ps-chip { font-size: 8.5px; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: #fff3e4; color: #b24a00; }
.ps-track { margin-top: 9px; display: grid; gap: 0; }
.ps-step { display: grid; grid-template-columns: 14px 1fr; gap: 7px; font-size: 9.5px; padding-bottom: 9px; position: relative; }
.ps-step:last-child { padding-bottom: 0; }
.ps-step i {
  width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--line-strong); background: #fff; margin-top: 2px; position: relative; z-index: 1;
}
.ps-step::before { content: ""; position: absolute; inset-inline-start: 4px; top: 10px; bottom: -1px; width: 1.5px; background: var(--line); }
.ps-step:last-child::before { display: none; }
.ps-step.done i { background: #15a06a; border-color: #15a06a; }
.ps-step.done::before { background: #a7dcc6; }
.ps-step.now i { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15); }
.ps-step span { color: #64718a; }
.ps-step.done span, .ps-step.now span { color: var(--navy); font-weight: 600; }
.ps-banner {
  background: linear-gradient(135deg, var(--navy), #17345c);
  color: #fff; border-radius: 13px; padding: 11px 12px; font-size: 10px; line-height: 1.4;
  display: flex; gap: 8px; align-items: center;
}
.ps-banner b { color: #ffc46b; }
.ps-dots { display: flex; gap: 5px; justify-content: center; padding-bottom: 4px; }
.ps-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.ps-dots i:first-child { width: 14px; border-radius: 99px; background: var(--navy); }

.float-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none;
}
.float-card .fc-icon svg { width: 15px; height: 15px; }
.float-card small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.float-card--a { top: 12%; inset-inline-start: -6%; animation-delay: -1s; }
.float-card--b { bottom: 14%; inset-inline-end: -4%; animation-delay: -3s; }
.tone-green { background: #e8f8f1; color: #0b7a4f; }
.tone-orange { background: #fff3e4; color: #b24a00; }
.tone-navy { background: #eef3fb; color: #1a3d7c; }

/* ---------- 7. Platform strip ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding-block: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .strip-label { letter-spacing: 0; }
.strip-list { display: flex; align-items: center; gap: clamp(18px, 3.4vw, 44px); flex-wrap: wrap; justify-content: center; }
.strip-list span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: -0.02em;
  color: #7f8da3;
  transition: color 0.25s ease;
}
.strip-list span:hover { color: var(--navy); }

/* ---------- 8. About / features ---------- */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-visual { position: relative; }
.about-panel {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 70% at 20% 10%, rgba(255, 176, 32, 0.16), transparent 60%),
    linear-gradient(160deg, #0e2244 0%, #081428 100%);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.about-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(75% 60% at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(75% 60% at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.ap-quote {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
html[lang="ar"] .ap-quote { letter-spacing: 0; line-height: 1.6; }
.ap-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ap-metric {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(4px);
}
.ap-metric span { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.58); }
html[lang="ar"] .ap-metric span { letter-spacing: 0; }
.ap-metric b { display: block; font-family: var(--font-display); font-size: 14.5px; color: #fff; margin-top: 4px; font-weight: 600; }
.ap-metric b em { font-style: normal; color: #ffb020; }

.feature-list { display: grid; gap: 6px; margin-top: 30px; }
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
html[dir="rtl"] .feature { padding: 16px 14px 16px 16px; }
.feature:hover { background: #fbfcff; border-color: var(--line); transform: translateX(2px); }
html[dir="rtl"] .feature:hover { transform: translateX(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef3fb, #e3ecf9);
  color: var(--navy);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature:nth-child(2) .feature-icon { background: linear-gradient(150deg, #fff5e6, #ffe8cd); color: #b24a00; }
.feature:nth-child(3) .feature-icon { background: linear-gradient(150deg, #eaf8f1, #d9f1e5); color: #0b7a4f; }
.feature h3 { font-size: 16px; margin-bottom: 3px; letter-spacing: -0.01em; }
.feature p { color: var(--body); font-size: 14.2px; line-height: 1.6; }

/* ---------- 9. Steps ---------- */
.steps-section { background: var(--surface); position: relative; overflow: hidden; }
.steps-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
html[dir="rtl"] .step::after { transform-origin: right; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dce4f0; }
.step:hover::after { transform: scaleX(1); }
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.step-num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px -14px rgba(11, 29, 58, 0.9);
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 16.5px; margin-bottom: 7px; }
.step p { color: var(--body); font-size: 13.8px; line-height: 1.62; }

/* ---------- 10. App promo ---------- */
.app-section { padding-block: clamp(56px, 7vw, 96px); }
.app-panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(255, 106, 0, 0.35), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(27, 55, 96, 0.9), transparent 70%),
    linear-gradient(140deg, #0d2142 0%, #081428 75%);
  color: #fff;
  padding: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  box-shadow: 0 50px 100px -60px rgba(8, 20, 40, 0.9);
}
.app-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(70% 60% at 30% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 20%, #000, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}
.app-copy { position: relative; z-index: 2; }
.app-copy .eyebrow { color: var(--amber); }
.app-copy .eyebrow::before { background: linear-gradient(90deg, var(--amber), var(--orange)); }
.app-copy h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.035em; }
html[lang="ar"] .app-copy h2 { letter-spacing: 0; font-size: clamp(23px, 3vw, 34px); line-height: 1.4; }
.app-copy p { color: rgba(255, 255, 255, 0.72); margin-top: 16px; font-size: 15.5px; max-width: 48ch; }
.benefits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12.8px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
}
.benefits svg { width: 13px; height: 13px; color: var(--amber); }

.store-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 16px 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  min-width: 178px;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.4); }
.store-badge svg.mark { width: 25px; height: 25px; flex: none; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-badge small { font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.store-badge strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.store-note { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.app-copy .store-note { margin-top: 12px; }

.app-visual { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.app-visual .phone { transform: rotate(4deg); width: min(252px, 72%); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85); }
html[dir="rtl"] .app-visual .phone { transform: rotate(-4deg); }
.app-visual .phone:hover { transform: rotate(0); }
.app-visual .visual-glow { background: radial-gradient(circle, rgba(255, 176, 32, 0.3), transparent 65%); }

/* ---------- 11. Contact strip ---------- */
.contact-band {
  background: #fff;
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(30px, 4vw, 44px);
  flex-wrap: wrap;
}
.contact-inner h2 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.02em; }
.contact-inner p { color: var(--body); font-size: 14.5px; margin-top: 6px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: #081428;
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(48px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -140px;
  inset-inline-end: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.16), transparent 65%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 44px;
  position: relative;
  z-index: 1;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13.6px; line-height: 1.7; color: rgba(255, 255, 255, 0.58); max-width: 34ch; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.22s ease;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0; font-size: 12.5px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 13.6px; color: rgba(255, 255, 255, 0.62); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-li { display: flex; align-items: flex-start; gap: 9px; line-height: 1.55; }
.footer-col .contact-li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--amber); }
.footer-store { display: grid; gap: 9px; margin-top: 6px; }
.footer-store .store-badge { height: 44px; min-width: 152px; padding-inline: 12px 14px; border-radius: 11px; border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); }
.footer-store .store-badge:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.footer-store .store-badge strong { font-size: 13.5px; }
.footer-store .store-badge small { font-size: 8.5px; }
.footer-store .store-badge svg.mark { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  position: relative;
  z-index: 1;
}
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.lang-inline { display: flex; gap: 6px; align-items: center; }
.lang-inline button {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.lang-inline button:hover { color: #fff; }
.lang-inline button[aria-checked="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); }

/* ---------- 13. Legal pages ---------- */
.doc-hero {
  background:
    radial-gradient(60% 70% at 80% 0%, rgba(255, 176, 32, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfcff, #fff);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 66px) clamp(32px, 4vw, 48px);
}
.doc-hero .eyebrow { margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.035em; max-width: 20ch; }
html[lang="ar"] .doc-hero h1 { letter-spacing: 0; line-height: 1.35; }
.doc-hero p { color: var(--body); margin-top: 14px; max-width: 60ch; font-size: 15.5px; }
.doc-meta { display: flex; gap: 18px; margin-top: 20px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta svg { width: 14px; height: 14px; }

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 60px);
  align-items: start;
}
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
html[lang="ar"] .doc-toc h4 { letter-spacing: 0; }
.doc-toc ol { counter-reset: toc; display: grid; gap: 2px; }
.doc-toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.4px;
  color: #37455e;
  border-inline-start: 2px solid var(--line-strong);
  transition: all 0.2s ease;
}
.doc-toc a:hover { color: var(--navy); background: var(--surface); border-inline-start-color: var(--navy); }
.doc-toc a.is-active { color: var(--navy); font-weight: 650; border-inline-start-color: var(--orange); background: #fffaf5; }

.doc-body { max-width: 78ch; }
.doc-body section { padding-block: 26px; border-bottom: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body section:first-child { padding-top: 0; }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 {
  font-size: clamp(18px, 2.1vw, 22px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
html[lang="ar"] .doc-body h2 { letter-spacing: 0; line-height: 1.45; }
.doc-body h2 .n {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  flex: none;
}
.doc-body p { color: var(--body); font-size: 15px; line-height: 1.75; margin-bottom: 10px; }
.doc-body ul { display: grid; gap: 7px; margin-block: 8px 12px; }
.doc-body li { position: relative; padding-inline-start: 20px; color: var(--body); font-size: 14.8px; line-height: 1.7; }
.doc-body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}
.doc-body strong { color: var(--navy); font-weight: 650; }
.doc-note {
  display: flex;
  gap: 11px;
  padding: 15px 17px;
  border-radius: 14px;
  background: #f4f8ff;
  border: 1px solid #dbe6f7;
  font-size: 13.6px;
  color: #22406e;
  margin-top: 14px;
  line-height: 1.6;
}
.doc-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.doc-contact {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fcfdff;
  display: grid;
  gap: 8px;
}
.doc-contact div { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--body); }
.doc-contact svg { width: 15px; height: 15px; color: var(--navy); flex: none; }
.doc-contact strong { color: var(--navy); font-weight: 650; }

/* ---------- 14. Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  30%, 70% { transform: translateX(3px); }
  50% { transform: translateX(-4px); }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { order: 2; }
  .float-card--a { inset-inline-start: 6%; }
  .float-card--b { inset-inline-end: 4%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .app-panel { grid-template-columns: 1fr; }
  .app-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--navy { display: none; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    margin: 0;
    padding: 14px 20px 22px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(11, 29, 58, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; display: block; }
  .nav a { display: block; padding: 13px 12px; font-size: 16px; border-radius: 12px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--surface); }
  .nav .nav-cta { display: block; }
  .nav .nav-cta { margin-top: 8px; }
  .nav .nav-cta .btn { width: 100%; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand img { height: 29px; }
  .track-card { padding: 16px; border-radius: 20px; }
  .track-row { flex-direction: column; }
  .track-submit { width: 100%; padding-block: 14px; }
  .track-field input { font-size: 15px; }
  .result-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .app-panel { padding: 28px 22px; }
  .float-card--a { inset-inline-start: -2%; top: 8%; }
  .float-card--b { inset-inline-end: -2%; bottom: 8%; }
  .phone { width: min(270px, 84%); }
  .doc-hero h1 { max-width: 100%; }
}

@media (max-width: 420px) {
  .float-card { display: none; }
  .hero h1 { font-size: 33px; }
}

/* ---------- 16. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .site-footer, .track-card, .app-section, .contact-band { display: none !important; }
  body { color: #000; }
  .doc-layout { display: block; }
}
