/* حجر الأساس · نظام التصميم */
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/assets/fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0b1324;
  --navy: #0d1830;
  --navy-2: #16244a;
  --navy-3: #2b3d6b;
  --gold: #d29a3a;
  --gold-2: #e9b85f;
  --gold-3: #f6dfb2;
  --gold-soft: #fbf3e4;
  --bg: #f7f6f3;
  --paper: #ffffff;
  --muted: #5d6679;
  --muted-2: #8a92a3;
  --line: #e7e4dd;
  --line-2: #efede8;
  --ok: #157a4c;
  --ok-bg: #e7f6ee;
  --warn: #8a5a00;
  --warn-bg: #fff5e0;
  --bad: #b42318;
  --bad-bg: #fdeceb;
  --info: #2b4a8a;
  --info-bg: #edf2fc;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(11, 19, 36, .05), 0 2px 8px rgba(11, 19, 36, .04);
  --sh-2: 0 4px 12px rgba(11, 19, 36, .06), 0 16px 40px rgba(11, 19, 36, .08);
  --sh-3: 0 24px 60px rgba(11, 19, 36, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--gold-3); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ===== الرأس ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 246, 243, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img.icon { width: 38px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-size: 20px; font-weight: 800; color: var(--navy); }
.brand-text small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 2px; align-items: center; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .15s; }
.nav a:hover { background: rgba(13, 24, 48, .06); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; inset-inline: 12px; top: 76px; background: #fff; flex-direction: column; align-items: stretch; padding: 10px; border-radius: var(--r); box-shadow: var(--sh-3); border: 1px solid var(--line); }
  .nav.open { display: flex; animation: drop .2s var(--ease); }
  .nav a { padding: 12px 16px; border-radius: 12px; }
  .header-actions { margin-inline-start: auto; }
  .brand-text small { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; padding: 14px 26px; border-radius: 14px; min-height: 52px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 6px 18px rgba(210, 154, 58, .35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { color: var(--navy); box-shadow: 0 10px 26px rgba(210, 154, 58, .45), inset 0 1px 0 rgba(255,255,255,.35); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(13, 24, 48, .22); }
.btn-dark:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: #d6d1c6; color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-glass:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-link { background: none; border: 0; color: var(--navy-3); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; border-radius: 12px; }

/* ===== البطل ===== */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(233, 184, 95, .28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(43, 61, 107, .9), transparent 70%),
    linear-gradient(160deg, #0a1328 0%, #13214a 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 96px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; padding: 40px 0 64px; gap: 40px; } }
.hero .chip-top { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; color: #dfe5f2; margin-bottom: 20px; }
.hero .chip-top b { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 64px); line-height: 1.15; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--gold-2), #f7d391); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #c9d2e6; max-width: 560px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: #b9c3da; font-size: 15px; }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust svg { width: 18px; height: 18px; color: var(--gold-2); }

/* بطاقة العرض في البطل */
.mock { position: relative; }
.mock-card { background: rgba(255,255,255,.98); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 22px; position: relative; }
.mock-card .mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-card .mc-head b { font-size: 17px; }
.mock-card .mc-head small { color: var(--muted); font-size: 13px; }
.mc-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-offer { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: #fcfbf8; }
.mc-offer.best { border-color: var(--gold-2); background: var(--gold-soft); }
.mc-offer h5 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mc-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mc-line:last-of-type { border-bottom: 0; }
.mc-total { margin-top: 10px; font-weight: 800; font-size: 20px; color: var(--navy); }
.mc-total small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.mc-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: 13px; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--sh-3); padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; animation: floaty 6s ease-in-out infinite; }
.float-card .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .dot svg { width: 20px; height: 20px; }
.float-card b { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12px; }
.mock { padding: 44px 0; }
.float-1 { top: 0; inset-inline-end: -16px; }
.float-2 { bottom: 0; inset-inline-start: -16px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.float-card { z-index: 2; }
@media (max-width: 560px) { .mc-offers { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .mock { padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .float-card { position: static; animation: none; align-self: flex-start; }
  .float-2 { align-self: flex-end; }
}

/* ===== الأقسام ===== */
section.block { padding: 96px 0; }
@media (max-width: 700px) { section.block { padding: 64px 0; } }
section.block.white { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
h2.section-title { font-size: clamp(28px, 4.2vw, 44px); margin: 0 0 14px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
p.section-sub { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { box-shadow: var(--sh-2); }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 21px; }
.card p { color: var(--muted); margin: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 18px; }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile.navy { background: var(--navy); color: var(--gold-2); }

/* خطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--sh-1); }
.step .n { position: absolute; top: 22px; inset-inline-end: 24px; font-size: 56px; font-weight: 800; line-height: 1; color: var(--line-2); }
.step h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* المقارنة */
.split-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split-feature { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li svg { width: 24px; height: 24px; flex: none; color: var(--ok); margin-top: 2px; }
.checklist b { display: block; color: var(--navy); }
.checklist span { color: var(--muted); font-size: 16px; }
.compare-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .compare-demo { grid-template-columns: 1fr; } }
.compare-demo .col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #fff; box-shadow: var(--sh-1); }
.compare-demo .col h4 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.kv { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 9px 0; font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.kv.total { border-top: 2px solid var(--navy); border-bottom: 0; margin-top: 4px; padding-top: 12px; }
.kv.total b { font-size: 20px; color: var(--navy); }

/* التغطية */
.zones { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.zone { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.zone.active { border-color: #bfe3cf; }
.zone.active::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--ok); }
.zone h4 { margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 18px; color: var(--navy); }
.zone .cities { display: flex; flex-wrap: wrap; gap: 6px; }
.zone .cities span { font-size: 13px; background: var(--bg); border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { background: #eef0f3; color: var(--muted); }
.pill.gold { background: var(--gold); color: var(--navy); }

/* الأدوار */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.role h3 { margin: 0 0 14px; display: flex; gap: 10px; align-items: center; color: var(--navy); font-size: 19px; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.role li { display: flex; gap: 8px; }
.role li::before { content: "•"; color: var(--gold); font-weight: 800; }
.role .not { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted-2); }
.resp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.resp-table th, .resp-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.resp-table th { background: var(--navy); color: #fff; }

/* شريط المكاتب */
.band { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: 56px; position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(233,184,95,.25), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(43,61,107,.9), transparent 70%); }
.band::after { content: ""; position: absolute; inset-inline-start: -40px; bottom: -60px; width: 320px; height: 260px; z-index: -1; background: url("/assets/img/logo-icon.png") no-repeat center / contain; opacity: .06; }
@media (max-width: 700px) { .band { padding: 32px 22px; border-radius: var(--r-lg); } }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } }
.band h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 800; }
.band p { color: #c9d2e6; margin: 0 0 24px; font-size: 18px; }
.perks { display: grid; gap: 12px; }
.perk { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 16px 18px; }
.perk .icon-tile { margin: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(233,184,95,.15); color: var(--gold-2); }
.perk .icon-tile svg { width: 22px; height: 22px; }
.perk b { display: block; }
.perk span { color: #b9c3da; font-size: 15px; }

/* الأسئلة */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 20px; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* دعوة ختامية */
.cta-final { text-align: center; background: linear-gradient(180deg, var(--gold-soft), #fff); border: 1px solid var(--gold-3); border-radius: var(--r-xl); padding: 64px 24px; }
.cta-final h2 { font-size: clamp(28px, 4.2vw, 42px); margin: 0 0 12px; color: var(--navy); font-weight: 800; }
.cta-final p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; font-size: 18px; }
.cta-final .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* التنبيهات */
.notice { border-radius: var(--r); padding: 14px 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.notice .ico { font-size: 18px; line-height: 1.6; flex: none; }
.notice.warn { background: var(--warn-bg); border-color: #f2dba7; color: #5c3d00; }
.notice.info { background: var(--info-bg); border-color: #cfdbf3; color: #1d3567; }
.notice.ok { background: var(--ok-bg); border-color: #bfe3cf; color: #0f4a2f; }
.notice.bad { background: var(--bad-bg); border-color: #f4c7c3; color: #7a1a12; }

/* ===== صفحات النماذج ===== */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0 110px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 90% 0%, rgba(233,184,95,.22), transparent 60%), linear-gradient(160deg, #0a1328, #13214a); }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.page-hero p { margin: 0; color: #c9d2e6; max-width: 620px; font-size: 18px; }
.page-hero + main .form-shell, .page-hero + main > .form-shell:first-child { margin-top: -72px; }
.form-shell { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 22px; margin: 28px auto 56px; }
@media (min-width: 640px) { .form-shell { padding: 40px; } }

.stepper { display: flex; gap: 8px; margin-bottom: 28px; list-style: none; padding: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted-2); font-weight: 500; }
.stepper li::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s; }
.stepper li.on { color: var(--navy); font-weight: 700; }
.stepper li.on::before, .stepper li.done::before { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.stepper li.done { color: var(--muted); }
.progress { display: none; }
.step-label { color: var(--gold); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.form-shell h1, .form-shell h2.q { font-size: clamp(24px, 4vw, 32px); color: var(--navy); margin: 0 0 6px; font-weight: 800; }
.form-shell h1:focus, .form-shell h2:focus { outline: none; }
.help { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend, label.lbl, span.lbl { font-weight: 700; color: var(--navy); margin-bottom: 10px; display: block; font-size: 16px; padding: 0; }
.opt { color: var(--muted-2); font-weight: 400; font-size: 14px; }
input[type=text], input[type=tel], input[type=number], input[type=email], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); min-height: 54px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235d6679' stroke-width='2' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px; }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a8aebb; }
input:hover, select:hover, textarea:hover { border-color: #d6d1c6; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210, 154, 58, .18); outline: none; }
input[type=tel], input.ltr-in { direction: ltr; text-align: right; }
.field { margin-bottom: 22px; }
.field-error { color: var(--bad); font-size: 14px; margin-top: 6px; display: none; font-weight: 500; }
.field.invalid .field-error, fieldset.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
fieldset.invalid .choice span { border-color: #efb2ac; }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choices.big { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover span { border-color: #d6d1c6; }
.choice span small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.choice input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(210,154,58,.15); font-weight: 700; color: var(--navy); }
.choice input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.choice input[type=checkbox] + span::before, .choice input[type=radio] + span::before {
  content: ""; width: 20px; height: 20px; flex: none; border: 2px solid #c9c3b6; border-radius: 6px; background: #fff; transition: all .15s;
}
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px #fff; }
/* بطاقات الخدمة الكبيرة */
.choice.tile span { flex-direction: column; align-items: flex-start; min-height: 120px; padding: 18px; gap: 10px; }
.choice.tile span::before { position: absolute; top: 16px; inset-inline-end: 16px; }
.choice.tile .tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--gold); }
.choice.tile .tile-ic svg { width: 24px; height: 24px; }
.choice.tile b { font-size: 18px; color: var(--navy); }
.choice.tile input:checked + span .tile-ic { background: #fff; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 16px; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.subgroup { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 24px; background: #fcfbf9; animation: fadeUp .3s var(--ease); }
.subgroup h3 { margin: 0 0 16px; color: var(--navy); font-size: 19px; display: flex; gap: 10px; align-items: center; }
.subgroup h3 svg { width: 22px; height: 22px; color: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
[data-step]:not([hidden]) { animation: fadeUp .35s var(--ease); }

.form-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.form-nav .btn-primary { flex: 1; max-width: 340px; margin-inline-start: auto; }
@media (max-width: 640px) {
  .form-nav { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); margin-inline: -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
  .form-nav .btn-primary { max-width: none; }
}
.form-error { margin-top: 14px; }

.files-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.files-list li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.files-list .fname { font-weight: 500; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: center; }
.files-list .bar { grid-column: 1 / -1; height: 6px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.files-list .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }
.files-list li.failed { border-color: #f4c7c3; background: var(--bad-bg); }
.files-list li.done .bar i { background: var(--ok); }
.dropzone { border: 2px dashed #d9d4c8; border-radius: var(--r); padding: 26px 18px; text-align: center; background: #fcfbf9; transition: border-color .2s, background .2s; }
.dropzone:hover { border-color: var(--gold); background: var(--gold-soft); }
.dropzone svg { width: 36px; height: 36px; color: var(--gold); display: block; margin: 0 auto 8px; }
.dropzone input { display: none; }

.review { display: grid; gap: 0; background: #fcfbf9; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; margin: 0 0 20px; font-size: 15px; }
.review div { display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); flex: none; }
.review dd { font-weight: 500; }
.done-head { text-align: center; padding: 10px 0 8px; }
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .5s var(--ease); }
.done-badge svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.ref-big { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: 1px; margin: 4px 0 12px; background: var(--gold-soft); display: inline-block; padding: 4px 22px; border-radius: 14px; border: 1px dashed var(--gold-2); }

/* ===== المقارنة ===== */
.offer-head { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 18px; }
.offer-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 20px; box-shadow: var(--sh-1); }
.offer-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 21px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.offer-card p { display: flex; gap: 6px; flex-wrap: wrap; }
.item-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 12px; overflow: hidden; box-shadow: var(--sh-1); }
.item-card > h4 { margin: 0; padding: 12px 18px; background: #faf8f4; color: var(--navy); font-size: 16px; border-bottom: 1px solid var(--line-2); }
.item-row { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); }
.item-row > div { padding: 14px 18px; border-inline-start: 1px solid var(--line-2); }
.item-row > div:first-child { border-inline-start: 0; }
.item-row .who { font-size: 13px; color: var(--muted-2); font-weight: 700; display: block; margin-bottom: 6px; }
.item-row .price { font-weight: 800; font-size: 18px; color: var(--navy); }
@media (max-width: 640px) {
  .item-row { grid-template-columns: 1fr; }
  .item-row > div { border-inline-start: 0; border-top: 1px solid var(--line-2); }
  .item-row > div:first-child { border-top: 0; }
}
.diff { background: #fffaf0 !important; }
.totals { border: 0; border-radius: var(--r-lg); overflow: hidden; margin: 20px 0; background: #fff; box-shadow: var(--sh-2); }
.totals h4 { background: var(--navy); color: #fff; margin: 0; padding: 14px 18px; font-size: 17px; }

/* ===== التذييل ===== */
.site-footer { background: #0a1226; color: #aab4cb; padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #dfe5f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-top { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand img.word { height: 28px; width: auto; }
.footer-brand p { max-width: 360px; margin: 0 0 18px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-links { display: flex; gap: 18px; }
.placeholder { color: var(--muted-2); font-style: normal; }

/* ===== صفحات المحتوى ===== */
.prose { padding: 8px 0 72px; }
.prose h1 { color: var(--navy); font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.prose h2 { color: var(--navy); font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: #2f3747; }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px clamp(20px, 4vw, 48px) 40px; margin-top: -72px; position: relative; box-shadow: var(--sh-2); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(13,24,48,.2); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
[hidden] { display: none !important; }
/* الخدمات مجمّعة حسب الفئة */
.svc-group { margin: 14px 0 8px; font-weight: 700; color: var(--navy); font-size: 15px; }
.svc-block:first-child .svc-group, .svc-group:first-child { margin-top: 4px; }
.svc-block[hidden] { display: none; }
.choices.svc-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.choice.svc span { flex-direction: column; align-items: flex-start; gap: 2px; padding-inline-end: 36px; }
.choice.svc b { font-size: 15px; color: var(--navy); }
.choice.svc small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.choice.svc span { position: relative; }
.choice.svc span::before { position: absolute; top: 14px; inset-inline-end: 12px; }
@media (max-width: 560px) { .choices.svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .choice.svc span { padding: 12px 12px; padding-inline-end: 32px; } .choice.svc span::before { width: 18px; height: 18px; top: 12px; inset-inline-end: 10px; } }
/* ===== مثال العرض والجداول ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 700; font-size: 14px; background: #fcfbf9; }
@media (max-width: 640px) {
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  .tbl.stack-sm td { display: flex; gap: 10px; border: 0; padding: 6px 0; }
  .tbl.stack-sm td::before { content: attr(data-l); color: var(--muted); flex: 0 0 88px; font-size: 13.5px; }
}
.legend { display: grid; gap: 10px; }
.legend > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
/* خط زمني ومراحل */
.timeline { list-style: none; counter-reset: t; margin: 8px 0 20px; padding: 0; display: grid; gap: 12px; }
.timeline li { counter-increment: t; position: relative; padding-inline-start: 44px; line-height: 1.8; }
.timeline li::before { content: counter(t); position: absolute; inset-inline-start: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.office-benefits { display: grid; gap: 10px; padding-inline-start: 20px; font-size: 16px; line-height: 1.8; }
.stages { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.stages li { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 15px; }
.stages li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.stages li.done { color: var(--ok); }
.stages li.done::before { background: currentColor; }
.stages li.on { color: var(--navy); font-weight: 800; }
.stages li.on::before { background: var(--gold); border-color: var(--gold); }
.review.stack div { flex-direction: column; gap: 2px; }
.review.stack dd { text-align: start; }
