/* =========================================================
   Find Dry Clean — marketing site styles
   Tokens follow the Find Dry Clean / Aladdin design system.
   ========================================================= */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3eee6;
  --surface: #ffffff;
  --border: #e3dccf;
  --border-strong: #8f8576;
  --ink: #0e1e33;
  --muted: #566273;
  --primary: #053a6c;
  --on-primary: #ffffff;
  --accent: #bf7413;
  --on-accent: #2b1700;
  --accent-text: #8a5208;
  --teal: #138593;
  --teal-soft: #56dad3;
  --teal-text: #0d6e79;
  --ok: #1c6b3a;
  --ok-bg: #e2f4e8;
  --danger: #a8261e;
  --focus: #056fd1;
  --hero-glow-1: rgba(86, 218, 211, .28);
  --hero-glow-2: rgba(5, 58, 108, .14);
  --shadow-sm: 0 1px 2px rgba(14, 30, 51, .06), 0 2px 8px rgba(14, 30, 51, .06);
  --shadow-lg: 0 24px 60px rgba(14, 30, 51, .14);
  --receipt-bg: #ffffff;
  --receipt-ink: #1c1c1c;

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1422; --bg-alt: #0d192b; --surface: #12203a; --border: #24334b; --border-strong: #5c6d86;
    --ink: #eef2f7; --muted: #a6b1c0; --primary: #8fc1f0; --on-primary: #04223f;
    --accent: #e39a3b; --on-accent: #1f1200; --accent-text: #f0b25c;
    --teal: #6fe3dc; --teal-text: #6fe3dc; --ok: #8fe0a9; --ok-bg: #123222; --danger: #ff9f97; --focus: #8fc1f0;
    --hero-glow-1: rgba(86, 218, 211, .14); --hero-glow-2: rgba(143, 193, 240, .10);
    --shadow-sm: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    --receipt-bg: #f7f5ef;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1422; --bg-alt: #0d192b; --surface: #12203a; --border: #24334b; --border-strong: #5c6d86;
  --ink: #eef2f7; --muted: #a6b1c0; --primary: #8fc1f0; --on-primary: #04223f;
  --accent: #e39a3b; --on-accent: #1f1200; --accent-text: #f0b25c;
  --teal: #6fe3dc; --teal-text: #6fe3dc; --ok: #8fe0a9; --ok-bg: #123222; --danger: #ff9f97; --focus: #8fc1f0;
  --hero-glow-1: rgba(86, 218, 211, .14); --hero-glow-2: rgba(143, 193, 240, .10);
  --shadow-sm: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --receipt-bg: #f7f5ef;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.grow { flex: 1; min-width: 0; }
.teal { color: var(--teal-text); }
.gold { color: var(--accent-text); }
.num { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#i-apple, #i-play-store { fill: currentColor; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); display: inline-grid; place-items: center;
  font-weight: 700; font-family: var(--font-display);
}
.icon-btn:hover { border-color: var(--primary); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--primary); }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--bg-alt); }
.main-nav .nav-cta { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.country-select {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px;
  padding-inline: 10px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.country-select .ic { width: 18px; height: 18px; color: var(--muted); }
.country-select select { border: 0; background: transparent; font-size: .9rem; font-weight: 500; padding-inline-end: 4px; cursor: pointer; appearance: auto; max-width: 170px; }
.country-select select:focus { outline: none; }
.country-select:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.menu-btn { display: none; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
#themeBtn .ic-sun { display: none; }
:root[data-theme="dark"] #themeBtn .ic-sun { display: block; }
:root[data-theme="dark"] #themeBtn .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #themeBtn .ic-sun { display: block; }
  :root:not([data-theme="light"]) #themeBtn .ic-moon { display: none; }
}

@media (max-width: 1240px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 8px; border-radius: var(--r-sm); font-size: 1rem; }
  .main-nav .nav-cta { display: block; margin-top: 8px; text-align: center; background: var(--primary); color: var(--on-primary); font-weight: 600; }
  .main-nav .nav-cta:hover { background: var(--primary); color: var(--on-primary); filter: brightness(1.1); }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .header-tools .country-select { display: none; } /* country stays reachable in the hero, countries section and footer */
  .header-row { gap: 10px; }
}
@media (max-width: 350px) {
  .brand-name span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 56px 32px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 85% 20%, var(--hero-glow-1), transparent 70%),
    radial-gradient(520px 420px at 10% 0%, var(--hero-glow-2), transparent 70%);
}
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--teal-text);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(19, 133, 147, .5); } 70% { box-shadow: 0 0 0 8px rgba(19, 133, 147, 0); } 100% { box-shadow: 0 0 0 0 rgba(19, 133, 147, 0); } }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; margin-block: 18px 18px; }
.grad { color: var(--teal-text); display: block; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); line-height: 1.15; font-weight: 600; font-size: .95rem; opacity: .92;
}
.store .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.store small { display: block; font-weight: 400; font-size: .7rem; opacity: .75; }
.available { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.country-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 500; cursor: pointer;
}
[dir="rtl"] .cchip { padding: 4px 4px 4px 10px; }
.cchip.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cc {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-alt); color: var(--primary); font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .02em;
}
.cchip.on .cc { background: var(--primary); color: var(--on-primary); }

