/* =========================================================
   Fonts
   Arabic → Thmanyah: sans (base) · serif display (h1/h2) · serif text (long reading)
   Latin  → Inter · numbers & labels → JetBrains Mono
   ========================================================= */
@font-face { font-family: 'thmanyahsans'; src: url('../fonts/thmanyah/thmanyahsans-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahsans'; src: url('../fonts/thmanyah/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahsans'; src: url('../fonts/thmanyah/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahsans'; src: url('../fonts/thmanyah/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahsans'; src: url('../fonts/thmanyah/thmanyahsans-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'thmanyahserifdisplay'; src: url('../fonts/thmanyah/thmanyahserifdisplay-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahserifdisplay'; src: url('../fonts/thmanyah/thmanyahserifdisplay-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahserifdisplay'; src: url('../fonts/thmanyah/thmanyahserifdisplay-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahserifdisplay'; src: url('../fonts/thmanyah/thmanyahserifdisplay-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahserifdisplay'; src: url('../fonts/thmanyah/thmanyahserifdisplay-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'thmanyahseriftext'; src: url('../fonts/thmanyah/thmanyahseriftext-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahseriftext'; src: url('../fonts/thmanyah/thmanyahseriftext-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahseriftext'; src: url('../fonts/thmanyah/thmanyahseriftext-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahseriftext'; src: url('../fonts/thmanyah/thmanyahseriftext-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'thmanyahseriftext'; src: url('../fonts/thmanyah/thmanyahseriftext-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter/Inter-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono/JetBrainsMono-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

/* =========================================================
   Tokens
   ========================================================= */
:root {
  color-scheme: dark;

  --bg: #102217;
  --deep: #0B1812;
  --ink: #08110C;
  --card: #1C2E24;
  --cardHi: #243A2E;
  --bd: rgba(255, 255, 255, .06);
  --bdHi: rgba(255, 255, 255, .12);
  --fg: #E9F2EC;
  --dim: #A8B7AE;
  --muted: #6E8076;
  --pri: #2BEE79;
  --priDim: rgba(43, 238, 121, .16);
  --info: #7CB8E2;
  --infoDim: rgba(124, 184, 226, .14);
  --danger: #F26B5B;
  --dangerDim: rgba(242, 107, 91, .12);
  --purple: #B57CE2;
  --purpleDim: rgba(181, 124, 226, .16);
  --warn: #F2B85B;
  --warnDim: rgba(242, 184, 91, .14);

  --font-sans: 'Inter', system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-display: var(--font-sans);
  --font-text: var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-brand: 'Inter', system-ui, sans-serif;

  --nav-h: 72px;
}

:root[data-script="arab"] {
  --font-sans: 'thmanyahsans', system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-display: 'thmanyahserifdisplay', system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-text: 'thmanyahseriftext', system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'thmanyahsans', ui-monospace, monospace;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

html, body {
  margin: 0;
  background: var(--deep);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

a { color: var(--pri); text-decoration: none; }
a:hover { color: #7CE2A1; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 50;
  padding: 10px 16px; border-radius: 10px;
  background: var(--pri); color: var(--deep); font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--deep); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Language names always render in their own script's font */
.native[data-script="arab"] { font-family: 'thmanyahsans', system-ui, "Segoe UI", Tahoma, sans-serif; }
.native[data-script="latn"] { font-family: 'Inter', system-ui, "Segoe UI", Tahoma, sans-serif; }

/* Opt-in OpenType features for Arabic headings (brand guide).
   Wrap ONE word in a <span>, never a whole heading or paragraph.
   kashida-N: N = number of kashidas in the word. */
.alt-letters { font-feature-settings: "salt" 1; }
.kashida-1 { font-feature-settings: "ss01" 1; }
.kashida-2 { font-feature-settings: "ss02" 1; }
.kashida-3 { font-feature-settings: "ss03" 1; }
.kashida-4 { font-feature-settings: "ss04" 1; }
.kashida-5 { font-feature-settings: "ss05" 1; }

/* =========================================================
   Brand & buttons
   ========================================================= */
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.logo {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(43, 238, 121, .35), 0 6px 18px rgba(43, 238, 121, .18);
}
.wordmark { font-family: var(--font-brand); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.wordmark b { color: var(--pri); font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--pri); color: var(--deep);
  font-size: 14px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(43, 238, 121, .32), inset 0 -2px 0 rgba(0, 0, 0, .18);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-1px); color: var(--deep); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 24, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { padding: 6px 0; color: var(--dim); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--fg); }
.nav-end { display: flex; align-items: center; gap: 10px; }

/* Language dropdown */
.lang { position: relative; }
.lang > summary {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 14px 12px; border-radius: 12px;
  list-style: none; cursor: pointer; user-select: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bd);
  color: var(--fg); font-size: 13px; font-weight: 600;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover,
.lang[open] > summary { box-shadow: inset 0 0 0 1px var(--bdHi); }
.lang .chev { color: var(--muted); transition: transform .15s; }
.lang[open] .chev { transform: rotate(180deg); }

.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30;
  min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--bdHi), 0 18px 40px rgba(0, 0, 0, .45);
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--dim); font-size: 14px; font-weight: 600;
}
.lang-list a:hover { background: var(--cardHi); color: var(--fg); }
.lang-list a[aria-current="true"] { color: var(--fg); }
.lang-list .code {
  display: flex; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.lang-list a[aria-current="true"] .code { color: var(--pri); }

/* =========================================================
   Home — hero
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(43, 238, 121, .16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(124, 184, 226, .10), transparent 60%);
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero .wrap {
  position: relative; display: grid; align-items: center; gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding-top: 96px; padding-bottom: 110px;
}
.hero h1 {
  margin: 18px 0 22px;
  font-family: var(--font-display); font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--pri); }
.hero .sub {
  max-width: 520px; margin: 0 0 34px;
  color: var(--dim); font-size: 18px; line-height: 1.6; text-wrap: pretty;
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  height: 58px; min-width: 170px; padding: 0 22px; border-radius: 14px;
  background: var(--ink); box-shadow: inset 0 0 0 1px var(--bdHi); color: var(--fg);
  transition: box-shadow .15s;
}
.store:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--pri); }
.store small { color: var(--dim); font-size: 11px; font-weight: 500; }
.store strong { font-family: var(--font-brand); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

/* Typing demo */
.demo {
  position: relative; overflow: hidden; padding: 26px; border-radius: 24px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bd), 0 30px 80px rgba(0, 0, 0, .45);
}
.demo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 14px, transparent 14px 30px);
}
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(11, 24, 18, .6); box-shadow: inset 0 0 0 1px var(--priDim); color: var(--pri);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cardHi); }
.dots i:first-child { background: var(--pri); box-shadow: 0 0 8px var(--pri); }

.demo-text {
  position: relative; min-height: calc(1.7em * 3);
  font-family: var(--font-mono); font-size: 24px; line-height: 1.7;
  color: var(--muted); word-break: break-word;
}
.demo-text .ok { color: var(--fg); }
.demo-text .err { color: var(--danger); background: var(--dangerDim); border-radius: 3px; }
.demo-text .cur { position: relative; }
.demo-text .cur::before {
  content: ""; position: absolute; inset-inline-start: -1px; top: .25em; bottom: .2em; width: 2px;
  background: var(--pri); box-shadow: 0 0 8px var(--pri);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.bar { position: relative; height: 4px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: var(--cardHi); }
.bar i {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 4px;
  background: var(--pri); box-shadow: 0 0 10px var(--pri); transition: width .3s linear;
}

.demo-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.stat { padding: 14px 16px; border-radius: 14px; background: rgba(11, 24, 18, .55); box-shadow: inset 0 0 0 1px var(--bd); }
.stat .label {
  display: block; color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.stat b { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat:first-child b { color: var(--pri); }

/* =========================================================
   Home — sections
   ========================================================= */
section.block { padding: 110px 0; }
section.cta-block { padding-top: 0; }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.sec-head p { max-width: 380px; margin: 0; color: var(--dim); font-size: 16px; line-height: 1.6; }

.ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--cd); color: var(--c); box-shadow: inset 0 0 0 1px var(--cd);
}

.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mode {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 270px; padding: 22px; border-radius: 22px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bd);
  transition: box-shadow .2s, transform .2s;
}
.mode:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 0 5px var(--cd); }
.mode::before {
  content: ""; position: absolute; top: -40px; inset-inline-end: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--cd), transparent 70%);
}
.mode h3 { margin: auto 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.mode p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.55; }
.mode .meta {
  margin-top: 14px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.feat-bg { background: var(--bg); border-block: 1px solid var(--bd); }
.feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--bd);
}
.feat { padding: 34px 30px; border-inline-start: 1px solid var(--bd); }
.feat:first-child { border-inline-start: 0; }
.feat .ico { --c: var(--pri); --cd: var(--priDim); margin-bottom: 26px; }
.feat:nth-child(2) .ico { --c: var(--warn); --cd: var(--warnDim); }
.feat:nth-child(3) .ico { --c: var(--info); --cd: var(--infoDim); }
.feat h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.feat p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.6; text-wrap: pretty; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shot { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.phone {
  aspect-ratio: 390 / 844; padding: 10px; border-radius: 34px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bdHi), 0 20px 50px rgba(0, 0, 0, .4);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }
