/*
  Learners Test UAE website. "Khor" identity from the app: teal #00756C, ink #0F2129, lane amber #F2A516,
  salt #F4F8F8, rounded sign-plate cards. Light and dark ("Creek at night") through prefers-color-scheme.
  System fonts only, no external requests, no JavaScript. Logical properties, so the same rules serve
  left-to-right and right-to-left pages. Sign drawings, diagrams and clip stills are never mirrored:
  this file has no flip transforms (tools/check_site.py enforces it).
*/

:root {
  --teal: #00756C;
  --teal-deep: #005A53;
  --teal-night: #003F3A;
  --ink: #0F2129;
  --salt: #F4F8F8;
  --amber: #F2A516;

  --bg: #F4F8F8;
  --bg-alt: #E9F2F1;
  --surface: #FFFFFF;
  --text: #0F2129;
  --muted: #44585F;
  --line: #D3E0E0;
  --plate-line: #C4D9D6;
  --link: #00756C;
  --link-hover: #004A44;
  --chip-bg: #E3F0EE;
  --chip-text: #005A53;
  --amber-soft: #FFF5E0;
  --amber-text: #7A4B00;
  --good: #0B6B3A;
  --hero-a: #00756C;
  --hero-b: #00564F;
  --hero-text: #FFFFFF;
  --hero-lead: #E3F4F1;
  --btn-bg: #0F2129;
  --btn-text: #FFFFFF;
  --btn-hover: #1D3742;
  --footer-bg: #0F2129;
  --footer-text: #C3D3D6;
  --footer-link: #FFFFFF;
  --shadow-sm: 0 1px 2px rgb(15 33 41 / 0.06);
  --shadow: 0 1px 2px rgb(15 33 41 / 0.05), 0 12px 32px -14px rgb(15 33 41 / 0.22);
  --shadow-lg: 0 2px 4px rgb(15 33 41 / 0.06), 0 30px 60px -24px rgb(15 33 41 / 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
  --font-hi: "Nirmala UI", "Noto Sans Devanagari", Mangal, "Segoe UI", system-ui, sans-serif;
  --font-ml: "Nirmala UI", "Noto Sans Malayalam", Kartika, "Segoe UI", system-ui, sans-serif;
  --font-bn: "Nirmala UI", "Noto Sans Bengali", Vrinda, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1A1F;
    --bg-alt: #0F2228;
    --surface: #132A31;
    --text: #EAF3F3;
    --muted: #A9BFC3;
    --line: #24434B;
    --plate-line: #2E525A;
    --link: #6FD6CB;
    --link-hover: #A5EAE2;
    --chip-bg: #183A3E;
    --chip-text: #9FE3DA;
    --amber-soft: #2A2414;
    --amber-text: #F5C866;
    --good: #6FD69B;
    --hero-a: #0A5A53;
    --hero-b: #072F2C;
    --hero-lead: #D2EAE6;
    --btn-bg: #F2A516;
    --btn-text: #0F2129;
    --btn-hover: #F7BC4A;
    --footer-bg: #071216;
    --footer-text: #B5C7CA;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -14px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 30px 60px -24px rgb(0 0 0 / 0.7);
  }
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) { font-family: var(--font-ar); }
:lang(ur) { font-family: var(--font-ur); }
:lang(hi) { font-family: var(--font-hi); }
:lang(ml) { font-family: var(--font-ml); }
:lang(bn) { font-family: var(--font-bn); }
html:lang(ar) body { line-height: 1.85; }
html:lang(ur) body { line-height: 2.05; }
html:lang(hi) body, html:lang(ml) body, html:lang(bn) body { line-height: 1.8; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 0.5em; font-weight: 700; color: var(--text); }
html:lang(en) h1, html:lang(en) h2 { letter-spacing: -0.02em; }
html:lang(ar) :is(h1, h2, h3), html:lang(ur) :is(h1, h2, h3) { line-height: 1.55; }
html:lang(ur) :is(h1, h2, h3) { line-height: 1.9; }
html:lang(hi) :is(h1, h2, h3), html:lang(ml) :is(h1, h2, h3), html:lang(bn) :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.35em; }
li { margin-block-end: 0.35em; }
strong { font-weight: 650; }
small { font-size: 0.875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 860px; }
.notfound > * { margin-inline: auto; }
.notfound [lang="ar"] { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section.tight { padding-block: clamp(32px, 4vw, 56px); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-block-end: clamp(24px, 3vw, 40px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--teal); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
html:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--amber); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--link); } }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Lane rule: a dashed amber lane line ─────────────────────────────── */
.lane-rule {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 28px, transparent 28px 46px);
  opacity: 0.9;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.btn-play { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-play:hover { background: var(--btn-hover); color: var(--btn-text); box-shadow: var(--shadow); }
.btn-play .icon { color: var(--amber); width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .btn-play .icon { color: var(--ink); } }
.btn-on-teal { background: var(--amber); color: var(--ink); }
.btn-on-teal:hover { background: #F7BC4A; color: var(--ink); }
.btn-on-teal .icon { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--plate-line); }
.btn-ghost:hover { color: var(--link-hover); box-shadow: inset 0 0 0 2px var(--link); }
.btn-ghost-light { background: rgb(255 255 255 / 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.18); color: #fff; }
.btn-small { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 0.95rem; }
.btn-row.center { justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px -4px rgb(0 117 108 / 0.6); }
.brand-name { font-family: var(--font); font-weight: 750; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-uae { color: var(--teal); }
@media (prefers-color-scheme: dark) { .brand-uae { color: var(--link); } }
.nav-desktop { margin-inline-start: auto; }
.nav-desktop ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { margin: 0; }
.nav-desktop a {
  display: block; padding: 8px 11px; border-radius: 10px; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.nav-desktop a:hover { background: var(--chip-bg); color: var(--chip-text); }
.nav-desktop a[aria-current="page"] { color: var(--chip-text); background: var(--chip-bg); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; position: relative; }
.nav-desktop + .header-actions { margin-inline-start: 0; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lang-menu, .nav-menu { position: relative; }
.lang-menu > summary, .nav-menu > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px;
  border-radius: 12px; font-weight: 600; font-size: 0.95rem; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface);
}
.lang-menu > summary:hover, .nav-menu > summary:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.lang-menu .chev { width: 16px; height: 16px; transition: transform 0.15s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 200px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600;
}
.dropdown a:hover { background: var(--chip-bg); color: var(--chip-text); }
.dropdown a[aria-current] { color: var(--chip-text); background: var(--chip-bg); }
.dropdown a[aria-current]::after { content: " ✓"; }
html[dir="rtl"] .dropdown a { text-align: right; }
html[dir="ltr"] .dropdown a { text-align: left; }
.nav-menu { display: none; }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile { min-width: 240px; }
.nav-mobile-play a { background: var(--btn-bg); color: var(--btn-text) !important; margin-top: 6px; text-align: center; }
.nav-mobile ul { display: block; }
@media (max-width: 1120px) {
  .nav-desktop { display: none; }
  .nav-menu { display: block; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .btn-header { display: none; }
  .lang-current { display: none; }
  .nav-menu > summary span { display: none; }
  .header-bar { gap: 10px; min-height: 60px; }
  .brand-name { font-size: 1rem; }
  .brand .mark { width: 34px; height: 34px; }
}

/* ── Hero (home) ────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgb(54 198 181 / 0.35), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(0 0 0 / 0.18), transparent 70%),
    linear-gradient(160deg, var(--hero-a), var(--hero-b));
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 28px, transparent 28px 46px);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px);
}
.hero h1 { color: #fff; margin-block-end: 0.45em; }
.hero .eyebrow { color: #FFEBC2; }
.hero-lead { color: var(--hero-lead); font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); max-width: 40rem; }
.hero-note { color: var(--hero-lead); font-size: 0.92rem; margin: 14px 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.hero-badges li {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  font-weight: 600; font-size: 0.92rem; color: #fff;
}
.hero-badges .icon { width: 18px; height: 18px; color: #FFD27A; }
.unofficial-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 14px; border-radius: 12px;
  background: rgb(15 33 41 / 0.32); color: #fff; font-size: 0.9rem; font-weight: 600;
}
.unofficial-chip .icon { color: #FFD27A; width: 18px; height: 18px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone {
  position: relative; width: min(270px, 62vw); border-radius: 38px; padding: 9px; background: #0B171C;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.18), var(--shadow-lg), 0 40px 80px -30px rgb(0 0 0 / 0.55);
}
.phone img { width: 100%; height: auto; border-radius: 30px; aspect-ratio: 9 / 16; object-fit: cover; }
.phone-back { position: absolute; width: min(230px, 50vw); inset-inline-start: 4%; bottom: 46px; opacity: 0.96; }
.phone-front { z-index: 2; margin-inline-start: 34%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { min-height: 0; padding-block: 8px 0; }
  .phone-front { margin-inline-start: 0; }
  .phone-back { display: none; }
}

/* ── Stat strip ─────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.stats li { margin: 0; }
.stat {
  height: 100%; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stat-num { display: block; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; color: var(--teal); line-height: 1.1; font-family: var(--font); }
@media (prefers-color-scheme: dark) { .stat-num { color: var(--link); } }
.stat-label { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Sign plate cards ───────────────────────────────────────────────── */
.plate {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.plate::before {
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius) - 6px);
  border: 1.5px solid var(--plate-line); pointer-events: none;
}
.plate > * { position: relative; }
a.plate { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.plate:hover { box-shadow: var(--shadow-lg); color: inherit; }
@media (prefers-reduced-motion: no-preference) { a.plate:hover { transform: translateY(-2px); } }
a.plate:hover::before { border-color: var(--teal); }
.plate h3 { margin-block-end: 6px; }
.plate p { color: var(--muted); }
.plate p:last-child { margin-bottom: 0; }
.plate-teal { background: var(--teal); color: #fff; border-color: transparent; }
.plate-teal::before { border-color: rgb(255 255 255 / 0.85); }
.plate-teal h2, .plate-teal h3 { color: #fff; }
.plate-teal p { color: var(--hero-lead); }
@media (prefers-color-scheme: dark) { .plate-teal { background: #0A5A53; } }

.mt-24 { margin-top: 24px; }
.highlight { display: flex; gap: 18px; align-items: center; }
.highlight .icon-tile { margin: 0; flex: none; }
.highlight p { margin: 0; color: #fff; font-size: 1.08rem; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-lic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-lic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-lic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .grid-lic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-lic .licence-card { padding: 16px 14px; }
  .grid-lic .licence-card p { display: none; }
  .grid-lic .licence-card h3, .grid-lic .licence-card .h3 { font-size: 1.05rem; }
  .grid-lic .icon-tile { width: 44px; height: 44px; margin-bottom: 10px; }
  .grid-lic > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.icon-tile {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  background: var(--chip-bg); color: var(--chip-text); margin-block-end: 14px;
}
.icon-tile .icon { width: 28px; height: 28px; }
.icon-tile.big { width: 96px; height: 96px; border-radius: 26px; margin: 0; }
.icon-tile.big .icon { width: 56px; height: 56px; }
.h3 { font-size: 1.2rem; }
.plate-teal .icon-tile { background: rgb(255 255 255 / 0.14); color: #fff; }

/* Licence cards */
.licence-card { display: flex; flex-direction: column; height: 100%; }
.licence-card .meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; }
.licence-card .meta-row li { margin: 0; }
.licence-card .more { margin-top: auto; font-weight: 700; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }
.licence-card .more .icon { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-text); font-size: 0.85rem; font-weight: 650; white-space: nowrap;
}
.pill-amber { background: var(--amber-soft); color: var(--amber-text); }
.pill-plain { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); white-space: normal; margin-top: 6px; border-radius: 10px; }

/* Emirate list */
.emirate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.emirate-list li { margin: 0; }
.emirate-row {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm);
}
.emirate-row:hover { border-color: var(--teal); color: inherit; box-shadow: var(--shadow); }
.emirate-row .pin { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--chip-text); }
.emirate-row strong { display: block; font-size: 1.08rem; }
.emirate-row span.fmt { display: block; color: var(--muted); font-size: 0.95rem; }

/* ── Screenshots ────────────────────────────────────────────────────── */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 236px); gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 4px 22px;
  margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--plate-line) transparent;
}
.shots li { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.shots:focus-visible { outline-offset: 6px; border-radius: 16px; }
.scroll-hint { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ── Feature list ───────────────────────────────────────────────────── */
.feature h3 { font-size: 1.12rem; }
.feature p { font-size: 0.98rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 18px; align-items: flex-start; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list .icon-tile { margin: 0; flex: none; }
.feature-list h3 { font-size: 1.12rem; margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .feature-list { grid-template-columns: 1fr; } }

/* Split block with media */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list .icon { color: var(--teal); width: 22px; height: 22px; margin-top: 2px; flex: none; }
@media (prefers-color-scheme: dark) { .check-list .icon { color: var(--link); } }
.plate-teal .check-list .icon { color: #FFD27A; }
.plate-teal .check-list li { color: #fff; }

.clip-figure { margin: 0; }
.clip-figure.solo { max-width: 520px; justify-self: center; width: 100%; }
.clip-figure img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.clip-figure figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.clip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .clip-grid { grid-template-columns: 1fr; } }

/* Sign strip on home */
.sign-strip { display: grid; grid-template-columns: repeat(4, 84px); gap: 14px; justify-content: center; margin: 0; padding: 0; list-style: none; }
@media (max-width: 420px) { .sign-strip { grid-template-columns: repeat(3, 84px); } }
.sign-strip li { margin: 0; }
.sign-strip a { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.sign-strip a:hover { border-color: var(--teal); }
.sign-strip img { width: 62px; height: 62px; }

/* Pricing-free plan compare */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }

/* ── Notices ────────────────────────────────────────────────────────── */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--amber-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  margin: 0 0 1.4rem;
}
.notice p { margin: 0 0 0.5em; }
.notice p:last-child { margin: 0; }
.notice-icon { width: 24px; height: 24px; color: var(--amber-text); flex: none; margin-top: 2px; }
.notice-title { font-weight: 750; }
.notice-teal { background: var(--chip-bg); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.notice-teal .notice-icon { color: var(--chip-text); }

/* ── Page head (inner pages) ────────────────────────────────────────── */
.page-head {
  position: relative; background:
    radial-gradient(50rem 22rem at 100% 0%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-head .lane-rule { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; opacity: 0.75; }
.page-head-inner { padding-block: clamp(26px, 4vw, 48px) clamp(28px, 4vw, 52px); display: grid; gap: 28px; align-items: center; }
.page-head.has-aside .page-head-inner { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 760px) { .page-head.has-aside .page-head-inner { grid-template-columns: 1fr; } }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); max-width: 22em; }
.page-head .lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 46rem; margin-bottom: 0.6em; }
.page-head .meta { color: var(--muted); font-size: 0.92rem; margin: 0; }
.page-head-aside { justify-self: end; }
@media (max-width: 760px) { .page-head-aside { justify-self: start; } }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--plate-line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }

/* ── Prose (legal and long text) ────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 96px; }
.prose h2:first-child, .prose section:first-child > h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose li::marker { color: var(--teal); }
.prose table { margin-bottom: 1.2rem; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal-layout .toc { position: sticky; top: 92px; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .legal-layout .toc { position: static; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.95rem; }
.toc ol { margin: 0; padding-inline-start: 1.3em; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-title { font-weight: 750; margin: 0 0 8px; }
.legal-source-note { color: var(--muted); font-size: 0.9rem; }
.prose .button, .button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 700; text-decoration: none;
}
.prose .button:hover, .button:hover { background: var(--btn-hover); color: var(--btn-text); }

/* ── Tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); margin-bottom: 1.4rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
caption { text-align: start; padding: 14px 16px 6px; font-weight: 750; }
th, td { text-align: start; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-alt); font-size: 0.88rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fine-amount { font-weight: 750; white-space: nowrap; }
.less-certain { color: var(--amber-text); font-weight: 700; }
.row-note { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; font-weight: 400; }
.src-link { font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 700px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td, .stack-table th { display: block; width: 100%; }
  .stack-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table td, .stack-table th { border: 0; padding: 3px 0; text-align: start; }
  .stack-table td { display: inline-block; width: auto; margin-inline-end: 18px; }
  .stack-table td.num { text-align: start; }
  .stack-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; font-size: 0.88rem; }
  .stack-table th[scope="row"] { font-size: 1.02rem; margin-bottom: 4px; }
}

/* ── Journey steps ──────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding-inline-start: 58px; padding-block-end: 22px; margin: 0; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; font-family: var(--font);
}
.steps > li::after {
  content: ""; position: absolute; inset-inline-start: 18px; top: 44px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--plate-line) 0 6px, transparent 6px 11px);
}
.steps > li:last-child::after { display: none; }
.steps :is(h3, h4) { font-size: 1.08rem; margin: 6px 0 4px; }
.steps p { margin: 0 0 4px; color: var(--text); }
.steps .step-src { font-size: 0.88rem; }
.steps .milestone { margin-inline-start: 6px; vertical-align: 2px; }

.steps-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.steps-layout > div { max-width: 820px; }
.steps-nav { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.steps-nav ul { list-style: none; margin: 0; padding: 0; }
.steps-nav li { margin: 0; }
.steps-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.steps-nav a:hover { background: var(--chip-bg); color: var(--chip-text); }
.steps-nav .icon { color: var(--teal); }
@media (max-width: 900px) { .steps-layout { grid-template-columns: 1fr; } .steps-nav { position: static; } .steps-nav ul { display: flex; flex-wrap: wrap; gap: 4px; } }
.accordion { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.accordion > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: 1.1rem; }
.accordion > summary .icon-tile { margin: 0; width: 42px; height: 42px; border-radius: 12px; }
.accordion > summary .icon-tile .icon { width: 24px; height: 24px; }
.accordion > summary .acc-chev { margin-inline-start: auto; width: 22px; height: 22px; color: var(--muted); transition: transform 0.15s; }
.accordion[open] > summary .acc-chev { transform: rotate(180deg); }
.accordion > summary h3 { margin: 0; font-size: 1.12rem; }
.accordion-body { padding: 4px 18px 10px; border-top: 1px solid var(--line); padding-top: 20px; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-head { position: sticky; top: 96px; }
@media (max-width: 860px) { .faq-head { position: static; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; }
.faq-q { margin: 0; font-size: 1.1rem; font-weight: 650; }
.faq-chevron { width: 22px; height: 22px; color: var(--teal); flex: none; transition: transform 0.15s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 2px 18px; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ── CTA plate ──────────────────────────────────────────────────────── */
.cta-section { padding-block: clamp(20px, 3vw, 32px) clamp(48px, 6vw, 80px); }
.cta-plate {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 48px); border-radius: 28px; color: #fff;
  background: radial-gradient(40rem 20rem at 90% 0%, rgb(54 198 181 / 0.35), transparent 60%), linear-gradient(150deg, var(--hero-a), var(--hero-b));
  box-shadow: var(--shadow-lg);
}
.cta-plate::before { content: ""; position: absolute; inset: 8px; border-radius: 21px; border: 2px solid rgb(255 255 255 / 0.85); pointer-events: none; }
.cta-plate > * { position: relative; }
.cta-plate h2 { color: #fff; margin-bottom: 0.3em; }
.cta-plate p { color: var(--hero-lead); margin: 0; max-width: 38rem; }
.cta-actions { display: grid; gap: 8px; justify-items: start; }
.cta-note { font-size: 0.9rem; }

/* ── Signs ──────────────────────────────────────────────────────────── */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.cat-nav li { margin: 0; }
.cat-nav a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.cat-nav a:hover { border-color: var(--teal); color: var(--link); }
.cat-nav .count { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.sign-grid li { margin: 0; }
.sign-tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 16px 12px 14px; text-align: center;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: 0.93rem; line-height: 1.35;
}
.sign-tile:hover { border-color: var(--teal); color: var(--link); box-shadow: var(--shadow); }
.sign-box { display: grid; place-items: center; width: 100%; aspect-ratio: 1; max-width: 110px; padding: 8px; border-radius: 14px; background: #fff; }
.sign-box img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-color-scheme: dark) { .sign-box { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); } }
.cat-section { scroll-margin-top: 90px; padding-top: 28px; }
.cat-section h2 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.cat-intro { color: var(--muted); max-width: 52rem; }

.sign-hero { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 760px) { .sign-hero { grid-template-columns: 1fr; } }
.sign-head .page-head-inner { align-items: center; }
.sign-head .other-name { margin-top: 4px; background: var(--surface); border: 1px solid var(--line); }
.sign-inline { display: none; }
@media (max-width: 760px) {
  .sign-inline { display: grid; place-items: center; width: 168px; aspect-ratio: 1; padding: 14px; margin: 4px 0 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .sign-inline img { width: 100%; height: 100%; object-fit: contain; }
  .sign-head .page-head-aside { display: none; }
}
.meaning-label { font-size: 0.95rem; color: var(--muted); margin: 0.6rem 0 0.2rem; }
html:lang(en) .meaning-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.sign-head .meaning { max-width: 40rem; margin-bottom: 1.2rem; }
.sign-about { max-width: 52rem; }
.sign-head .sign-plate-big { width: clamp(200px, 26vw, 320px); }
.sign-plate-big { padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sign-plate-big img { width: 100%; height: auto; }
.sign-caption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.meaning { font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; }
.other-name { display: inline-flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); margin: 0 0 1.2rem; }
.other-name .label { color: var(--muted); font-size: 0.9rem; }
.other-name [lang] { font-weight: 700; font-size: 1.1rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.pager a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; max-width: 100%; }
.pager a:hover { border-color: var(--teal); }
.pager img { width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 3px; }

/* Primer and diagrams */
.primer-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; align-items: center; }
.primer-card.no-media { grid-template-columns: 1fr; }
@media (max-width: 760px) { .primer-card { grid-template-columns: 1fr; } }
.primer-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--amber); color: var(--ink); font-weight: 800; margin-bottom: 10px; font-family: var(--font); }
.split > .diagram { max-width: 460px; justify-self: center; width: 100%; }
.diagram { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.diagram img { width: 100%; height: auto; }
.diagram.sign-only { display: grid; place-items: center; padding: 24px; }
.diagram.sign-only img { width: 160px; }
.diagram figcaption { padding: 8px 12px; font-size: 0.85rem; color: #44585F; background: #fff; border-top: 1px solid #E3ECEB; }
.audience { margin-inline-start: 8px; vertical-align: 3px; }

/* Facts list */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0; padding: 0; }
.facts div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 750; font-family: var(--font); }
.facts dd small { display: block; font-weight: 500; color: var(--muted); font-size: 0.85rem; }

.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topic-list li { margin: 0; }
.topic-list .pill { font-size: 0.92rem; padding: 6px 12px; white-space: normal; }

.source-box { margin-top: 2rem; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--plate-line); font-size: 0.95rem; }
.source-box h2, .source-box h3 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.source-box ul { margin: 0; }
.source-box .small { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }
.source-list li { margin-bottom: 8px; }
.kind { color: var(--muted); font-size: 0.85rem; }

.about-mark .mark { width: 112px; height: 112px; border-radius: 28px; box-shadow: var(--shadow-lg); }
/* 404 */
.notfound { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.notfound .big-sign { width: 140px; margin: 0 auto 24px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; font-size: 0.95rem; }
.site-footer .lane-rule { opacity: 1; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--footer-link); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 340px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand-uae { color: #6FD6CB; }
.footer-brand p { max-width: 26rem; }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.footer-mail .icon { color: var(--amber); }
.footer-brand .btn-play { background: var(--amber); color: var(--ink); margin-top: 6px; }
.footer-brand .btn-play .icon { color: var(--ink); }
.footer-h { color: var(--amber); font-size: 0.95rem; margin-bottom: 12px; }
html:lang(en) .footer-h { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.en-note { color: var(--footer-text); font-size: 0.85em; }
.footer-legal { padding-block: 0 32px; font-size: 0.88rem; }
.footer-legal-inner { border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 22px; }
.footer-legal p { margin: 0 0 8px; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; color: #E3EEEF; }
.disclaimer .icon { color: var(--amber); width: 20px; height: 20px; margin-top: 2px; }

@media print {
  .site-header, .site-footer .footer-grid, .btn, .cta-plate, .lang-menu, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