/* phone mockup */
.hero-visual { position: relative; justify-self: center; width: min(100%, 400px); padding: 20px 30px; }
.phone {
  position: relative; width: 100%; max-width: 300px; margin-inline: auto; aspect-ratio: 300 / 610;
  border-radius: 44px; background: #0b1626; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #24334b;
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #0b1626; z-index: 2; }
.screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fbf8f3; color: #0e1e33;
  padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.4;
}
:root[data-theme="dark"] .screen { background: #0f1a2c; color: #eef2f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .screen { background: #0f1a2c; color: #eef2f7; } }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-top img { border-radius: 8px; }
.app-loc { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.app-loc .ic { width: 15px; height: 15px; color: var(--teal-text); }
.app-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.app-search .ic { width: 15px; height: 15px; }
.app-chips { display: flex; gap: 6px; overflow: hidden; }
.app-chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; font-size: 11px; }
.app-chips .on { background: #053a6c; color: #fff; border-color: #053a6c; }
.app-map { height: 96px; border-radius: 14px; overflow: hidden; background: #efe9df; flex: none; }
:root[data-theme="dark"] .app-map { background: #0a1422; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-map { background: #0a1422; } }
.app-map svg { width: 100%; height: 100%; }
.m-road { stroke: rgba(143, 133, 118, .35); stroke-width: 7; fill: none; stroke-linecap: round; }
.m-route { stroke: #138593; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.m-pin { fill: #bf7413; stroke: #fff; stroke-width: 2; }
.m-me { fill: #053a6c; stroke: #fff; stroke-width: 2; }
.m-me-pulse { fill: rgba(86, 218, 211, .45); animation: pulse 2s ease-out infinite; transform-origin: 70px 90px; }
.m-shop { fill: #fff; stroke: #053a6c; stroke-width: 2; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px 2px; border-top: 1px solid var(--border); color: var(--muted); }
.app-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 9.5px; }
.app-tabs .ic { width: 17px; height: 17px; }
.app-tabs .on { color: var(--primary); font-weight: 600; }
.shop-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.shop-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); color: var(--primary); font-family: var(--font-display); font-weight: 700; }
.shop-row b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-row small { color: var(--muted); font-size: 10.5px; }
.open { color: var(--ok); font-weight: 600; }
.from { text-align: end; font-size: 10.5px; color: var(--muted); }
.from b { color: var(--accent-text); font-size: 12px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .82rem; line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: .75rem; }
.fc-1 { top: 36%; inset-inline-start: -14px; }
.fc-2 { bottom: 14%; inset-inline-end: -14px; animation-delay: -3s; }
.fc-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.fc-icon .ic { width: 18px; height: 18px; }
.fc-icon.ok { background: var(--ok-bg); color: var(--ok); }
.fc-icon.teal { background: rgba(86, 218, 211, .22); color: var(--teal-text); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.facts {
  list-style: none; margin: 48px 0 0; padding: 22px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.facts li { display: flex; align-items: baseline; gap: 10px; justify-content: center; color: var(--muted); font-size: .92rem; }
.facts b { font-family: var(--font-display); font-size: 2rem; color: var(--primary); font-weight: 700; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 36px; }
  .hero-visual { width: min(100%, 360px); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .fc-1 { inset-inline-start: -4px; }
  .fc-2 { inset-inline-end: -4px; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section-alt { background: var(--bg-alt); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; color: var(--teal-text); letter-spacing: .08em; }
html[lang="en"] .eyebrow { text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
@media (max-width: 640px) { .section { padding-block: 64px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-sm); }
.step-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(86, 218, 211, .18); color: var(--teal-text); }
.step-ic .ic { width: 24px; height: 24px; }
.step-n { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* tabs */
.tabs { display: flex; justify-content: center; gap: 4px; margin: 0 auto 32px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }
.platform { font-size: .85rem; color: var(--muted); font-weight: 500; }
.panel-copy h3 { font-size: 1.6rem; margin: 6px 0 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c6b3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.panel-visual { display: grid; gap: 16px; justify-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--bg-alt); min-height: 300px; align-content: center; }
.mini-card, .offer, .dash { width: min(100%, 320px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-sm); }
.mini-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.mini-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 10px; }
.mini-total b { color: var(--accent-text); }
.mini-card.quote { border: 1.5px solid var(--accent); display: grid; gap: 6px; }
.quote-amt { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-text); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-ready { color: var(--ok); background: var(--ok-bg); }
.b-accent { color: var(--accent-text); background: var(--bg-alt); }
.b-accent::before { display: none; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { background: var(--bg-alt); border-radius: var(--r-sm); padding: 10px; }
.dash-kpis small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.dash-kpis b { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary); }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 16px 0 8px; padding-bottom: 2px; border-bottom: 1px solid var(--border); }
.dash-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--teal-soft), var(--teal)); }
.offer-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.offer-top .mini-title { margin-top: 6px; }
.ring { width: 64px; height: 64px; flex: none; }
.ring-t { fill: none; stroke: var(--bg-alt); stroke-width: 6; }
.ring-v { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 194.8; stroke-dashoffset: 58; transform: rotate(-90deg); transform-origin: 36px 36px; }
.ring text { font-family: var(--font-display); font-size: 22px; font-weight: 700; fill: var(--ink); }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.offer-facts div { background: var(--bg-alt); border-radius: var(--r-sm); padding: 10px; }
.offer-facts small { display: block; color: var(--muted); font-size: .75rem; }
.offer-facts b { font-size: 1.05rem; }
@media (max-width: 860px) {
  .tab-panel { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .tabs button { padding: 10px 14px; }
}

/* tracking */
.track-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.stages { list-style: none; margin: 28px 0 22px; padding: 0; display: grid; gap: 4px; }
.stages li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.stages li::before { content: ""; position: absolute; inset-inline-start: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--border); }
.stages li:last-child::before { display: none; }
.stages .node { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; transition: .3s; }
.stages .node .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.stages li.done { color: var(--ink); }
.stages li.done::before { background: var(--primary); }
.stages li.done .node { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.stages li.done .node .ic { opacity: 1; }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now .node { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(86, 218, 211, .25); }
.stages li.now .node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.stages time { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); font-weight: 400; }
.track-grid h2, .contact-grid h2 { margin: 10px 0 14px; }
.track-controls { display: flex; gap: 10px; align-items: center; }
#trPlay .ic-play { display: none; }
#trPlay.paused .ic-play { display: block; }
#trPlay.paused .ic-pause { display: none; }
.track-visual { display: grid; gap: 14px; }
.map-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.map { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.map-bg { fill: #efe9df; }
.map-block { fill: #f8f4ec; }
.map-road { stroke: #ffffff; stroke-width: 14; fill: none; }
:root[data-theme="dark"] .map-bg { fill: #0a1422; }
:root[data-theme="dark"] .map-block { fill: #0f1c30; }
:root[data-theme="dark"] .map-road { stroke: #24334b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-bg { fill: #0a1422; }
  :root:not([data-theme="light"]) .map-block { fill: #0f1c30; }
  :root:not([data-theme="light"]) .map-road { stroke: #24334b; }
}
.map-route { fill: none; stroke: #138593; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: opacity .3s; }
.map-route.live { opacity: 1; }
.map-dest { fill: #bf7413; stroke: #fff; stroke-width: 3; }
.map-shop { fill: #053a6c; stroke: #fff; stroke-width: 3; }
.map-driver { fill: #0d6e79; stroke: #fff; stroke-width: 3; }
.map-pulse { fill: rgba(86, 218, 211, .4); animation: pulse2 2s ease-out infinite; }
@keyframes pulse2 { 0% { r: 8; opacity: 1; } 100% { r: 22; opacity: 0; } }
.map-sheet { position: absolute; inset-inline: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-sheet b { font-size: .95rem; }
.map-sheet small { display: block; }
.driver-av { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-alt); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.eta { text-align: center; color: var(--teal-text); line-height: 1; }
.eta b { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.eta small { font-size: .78rem; }
.notif { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-height: 64px; }
.notif img { border-radius: 9px; }
.notif b { display: block; font-size: .85rem; }
.notif span { font-size: .92rem; }
.notif.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: translateY(6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@media (max-width: 920px) { .track-grid { grid-template-columns: 1fr; gap: 32px; } }

/* demo */
.demo-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.items { list-style: none; margin: 0 0 16px; padding: 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.item b { font-weight: 600; display: block; }
.item small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); font-size: 1.1rem; line-height: 1; }
.qty button:hover { border-color: var(--primary); }
.qty output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 10px; margin-bottom: 20px; }
.opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.opts input { width: 18px; height: 18px; accent-color: var(--primary); }
.receipt-col { display: grid; gap: 12px; justify-items: center; }
.receipt {
  width: min(100%, 320px); background: var(--receipt-bg); color: var(--receipt-ink);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; padding: 22px 18px 30px; box-shadow: var(--shadow-lg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
}
.receipt .r-shop { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: center; }
.receipt .r-c { text-align: center; }
.receipt .r-logo { width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 10px; background: #1c1c1c; color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 10px; }
.receipt .r-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.receipt .r-tot { font-weight: 700; font-size: 14.5px; }
.receipt .r-qr { width: 104px; height: 104px; margin: 12px auto 4px; }
.receipt .r-qr svg { width: 100%; height: 100%; }
.receipt .r-ltr { direction: ltr; unicode-bidi: isolate; }
.receipt.printing { animation: feed .9s steps(14) both; }
@keyframes feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

/* business */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature p { color: var(--muted); font-size: .93rem; }
.f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(5, 58, 108, .08); color: var(--primary); }
:root[data-theme="dark"] .f-ic { background: rgba(143, 193, 240, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-ic { background: rgba(143, 193, 240, .12); } }
.f-ic.big { width: 56px; height: 56px; border-radius: 16px; }
.f-ic.big .ic { width: 28px; height: 28px; }
.local-band { margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: var(--r-lg); background: var(--primary); color: var(--on-primary); }
.local-band p { opacity: .85; margin-top: 4px; max-width: 70ch; }
.local-band .f-ic { background: rgba(255, 255, 255, .14); color: var(--on-primary); }
.shield { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: .9rem; white-space: nowrap; }
:root[data-theme="dark"] .local-band .f-ic, :root[data-theme="dark"] .shield { background: rgba(4, 34, 63, .15); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } .local-band { grid-template-columns: auto 1fr; } .shield { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .local-band { grid-template-columns: 1fr; padding: 22px; } }

/* countries */
.countries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.country {
  text-align: start; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; align-content: start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.country:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.country[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.country-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.country .cc { width: 40px; height: 40px; font-size: .85rem; }
.country[aria-pressed="true"] .cc { background: var(--primary); color: var(--on-primary); }
.country h3 { font-size: 1.05rem; }
.country dl { margin: 0; display: grid; gap: 6px; font-size: .85rem; }
.country dl div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.country dt { color: var(--muted); }
.country dd { margin: 0; font-weight: 600; text-align: end; }
.live-tag { font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 1080px) { .countries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .countries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .countries { grid-template-columns: 1fr; } }

/* pricing */
.billing { display: flex; width: max-content; max-width: 100%; margin: -12px auto 32px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.billing button { border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.billing button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.save { font-size: .75rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.plan.star { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .pop { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--primary); color: var(--on-primary); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; }
.plan .desc { color: var(--muted); font-size: .92rem; margin-top: -10px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; unicode-bidi: isolate; }
.price small { color: var(--muted); }
.plan .ticks { flex: 1; font-size: .95rem; align-content: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 8px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid .ticks { margin-top: 24px; }
.contact-mail { margin-top: 24px; color: var(--muted); }
.contact-mail a { color: var(--primary); font-weight: 600; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field select, .phone-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surface);
  border: 1.5px solid var(--border-strong); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.phone-input { display: flex; align-items: stretch; padding: 0; overflow: hidden; }
.phone-input span { display: grid; place-items: center; padding: 0 12px; background: var(--bg-alt); font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-input input { border: 0; height: 100%; border-radius: 0; }
.phone-input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--primary); }
.phone-input input:focus { outline: none; }
.err { color: var(--danger); font-size: .82rem; min-height: 1.1em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } .card { padding: 20px; } }

/* footer */
.site-footer { background: #071b31; color: #c9d3e0; padding-top: 56px; }
.site-footer .brand-name { color: #ffffff; }
.site-footer .brand-name b { color: #8fc1f0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-tag { color: #a6b1c0; margin-top: 14px; max-width: 34ch; }
.site-footer h4 { font-size: .85rem; color: #ffffff; margin-bottom: 12px; }
.site-footer nav a { display: block; text-decoration: none; color: #c9d3e0; padding: 4px 0; font-size: .93rem; }
.site-footer nav a:hover { color: #ffffff; }
.foot-countries { display: grid; gap: 6px; font-size: .93rem; }
.foot-countries button { background: none; border: 0; padding: 0; color: #c9d3e0; text-align: start; }
.foot-countries button:hover { color: #ffffff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid #1d3550; font-size: .85rem; color: #a6b1c0; }
.legal { display: flex; gap: 18px; }
.legal a { color: #a6b1c0; text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* toast */
.toast {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 60;
  max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px; font-size: .95rem; box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
