/* ===========================================================================
   LameenTrack — landing page
   Desert Night palette + self-hosted Noto Sans / Noto Kufi Arabic, matching
   the product apps exactly.
   =========================================================================== */

/* ---------- type ---------- */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-SemiBold.ttf') format('truetype');
  font-weight: 500 800; font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/NotoKufiArabic-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('../fonts/NotoKufiArabic-Bold.ttf') format('truetype');
  font-weight: 500 800; font-display: swap;
}

:root {
  /* Desert Night — lifted straight from Colors.xaml */
  --bg-canvas: #0B1220;
  --bg-card:   #121A2C;
  --bg-inset:  #1A2440;
  --bg-raised: #243150;
  --ink:       #F4EBDA;
  --ink-soft:  #D6CDB9;
  --muted:     #8A93A8;
  --gold:      #F4B860;
  --gold-2:    #C99A5B;
  --gold-soft: rgba(244, 184, 96, 0.12);
  --coral:     #E36F4C;
  --crimson:   #B23A3A;
  --mint:      #6FCF97;
  --sand-1:    #E8C99B;
  --midnight:  #1B2236;
  --border:    rgba(201, 154, 91, 0.20);
  --border-hi: rgba(244, 184, 96, 0.45);

  --font:  'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Noto Kufi Arabic', 'Noto Sans', system-ui, sans-serif;

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --dur: .45s;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* Arabic swaps the whole page face, exactly like the apps do. */
html[dir='rtl'] { --font: var(--font-ar); }

/* Arabic needs its own vertical rhythm. Noto Kufi has taller ascenders and deeper
   descenders than Noto Sans, and diacritics (the tanween in "أيدٍ") sit above the
   cap line — the Latin heading metrics clip them. Negative tracking is worse still:
   Arabic is cursive, so tightening it damages the letter joins. */
html[dir='rtl'] h1,
html[dir='rtl'] h2,
html[dir='rtl'] h3,
html[dir='rtl'] h4 {
  letter-spacing: normal;
  line-height: 1.5;
}
html[dir='rtl'] .hero-title { line-height: 1.45; }
html[dir='rtl'] .section-title { line-height: 1.4; }

*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font-family: inherit; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
img, svg { max-width: 100%; }

a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--midnight);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- animated background ---------- */
#routeCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
/* Radial veil keeps text legible over the moving network. */
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% 6%, rgba(244,184,96,.10), transparent 62%),
    radial-gradient(900px 700px at 88% 82%, rgba(111,207,151,.07), transparent 60%),
    linear-gradient(180deg, rgba(11,18,32,.32) 0%, rgba(11,18,32,.80) 46%, var(--bg-canvas) 96%);
}
.nav, main, .footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.stuck { background: rgba(11, 18, 32, 0.90); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 70px; position: relative; }
/* On desktop the collapse wrapper is layout-transparent, so .nav-links and
   .nav-actions stay direct flex children of .nav-inner. */
.nav-collapse { display: contents; }
.nav-tools { display: flex; align-items: center; gap: 12px; order: 1; }
.nav-actions { order: 2; }
.nav-menu {
  display: none; width: 40px; height: 40px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(18,26,44,.7); cursor: pointer;
}
.nav-menu span {
  display: block; height: 2px; margin: 5px 0; background: var(--ink);
  border-radius: 2px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.gold { color: var(--gold); }

.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600;
  position: relative; padding: 6px 0; transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: 6px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; cursor: pointer;
}
.lang-opt {
  display: grid; place-items: center; min-width: 34px; height: 26px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-opt.is-on { background: var(--gold); color: var(--midnight); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-primary {
  background: linear-gradient(135deg, #F6C273, var(--gold-2));
  color: var(--midnight);
  box-shadow: 0 8px 26px rgba(244, 184, 96, .24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(244, 184, 96, .34); }
.btn-ghost { background: transparent; border-color: var(--border-hi); color: var(--ink); }
.btn-ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 110px); position: relative; }
.hero-inner { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-soft); border: 1px solid var(--border-hi);
  color: var(--sand-1);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(111, 207, 151, .65);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111,207,151,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(111,207,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,207,151,0); }
}

