/* ============================================================
   سناب — الصفحة الرئيسية
   نظام التصميم مشتق من نموذج الهيرو المعتمد
   ============================================================ */

:root{
  --navy:#0F2557;
  --navy-2:#14459C;
  --blue:#1F6FEB;
  --blue-soft:#E8F1FF;
  --amber:#F5A524;
  --amber-soft:#FFF3DE;
  --ink:#16213F;
  --muted:#5F6B85;
  --line:#E3EAF6;
  --card:#FFFFFF;
  --page:#FFFFFF;
  --wash:linear-gradient(200deg,#EAF4FF 0%,#F7FBFF 46%,#FFFFFF 100%);
  --shadow-sm:0 1px 2px rgba(15,37,87,.05), 0 6px 16px rgba(15,37,87,.06);
  --shadow-md:0 2px 6px rgba(15,37,87,.06), 0 16px 40px rgba(15,37,87,.09);
  --shadow-lg:0 10px 20px rgba(31,111,235,.10), 0 34px 70px rgba(15,37,87,.16);
  --r-sm:12px; --r-md:18px; --r-lg:24px; --r-xl:32px;
}

[data-theme="dark"]{
  --navy:#DCE6FA;
  --navy-2:#5A9BFF;
  --blue:#4C8DFF;
  --blue-soft:#16233D;
  --amber:#FFB443;
  --amber-soft:#33270F;
  --ink:#E9EDF7;
  --muted:#98A5C0;
  --line:#223052;
  --card:#121A2E;
  --page:#0A0F1F;
  --wash:linear-gradient(200deg,#101C36 0%,#0C1428 46%,#0A0F1F 100%);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.3);
  --shadow-md:0 2px 6px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.4);
  --shadow-lg:0 10px 20px rgba(0,0,0,.45), 0 34px 70px rgba(0,0,0,.55);
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Tajawal',system-ui,-apple-system,sans-serif;
  background:var(--page);
  color:var(--ink);
  font-size:16px;
  line-height:1.7;
  font-feature-settings:"tnum";
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; }
img{ max-width:100%; }

.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }

/* ---------- عناصر مشتركة ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  background:var(--blue-soft); color:var(--blue);
  border-radius:999px; padding:8px 18px;
  font-size:14px; font-weight:700; margin:0 0 20px;
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%;
  background:var(--amber); flex:none;
}

.h2{
  margin:0 0 14px;
  font-size:clamp(28px,3.6vw,44px); font-weight:800;
  line-height:1.3; letter-spacing:-.6px; color:var(--navy);
}
[data-theme="dark"] .h2{ color:var(--ink); }
.lede{ margin:0; max-width:620px; font-size:17px; line-height:1.9; color:var(--muted); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:inherit; font-size:16px; font-weight:700;
  padding:16px 30px; border-radius:14px; border:1.5px solid transparent;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; }
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 6px 18px rgba(31,111,235,.32); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(31,111,235,.42); }
.btn-ghost{ background:var(--card); color:var(--navy); border-color:var(--line); box-shadow:var(--shadow-sm); }
[data-theme="dark"] .btn-ghost{ color:var(--ink); }
.btn-ghost:hover{ transform:translateY(-2px); border-color:var(--blue); }

section{ padding:96px 0; }

/* ============================================================
   الترويسة
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:60;
  background:color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s, box-shadow .25s;
}
.site-header.stuck{ border-bottom-color:var(--line); box-shadow:var(--shadow-sm); }
.header-in{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; height:82px;
}

.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; }
.brand-mark{ flex:none; }
.brand-text .ar{ font-size:26px; font-weight:900; color:var(--navy); line-height:1.1; display:block; }
[data-theme="dark"] .brand-text .ar{ color:var(--ink); }
.brand-text .sub{ font-size:10.5px; color:var(--amber); font-weight:700; letter-spacing:.2px; white-space:nowrap; }
.brand-divider{ width:1px; height:38px; background:var(--line); }
.brand-en{ line-height:1.4; }
.brand-en b{ display:block; font-size:13.5px; font-weight:800; color:var(--navy); direction:ltr; white-space:nowrap; }
[lang="en"] .accred-head .t span,
[lang="en"] .cert-meta b,
[lang="en"] .tier-price b,
[lang="en"] .hero-stat b,
[lang="en"] .readout .num,
[lang="en"] .tick{ direction:ltr; }
[data-theme="dark"] .brand-en b{ color:var(--ink); }
.brand-en span{ font-size:11.5px; color:var(--muted); }

.header-tools{ display:flex; align-items:center; gap:12px; }
.icon-btn{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
  background:var(--card); color:var(--muted); cursor:pointer;
  display:grid; place-items:center; transition:.2s;
}
.icon-btn:hover{ color:var(--blue); border-color:var(--blue); }
.icon-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
/* الدعوة الأساسية: تظهر فقط بعد أن يمرّ الزائر بزر الهيرو */
.btn-header-cta{
  padding:11px 22px; font-size:15px; font-weight:700; border-radius:12px;
  background:var(--blue); color:#fff; text-decoration:none; white-space:nowrap;
  box-shadow:0 4px 14px rgba(31,111,235,.3);
  opacity:0; transform:translateY(-6px) scale(.96); pointer-events:none;
  transition:opacity .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), background .2s;
}
.btn-header-cta.show{ opacity:1; transform:none; pointer-events:auto; }
.btn-header-cta:hover{ background:var(--navy-2); }
.btn-header-cta:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
.lang-btn{
  height:42px; min-width:52px; padding:0 14px; border-radius:999px;
  border:1px solid var(--line); background:var(--card); color:var(--muted);
  font-family:inherit; font-size:14px; font-weight:800; letter-spacing:.4px;
  cursor:pointer; transition:.2s;
}
.lang-btn:hover{ color:var(--blue); border-color:var(--blue); }
.lang-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* ============================================================
   الهيرو
   ============================================================ */
