/* Riyadh Chase / مطاردة الرياض — landing site styles. No frameworks, no external requests.
   Fonts: Lalezar + Baloo Bhaijaan 2 (SIL OFL 1.1, licences in /assets/fonts/). */

@font-face { font-family: 'Lalezar'; src: url('/assets/fonts/Lalezar-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baloo Bhaijaan 2'; src: url('/assets/fonts/BalooBhaijaan2-Variable.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --night: #24107a;      /* sky at night */
  --violet: #4f22c4;
  --ink: #2a0f6b;        /* outline / text */
  --sun: #ffe14d;        /* sticker yellow */
  --orange: #ff7a00;
  --magenta: #c2185b;
  --siren-red: #ff2b4a;
  --siren-blue: #2f7bff;
  --sign: #0b7a3e;       /* road-sign green */
  --sand: #f3dcae;       /* the game's city ground */
  --curb: #c9b79c;
  --asphalt: #4b5160;
  --lilac: #f3efff;
  --display: 'Lalezar', 'Baloo Bhaijaan 2', system-ui, sans-serif;
  --body: 'Baloo Bhaijaan 2', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(18px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--sand);
  font-weight: 500; }
:lang(en) body, body:lang(en) { line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 7px var(--ink); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10; background: var(--sun); color: var(--ink);
  padding: 8px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.topbar .mark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; }
.topbar .mark img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.lang { color: #fff; font-weight: 800; text-decoration: none; padding: 6px 16px 8px; border-radius: 999px;
  border: 3px solid rgba(255,255,255,.55); line-height: 1.2; }
.lang:hover { background: rgba(255,255,255,.14); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #24107a 0%, #4f22c4 55%, #7a35e0 100%); }
.hero .sparkles { position: absolute; inset: 0; pointer-events: none; }
.hero-body { position: relative; text-align: center; padding-top: clamp(8px, 3vw, 24px); }
.hero h1 { margin: 0 auto; max-width: 760px; }
.hero h1 img { width: 100%; height: auto; }
.tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; max-width: 34ch; margin: clamp(10px, 2vw, 18px) auto 0;
  text-wrap: balance; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 26px 0 0; padding: 0; list-style: none; }
.store { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 10px 18px 12px; border-radius: 18px;
  background: #140a3d; color: #fff; border: 3px solid rgba(255,255,255,.9); text-align: start; cursor: default; }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 14px; font-weight: 700; color: var(--sun); line-height: 1.2; }
.store b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; }
@media (max-width: 479px) {
  .stores { gap: 10px; }
  .stores li { flex: 1 1 0; max-width: 200px; }
  .store { min-width: 0; padding: 8px 12px 10px; gap: 8px; }
  .store svg { width: 22px; height: 22px; }
  .store b { font-size: 18px; white-space: nowrap; }
  .store small { font-size: 13px; }
}
.scene { position: relative; margin-top: clamp(18px, 4vw, 34px); }
.scene svg { width: 100%; height: clamp(150px, 22vw, 330px); }

/* the chase: one entrance, then the lights keep flashing */
.chase { animation: drive-in 1.5s cubic-bezier(.2,.8,.25,1) both .15s; }
.cop { animation: drive-in 1.9s cubic-bezier(.2,.8,.25,1) both .3s; }
.lb-r, .glow-r { animation: flash 0.5s steps(1, end) infinite; }
.lb-b, .glow-b { animation: flash 0.5s steps(1, end) infinite reverse; animation-delay: -.25s; }
@keyframes drive-in { from { transform: translateX(1400px); } to { transform: translateX(0); } }
@keyframes flash { 0% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .chase, .cop, .lb-r, .lb-b, .glow-r, .glow-b { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- section headings: Riyadh road signs ---------- */
section { padding-block: clamp(48px, 8vw, 96px); }
.sign { display: inline-block; margin: 0 0 .5em; font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.25; padding: .14em .7em .3em; border-radius: 16px;
  background: var(--sign); box-shadow: inset 0 0 0 5px var(--sign), inset 0 0 0 8px #fff, 0 6px 0 rgba(0,0,0,.18); }
.sign.blue { background: #1c5fbf; box-shadow: inset 0 0 0 5px #1c5fbf, inset 0 0 0 8px #fff, 0 6px 0 rgba(0,0,0,.18); }
.lede { font-size: clamp(19px, 2.2vw, 22px); max-width: 60ch; margin: 0 0 1.4em; }

/* ---------- features: city blocks ---------- */
.blocks { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.block { position: relative; background: var(--c, #ffc078); border: 7px solid var(--curb); border-radius: 26px;
  padding: 22px 22px 24px; box-shadow: inset 0 -10px 0 rgba(0,0,0,.08); }
.block .ico { width: 64px; height: 64px; margin-bottom: 10px; }
.block h3 { display: inline-block; margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.3;
  color: #fff; background: var(--s, #7b2cbf); border: 3px solid #fff; border-radius: 12px; padding: 0 14px 4px;
  box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.block p { margin: 0; font-weight: 600; max-width: 46ch; }
.b-police { --c: #faa2c1; --s: #c2185b; }
.b-coin { --c: #ffd8a8; --s: #d9480f; }
.b-star { --c: #fff3bf; --s: #e67700; }
.b-tower { --c: #a5d8ff; --s: #1864ab; }
.b-trophy { --c: #d0bfff; --s: #6741d9; }
.block.big .ico { width: 84px; height: 84px; }
.block.big h3 { font-size: 30px; }
@media (min-width: 700px) {
  .blocks { grid-template-columns: repeat(6, 1fr); }
  .block { grid-column: span 2; }
  .block.big { grid-column: span 3; }
}

/* ---------- screenshots: the road ---------- */
.road { background: var(--asphalt); color: #fff; position: relative; padding-block: clamp(56px, 8vw, 96px);
  background-image:
    repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 90px),
    repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 90px);
  background-size: 100% 6px, 100% 6px; background-position: 0 22px, 0 calc(100% - 22px); background-repeat: no-repeat; }
.road .lede { color: #e9e4ff; }
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 18px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  margin: 0; list-style: none; scrollbar-color: var(--sun) transparent; overscroll-behavior-x: contain; }
.shots figure { margin: 0; }
.shots li { flex: none; width: min(86vw, 720px); scroll-snap-align: start; }
.frame { background: #120c26; border-radius: clamp(20px, 3vw, 34px); padding: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 0 0 3px #2c2350, 0 16px 30px rgba(0,0,0,.35); }
.frame img { width: 100%; aspect-ratio: 2796 / 1290; object-fit: cover; border-radius: clamp(12px, 2vw, 22px); background: #352a6e; }
.shots figcaption { margin-top: 10px; font-weight: 700; color: #e9e4ff; font-size: 16px; }
.swipe { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #cfc6ff; margin: 0; }

/* ---------- parents ---------- */
.parents { background: var(--lilac); }
.parents-grid { display: grid; gap: clamp(20px, 4vw, 48px); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promises li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: #fff;
  border-radius: 18px; padding: 14px 16px; border: 3px solid #e3dbff; }
.promises svg { width: 40px; height: 40px; }
.promises b { display: block; font-size: 19px; font-weight: 800; line-height: 1.35; }
.promises span { display: block; font-size: 16px; line-height: 1.55; color: #4a3a86; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 400;
  color: var(--ink); background: linear-gradient(#fff36b, #ffb300); border: 0; border-radius: 999px; padding: 8px 26px 12px;
  box-shadow: 0 6px 0 #c76a00, 0 10px 18px rgba(42,15,107,.2); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c76a00; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 900px) {
  .parents-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .promises { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */
.faq details, .faq > p { max-width: 820px; }
.faq details { background: #fff8e8; border: 4px solid var(--curb); border-radius: 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 20px; font-weight: 800; font-size: 19px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--magenta); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 16px; }
.faq details p { margin: 0 0 .6em; }

/* ---------- footer ---------- */
.footer { background: #1d1440; color: #e9e4ff; padding-block: 44px 36px; font-size: 16px;
  border-top: 10px solid var(--sun); }
.footer nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { font-weight: 800; color: #fff; }
.footer p { margin: 0 0 6px; max-width: 70ch; }
.footer .fine { color: #b9addf; font-size: 14px; }

/* ---------- inner pages (privacy / terms / support) ---------- */
.page-head { background: linear-gradient(180deg, #24107a, #4f22c4); color: #fff; padding-bottom: clamp(26px, 5vw, 44px); }
.page-head .logo-sm { width: min(320px, 70vw); margin: 4px 0 18px; }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 7vw, 64px); line-height: 1.15; margin: 0;
  color: var(--sun);
  text-shadow: 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 6px 0 var(--orange), 0 9px 0 var(--magenta), 0 12px 0 var(--ink); }
.page-head .meta { margin: 14px 0 0; color: #e2dbff; font-weight: 700; }
.doc { background: #fff; padding-block: clamp(28px, 5vw, 48px) clamp(48px, 8vw, 88px); }
.doc .summary, .doc .form, .doc .datatable, .doc .status { max-width: 820px; }
.doc h2 { font-size: clamp(23px, 3vw, 28px); font-weight: 800; line-height: 1.35; margin: 1.8em 0 .5em;
  padding-inline-start: 14px; border-inline-start: 7px solid var(--siren-red); }
.doc h2:nth-of-type(even) { border-inline-start-color: var(--siren-blue); }
.doc h3 { font-size: 20px; font-weight: 800; margin: 1.3em 0 .3em; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-inline-start: 1.3em; }
.doc li { margin-bottom: .35em; }
.summary { background: var(--lilac); border: 4px solid #e3dbff; border-radius: 22px; padding: 18px 22px; margin-top: 8px; }
.summary h2 { margin-top: 0; border: 0; padding: 0; }
.summary ul { margin: 0; }
.datatable { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 16px; }
.datatable th, .datatable td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid #ece6ff; }
.datatable thead th { background: var(--ink); color: #fff; font-weight: 800; }
.datatable thead th:first-child { border-start-start-radius: 12px; }
.datatable thead th:last-child { border-start-end-radius: 12px; }
@media (max-width: 699px) {
  .datatable thead { display: none; }
  .datatable tr { display: block; border: 3px solid #ece6ff; border-radius: 16px; margin-bottom: 12px; padding: 6px 4px; }
  .datatable td { display: block; border: 0; padding: 4px 12px; }
  .datatable td::before { content: attr(data-h); display: block; font-weight: 800; font-size: 13px; color: #6a5aa8; }
}

/* ---------- support form ---------- */
.form { display: grid; gap: 16px; background: var(--lilac); border: 4px solid #e3dbff; border-radius: 24px; padding: clamp(18px, 4vw, 30px); }
.form label { font-weight: 800; display: block; margin-bottom: 6px; }
.form .hint { font-weight: 600; font-size: 15px; color: #5b4b99; display: block; }
.form textarea, .form input { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 3px solid #c9bff2; border-radius: 16px; padding: 12px 14px; }
.form textarea { min-height: 170px; resize: vertical; }
.form ::placeholder { color: #9a8fc9; }
.form input[type=email] { direction: ltr; text-align: start; }
.form textarea:focus, .form input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px rgba(79,34,196,.25); }
.form .count { font-size: 14px; color: #5b4b99; margin-top: 4px; }
.status { border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.status:empty { display: none; }
.status.ok { background: #e3f8ea; border: 3px solid #2f9e44; color: #1b5e2b; }
.status.err { background: #ffe8ec; border: 3px solid var(--siren-red); color: #8a0f25; }
.form[hidden] { display: none; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 22px; line-height: 1; width: 40px; height: 40px;
  display: grid; place-items: center; padding-bottom: 4px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 #c76a00; }
:lang(ar) .steps li::before { content: counter(step, arabic-indic); }
