/* Vanilla Map's public pages (map-backend/sitepages): the map's own look —
   near-black and neon green, Vazirmatn, glass over a street grid — without
   the app's bundle. Mobile first; transform/opacity-only motion, off for
   prefers-reduced-motion. */
@font-face { font-family: Vazirmatn; src: url(/fonts/vazirmatn-arabic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; src: url(/fonts/vazirmatn-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #0A0B0C; --bg2: #111316; --card: rgba(255, 255, 255, 0.045); --card-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09); --fg: #F2F3F5; --muted: #A3A9B3; --faint: #6E7581;
  --brand: #53FC18; --brand-ink: #53FC18; --on-brand: #0A0B0C; --warn: #F5A524; --bad: #EF4444;
  --grid: rgba(83, 252, 24, 0.05); --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --r: 22px; --wrap: 1120px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #F4F5F7; --bg2: #FFFFFF; --card: rgba(10, 11, 12, 0.035); --card-strong: rgba(10, 11, 12, 0.06); --line: rgba(10, 11, 12, 0.1);
    --fg: #0A0B0C; --muted: #4B5360; --faint: #7A818C; --brand-ink: #1E7A05; --grid: rgba(30, 122, 5, 0.06); --shadow: 0 30px 70px rgba(10, 11, 12, 0.16); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.9 Vazirmatn, Tahoma, sans-serif; overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; background-attachment: fixed; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 6.4vw, 54px); font-weight: 800; }
h2 { font-size: clamp(22px, 4.4vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.ink { color: var(--brand-ink); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(to left, #000 88%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--card); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--card-strong); }
@media (max-width: 720px) { .top-in { flex-wrap: wrap; height: auto; padding-block: 10px; } .nav { order: 3; flex-basis: 100%; mask-image: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 30px rgba(83, 252, 24, 0.25); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(83, 252, 24, 0.35); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-ghost { background: var(--card); color: var(--fg); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card-strong); box-shadow: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* hero */
.hero { position: relative; padding: clamp(36px, 8vw, 90px) 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(83, 252, 24, 0.18), transparent 70%); filter: blur(10px); }
.hero-in { position: relative; display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--brand-ink); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 40em; }

/* phones: a screenshot in a device frame, and a stack of them that fans out */
.phone { margin: 0; width: min(300px, 72vw); aspect-ratio: 720 / 1559; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #2A2E35, #0C0D0F);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; background: #111; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 78px; height: 22px; margin-left: -39px; border-radius: 12px; background: #050505; }
.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phones .phone { position: absolute; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s; }
.phones .phone:nth-child(1) { transform: translateX(-26%) rotate(-7deg) scale(.86); opacity: .75; }
.phones .phone:nth-child(2) { transform: translateX(26%) rotate(7deg) scale(.86); opacity: .75; }
.phones .phone:nth-child(3) { position: relative; z-index: 2; }
.phones.in .phone:nth-child(1) { transform: translateX(-44%) rotate(-9deg) scale(.84); }
.phones.in .phone:nth-child(2) { transform: translateX(44%) rotate(9deg) scale(.84); }
@media (max-width: 560px) { .phones { min-height: 440px; } .phones .phone { width: 62vw; } }

/* a phone whose screen crossfades through several screenshots (site.js) */
.reel { position: relative; }
.reel img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity .8s ease; }
.reel img.on { opacity: 1; }
.reel img:first-child { position: relative; inset: auto; width: 100%; height: 100%; }

/* sections */
section { padding: clamp(34px, 7vw, 76px) 0; }
.sec-head { max-width: 46em; margin-bottom: 26px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease; }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--card-strong); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-ink); margin-bottom: 12px; }
.icon svg { width: 22px; height: 22px; }
.feature { display: grid; gap: 26px; align-items: center; padding-block: 34px; }
@media (min-width: 880px) { .feature { grid-template-columns: 1fr 1fr; } .feature.flip > :first-child { order: 2; } }
.feature .phone { margin-inline: auto; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230A0B0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--card); }
.band { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 7%, transparent), transparent); }

/* numbers */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(24px, 5vw, 34px); font-weight: 800; color: var(--brand-ink); line-height: 1.3; }
.stat span { color: var(--muted); font-size: 14px; }

/* tables and lists */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--faint); font-weight: 500; font-size: 13px; }
.table a { text-decoration: none; }
.table a:hover { color: var(--brand-ink); }
.scroll-x { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--brand-ink); }
.big-number { font-size: clamp(40px, 11vw, 84px); font-weight: 800; line-height: 1.1; }

/* air quality */
.aqi { display: inline-grid; place-items: center; min-width: 54px; height: 32px; padding: 0 10px; border-radius: 999px; font-weight: 800; color: #0A0B0C; }
.gauge { width: min(260px, 70vw); aspect-ratio: 2 / 1.1; position: relative; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }

/* the route summary's map */
.route-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg2); aspect-ratio: 16 / 9; position: relative; }
.route-map svg { width: 100%; height: 100%; display: block; }

/* ad previews (business page) */
.mock { border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); padding: 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-ink); font-weight: 800; flex-shrink: 0; }
.tag { font-size: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.bar { height: 10px; border-radius: 6px; background: var(--line); }

/* forms */
form.card label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
form.card input, form.card textarea, form.card select { width: 100%; margin-top: 6px; font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; outline: none; }
form.card input:focus, form.card textarea:focus { border-color: var(--brand); }
.form-ok { color: var(--brand-ink); font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* blog */
.post { display: grid; gap: 12px; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--card-strong); }
.post h3 { font-size: 17px; margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; } .foot nav a:hover { color: var(--fg); }

/* the entrance: things rise into place once, as they scroll into view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .phones .phone, .reel img, .btn, a.card { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