.hero{
  background:var(--wash);
  padding:74px 0 96px;
  position:relative; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset-inline-start:-160px; top:-160px;
  width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle,rgba(31,111,235,.10),transparent 68%);
  pointer-events:none;
}
.hero-grid{
  display:grid; grid-template-columns:1.02fr .98fr; gap:64px; align-items:center;
  position:relative;
}

.hero-badge{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--card); border:1px solid var(--line);
  border-radius:999px; padding:10px 20px; margin-bottom:28px;
  font-size:14.5px; font-weight:500; color:var(--ink);
  box-shadow:var(--shadow-sm);
}
.hero-badge i{ width:8px; height:8px; border-radius:50%; background:var(--amber); flex:none; }

.hero h1{
  margin:0 0 26px;
  font-size:clamp(40px,5.6vw,72px); font-weight:900;
  line-height:1.16; letter-spacing:-1.6px; color:var(--navy);
}
[data-theme="dark"] .hero h1{ color:var(--ink); }
.hero h1 em{ font-style:normal; color:var(--amber); display:block; }

.hero p.hero-lede{
  margin:0 0 36px; max-width:560px;
  font-size:18px; line-height:1.95; color:var(--muted);
}

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.hero-note{ font-size:14px; color:var(--muted); margin:0; }
.hero-note b{ color:var(--ink); font-weight:700; }

.hero-stats{
  margin-top:44px; display:grid; grid-template-columns:1fr 1fr;
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-md); overflow:hidden;
}
.hero-stat{ padding:26px 30px; }
.hero-stat + .hero-stat{ border-inline-start:1px solid var(--line); }
.hero-stat b{ display:block; font-size:40px; font-weight:900; color:var(--navy); line-height:1.1; letter-spacing:-1px; }
[data-theme="dark"] .hero-stat b{ color:var(--ink); }
.hero-stat span{ font-size:14px; color:var(--muted); }