.hero-title { font-size: clamp(2.6rem, 7.2vw, 5rem); letter-spacing: -0.035em; }
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--sand-1) 42%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* The gradient is clipped to the element's box, so any glyph extending past it
     paints as nothing. inline-block + vertical padding grows that box so tall
     Arabic ascenders and diacritics stay painted. */
  display: inline-block;
  padding-block: 0.12em;
}
.hero-sub {
  max-width: 640px; margin: 24px auto 0;
  color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.16rem);
}
.audience-chips {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.audience-chips li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(18, 26, 44, .7);
  color: var(--sand-1); font-size: 13px; font-weight: 600;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- hero promises (benefit strip, not fake KPIs) ---------- */
.promises {
  list-style: none; margin: 66px 0 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.promises li {
  text-align: start;
  background: linear-gradient(180deg, rgba(18,26,44,.86), rgba(18,26,44,.55));
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 18px;
  backdrop-filter: blur(6px);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: grid; gap: 8px;
}
.promises li:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.promises strong {
  color: var(--gold); font-size: 1rem; font-weight: 800; line-height: 1.35;
}
.promises span {
  color: var(--ink-soft); font-size: 13.5px; line-height: 1.45;
}

.scroll-hint {
  position: absolute; inset-inline: 0; bottom: 26px; display: grid; place-items: center;
}
.scroll-hint span {
  width: 22px; height: 36px; border: 2px solid var(--border-hi); border-radius: 12px; position: relative;
}
.scroll-hint span::after {
  content: ''; position: absolute; inset-inline-start: 50%; top: 7px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold);
  animation: wheel 1.9s infinite;
}
@keyframes wheel { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 19px; } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 118px) 0; }
.section-alt { background: rgba(18, 26, 44, 0.45); border-block: 1px solid var(--border); }

.kicker {
  color: var(--gold); font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.85rem, 4.2vw, 2.9rem); max-width: 20ch; }
.section-sub { color: var(--ink-soft); max-width: 62ch; margin-top: 16px; font-size: 1.03rem; }

/* ---------- feature grid ---------- */
.grid {
  display: grid; gap: 18px; margin-top: 52px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(18,26,44,.6));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 190px at var(--mx, 50%) var(--my, 0%), rgba(244,184,96,.10), transparent 68%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover {
  transform: translateY(-5px); border-color: var(--border-hi);
  box-shadow: 0 20px 46px rgba(0,0,0,.34);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.12rem; margin: 18px 0 9px; }
.card p { color: var(--ink-soft); font-size: 14.6px; }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--border-hi); color: var(--gold);
}
.card-icon svg { width: 23px; height: 23px; }
.card-icon[data-tone='mint']    { color: var(--mint);    background: rgba(111,207,151,.12); border-color: rgba(111,207,151,.38); }
.card-icon[data-tone='coral']   { color: var(--coral);   background: rgba(227,111,76,.12);  border-color: rgba(227,111,76,.38); }
.card-icon[data-tone='crimson'] { color: #D4675F;        background: rgba(178,58,58,.15);   border-color: rgba(178,58,58,.42); }

/* ---------- surfaces ---------- */
.surfaces {
  display: grid; gap: 18px; margin-top: 52px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.surface {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.surface::after {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 3px; background: var(--gold); opacity: .85;
}
.surface[data-accent='mint']::after  { background: var(--mint); }
.surface[data-accent='coral']::after { background: var(--coral); }
.surface[data-accent='sand']::after  { background: var(--sand-1); }
.surface:hover { transform: translateY(-5px); border-color: var(--border-hi); }

.surface-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.surface-tag {
  align-self: flex-start;
  background: var(--bg-inset); border: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 11px; border-radius: 999px;
}
.surface h3 { font-size: 1.16rem; }
.surface p { color: var(--ink-soft); font-size: 14.6px; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-inline-start: 26px;
  font-size: 14px; color: var(--ink-soft);
}
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: .35em;
  width: 5px; height: 10px;
  /* Physical borders keep a real check in both LTR and RTL. */
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
}

/* ---------- journey demo ---------- */
.demo {
  margin-top: 52px;
  display: grid; gap: 34px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(18,26,44,.55));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 38px);
}
.demo-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.route-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--ink-soft);
}
.route-chip strong { color: var(--ink); }
.route-chip .sep { color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 9px; top: 12px; bottom: 12px;
  width: 2px; background: var(--border);
}
.timeline::after {
  content: ''; position: absolute; inset-inline-start: 9px; top: 12px;
  width: 2px; height: var(--progress, 0%);
  background: linear-gradient(180deg, var(--gold), var(--mint));
  transition: height .7s var(--ease);
}
.step {
  position: relative; padding-inline-start: 38px; padding-block: 14px;
  opacity: .38; transition: opacity .45s var(--ease);
}
.step.is-live, .step.is-done { opacity: 1; }
.step-dot {
  position: absolute; inset-inline-start: 2px; top: 22px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-canvas); border: 2px solid var(--border);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step.is-live .step-dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(244,184,96,.16);
}
.step.is-done .step-dot { border-color: var(--mint); background: var(--mint); }
.step h4 { font-size: 1.02rem; margin-bottom: 5px; }
.step p { color: var(--ink-soft); font-size: 14px; }