.phone .ph {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px;
  border-radius: 26px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 10px, transparent 10px 20px), var(--bg);
  color: var(--muted); font-family: var(--font-mono); font-size: 12px;
}
.shot figcaption { color: var(--dim); font-size: 14px; font-weight: 600; text-align: center; }

.cta {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: 64px 56px; border-radius: 28px;
  background: linear-gradient(135deg, #1C2E24, #1A3A2A 60%, #244A36);
  box-shadow: inset 0 0 0 1px var(--bd);
}
.cta .big {
  position: absolute; inset-inline-end: -40px; bottom: -70px;
  width: 380px; height: auto; color: var(--pri); opacity: .07;
}
.cta h2 {
  position: relative; margin: 0 0 10px;
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em;
}
.cta p { position: relative; margin: 0; color: var(--dim); font-size: 16px; }
.cta .stores { position: relative; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 56px 0 40px; background: var(--ink); border-top: 1px solid var(--bd); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.foot p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot h2 {
  margin: 0 0 14px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.foot ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.foot ul a { color: var(--dim); font-size: 14px; }
.foot ul a:hover { color: var(--fg); }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bd);
  color: var(--muted); font-size: 13px;
}

/* =========================================================
   Policy & help pages
   ========================================================= */
.legal-hero { padding: 64px 0 0; background: var(--bg); border-bottom: 1px solid var(--bd); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--fg); }
[dir="rtl"] .flip { transform: scaleX(-1); }
.legal-hero h1 {
  margin: 28px 0 12px;
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em;
}
.legal-hero .upd { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

.tabs { display: flex; gap: 6px; margin-top: 40px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 14px 18px; border-bottom: 2px solid transparent; white-space: nowrap;
  color: var(--dim); font-size: 14px; font-weight: 600;
}
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--pri); border-bottom-color: var(--pri); }