/* بطاقة الاعتماد */
.accred-card{
  position:relative; background:var(--card);
  border:1px solid var(--line); border-radius:var(--r-xl);
  padding:52px 40px 34px; text-align:center; box-shadow:var(--shadow-lg);
}
.accred-tab{
  position:absolute; top:-19px; inset-inline-end:64px;
  background:var(--blue); color:#fff; font-size:14px; font-weight:700;
  padding:9px 26px; border-radius:999px;
  box-shadow:0 6px 18px rgba(31,111,235,.38);
}
.accred-head{
  display:flex; align-items:center; justify-content:center;
  padding-bottom:26px; border-bottom:1px solid var(--line); margin-bottom:34px;
}
.nelc-lockup-sm{ flex:none; width:132px; }
.nelc-lockup{
  width:230px; height:auto; display:block;
  color:#414042;               /* لون نص الشعار في الوضع الفاتح */
}
[data-theme="dark"] .nelc-lockup{ color:#EEF2FB; }
.accred-head .t{ text-align:start; }
.accred-head .t b{ display:block; font-size:16.5px; font-weight:800; color:var(--navy); }
[data-theme="dark"] .accred-head .t b{ color:var(--ink); }
.accred-head .t span{ font-size:12.5px; color:var(--muted); direction:ltr; display:block; }

.seal{
  width:210px; height:210px; margin:0 auto 26px;
  border-radius:50%; border:2px dashed var(--amber);
  display:grid; place-items:center; padding:13px;
}
.seal-in{
  width:100%; height:100%; border-radius:50%;
  border:2.5px solid var(--blue); background:var(--blue-soft);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
}
.seal-in b{ font-size:17px; font-weight:800; color:var(--navy); }
[data-theme="dark"] .seal-in b{ color:var(--ink); }
.seal-in span{ font-size:12.5px; color:var(--muted); }
.seal-in code{ font-family:inherit; font-size:16px; font-weight:800; color:var(--blue); direction:ltr; margin-top:5px; }

.accred-date{ font-size:12.5px; color:var(--muted); margin:0; }
.accred-date b{ display:block; font-size:16px; color:var(--ink); font-weight:800; direction:ltr; margin-top:2px; }
.accred-link{
  display:inline-block; margin-top:18px; color:var(--blue);
  font-size:14.5px; font-weight:700; text-decoration:none;
  font-family:inherit; background:none; border:0; cursor:pointer; padding:4px 6px;
  border-radius:8px;
}
.accred-link:hover{ text-decoration:underline; }
.accred-link:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* ---------- نافذة الشهادة ---------- */
.cert-overlay{
  position:fixed; inset:0; z-index:200;
  background:rgba(9,18,40,.72); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:28px;
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s;
}
.cert-overlay.open{ opacity:1; visibility:visible; }

.cert-modal{
  background:var(--card); border-radius:var(--r-lg);
  width:min(880px,100%); max-height:calc(100vh - 56px);
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
  transform:translateY(18px) scale(.985); transition:transform .28s cubic-bezier(.2,.7,.3,1);
}
.cert-overlay.open .cert-modal{ transform:none; }

.cert-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px; border-bottom:1px solid var(--line); flex:none;
}
.cert-head h3{ margin:0; font-size:18px; font-weight:800; }
.cert-head p{ margin:2px 0 0; font-size:13px; color:var(--muted); }
.cert-close{
  flex:none; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line); background:transparent; color:var(--muted);
  cursor:pointer; display:grid; place-items:center; font-size:22px; line-height:1;
  font-family:inherit; transition:.2s;
}
.cert-close:hover{ background:var(--blue-soft); color:var(--blue); border-color:var(--blue); }
.cert-close:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

.cert-body{ padding:24px; overflow:auto; background:var(--blue-soft); }
.cert-body img{
  display:block; width:100%; height:auto; aspect-ratio:1000/773; border-radius:10px;
  box-shadow:0 6px 24px rgba(15,37,87,.16); background:#fff;
}

.cert-foot{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  flex-wrap:wrap; padding:18px 24px; border-top:1px solid var(--line); flex:none;
}
.cert-meta{ display:flex; gap:26px; flex-wrap:wrap; }
.cert-meta div{ font-size:12.5px; color:var(--muted); }
.cert-meta b{ display:block; font-size:15px; font-weight:800; color:var(--ink); direction:ltr; }
.cert-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cert-actions a{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  font-size:14.5px; font-weight:700; padding:11px 20px; border-radius:12px;
  border:1.5px solid var(--blue); color:var(--blue); transition:.2s;
}
.cert-actions a.solid{ background:var(--blue); color:#fff; }
.cert-actions a:hover{ background:var(--blue-soft); }
.cert-actions a.solid:hover{ background:var(--navy-2); }
.cert-actions a:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

@media (max-width:660px){
  .cert-overlay{ padding:12px; }
  .cert-body{ padding:14px; }
  .cert-foot{ padding:16px; }
  .cert-actions a{ flex:1; justify-content:center; }
}

/* ============================================================
   كيف تعمل — تسلسل حقيقي، لذلك رُقّم
   ============================================================ */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-top:52px; }