.badge {
  display: inline-block; margin-top: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.badge-gold  { background: var(--gold-soft);            color: var(--gold);  border: 1px solid var(--border-hi); }
.badge-mint  { background: rgba(111,207,151,.13);       color: var(--mint);  border: 1px solid rgba(111,207,151,.4); }
.badge-coral { background: rgba(227,111,76,.13);        color: var(--coral); border: 1px solid rgba(227,111,76,.4); }

/* phone */
.phone { position: sticky; top: 96px; }
.phone-frame {
  background: #05080F; border: 1px solid var(--border-hi);
  border-radius: 30px; padding: 11px;
  box-shadow: 0 26px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.03);
}
.phone-notch {
  width: 96px; height: 5px; border-radius: 99px;
  background: #1a2337; margin: 3px auto 9px;
}
.phone-screen {
  background: linear-gradient(180deg, #0d1524, #0a1020);
  border-radius: 22px; min-height: 396px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 0 4px 4px;
}
.phone-status-r { letter-spacing: -1px; }
.phone-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto 0; transition: opacity .3s var(--ease); }
.phone-empty.hide { opacity: 0; }

.toasts { display: grid; gap: 9px; align-content: start; }
.toast {
  background: rgba(26, 36, 64, .95);
  border: 1px solid var(--border); border-inline-start: 3px solid var(--gold);
  border-radius: 13px; padding: 11px 13px;
  animation: toastIn .5s var(--ease) both;
}
.toast[data-tone='mint']  { border-inline-start-color: var(--mint); }
.toast[data-tone='coral'] { border-inline-start-color: var(--coral); }
.toast-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.toast-app { font-size: 10.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .09em; }
.toast-time { font-size: 10.5px; color: var(--muted); margin-inline-start: auto; }
.toast-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.toast-body { font-size: 12.2px; color: var(--ink-soft); line-height: 1.5; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-9px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* ---------- trust ---------- */
.trust-grid {
  display: grid; gap: 18px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.trust {
  border-inline-start: 2px solid var(--border-hi);
  padding: 4px 0 4px 22px; padding-inline-start: 22px;
}
.trust h3 { font-size: 1.05rem; margin-bottom: 9px; color: var(--gold); }
.trust p { color: var(--ink-soft); font-size: 14.4px; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(70px, 10vw, 110px) 0; }
.pricing-toggle {
  display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  margin: 28px auto 36px; display: flex; width: fit-content;
}
.pricing-interval {
  appearance: none; border: 0; background: transparent; color: var(--ink-soft);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font: inherit;
}
.pricing-interval.is-on { background: rgba(244,184,96,.18); color: var(--gold); }
.pricing-save { font-size: .78rem; opacity: .85; margin-inline-start: 4px; }
.pricing-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pricing-card {
  border: 1px solid var(--border); border-radius: 22px; padding: 28px 24px;
  background: linear-gradient(160deg, rgba(36,49,80,.55), rgba(18,26,44,.55));
}
.pricing-card.is-featured { border-color: rgba(244,184,96,.45); box-shadow: 0 0 0 1px rgba(244,184,96,.12); }
.pricing-card h3 { font-size: 1.25rem; margin: 0 0 6px; }
.pricing-cap { color: var(--ink-soft); font-size: .92rem; margin: 0 0 16px; }
.pricing-price { font-size: 2rem; font-weight: 700; margin: 0 0 16px; color: var(--gold); }
.pricing-per { font-size: 1rem; font-weight: 500; opacity: .75; }
.pricing-limits { list-style: none; padding: 0; margin: 0 0 22px; color: var(--ink-soft); font-size: .92rem; }
.pricing-limits li + li { margin-top: 8px; }
.pricing-cta { width: 100%; justify-content: center; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- cta ---------- */
.cta { padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.cta-inner {
  background: linear-gradient(150deg, rgba(36,49,80,.72), rgba(18,26,44,.72));
  border: 1px solid var(--border-hi); border-radius: 28px;
  padding: clamp(38px, 6vw, 68px) clamp(24px, 5vw, 60px);
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(560px 260px at 50% 0%, rgba(244,184,96,.16), transparent 70%);
}
.cta-inner > * { position: relative; }
.cta-mark { margin-bottom: 18px; filter: drop-shadow(0 6px 18px rgba(244,184,96,.3)); }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta p { color: var(--ink-soft); max-width: 52ch; margin: 16px auto 0; }
.cta-mail { margin-top: 14px !important; font-size: 15px; }
.cta-mail a {
  color: var(--gold); font-weight: 700; text-decoration: none;
}
.cta-mail a:hover { text-decoration: underline; }

/* ---------- contact dialog ---------- */
.contact-dialog {
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--bg-card);
  color: var(--ink);
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.contact-dialog::backdrop {
  background: rgba(7, 12, 22, .72);
  backdrop-filter: blur(4px);
}
.contact-form { padding: 26px 26px 28px; display: grid; gap: 14px; }
.contact-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.contact-head h2 { font-size: 1.25rem; margin: 0; }
.contact-close {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 8px;
}
.contact-close:hover { color: var(--ink); background: var(--gold-soft); }
.contact-hint { color: var(--ink-soft); font-size: 14px; margin: 0; }
.contact-field { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.contact-field input {
  appearance: none;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.contact-field input:focus { border-color: var(--border-hi); }
.contact-actions { margin-top: 6px; }
.contact-actions .btn { width: 100%; }

.legal-dialog {
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 0;
  background: var(--bg-card);
  color: var(--ink);
  width: min(640px, calc(100vw - 28px));
  max-height: min(82vh, 720px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.legal-dialog::backdrop {
  background: rgba(7, 12, 22, .72);
  backdrop-filter: blur(4px);
}
.legal-dialog-inner { display: grid; grid-template-rows: auto 1fr; max-height: min(82vh, 720px); }
.legal-dialog-inner .contact-head { padding: 20px 22px 0; }
.legal-dialog-body {
  padding: 12px 22px 26px;
  overflow: auto;
  display: grid; gap: 8px;
}
.legal-dialog-body h3 {
  font-size: 1rem; color: var(--gold); margin: 14px 0 4px;
}
.legal-dialog-body p,
.legal-dialog-body li {
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0;
}
.legal-dialog-body ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.legal-updated { color: var(--muted) !important; font-size: 12.5px !important; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 22px;
  background: rgba(11,18,32,.7);
}
.footer-inner { display: grid; gap: 18px; }
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 28px; flex-wrap: wrap;
}
.footer-brand-block {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-email {
  color: var(--gold); font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: .01em;
}
.footer-email:hover { text-decoration: underline; }
.footer-legal {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.footer-legal a,
.footer-legal-btn {
  color: var(--muted); font-size: 13.5px; text-decoration: none;
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit;
}
.footer-legal a:hover,
.footer-legal-btn:hover { color: var(--gold); }
.footer-sep { color: var(--muted); opacity: .55; user-select: none; }
.footer-actions {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap;
  margin-inline-start: auto;
}
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-icon {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 11px; color: var(--ink-soft);
  background: rgba(18, 26, 44, .9);
  border: 1px solid var(--border);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-icon:hover {
  color: var(--gold); border-color: var(--border-hi); transform: translateY(-2px);
}
.footer-bar {
  display: flex; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.footer-meta {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0; color: var(--muted); font-size: 13px;
}
.footer-copy, .footer-note { margin: 0; color: inherit; font-size: inherit; }

html[dir='rtl'] .footer-brand-block { align-items: flex-start; }

@media (max-width: 720px) {
  .footer-main { align-items: stretch; }
  .footer-actions {
    margin-inline-start: 0;
    width: 100%;
    justify-content: flex-start;
  }
  /* The floating WhatsApp button sits over the last footer row otherwise. */
  .footer { padding-bottom: 96px; }
  .footer-email,
  .footer-legal a,
  .footer-legal-btn {
    display: inline-flex; align-items: center; min-height: 40px;
  }
}

/* ---------- how it starts ---------- */
.how-steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.how-step {
  background: linear-gradient(180deg, rgba(18,26,44,.9), rgba(18,26,44,.55));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 22px 28px; position: relative;
}
.how-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px; margin-bottom: 14px;
  background: var(--gold-soft); border: 1px solid var(--border-hi);
  color: var(--gold); font-weight: 800;
}
.how-step h3 { font-size: 1.15rem; margin: 0 0 8px; }
.how-step p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- your people, their apps ---------- */
#access { position: relative; }
#access::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 42%, rgba(244,184,96,.1), transparent 68%);
}
#access .wrap { position: relative; }

.access-flow {
  margin-top: 56px;
  display: grid;
  justify-items: center;
}
.access-hub {
  position: relative;
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, rgba(244,184,96,.14), rgba(18,26,44,.92));
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.access-pulse {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(244,184,96,.55);
  animation: access-pulse 2.2s ease-out infinite;
}
@keyframes access-pulse {
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.access-tag {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
html[dir='rtl'] .access-tag { letter-spacing: normal; }
.access-hub h3 { margin: 0 0 8px; font-size: 1.25rem; }
.access-hub p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.access-fork {
  width: calc(66.666% + 12px);
  height: 52px;
  background:
    linear-gradient(var(--gold), var(--gold-2)) 50% 0 / 2px 20px no-repeat,
    linear-gradient(var(--gold), var(--gold-2)) 0 20px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold-2)) 0 20px / 2px 32px no-repeat,
    linear-gradient(var(--gold), var(--gold-2)) 50% 20px / 2px 32px no-repeat,
    linear-gradient(var(--gold), var(--gold-2)) 100% 20px / 2px 32px no-repeat;
}

.access-apps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.access-app {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: stretch;
  text-align: center;
  gap: 16px;
  width: 100%;
  min-height: 100%;
  padding: 24px 16px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18,26,44,.95), rgba(18,26,44,.55));
}
.access-app .device { align-self: center; }
.access-app[data-tone='gold'] { border-color: rgba(244,184,96,.35); }
.access-app[data-tone='mint'] { border-color: rgba(111,207,151,.38); }
.access-app[data-tone='sand'] { border-color: rgba(232,201,155,.38); }
.access-app[data-tone='mint'] .access-tag,
.access-app[data-tone='mint'] .ui-pill { color: var(--mint); }
.access-app[data-tone='mint'] .device { border-color: rgba(111,207,151,.4); }
.access-app[data-tone='mint'] .ui-pill {
  background: rgba(111,207,151,.12);
  border-color: rgba(111,207,151,.35);
}
.access-app[data-tone='sand'] .access-tag { color: var(--sand-1); }

.access-apps .phone-ui {
  width: min(196px, 100%);
  min-height: 330px;
}
.access-tablet.desk-ui {
  width: min(236px, 100%);
  min-height: 280px;
  border-radius: 18px;
  grid-template-rows: auto 1fr auto;
}
.access-apps .desk-ui:not(.access-tablet) {
  width: min(100%, 268px);
  min-height: 210px;
}
.access-copy {
  max-width: 32ch;
  min-height: 7.2em;
  align-self: end;
}
.access-copy h3 { margin: 0 0 8px; font-size: 1.08rem; }
.access-copy p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- device frames ---------- */
.device-row {
  margin-top: 48px;
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.device-card { margin: 0; text-align: center; }
.device-card figcaption { margin-top: 16px; }
.device-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.device-card p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.device {
  margin-inline: auto;
  background: #0a101c;
  border: 2px solid rgba(244,184,96,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
}
.phone-ui {
  width: min(220px, 100%);
  border-radius: 28px;
  padding: 14px 12px 16px;
  min-height: 360px;
  display: grid; gap: 10px;
  grid-template-rows: auto 1fr auto;
}
.device-notch {
  width: 72px; height: 8px; border-radius: 999px;
  background: #1a2438; margin: 0 auto 6px;
}
.ui-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  background: rgba(26,36,64,.9); border-radius: 12px; padding: 10px 12px;
}
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ui-dot.mint { background: var(--mint); }
.ui-map {
  position: relative; border-radius: 16px; min-height: 160px;
  background:
    radial-gradient(circle at 30% 40%, rgba(111,207,151,.2), transparent 40%),
    linear-gradient(160deg, #152038, #0d1524);
  border: 1px solid var(--border);
}
.ui-bus, .ui-pin {
  position: absolute; border-radius: 50%;
}
.ui-bus {
  width: 14px; height: 14px; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,184,96,.2);
  inset-inline-start: 38%; top: 46%;
}
.ui-pin {
  width: 10px; height: 10px; background: var(--mint);
  inset-inline-end: 28%; top: 30%;
}
.ui-toast {
  text-align: start; background: rgba(26,36,64,.95);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  display: grid; gap: 2px;
}
.ui-toast strong { font-size: 13px; color: var(--ink); }
.ui-toast span { font-size: 11.5px; color: var(--muted); }
.ui-list { display: grid; gap: 8px; align-content: start; }
.ui-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(26,36,64,.85); color: var(--ink-soft); font-size: 12.5px;
}
.ui-row span:first-child {
  width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-raised); color: var(--gold); font-weight: 800; font-size: 11px;
}
.ui-row.is-on { border: 1px solid rgba(111,207,151,.4); }
.ui-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.ui-actions span {
  text-align: center; font-size: 12px; font-weight: 700; padding: 10px 8px;
  border-radius: 12px; background: rgba(111,207,151,.15); color: var(--mint);
}
.ui-actions span:last-child { background: rgba(227,111,76,.15); color: var(--coral); }
.desk-ui {
  width: min(100%, 320px);
  border-radius: 16px; padding: 14px; min-height: 240px;
  display: grid; gap: 12px;
}
.ui-desk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ui-pill {
  font-size: 11px; font-weight: 700; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 10px;
}
.ui-kpis { display: flex; gap: 6px; }
.ui-kpis i {
  display: block; width: 28px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), transparent);
  opacity: .7;
}
.ui-desk-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; min-height: 150px; }
.ui-fleet {
  position: relative; border-radius: 12px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #152038, #0d1524);
}
.ui-fleet .ui-bus:nth-child(1) { inset-inline-start: 22%; top: 55%; }
.ui-fleet .ui-bus:nth-child(2) { inset-inline-start: 58%; top: 35%; width: 11px; height: 11px; }
.ui-side { display: grid; gap: 8px; align-content: start; }
.ui-side-row {
  height: 28px; border-radius: 8px;
  background: rgba(26,36,64,.9); border: 1px solid var(--border);
}
.ui-side-row.short { width: 70%; }

/* ---------- store badges (footer) ---------- */
.footer-stores { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
}
.store-btn-sm { min-width: 0; opacity: .9; }
.store-btn small { display: block; font-size: 9px; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 13px; line-height: 1.15; }
.store-btn[aria-disabled='true'] { cursor: default; }

/* ---------- faq ---------- */
.faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 760px; }
.faq {
  background: rgba(18,26,44,.8); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; float: inline-end; color: var(--gold); font-weight: 800;
}
.faq[open] summary::after { content: '–'; }
.faq p {
  margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px;
  padding-bottom: 4px;
}

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; z-index: 70;
  inset-inline-end: 22px; bottom: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- legal pages ---------- */
.legal-page { padding: clamp(40px, 8vw, 80px) 0 100px; }
.legal-page .legal-card {
  max-width: 760px; margin: 0 auto;
  background: rgba(18,26,44,.85); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px);
}
.legal-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.legal-page .legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h2 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--gold); }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.legal-page ul { padding-inline-start: 1.2em; }
.legal-back { display: inline-flex; margin-bottom: 22px; color: var(--sand-1); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* The full horizontal bar needs ~1120px before the links and CTAs start
   spilling out of the viewport, so it collapses well above the phone sizes. */
@media (max-width: 1120px) {
  .nav-menu { display: block; }
  .nav-inner { gap: 12px; }
  /* Links and CTAs share one dropdown so the bar itself never overflows the
     viewport — only the brand, language toggle and menu button stay in it. */
  .nav-collapse {
    display: none;
    position: absolute; top: calc(100% + 8px); inset-inline: 0;
    flex-direction: column; gap: 4px; padding: 12px 14px;
    background: rgba(11, 18, 32, .98);
    border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    max-height: calc(100vh - 96px); overflow-y: auto;
    z-index: 50;
  }
  @supports (height: 100dvh) {
    .nav-collapse { max-height: calc(100dvh - 96px); }
  }
  .nav-collapse.is-open { display: flex; }
  .nav-links {
    position: static; flex-direction: column; gap: 0; margin-inline-start: 0;
  }
  .nav-links a { padding: 12px 4px; }
  .nav-actions {
    display: grid; gap: 10px; margin: 10px 0 0; padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav-actions .btn { width: 100%; }
  .nav-tools { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 320px; margin-inline: auto; }
  .how-steps, .device-row, .access-apps { grid-template-columns: 1fr; }
  .access-fork { display: none; }
  .device-row { justify-items: center; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .promises { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