.legal-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 110px; }

.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.toc ol { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--dim); font-size: 14px; line-height: 1.4; }
.toc li a:hover { background: var(--card); color: var(--fg); }
.toc li a::before {
  counter-increment: toc; content: counter(toc, decimal-leading-zero);
  padding-top: 2px; color: var(--muted); font-family: var(--font-mono); font-size: 11px;
}

.doc { max-width: 720px; }
.doc .intro, .doc p, .doc li { font-family: var(--font-text); }
.doc .intro { margin: 0 0 48px; color: var(--fg); font-size: 19px; line-height: 1.65; text-wrap: pretty; }
.doc section { padding: 32px 0; border-top: 1px solid var(--bd); }
.doc h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font-size: 22px; font-weight: 700; }
.doc h2 em { color: var(--pri); font-family: var(--font-mono); font-size: 12px; font-style: normal; font-weight: 700; }
.doc p { margin: 0 0 12px; color: var(--dim); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.doc ul { margin: 0 0 12px; padding-inline-start: 20px; color: var(--dim); }
.doc li { margin-bottom: 8px; font-size: 16px; line-height: 1.75; }
.doc li::marker { color: var(--pri); }
.doc .note { font-family: var(--font-sans); font-size: 14px; color: var(--muted); }
.doc .btn { margin-top: 8px; }

.doc ol.steps { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; }
.doc ol.steps li {
  display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 16px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bd); color: var(--fg);
}
.doc ol.steps li::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; margin-top: 1px; border-radius: 8px;
  background: var(--priDim); color: var(--pri);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; line-height: 1;
}

