/* سند سوفت — sanadsoft.app (‏D192 · تصميم مُعتمد ٣٠ سبتمبر ٢٠٢٦)
 * الألوان من نظام التصميم «Sanad Soft»: أبيض تماماً، والأزرق للهوية فقط. */
@font-face { font-family: Tajawal; src: url(/fonts/Tajawal-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/fonts/Tajawal-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/fonts/Tajawal-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Tajawal; src: url(/fonts/Tajawal-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --page: #ffffff; --surface: #ffffff; --soft: #f8fafc; --tint: #eff4fb;
  --ink: #0f172a; --body: #334155; --muted: #64748b; --border: #e2e8f0;
  --brand: #163a6d; --on-brand: #ffffff; --link: #3363a6;
  --neg: #dc2626; --neg-soft: #fdecec;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #061020; --surface: #0e1826; --soft: #0e1826; --tint: #12233d;
  --ink: #f1f5f9; --body: #cbd5e1; --muted: #94a3b8; --border: #23324a;
  --brand: #85a7d6; --on-brand: #061020; --link: #85a7d6;
  --neg: #f87171; --neg-soft: #351616;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Tajawal, "IBM Plex Sans Arabic", system-ui, sans-serif; line-height: 1.85; font-size: 17px; }
[lang="en"] { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--link); }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }

/* ── الترويسة ── */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-light { height: 46px; width: auto; }
.logo-dark { display: none; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.logo-tile { width: 44px; height: 44px; border-radius: 12px; background: #ffffff; display: flex; align-items: center; justify-content: center; }
.logo-tile img { width: 34px; height: 28px; object-fit: contain; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: flex; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link { padding: 10px 14px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--muted); }
.nav a.nav-link:hover { color: var(--ink); background: var(--soft); }
.nav a.nav-link[aria-current="page"] { color: var(--brand); background: var(--tint); font-weight: 700; }
.sep { width: 1px; height: 24px; background: var(--border); margin: 0 6px; }
.pill { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--page); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover, .pill:hover { background: var(--soft); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
.subnav { display: none; }

/* ── العنوان ── */
.hero { padding: 64px 0 32px; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); }
h1 { margin: 8px 0 12px; font-size: 44px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.lead { margin: 0; max-width: 760px; font-size: 19px; line-height: 1.8; color: var(--body); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.card { border: 1px solid var(--border); border-radius: 16px; padding: 22px; background: var(--surface); }
.promise { display: flex; flex-direction: column; gap: 8px; }
.promise strong { font-size: 18px; }
.promise span:last-child { font-size: 15px; line-height: 1.7; color: var(--muted); }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }

/* ── المحتوى والفهرس ── */
.layout { display: flex; gap: 56px; align-items: flex-start; padding: 24px 0 64px; }
.toc { position: sticky; top: 100px; width: 250px; flex-shrink: 0; display: flex; flex-direction: column; border-inline-start: 2px solid var(--border); padding-inline-start: 16px; }
.toc b { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.toc a { font-size: 15px; padding: 5px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--brand); }
.content { flex-grow: 1; min-width: 0; color: var(--body); display: flex; flex-direction: column; gap: 40px; }
.content section { display: flex; flex-direction: column; gap: 12px; }
.content h2 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.content p { margin: 0; }
.content strong { color: var(--ink); }

.table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.table th { background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 700; text-align: start; padding: 12px 18px; }
.table td { border-top: 1px solid var(--border); padding: 14px 18px; vertical-align: top; }
.table td:first-child { font-weight: 700; color: var(--ink); }
.scroll { overflow-x: auto; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile strong { font-size: 16px; }
.tile span { font-size: 15px; color: var(--muted); line-height: 1.6; }
.stat { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.4; }

.note { border-radius: 14px; padding: 16px 20px; background: var(--tint); display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 16px; }
.note svg { color: var(--brand); margin-top: 5px; }
.note.danger { background: var(--neg-soft); }
.note.danger svg { color: var(--neg); }
ul.plain { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ── حذف الحساب ── */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path { display: flex; flex-direction: column; gap: 16px; }
.path-head { display: flex; align-items: center; gap: 12px; }
.path-head strong { display: block; font-size: 18px; }
.path-head small { font-size: 14px; color: var(--muted); }
ol.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--body); }
ol.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-n { width: 28px; height: 28px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.meta-line { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--muted); }
.panel { border-radius: 16px; padding: 22px; background: var(--soft); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.btn { height: 52px; padding: 0 22px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; text-decoration: none; align-self: flex-start; }
.rows { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 15px; }
.rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.rows div + div { border-top: 1px solid var(--border); }
.badge { flex-shrink: 0; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); border: 1px solid var(--border); }
.badge.neg { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.badge.brand { background: var(--tint); color: var(--brand); border-color: transparent; }

/* ── الإنجليزية ── */
.en-block { border-top: 1px solid var(--border); padding: 56px 0 64px; }
.en-block .content { max-width: 820px; }

/* ── التذييل ── */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ── الجوال ── */
@media (max-width: 900px) {
  .toc { display: none; }
  .promises, .paths, .tiles.four { grid-template-columns: minmax(0, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .site-header .wrap { height: 64px; }
  .logo-light { height: 38px; }
  .nav .nav-link, .nav .sep { display: none; }
  .subnav { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--border); overflow-x: auto; }
  .subnav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 15px; white-space: nowrap; }
  .subnav a[aria-current="page"] { color: var(--brand); background: var(--tint); font-weight: 700; }
  .hero { padding: 32px 0 16px; }
  h1 { font-size: 30px; }
  .lead { font-size: 17px; }
  .content h2 { font-size: 22px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .btn { align-self: stretch; }
}

/* بلا أنماطٍ مضمَّنة: CSP تمنع style="" (‏style-src 'self') */
svg.i[data-size="sm"] { width: 18px; height: 18px; }
.panel-title { font-size: 18px; }
.page-end { padding-bottom: 64px; }
.hero-center { text-align: center; padding-bottom: 64px; }
.hero-center .lead { margin-inline: auto; }
.soon { margin-top: 16px; }