.step{ position:relative; padding-top:14px; }
.step-num{
  font-size:52px; font-weight:900; line-height:1;
  color:var(--blue); letter-spacing:-2px; margin-bottom:-14px;
  direction:ltr; display:block;
}
.step-num::after{
  content:""; display:inline-block; width:9px; height:9px;
  border-radius:50%; background:var(--amber);
  margin-inline-start:8px; vertical-align:12px;
}
[data-theme="dark"] .step-num{ color:var(--blue); }
.step h3{ margin:0 0 10px; font-size:20px; font-weight:800; position:relative; }
.step p{ margin:0; font-size:15px; color:var(--muted); line-height:1.85; }
.step::after{
  content:""; position:absolute; top:34px; inset-inline-start:-13px;
  width:26px; height:1.5px;
  background:repeating-linear-gradient(to left,var(--line) 0 6px,transparent 6px 11px);
}
.step:first-child::after{ display:none; }

/* ============================================================
   المزايا
   ============================================================ */
.features{ background:var(--wash); }
.feat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:52px; }
.feat{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:32px 28px; box-shadow:var(--shadow-sm);
  transition:transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s;
}
.feat:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.feat-icon{
  width:52px; height:52px; border-radius:15px; background:var(--blue-soft);
  display:grid; place-items:center; margin-bottom:20px; color:var(--blue);
}
.feat h3{ margin:0 0 9px; font-size:18.5px; font-weight:800; }
.feat p{ margin:0; font-size:14.5px; color:var(--muted); line-height:1.85; }

/* ============================================================
   المطابقة / الاعتماد
   ============================================================ */