/* Contact cards (support page) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 40px; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bd); color: var(--fg);
  transition: box-shadow .15s, transform .15s;
}
.card:hover { color: var(--fg); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--pri); }
.card .ico { --c: var(--pri); --cd: var(--priDim); width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; }
.card strong { font-size: 16px; font-weight: 700; }
.card span { color: var(--dim); font-size: 14px; line-height: 1.5; }
.card em {
  align-self: flex-start; margin-top: auto; padding-top: 10px;
  color: var(--pri); font-family: var(--font-mono); font-size: 12.5px; font-style: normal;
}

/* =========================================================
   404 & language picker (/)
   ========================================================= */
.notfound { padding: 110px 0 130px; background: var(--bg); text-align: center; }
.nf-mascot { display: block; width: 140px; height: auto; margin: 0 auto 36px; color: var(--fg); }
.notfound h1 {
  margin: 12px 0 14px;
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em;
}
.notfound p:not(.eyebrow) { max-width: 460px; margin: 0 auto 32px; color: var(--dim); font-size: 17px; line-height: 1.6; }
.notfound .eyebrow { margin: 0; color: var(--pri); }

.picker { display: grid; place-items: center; padding: 80px 0; background: var(--bg); }
.picker .brand { justify-content: center; margin-bottom: 36px; }
.picker .logo { width: 48px; height: 48px; border-radius: 14px; }
.picker ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.picker a {
  display: block; min-width: 160px; padding: 16px 22px; border-radius: 14px; text-align: center;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--bdHi);
  color: var(--fg); font-size: 16px; font-weight: 600;
}
.picker a:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--pri); }

/* =========================================================
   Arabic script adjustments
   Letter-spacing breaks Arabic joining, so it is always reset.
   ========================================================= */
[data-script="arab"] :is(.eyebrow, .chip, .stat .label, .mode h3, .mode .meta, .foot h2,
  .legal-hero .upd, .hero h1, .sec-head h2, .cta h2, .legal-hero h1, .notfound h1) { letter-spacing: 0; }

[data-script="arab"] .eyebrow { font-size: 13px; }
[data-script="arab"] .chip { font-size: 12px; }
[data-script="arab"] .stat .label { font-size: 12px; }
[data-script="arab"] .foot h2 { font-size: 13px; }

/* Display serif: headings ≥ 32px only */
[data-script="arab"] .hero h1 { font-weight: 700; line-height: 1.3; }
[data-script="arab"] .sec-head h2 { font-weight: 700; line-height: 1.4; }
[data-script="arab"] .cta h2 { font-size: clamp(32px, 3.4vw, 42px); font-weight: 700; line-height: 1.4; }
[data-script="arab"] .legal-hero h1,
[data-script="arab"] .notfound h1 { font-weight: 700; line-height: 1.35; }

[data-script="arab"] .mode h3 { font-weight: 700; }
[data-script="arab"] .btn { font-weight: 700; }
[data-script="arab"] .demo-text { font-family: var(--font-sans); font-size: 26px; }

/* Text serif: long-form reading, min 18px, line-height ~1.8 */
[data-script="arab"] .doc .intro { font-size: 20px; line-height: 1.8; }
[data-script="arab"] .doc p,
[data-script="arab"] .doc li { font-size: 18px; line-height: 1.8; }
[data-script="arab"] .doc .note { font-size: 15px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: 1fr; }
  .feat { border-inline-start: 0; border-top: 1px solid var(--bd); }
  .feat:first-child { border-top: 0; }
  .legal-body { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .toc { position: static; }
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 18px; }
  .modes, .shots { grid-template-columns: 1fr; }
  .shots { max-width: 300px; margin: 0 auto; }
  .cta { padding: 40px 26px; }
  section.block { padding: 72px 0; }
  section.cta-block { padding-top: 0; }
  .nav-end .btn { display: none; }
  .demo-text { font-size: 19px; }
  [data-script="arab"] .demo-text { font-size: 21px; }
  .stat b { font-size: 22px; }
  .legal-hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
