/* منصة الأمل — the public site. Alamal's colours (alamal/lib/core/theme/app_colors.dart)
   and the dashboard's shapes: rounded cards, gradient buttons, soft blue shadows. */

@font-face { font-family: 'Cairo'; src: url('assets/fonts/Cairo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('assets/fonts/Cairo-SemiBold.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('assets/fonts/Cairo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('assets/fonts/Cairo-ExtraBold.ttf') format('truetype'); font-weight: 800 900; font-display: swap; }

:root {
  --primary: #1b76c8;
  --primary-light: #3aa7ff;
  --primary-dark: #1257a0;
  --navy: #0d3a6e;
  --orange: #ff8a3d;
  --green: #35c98b;
  --bg: #f4f6fb;
  --tint: #eaf2fb;
  --text: #2e2a4f;
  --muted: #6b6688;
  --divider: #e6eaf2;
  --gradient: linear-gradient(225deg, #1257a0 0%, #1b76c8 55%, #3aa7ff 100%);
  --deep: linear-gradient(160deg, #0d3a6e 0%, #1257a0 45%, #1b76c8 75%, #3aa7ff 100%);
  --shadow: 0 6px 18px rgba(27, 118, 200, 0.08);
  --shadow-lift: 0 18px 40px rgba(18, 87, 160, 0.16);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; }

.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; font-size: 22px; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: 'FILL' 1; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 16px;
  background: var(--gradient); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(27, 118, 200, 0.28); transition: transform 0.15s, box-shadow 0.15s, background 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(27, 118, 200, 0.34); }
.btn.small { min-height: 40px; padding: 0 14px; border-radius: 14px; font-size: 14px; }
.btn.small .ms { font-size: 19px; }
.btn.big { min-height: 56px; padding: 0 26px; border-radius: 18px; font-size: 16px; }
.btn.ghost { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn.ghost:hover { background: var(--tint); }
.btn.white { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 24px rgba(8, 37, 69, 0.25); }
.soon { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 30px; background: var(--tint); color: var(--primary);
  font-weight: 800; font-size: 13.5px; }
.eyebrow .ms { font-size: 18px; }
.eyebrow.light { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ── Header ──────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow 0.2s; }
.nav.scrolled { box-shadow: 0 4px 20px rgba(18, 87, 160, 0.08); }
.nav-row { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.logo-tile { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--divider); }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { padding: 8px 12px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: background 0.2s, color 0.2s; }
.links a:hover { background: var(--tint); color: var(--primary); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--tint); color: var(--primary); cursor: pointer; place-items: center; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; background: linear-gradient(180deg, #e4eef9 0%, #fff 100%); }
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.b1 { width: 520px; height: 520px; top: -220px; inset-inline-end: -160px; background: radial-gradient(circle, rgba(58, 167, 255, 0.28), transparent 70%); }
.b2 { width: 420px; height: 420px; bottom: -200px; inset-inline-start: -140px; background: radial-gradient(circle, rgba(255, 138, 61, 0.14), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 900; line-height: 1.25; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); font-weight: 600; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 700; font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ms { color: var(--primary); font-size: 20px; }

/* The illustration */
.hero-art { position: relative; height: 470px; }
.screen-web { position: absolute; inset-inline-start: 0; top: 30px; width: 88%; height: 330px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift);
  display: flex; overflow: hidden; border: 1px solid var(--divider); }
.web-side { width: 64px; border-inline-start: 1px solid var(--divider); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; order: 2; }
.web-side .dot-logo { width: 34px; height: 34px; border-radius: 11px; background: url('assets/logo.png') center / 30px no-repeat, #fff; border: 1px solid var(--divider); margin-bottom: 6px; }
.web-side i { width: 34px; height: 10px; border-radius: 6px; background: var(--bg); }
.web-side i.on { background: var(--tint); box-shadow: inset 0 0 0 2px rgba(27, 118, 200, 0.2); }
.web-main { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px; background: var(--bg); }
.web-head { background: var(--gradient); color: #fff; text-align: center; font-weight: 900; padding: 12px; border-radius: 0 0 18px 18px; font-size: 14px; }
.web-hero { margin: 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--gradient); color: #fff; display: flex; flex-direction: column; }
.web-hero b { font-size: 17px; }
.web-hero span { font-size: 12px; opacity: 0.9; }
.web-tiles { margin: 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.web-tiles span { background: #fff; border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow); }
.web-tiles .ms { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-size: 19px; }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 230px; height: 450px; border-radius: 38px; background: #fff; padding: 14px 12px;
  box-shadow: 0 28px 60px rgba(13, 58, 110, 0.28); border: 8px solid #10223a; display: flex; flex-direction: column; gap: 10px; animation: float 6s ease-in-out infinite; }
.notch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: #10223a; align-self: center; margin-top: -14px; }
.ph-head { background: var(--gradient); color: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; }
.ph-head small { opacity: 0.85; font-size: 11px; }
.ph-head b { font-size: 16px; }
.ph-card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--bg); }
.ph-card .ms { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 20px; flex-shrink: 0; }
.ph-card:nth-of-type(3) .ms { color: var(--orange); }
.ph-card:nth-of-type(4) .ms { color: var(--green); }
.ph-card span { display: flex; flex-direction: column; line-height: 1.4; }
.ph-card b { font-size: 12.5px; }
.ph-card small { font-size: 10.5px; color: var(--muted); }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px; border-radius: 16px; background: var(--bg); }
.ph-nav i { width: 22px; height: 22px; border-radius: 8px; background: #dfe6f0; }
.ph-nav i.on { background: var(--primary); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ── Strip ───────────────────────────────────────────── */
.strip { margin-top: -44px; position: relative; z-index: 2; }
.strip-row { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lift); display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 10px; }
.strip-row div { text-align: center; display: flex; flex-direction: column; padding: 4px 10px; border-inline-start: 1px solid var(--divider); }
.strip-row div:first-child { border-inline-start: 0; }
.strip-row b { font-size: 22px; font-weight: 900; color: var(--primary-dark); }
.strip-row span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.tinted { background: var(--bg); }
.head { text-align: center; max-width: 680px; margin: 0 auto 46px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.35; }
.head p { color: var(--muted); font-weight: 600; font-size: 17px; }

.grid.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); border: 1px solid var(--divider);
  transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 18px; font-weight: 900; margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(180deg, rgba(27, 118, 200, 0.1), rgba(27, 118, 200, 0.2)); }
.ic .ms { font-size: 28px; }
.ic.orange { color: var(--orange); background: linear-gradient(180deg, rgba(255, 138, 61, 0.1), rgba(255, 138, 61, 0.2)); }
.ic.green { color: #1fa56c; background: linear-gradient(180deg, rgba(53, 201, 139, 0.12), rgba(53, 201, 139, 0.24)); }

/* Roles */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 30px; border: 1px solid var(--divider); background: #fff;
  color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tabs button:hover { border-color: var(--primary-light); }
.tabs button[aria-selected='true'] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(27, 118, 200, 0.25); }
.role-panel { display: none; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: #fff; border-radius: 28px; padding: 38px 40px; box-shadow: var(--shadow-lift); }
.role-panel.on { display: grid; animation: pop 0.35s ease; }
.role-panel h3 { font-size: 26px; font-weight: 900; }
.role-panel p { color: var(--muted); font-weight: 600; margin: 4px 0 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checks li::before { content: 'check_circle'; font-family: 'Material Symbols Rounded'; font-variation-settings: 'FILL' 1; color: var(--green); font-size: 22px; }
.role-art { width: 170px; height: 170px; border-radius: 44px; background: var(--deep); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lift); }
.role-art .ms { font-size: 84px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 24px 26px; box-shadow: var(--shadow); border: 1px solid var(--divider); text-align: center; }
.num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--gradient); color: #fff;
  font-weight: 900; font-size: 22px; box-shadow: 0 8px 18px rgba(27, 118, 200, 0.3); }
.steps h3 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.steps p { color: var(--muted); font-weight: 600; font-size: 15px; }

/* Dashboard band */
#dashboard { padding-top: 0; }
.dash-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 52px 56px; border-radius: 32px;
  background: var(--deep); color: #fff; box-shadow: 0 24px 50px rgba(13, 58, 110, 0.28); }
.dash-band::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); top: -160px; inset-inline-start: -100px; }
.dash-band > * { position: relative; z-index: 1; }
.dash-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 12px 0 8px; }
.dash-band p { opacity: 0.92; font-weight: 600; max-width: 620px; }
.dash-icon { width: 150px; height: 150px; border-radius: 40px; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
.dash-icon .ms { font-size: 80px; }

/* Download */
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; padding: 14px 22px; border-radius: 20px; background: #10223a; color: #fff;
  box-shadow: 0 12px 26px rgba(16, 34, 58, 0.25); transition: transform 0.15s; }
.store:hover { transform: translateY(-3px); }
.store .ms { font-size: 36px; }
.store span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.store small { font-size: 12px; opacity: 0.8; font-weight: 600; }
.store b { font-size: 20px; font-weight: 800; direction: ltr; text-align: start; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; border: 1px solid var(--divider); box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: 'expand_more'; font-family: 'Material Symbols Rounded'; font-size: 26px; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--muted); font-weight: 600; padding-bottom: 18px; }

/* Footer */
.foot { background: #0b1f38; color: #c9d6e8; padding: 60px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .logo-tile { border: 0; }
.foot p { max-width: 340px; font-weight: 600; font-size: 14.5px; }
.foot h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot-grid a:not(.brand) { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-weight: 600; font-size: 14.5px; transition: color 0.2s; }
.foot-grid a:not(.brand):hover { color: #fff; }
.foot-grid .ms { font-size: 18px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; text-align: center; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid.features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .links { position: absolute; top: 72px; inset-inline: 12px; flex-direction: column; background: #fff; border-radius: 20px; padding: 10px;
    box-shadow: var(--shadow-lift); display: none; }
  .links.open { display: flex; }
  .links a { padding: 12px 14px; }
  .menu-btn { display: grid; }
  .nav-row { gap: 10px; }
  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .strip-row { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .strip-row div:nth-child(3) { border-inline-start: 0; }
  .role-panel { grid-template-columns: 1fr; padding: 28px 22px; }
  .role-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  .dash-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .dash-icon { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .grid.features { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .brand > span:last-child { font-size: 17px; }
  .screen-web { width: 100%; height: 280px; }
  .phone { width: 190px; height: 380px; }
  .store { width: 100%; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Inner pages: page hero (all pages but the home page) ── */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 96px; background: linear-gradient(180deg, #e4eef9 0%, #fff 100%); text-align: center; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; line-height: 1.3; }
.page-hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin: 0 auto; }
.updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
.updated .ms { font-size: 18px; color: var(--primary); }
.legal-switch { display: inline-flex; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); margin-top: 6px; }
.legal-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 13px; font-weight: 800; font-size: 14.5px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.legal-switch a:hover { color: var(--primary); }
.legal-switch a[aria-current='page'] { background: var(--gradient); color: #fff; box-shadow: 0 6px 14px rgba(27, 118, 200, 0.25); }
.legal-switch .ms { font-size: 19px; }

.legal-body { margin-top: -50px; position: relative; z-index: 2; padding-bottom: 96px; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.glance .card { padding: 20px; }
.glance .card:hover { transform: none; box-shadow: var(--shadow); }
.glance .ic { width: 46px; height: 46px; border-radius: 15px; }
.glance .ic .ms { font-size: 24px; }
.glance h3 { font-size: 16px; margin: 12px 0 4px; }
.glance p { font-size: 13.5px; }

.legal-grid { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.toc { position: sticky; top: 92px; background: #fff; border-radius: var(--radius); border: 1px solid var(--divider); box-shadow: var(--shadow); padding: 18px 14px; }
.toc h4 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; padding: 0 8px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--divider); }
.toc h4 .ms { color: var(--primary); font-size: 20px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); line-height: 1.5; transition: background 0.2s, color 0.2s; }
.toc a::before { content: counter(t); flex: none; width: 22px; height: 22px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--bg); font-size: 12px; font-weight: 800; }
.toc a:hover { background: var(--tint); color: var(--primary); }
.toc a.on { background: var(--tint); color: var(--primary); }
.toc a.on::before { background: var(--primary); color: #fff; }

.doc { display: flex; flex-direction: column; gap: 16px; counter-reset: d; }
.doc > section { counter-increment: d; background: #fff; border-radius: var(--radius); border: 1px solid var(--divider); box-shadow: var(--shadow); padding: 28px 30px; scroll-margin-top: 92px; }
.doc h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 900; margin-bottom: 12px; line-height: 1.45; }
.doc h2::before { content: counter(d); flex: none; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--gradient); color: #fff;
  font-size: 16px; box-shadow: 0 6px 14px rgba(27, 118, 200, 0.25); }
.doc h3 { font-size: 16.5px; font-weight: 900; margin: 18px 0 6px; }
.doc p { color: #4a4668; font-weight: 600; font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc li { position: relative; padding-inline-start: 26px; color: #4a4668; font-weight: 600; font-size: 15.5px; }
.doc li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-light); }
.doc li b, .doc p b { color: var(--text); }
.doc a:not(.btn) { color: var(--primary); font-weight: 800; }
.doc a:not(.btn):hover { text-decoration: underline; }
.data-table { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.data-table div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--bg); }
.data-table .ms { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 21px; }
.data-table b { display: block; font-size: 15px; }
.data-table span { display: block; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.6; }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--tint); color: var(--primary-dark); font-weight: 700; font-size: 14.5px; }
.note .ms { color: var(--primary); }
.note.warn { background: #fff3ea; color: #9a4a12; }
.note.warn .ms { color: var(--orange); }
.contact-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding: 20px 22px; border-radius: 20px; background: var(--deep); color: #fff; }
.contact-card b { display: block; font-size: 17px; }
.contact-card span { opacity: 0.9; font-weight: 600; font-size: 14px; }

@media (max-width: 1080px) {
  .glance { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .glance { grid-template-columns: 1fr; }
  .data-table { grid-template-columns: 1fr; }
  .doc > section { padding: 22px 18px; }
  .doc h2 { font-size: 19px; }
  .legal-switch { flex-direction: column; width: 100%; }
  .contact-card .btn { width: 100%; }
}

/* APK download */
.store.apk { background: var(--gradient); box-shadow: 0 12px 26px rgba(27, 118, 200, 0.3); }
.store.apk b { direction: rtl; }
.apk-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 640px; margin: 20px auto 0; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; }
.apk-note .ms { color: var(--primary); font-size: 20px; flex: none; }
.apk-note[hidden] { display: none; }

/* ── Header: current page and language switch ───────── */
.links a[aria-current='page'] { background: var(--tint); color: var(--primary); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--divider);
  background: #fff; color: var(--primary); font-weight: 800; font-size: 14.5px; box-shadow: var(--shadow); transition: background 0.2s, border-color 0.2s; }
.lang-btn:hover { background: var(--tint); border-color: var(--primary-light); }
.lang-btn .ms { font-size: 20px; }
.lang-short { display: none; }
[lang='en'] .lang-btn { font-family: 'Cairo', sans-serif; }

/* ── Inner page body and shared blocks ──────────────── */
.page-body { margin-top: -50px; position: relative; z-index: 2; padding-bottom: 96px; }
.page-body .faq details:first-child { margin-top: 0; }
.grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.link-card { display: flex; flex-direction: column; }
.link-card .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 800; font-size: 14.5px; }
.link-card .more .ms { font-size: 19px; transition: transform 0.2s; }
.link-card:hover .more .ms { transform: translateX(-4px); }
[dir='ltr'] .link-card:hover .more .ms { transform: translateX(4px); }
.center-cta { display: flex; justify-content: center; margin-top: 34px; }
.section.slim { padding: 0 0 96px; }
.contact-card.big { padding: 34px 40px; border-radius: 28px; box-shadow: 0 24px 50px rgba(13, 58, 110, 0.22); }
.contact-card.big b { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.contact-card.big span { font-size: 16px; }
.narrow-note { max-width: 720px; margin: 26px auto 0; }
.page-body .stores { padding-top: 10px; }

/* ── English (left-to-right) ────────────────────────── */
[dir='ltr'] body { line-height: 1.65; }
[dir='ltr'] .hero h1 { line-height: 1.15; letter-spacing: -0.01em; }
[dir='ltr'] .store b { direction: ltr; }

@media (max-width: 1080px) {
  .grid.explore { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { margin-inline-start: 0; }
  .lang-btn { margin-inline-start: auto; }
  .grid.three { grid-template-columns: 1fr; }
  .page-body { padding-bottom: 72px; }
  .section.slim { padding-bottom: 72px; }
  .contact-card.big { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .grid.explore { grid-template-columns: 1fr; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang-btn { padding: 0 12px; }
  .contact-card.big b { font-size: 20px; }
}
