/* Barakah Maps web. Tokens: the app's Hybrid · Apex night palette (app/lib/src/core/theme/palette_data.dart). */
:root {
  --bg: #0A0C10; --surface: #14181F; --surface2: #1F2530; --ink: #F2F5F8; --muted: #9AA5B4;
  --lime: #C6FF3D; --route: #2F8CFF; --danger: #FF5C5C;
  --head: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--lime); text-decoration: none; }
/* Underline only inline text links: cards, the brand and the buttons are links too and must not. */
.prose a:hover, footer a:hover, .help a:hover, p a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.01em; }
.wrap { width: min(100% - 32px, 720px); margin: 0 auto; padding: 32px 0 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 20px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.eyebrow { color: var(--lime); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 40px; }
.hero h1 { font-size: clamp(36px, 8vw, 64px); margin-top: 8px; color: var(--lime); }
.hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 48ch; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-family: var(--head); background: var(--lime); color: var(--bg); }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: var(--surface2); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 48px; }
.features div { background: var(--surface); border-radius: 18px; padding: 18px; }
.features b { display: block; font-family: var(--head); font-size: 18px; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 15px; }
footer { margin-top: 64px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--muted); }
/* legal */
.legal-head { padding-top: 24px; }
.legal-head h1 { font-size: clamp(32px, 6vw, 44px); margin-top: 8px; }
.stamp { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose { margin-top: 32px; font-size: 17px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; color: var(--lime); }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
/* link landing */
.card { background: var(--surface); border-radius: 24px; padding: 28px; margin-top: 40px; }
.card h1 { font-size: 30px; }
.card p { color: var(--muted); margin-top: 8px; }
.card code { color: var(--ink); background: var(--surface2); padding: 2px 8px; border-radius: 8px; font-size: 14px; word-break: break-all; }
/* get-app */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pick button { background: var(--surface2); color: var(--ink); border: 2px solid transparent; border-radius: 18px; padding: 18px 12px; cursor: pointer; font: inherit; }
.pick button b { display: block; font-family: var(--head); font-size: 19px; }
.pick button span { color: var(--muted); font-size: 14px; }
.pick button[aria-pressed="true"] { border-color: var(--lime); }
.steps { list-style: none; margin-top: 20px; }
.steps li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--surface2); }
.steps li i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--bg); font: 800 15px var(--head); display: grid; place-items: center; font-style: normal; }
.steps li b { display: block; font-family: var(--head); font-size: 18px; }
.steps li span { color: var(--muted); font-size: 15px; }
.btn.soon { background: var(--surface2); color: var(--muted); pointer-events: none; }
.btn.soon::after { content: " · coming soon"; font-weight: 600; }
.ghost { background: none; border: 1px solid var(--surface2); color: var(--ink); border-radius: 999px; padding: 10px 16px; font: 700 14px var(--body); cursor: pointer; }
.linkrow { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.linkrow code { flex: 1 1 200px; }
.switch { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px; background: none; border: 0; color: var(--lime); cursor: pointer; padding: 0; }
.help { color: var(--muted); font-size: 14px; margin-top: 24px; }
[hidden] { display: none !important; }

/* landing */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg) url(roads.svg) center / cover no-repeat; }
.sky::before { content: ""; position: absolute; inset: 0; background: url(route.svg) center / cover no-repeat; opacity: .45; }
.sky::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 85% 20%, rgba(61,220,255,.14), transparent 70%), radial-gradient(700px 500px at 10% 90%, rgba(47,140,255,.18), transparent 70%); }
.wrap.wide { width: min(100% - 32px, 1040px); }
.hero2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; margin-top: 48px; }
.hero2 .eyebrow { margin-top: 0; }
.hero2 h1 { font-size: clamp(40px, 7vw, 76px); margin-top: 8px; color: var(--lime); text-shadow: 0 0 46px rgba(198,255,61,.25); }
.hero2 p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.phone { position: relative; width: min(300px, 70vw); margin: 0 auto; aspect-ratio: 540 / 1127; border-radius: 40px; background: var(--surface);
  padding: 10px; box-shadow: 0 0 0 2px rgba(242,245,248,.12), 0 40px 90px rgba(0,0,0,.7), 0 0 140px rgba(198,255,61,.14);
  animation: float 6s ease-in-out infinite; }
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 32px; opacity: 0; transition: opacity .8s ease; }
.phone img.on { opacity: 1; }
.phone .cap { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.stats b { color: var(--ink); font-family: var(--head); font-size: 16px; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 96px; }
.feat { background: var(--surface); border-radius: 22px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.feat .shot { height: 220px; overflow: hidden; background: var(--surface2); }
.feat .shot img { width: 100%; display: block; object-fit: cover; object-position: top; height: 260px; }
.feat .shot img.bottom { object-position: center 56%; height: 100%; }
.feat .txt { padding: 16px 18px 20px; }
.feat b { display: block; font-family: var(--head); font-size: 19px; }
.feat span { color: var(--muted); font-size: 15px; }
.sect { margin-top: 96px; }
.sect h2 { font-size: clamp(28px, 4vw, 40px); }
.sect > p { color: var(--muted); margin-top: 8px; max-width: 56ch; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; counter-reset: step; }
.how div { background: var(--surface); border-radius: 18px; padding: 18px; }
.how div::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--bg); font: 800 15px var(--head); margin-bottom: 10px; }
.how b { display: block; font-family: var(--head); font-size: 18px; }
.how span { color: var(--muted); font-size: 15px; }
.cta { margin-top: 96px; background: linear-gradient(135deg, var(--surface), var(--surface2)); border-radius: 28px; padding: 36px; text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); color: var(--lime); }
.cta p { color: var(--muted); margin-top: 8px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 760px) { .hero2 { grid-template-columns: 1fr; } .phone { margin-top: 56px; margin-bottom: 56px; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } .feat { transition: none; } }