.compliance-box{
  display:grid; grid-template-columns:1fr .85fr; gap:56px; align-items:center;
  background:linear-gradient(150deg,var(--navy) 0%,var(--navy-2) 100%);
  border-radius:var(--r-xl); padding:56px 52px; color:#fff;
  box-shadow:var(--shadow-lg);
}
[data-theme="dark"] .compliance-box{ background:linear-gradient(150deg,#0E1F45 0%,#16305F 100%); }
.compliance-box h2{
  margin:0 0 16px; font-size:clamp(26px,3vw,38px); font-weight:800;
  line-height:1.35; letter-spacing:-.5px;
}
.compliance-box h2 em{ font-style:normal; color:var(--amber); }
.compliance-box p{ margin:0 0 28px; font-size:16.5px; line-height:1.95; opacity:.86; }
.compliance-box .btn-ghost{ background:rgba(255,255,255,.1); color:#fff; border-color:rgba(255,255,255,.28); box-shadow:none; }
.compliance-box .btn-ghost:hover{ background:rgba(255,255,255,.18); border-color:#fff; }

.axes{ display:grid; gap:12px; }
.axis{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  border-radius:14px; padding:15px 20px; font-size:15px; font-weight:500;
}
.axis b{ color:var(--amber); font-size:19px; font-weight:900; direction:ltr; }

/* ============================================================
   لمن سناب
   ============================================================ */
.who-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:52px; }
.who{
  border:1px solid var(--line); border-radius:var(--r-md);
  padding:28px 24px; background:var(--card); box-shadow:var(--shadow-sm);
}
.who span{ font-size:13px; font-weight:700; color:var(--amber); }
.who h3{ margin:6px 0 10px; font-size:17.5px; font-weight:800; }
.who p{ margin:0; font-size:14px; color:var(--muted); line-height:1.8; }

/* ============================================================
   الباقات
   ============================================================ */
.pricing{ background:var(--wash); }

.calc{
  margin:44px 0 56px; background:var(--card);
  border:1px solid var(--line); border-radius:var(--r-lg);
  padding:34px; box-shadow:var(--shadow-md);
  display:grid; grid-template-columns:1.35fr .8fr; gap:44px; align-items:center;
}
.calc-label{ font-size:15.5px; font-weight:700; margin:0 0 4px; }
.calc-hint{ font-size:13.5px; color:var(--muted); margin:0 0 26px; }

.range{
  -webkit-appearance:none; appearance:none; width:100%; height:6px;
  border-radius:999px; background:var(--line); outline:none; cursor:pointer;
}
.range::-webkit-slider-thumb{
  -webkit-appearance:none; width:26px; height:26px; border-radius:50%;
  background:var(--blue); border:4px solid var(--card);
  box-shadow:0 3px 10px rgba(31,111,235,.45);
}
.range::-moz-range-thumb{
  width:26px; height:26px; border-radius:50%; border:4px solid var(--card);
  background:var(--blue); box-shadow:0 3px 10px rgba(31,111,235,.45);
}
.range:focus-visible{ box-shadow:0 0 0 4px var(--blue-soft); }

.ticks{ position:relative; height:34px; margin-top:12px; font-size:12px; color:var(--muted); }
.tick{ position:absolute; transform:translateX(50%); text-align:center; direction:ltr; }
.tick::before{ content:""; display:block; width:1px; height:8px; background:var(--line); margin:0 auto 5px; }

.switch{
  display:inline-flex; align-items:center; gap:10px; margin-top:22px;
  font-size:14.5px; font-weight:500; cursor:pointer; user-select:none;
}
.switch input{ width:18px; height:18px; accent-color:var(--blue); cursor:pointer; }
.switch small{ color:var(--muted); font-weight:400; }

.readout{
  background:linear-gradient(160deg,#0F2557,#14459C);
  border-radius:var(--r-md); padding:30px 26px; color:#fff; text-align:center;
}
.readout .cap{ font-size:13px; opacity:.72; margin:0 0 6px; }
.readout .tier{ font-size:24px; font-weight:800; margin:0 0 18px; color:#F5A524; }
.readout .num{ font-size:42px; font-weight:900; line-height:1; margin:0; direction:ltr; }
.readout .num sub{ font-size:15px; font-weight:500; opacity:.8; vertical-align:baseline; }
.readout .brk{
  margin:16px 0 0; font-size:13px; line-height:1.85; opacity:.78;
  border-top:1px solid rgba(255,255,255,.16); padding-top:14px;
}

.tiers{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.tier-card{
  position:relative; background:var(--card); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:32px 26px 28px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s;
}
.tier-card.match{ border-color:var(--blue); box-shadow:var(--shadow-lg); transform:translateY(-8px); }
.tier-card.match::after{
  content:"الأنسب لحجمك"; position:absolute; top:-13px; inset-inline-start:26px;
  background:var(--blue); color:#fff; font-size:12.5px; font-weight:700;
  padding:5px 15px; border-radius:999px; box-shadow:0 4px 12px rgba(31,111,235,.4);
}
[lang="en"] .tier-card.match::after{ content:"Best fit for you"; }
.tier-name{ font-size:20px; font-weight:800; margin:0 0 6px; }
.tier-for{ font-size:13.5px; color:var(--muted); margin:0 0 22px; min-height:46px; line-height:1.7; }
.tier-price{ display:flex; align-items:baseline; gap:7px; margin:0 0 4px; }
.tier-price b{ font-size:32px; font-weight:900; letter-spacing:-1px; direction:ltr; }
.tier-price span{ font-size:14px; color:var(--muted); font-weight:500; }
.tier-per{ font-size:13px; color:var(--muted); margin:0 0 22px; }
.tier-cap{ background:var(--blue-soft); border-radius:14px; padding:14px 16px; margin:0 0 22px; }
.tier-cap b{ display:block; font-size:19px; font-weight:800; color:var(--blue); }
.tier-cap span{ font-size:12.5px; color:var(--muted); }
.tier-list{ list-style:none; margin:0 0 26px; padding:0; flex:1; }
.tier-list li{ position:relative; padding-inline-start:26px; margin-bottom:12px; font-size:14px; line-height:1.75; }
.tier-list li::before{
  content:""; position:absolute; inset-inline-start:2px; top:7px;
  width:13px; height:7px; border:2.2px solid var(--blue);
  border-top:0; border-right:0; border-radius:1px;
  transform:rotate(-45deg);
}
.tier-list li.plus::before{ border-color:var(--amber); }
.tier-btn{
  display:block; text-align:center; text-decoration:none; border-radius:14px;
  padding:14px; font-size:15px; font-weight:700; font-family:inherit;
  border:1.5px solid var(--blue); color:var(--blue); background:transparent;
  cursor:pointer; transition:.2s;
}
.tier-btn:hover{ background:var(--blue-soft); }
.tier-btn.solid{ background:var(--blue); color:#fff; }
.tier-btn.solid:hover{ background:var(--navy-2); }
.tier-btn:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

.accred-strip{
  margin:34px 0 0; background:var(--amber-soft);
  border:1px solid rgba(245,165,36,.35); border-radius:var(--r-md);
  padding:22px 26px; display:flex; gap:16px; align-items:center; flex-wrap:wrap;
}

.accred-strip p{ margin:0; font-size:14.5px; line-height:1.85; flex:1; min-width:260px; }

.addons{ margin-top:64px; }
.h3{ font-size:26px; font-weight:800; margin:0 0 8px; color:var(--navy); }
[data-theme="dark"] .h3{ color:var(--ink); }
.addon-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px; }
.addon{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-md); padding:22px 20px; }
.addon h4{ margin:0 0 6px; font-size:16px; font-weight:700; }
.addon p{ margin:0 0 12px; font-size:13.5px; color:var(--muted); line-height:1.75; }
.addon .price{ font-size:15px; font-weight:800; color:var(--blue); }

.fineprint{
  margin-top:38px; font-size:13px; color:var(--muted); line-height:1.9;
  border-top:1px solid var(--line); padding-top:20px;
}

/* ============================================================
   الأسئلة الشائعة
   ============================================================ */
.faq-list{ max-width:860px; margin:48px auto 0; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; background:none; border:0; font-family:inherit;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px; cursor:pointer; text-align:start;
  font-size:17px; font-weight:700; color:var(--ink);
}
.faq-q:hover{ color:var(--blue); }
.faq-q:focus-visible{ outline:3px solid var(--amber); outline-offset:-3px; border-radius:8px; }
.faq-q i{
  flex:none; width:30px; height:30px; border-radius:50%;
  border:1.5px solid var(--line); display:grid; place-items:center;
  font-style:normal; font-size:19px; color:var(--blue); transition:.25s;
}
.faq-item.open .faq-q i{ background:var(--blue); color:#fff; border-color:var(--blue); transform:rotate(45deg); }
.faq-a{ overflow:hidden; max-height:0; transition:max-height .32s ease; }
.faq-a > div{ padding:0 4px 26px; font-size:15.5px; color:var(--muted); line-height:1.95; }


/* ============================================================
   نموذج التجربة / العرض التوضيحي
   ============================================================ */
.form-shell{
  margin:36px auto 0; max-width:720px; text-align:start;
  background:var(--card); color:var(--ink);
  border-radius:var(--r-lg); padding:28px;
  box-shadow:0 20px 50px rgba(6,16,38,.28);
}

.form-shell{ transition:box-shadow .4s ease; }
.form-shell.flash{ box-shadow:0 0 0 4px var(--amber), 0 20px 50px rgba(6,16,38,.28); }

.form-tabs{
  display:flex; gap:6px; padding:5px; margin-bottom:24px;
  background:var(--blue-soft); border-radius:14px;
}
.form-tab{
  flex:1; padding:12px 10px; border:0; border-radius:10px;
  font-family:inherit; font-size:14.5px; font-weight:700;
  color:var(--muted); background:transparent; cursor:pointer; transition:.2s;
}
.form-tab.active{ background:var(--card); color:var(--blue); box-shadow:var(--shadow-sm); }
.form-tab:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; }
.field-wide{ grid-column:1 / -1; }
.field label{
  font-size:14px; font-weight:700; margin-bottom:8px; color:var(--ink);
}
.field label i{ font-style:normal; font-weight:400; color:var(--muted); font-size:12.5px; }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:15px; color:var(--ink);
  padding:13px 15px; border-radius:12px;
  border:1.5px solid var(--line); background:var(--page);
  transition:border-color .2s, box-shadow .2s;
}
.field textarea{ resize:vertical; min-height:84px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 4px var(--blue-soft);
}
.field .err{
  display:none; margin-top:7px; font-size:12.5px; font-weight:600; color:#D94A4A;
}
.field.invalid input, .field.invalid select{ border-color:#D94A4A; }
.field.invalid .err{ display:block; }
.field .hint{ margin-top:7px; font-size:12.5px; color:var(--blue); font-weight:600; }

.form-foot{ margin-top:26px; text-align:center; }
.form-foot .btn{ width:100%; justify-content:center; }
.form-note{ margin:14px 0 0; font-size:12.5px; color:var(--muted); line-height:1.8; }

/* شاشة النجاح */
#successPane{ text-align:center; padding:18px 8px 8px; }
.ok-mark{
  width:64px; height:64px; margin:0 auto 20px; border-radius:50%;
  background:var(--amber); color:#fff; display:grid; place-items:center;
  font-size:32px; font-weight:900;
}
#successPane h3{ margin:0 0 10px; font-size:24px; font-weight:800; color:var(--ink); }
#successPane p{ margin:0 auto 26px; max-width:440px; font-size:15px; color:var(--muted); line-height:1.9; }
.ok-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }


@media (max-width:660px){
  .form-shell{ padding:20px 16px; }
  .form-grid{ grid-template-columns:1fr; gap:16px; }
  .form-tab{ font-size:13.5px; padding:11px 6px; }
  .ok-actions .btn{ width:100%; }
}

/* ============================================================
   الخاتمة والتذييل
   ============================================================ */
.cta{
  background:linear-gradient(150deg,var(--blue) 0%,#0F2557 100%);
  border-radius:var(--r-xl); padding:64px 48px; text-align:center; color:#fff;
  box-shadow:var(--shadow-lg);
}
.cta h2{ margin:0 0 14px; font-size:clamp(28px,3.4vw,42px); font-weight:900; letter-spacing:-.8px; }
.cta p{ margin:0 auto 32px; max-width:520px; font-size:17px; line-height:1.9; opacity:.88; }
.cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta .btn-amber{ background:var(--amber); color:#0F2557; box-shadow:0 6px 20px rgba(245,165,36,.4); }
.cta .btn-amber:hover{ transform:translateY(-2px); }
.cta .btn-clear{ background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.3); }
.cta .btn-clear:hover{ background:rgba(255,255,255,.2); }
.cta .ok-actions .btn-clear{ background:transparent; color:var(--blue); border-color:var(--blue); }
.cta .ok-actions .btn-clear:hover{ background:var(--blue-soft); }

.site-footer{ padding:52px 0 44px; border-top:1px solid var(--line); margin-top:80px; }
.footer-about-text{
  margin:0 auto; max-width:640px; text-align:center;
  font-size:15px; color:var(--muted); line-height:2;
}
.footer-signin{
  margin:22px auto 0; max-width:640px; text-align:center;
  font-size:14px; color:var(--muted);
}
.footer-signin a{ color:var(--blue); font-weight:700; text-decoration:none; margin-inline-start:6px; }
.footer-signin a:hover{ text-decoration:underline; }
.footer-signin a:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; border-radius:6px; }

.footer-copy{
  margin:22px auto 0; padding-top:22px; max-width:640px; text-align:center;
  border-top:1px solid var(--line); font-size:13.5px; color:var(--muted);
}

/* ============================================================
   الظهور عند التمرير
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity:1; transform:none; }

/* ============================================================
   الاستجابة
   ============================================================ */
@media (max-width:920px){
  .brand-divider, .brand-en{ display:none; }
}
@media (max-width:1040px){
  .hero-grid{ grid-template-columns:1fr; gap:52px; }
  .accred-card{ max-width:460px; margin:0 auto; }
  .tiers{ grid-template-columns:repeat(2,1fr); }
  .calc{ grid-template-columns:1fr; gap:28px; }
  .feat-grid, .addon-grid{ grid-template-columns:repeat(2,1fr); }
  .who-grid{ grid-template-columns:repeat(2,1fr); }
  .compliance-box{ grid-template-columns:1fr; gap:38px; padding:44px 34px; }
  .steps{ grid-template-columns:1fr; gap:32px; }
  .step::after{ display:none; }
}
@media (max-width:560px){
  .brand-text .sub{ display:none; }
  .header-in{ height:68px; gap:10px; }
  .brand-text .ar{ font-size:22px; }
  .btn-header-cta{ padding:9px 15px; font-size:14px; }
  .icon-btn{ width:38px; height:38px; }
  .lang-btn{ height:38px; min-width:46px; padding:0 11px; font-size:13px; }
  .btn-header-cta{ opacity:1; transform:none; pointer-events:auto; }
}
@media (max-width:660px){
  section{ padding:68px 0; }
  .wrap{ padding:0 18px; }
  .hero{ padding:48px 0 68px; }
  .hero-actions .btn{ width:100%; }
  .tiers, .feat-grid, .addon-grid, .who-grid{ grid-template-columns:1fr; }
  .tier-card.match{ transform:none; }
  .tier-for{ min-height:0; }
  .calc, .cta{ padding:28px 20px; }
  .compliance-box{ padding:34px 24px; }
  .hero-stat{ padding:20px; }
  .hero-stat b{ font-size:32px; }
  .ticks{ font-size:11px; }
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
}

/* --- زر العودة إلى موقع مسار تك --- */
.btn-site{
  display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 15px;
  border-radius:999px; border:1px solid var(--line); background:var(--card);
  color:var(--muted); font-family:inherit; font-size:13.5px; font-weight:700;
  text-decoration:none; white-space:nowrap; transition:.2s;
}
.btn-site:hover{ color:var(--blue); border-color:var(--blue); }
.btn-site:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }
.btn-site svg{ flex:none; }
.footer-site-link{
  margin:14px auto 0; max-width:640px; text-align:center;
  font-size:14px; color:var(--muted);
}
.footer-site-link a{ color:var(--blue); font-weight:700; text-decoration:none; margin-inline-start:6px; }
.footer-site-link a:hover{ text-decoration:underline; }
.footer-site-link a:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; border-radius:6px; }
@media (max-width:660px){
  .btn-site{ height:38px; padding:0 12px; font-size:12.5px; }
  .btn-site .btn-site-label{ display:none; }
  .btn-site{ width:38px; padding:0; justify-content:center; }
}


/* --- زر الواتساب العائم --- */
.wa-fab{
  position:fixed; bottom:24px; inset-inline-end:24px; z-index:150;
  width:60px; height:60px; border-radius:50%;
  background:linear-gradient(135deg,#25D366,#128C7E);
  display:grid; place-items:center; text-decoration:none;
  box-shadow:0 8px 26px rgba(37,211,102,.45);
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  animation:waPulse 2.6s ease-out infinite;
}
.wa-fab:hover{ transform:scale(1.08); box-shadow:0 12px 34px rgba(37,211,102,.6); }
.wa-fab:focus-visible{ outline:3px solid var(--amber); outline-offset:3px; }
.wa-fab .wa-tip{
  position:absolute; inset-inline-end:72px; white-space:nowrap;
  background:var(--navy); color:#fff; font-family:inherit;
  font-size:12.5px; font-weight:700; padding:8px 13px; border-radius:8px;
  opacity:0; transform:translateX(8px); pointer-events:none; transition:.25s;
}
.wa-fab:hover .wa-tip{ opacity:1; transform:translateX(0); }
@keyframes waPulse{
  0%{ box-shadow:0 8px 26px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 8px 26px rgba(37,211,102,.45),0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow:0 8px 26px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width:680px){
  .wa-fab{ bottom:18px; inset-inline-end:18px; width:54px; height:54px; }
  .wa-fab .wa-tip{ display:none; }
}
@media (prefers-reduced-motion:reduce){ .wa-fab{ animation:none; } }
