/* landing-F · هوية تشييدنا (أخضر + رملي + Alexandria).
 *
 * قواعد الحركة (على طريقة Emil Kowalski): transform و opacity فقط؛ الدخول ease-out؛
 * 150–250ms لردّ الفعل على اللمس، 400–600ms للظهور مع السكرول؛ لا ارتداد؛ لا شيء يُقرأ يتحرّك
 * بعد وصوله؛ وكلّ هذا يُطفأ تحت prefers-reduced-motion.
 * قواعد الشكل (impeccable): سلّم مسافاتٍ واحد (4/8/12/16/24/32/48/64)، حوافّ شعريّة 1px بدل
 * الظلال، نصف قطر واحد لكلّ طبقة، ولون محايد مائلٌ إلى الأخضر لا رماديٌّ صِرف. */

:root {
  --ink: #141f1b;
  --ink-deep: #0b1411;
  --slate: #56635e;
  --mute: #66726d;
  --line: #e3e9e5;
  --line-strong: #cfd8d2;
  --paper: #f6f8f5;
  --white: #ffffff;
  --green: #176b52;
  --green-deep: #0f4f3c;
  --green-mist: #e9f2ed;
  --sand: #d9b36c;
  --sand-deep: #b8914a;
  --wa: #1a7d44;
  --wa-deep: #166c3b;
  --font: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(11 20 17 / 6%), 0 8px 24px rgb(11 20 17 / 6%);
  --shadow-md: 0 1px 2px rgb(11 20 17 / 6%), 0 24px 48px -12px rgb(11 20 17 / 18%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* ease-out-expo: دخولٌ سريع يهدأ */
  --ease-std: cubic-bezier(0.2, 0, 0, 1);        /* للحالات والألوان */
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 520ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font); font-size: 17px; line-height: 1.9; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.5; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
/* أزرارٌ وروابطٌ تُضغَط بالإبهام: بلا تأخير 300ms ولا تحديد نصّ بالضغط الطويل */
.btn, .lang, .burger, .vid-toggle, .wa-float, .links a, .menu a, .foot nav a { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
section[id] { scroll-margin-top: 64px; } /* الرأسُ المصمت 64px: القفزةُ من القائمة تضع القسمَ تحته تمامًا، والمشهدُ يتجاوز خطَّ 72 بلا لبس */

/* ---------- الكتابة ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: var(--green); margin-bottom: 12px; letter-spacing: 0.01em; }
.eyebrow i { width: 22px; height: 2px; background: var(--sand); border-radius: 2px; }
.eyebrow.light { color: var(--sand); }
.h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 800; line-height: 1.45; letter-spacing: -0.005em; text-wrap: balance; }
.h2.light { color: var(--white); }
.lede { color: var(--slate); max-width: 46ch; margin-top: 12px; font-size: 1.05rem; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 1rem; line-height: 1.4; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-std), background var(--t-fast) var(--ease-std), border-color var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std), box-shadow var(--t-fast) var(--ease-std);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 100ms; }
.btn-solid { color: var(--white); background: var(--green); box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%); }
@media (hover: hover) and (pointer: fine) { .btn-solid:hover { background: var(--green-deep); } }
.btn-line { color: var(--ink); border: 1px solid var(--line-strong); background: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: var(--green); color: var(--green-deep); } }
.btn-light { color: var(--green-deep); background: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn-light:hover { background: var(--green-mist); } }
.btn-ghost-light { color: var(--white); border: 1px solid rgb(255 255 255 / 40%); backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn-ghost-light:hover { border-color: rgb(255 255 255 / 80%); background: rgb(255 255 255 / 8%); } }
.btn-whatsapp { color: var(--white); background: var(--wa); box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 8px 20px -6px rgb(26 125 68 / 55%); }
@media (hover: hover) and (pointer: fine) { .btn-whatsapp:hover { background: var(--wa-deep); } }
.btn-top { min-height: 48px; padding: 0 18px; font-size: 0.95rem; color: var(--white); background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 28%); backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) { .btn-top:hover { background: rgb(255 255 255 / 20%); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }
/* على الداكن والفيديو الرمليّ هو المرئيّ (تباين مؤشّر التركيز ≥ 3:1 في الحالتين) */
.stage a:focus-visible, .stage button:focus-visible, .who a:focus-visible, .closing a:focus-visible, .foot a:focus-visible, .menu a:focus-visible, .top:not(.is-solid) a:focus-visible, .top:not(.is-solid) button:focus-visible, .wa-float:focus-visible { outline-color: var(--sand); }
.skip { position: absolute; top: -64px; inset-inline-start: 16px; z-index: 50; padding: 10px 16px; border-radius: var(--r-sm); background: var(--white); color: var(--green-deep); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-md); }
.skip:focus { top: 12px; }
/* 48px بزاوية 8px: مربّع اللمس 44×44 حول المركز يقع داخل الزوايا المستديرة (qa-a11y يقيس بالأركان) */
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 10px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1px solid rgb(255 255 255 / 28%); color: var(--white); transition: background var(--t-fast) var(--ease-std), border-color var(--t-fast) var(--ease-std), color var(--t-base) var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .lang:hover { background: rgb(255 255 255 / 12%); } }
.top.is-solid .lang { color: var(--slate); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .top.is-solid .lang:hover { color: var(--ink); background: var(--paper); } }
.vid-toggle { position: absolute; z-index: 2; bottom: 20px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 30%); background: rgb(11 20 17 / 45%); color: var(--white); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background var(--t-fast) var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .vid-toggle:hover { background: rgb(11 20 17 / 70%); } }
.vid-toggle[hidden] { display: none; } /* `hidden` وحده لا يغلب display: grid — الزرّ كان يظهر على الهاتف بلا فيديو */
.vid-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .ic-play { display: none; }
.vid-toggle[aria-pressed="true"] .ic-pause { display: none; }
.vid-toggle[aria-pressed="true"] .ic-play { display: block; fill: currentColor; }

/* ---------- الرأس ---------- */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 30; color: var(--white); transition: background var(--t-base) var(--ease-std), box-shadow var(--t-base) var(--ease-std), color var(--t-base) var(--ease-std); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.top.is-solid { background: rgb(255 255 255 / 86%); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.top.is-solid .top-row { min-height: 64px; }
.top.is-solid .btn-top { color: var(--white); background: var(--green); border-color: var(--green); }
@media (hover: hover) and (pointer: fine) { .top.is-solid .btn-top:hover { background: var(--green-deep); } }
.brand { display: flex; align-items: center; flex-shrink: 0; min-height: 48px; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 32px; height: 32px; transition: filter var(--t-base) var(--ease-std); }
.top:not(.is-solid) .brand img { filter: brightness(0) invert(1); }
.brand.small { font-size: 1rem; }
.brand.small img { width: 26px; height: 26px; }
.links { display: flex; gap: 28px; margin-inline-start: auto; }
.links a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; font-size: 0.93rem; font-weight: 600; text-decoration: none; opacity: 0.82; transition: opacity var(--t-fast) var(--ease-std), color var(--t-fast) var(--ease-std); }
.links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .links a:hover { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .links a:hover::after { transform: scaleX(1); } }
.top.is-solid .links a { color: var(--slate); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .top.is-solid .links a:hover { color: var(--ink); } }
.burger { display: none; min-width: 48px; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; align-items: center; color: inherit; }
.burger span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-base) var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 25; background: var(--ink-deep); color: var(--white); display: grid; place-items: center; padding: 80px 24px 40px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 20px; text-align: center; }
.menu a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; font-size: 1.5rem; font-weight: 800; text-decoration: none; animation: menu-in 380ms var(--ease-out) both; animation-delay: calc(40ms * var(--i)); }
.menu-login { color: var(--sand); }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

/* ---------- 1 · المشهد ---------- */
.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink-deep); }
/* minmax(0, 1fr) لا `auto`: WebKit (Safari على الآيفون) كان يُوسّع العمودَ الضمنيّ إلى أوسع محتوى (الزرّان اللذان لا يلتفّان ≈ 504px) ثم يحلّ `100% - 32px` عليه، فخرج نصُّ الغلاف 98px عن يسار الشاشة (أنس، 2026-11-07) */
.stage-media { position: absolute; inset: 0; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-shade { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgb(11 20 17 / 42%), transparent 200px), /* الرأس مقروء فوق لقطة فاتحة */
  linear-gradient(to top, rgb(11 20 17 / 94%) 0%, rgb(11 20 17 / 60%) 38%, rgb(11 20 17 / 24%) 100%),
  linear-gradient(to left, rgb(11 20 17 / 28%), transparent 50%); }
.stage::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: rgb(255 255 255 / 10%); }
.stage-copy { position: relative; align-self: end; min-width: 0; padding: 140px 0 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(260px, 24vw, 340px)); column-gap: clamp(32px, 4vw, 56px); align-items: end; }
/* LANDING-HERO-1109 · شاشة البرنامج تطلع من حافّة المشهد السفليّة (margin-bottom سالب بقدر حشو stage-copy): الدليل بجانب الوعد. */
.stage-copy > :not(.stage-shot) { grid-column: 1; max-width: 760px; }
.stage-shot { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 0 -80px; max-height: 460px; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--paper); border: 1px solid rgb(255 255 255 / 22%); border-bottom: 0; box-shadow: 0 -1px 0 rgb(255 255 255 / 10%); }
.stage-shot img { width: 100%; height: auto; display: block; }
.stage-title { font-size: clamp(2.2rem, 0.9rem + 3.6vw, 3.6rem); font-weight: 800; line-height: 1.38; letter-spacing: -0.01em; } /* بجانب شاشة البرنامج العمود ≈ 580px على 1024: كلّ سطر من العنوان يبقى سطرًا واحدًا */
.stage-title .line { display: block; overflow: hidden; padding: 0.05em 0; }
.stage-title .line.accent { color: var(--sand); }
.stage-title .w { display: inline-block; transform: translateY(105%); opacity: 0; animation: word-up 680ms var(--ease-out) forwards; }
@keyframes word-up { to { transform: none; opacity: 1; } }
.stage-lede { margin-top: 20px; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem); max-width: 42ch; color: rgb(255 255 255 / 86%); }
.reveal-now { opacity: 0; transform: translateY(10px); animation: reveal var(--t-slow) var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- الظهور مع السكرول ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* تأخير الظهور بكلاسات لا بـ style="" — الـ CSP على الخادم بلا 'unsafe-inline' */
.d-0 { --d: 0ms; }
.d-60 { --d: 60ms; }
.d-80 { --d: 80ms; }
.d-90 { --d: 90ms; }
.d-100 { --d: 100ms; }
.d-120 { --d: 120ms; }
.d-160 { --d: 160ms; }
.d-180 { --d: 180ms; }
.d-200 { --d: 200ms; }
.d-240 { --d: 240ms; }
.d-270 { --d: 270ms; }
.d-300 { --d: 300ms; }
.d-360 { --d: 360ms; }
.d-700 { --d: 700ms; }
.d-850 { --d: 850ms; }
.i-0 { --i: 0; }
.i-1 { --i: 1; }
.i-2 { --i: 2; }
.i-3 { --i: 3; }
.i-9 { --i: 9; }

.band { padding: clamp(72px, 9vw, 128px) 0; }
.band.soft { background: var(--paper); }
.band + .band { border-top: 1px solid var(--line); }

/* ---------- 2 · الخطوات ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 48px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 44px; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: right; transition: transform 900ms var(--ease-out) 150ms; }
.steps.in::before { transform: scaleX(1); }
.steps li { position: relative; display: grid; gap: 6px; padding-top: 64px; min-width: 0; }
.steps b { position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--green-deep); border: 1px solid var(--line-strong); font-weight: 800; font-size: 1.05rem; line-height: 1; box-shadow: 0 0 0 8px var(--white); font-variant-numeric: tabular-nums; }
.steps li:first-child b { background: var(--green); color: var(--white); border-color: var(--green); }
.steps strong { font-size: 1.15rem; font-weight: 800; line-height: 1.5; }
.steps span { color: var(--slate); font-size: 0.95rem; }

/* ---------- 3 · لمين ---------- */
.who { color: var(--white); background: var(--ink-deep); position: relative; }
.who::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 100% 0%, rgb(23 107 82 / 28%), transparent 70%); }
.who .wrap { position: relative; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.roles li { position: relative; min-width: 0; padding: 24px 22px 22px; border-radius: var(--r-md); background: rgb(255 255 255 / 4%); border: 1px solid rgb(255 255 255 / 10%); display: grid; gap: 4px; transition: background var(--t-base) var(--ease-std), border-color var(--t-base) var(--ease-std), transform var(--t-base) var(--ease-std); }
.roles li::before { content: ""; position: absolute; top: 0; inset-inline: 22px; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .roles li:hover { background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 18%); transform: translateY(-2px); } }
@media (hover: hover) and (pointer: fine) { .roles li:hover::before { transform: scaleX(1); } }
.roles strong { color: var(--sand); font-size: 1.05rem; font-weight: 800; line-height: 1.5; }
.roles span { color: rgb(255 255 255 / 76%); font-size: 0.93rem; line-height: 1.8; }

/* ---------- 4 · الأسعار ---------- */
.tiers, .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: stretch; }
.tier, .plan { position: relative; min-width: 0; padding: 30px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); display: grid; gap: 14px; align-content: start; transition: border-color var(--t-base) var(--ease-std), transform var(--t-base) var(--ease-std), box-shadow var(--t-base) var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .tier:hover, .plan:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.tier.featured, .plan.featured { background: var(--green-mist); border-color: rgb(23 107 82 / 35%); box-shadow: 0 0 0 1px rgb(23 107 82 / 20%); }
@media (hover: hover) and (pointer: fine) { .tier.featured:hover, .plan.featured:hover { box-shadow: 0 0 0 1px rgb(23 107 82 / 30%), var(--shadow-md); } }
.tier h3, .plan h2 { font-size: 1rem; font-weight: 700; color: var(--slate); }
.tier.featured h3, .plan.featured h2 { color: var(--green-deep); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 2.6rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price span { color: var(--mute); font-size: 0.92rem; font-weight: 600; }
.tier.featured .price span, .plan.featured .price span { color: var(--slate); } /* على green-mist الـ mute 4.3:1 والـ slate 5.6:1 */
.tier ul, .plan ul { display: grid; gap: 8px; color: var(--slate); font-size: 0.97rem; }
.tier li, .plan li { overflow-wrap: anywhere; padding-top: 8px; border-top: 1px solid var(--line); }
.tier.featured li, .plan.featured li { border-top-color: rgb(23 107 82 / 14%); }
.plan .btn { margin-top: 10px; white-space: normal; text-align: center; }

/* ---------- صفحة الأسعار ---------- */
.page-head { padding-top: 120px; }
.pay-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; counter-reset: s; }
.pay-steps li { min-width: 0; padding: 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); display: grid; gap: 2px; }
.pay-steps li::before { counter-increment: s; content: counter(s, arabic-indic); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; line-height: 1; margin-bottom: 14px; }
.pay-steps strong { font-size: 1.05rem; line-height: 1.5; }
.pay-steps span { color: var(--slate); font-size: 0.95rem; }
.pay-steps .ipa { color: var(--green-deep); font-weight: 700; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* ---------- 5 · الختام ---------- */
.closing { position: relative; color: var(--white); background: var(--green-deep); padding: clamp(80px, 10vw, 128px) 0; }
.closing::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 50% 100%, rgb(217 179 108 / 14%), transparent 70%); }
.closing-box { position: relative; text-align: center; max-width: 720px; }
.closing h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; line-height: 1.5; }

/* ---------- الذيل ---------- */
.foot { background: var(--ink-deep); color: rgb(255 255 255 / 64%); font-size: 0.9rem; padding: 28px 0; border-top: 1px solid rgb(255 255 255 / 8%); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { color: var(--white); text-decoration: none; }
.foot .brand img { filter: brightness(0) invert(1); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; text-decoration: none; transition: color var(--t-fast) var(--ease-std); }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--white); } }

/* ---------- واتساب عائم ---------- */
.wa-float { position: fixed; z-index: 20; inset-inline-end: 20px; bottom: 20px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); box-shadow: 0 1px 2px rgb(11 20 17 / 20%), 0 12px 28px -8px rgb(11 20 17 / 45%); opacity: 0; transform: translateY(12px) scale(0.92); pointer-events: none; transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-std); }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .wa-float.is-on:hover { transform: scale(1.06); } }
.wa-float.is-on:active { transform: scale(0.98); }

/* ---------- النسخة الإنجليزية (LTR) ---------- */
[dir="ltr"] .links a::after, [dir="ltr"] .steps::before, [dir="ltr"] .roles li::before { transform-origin: left; }
[dir="ltr"] .stage-shade { background: linear-gradient(to bottom, rgb(11 20 17 / 42%), transparent 200px), linear-gradient(to top, rgb(11 20 17 / 94%) 0%, rgb(11 20 17 / 60%) 38%, rgb(11 20 17 / 24%) 100%), linear-gradient(to right, rgb(11 20 17 / 28%), transparent 50%); }
[dir="ltr"] .who::before { background: radial-gradient(70% 60% at 0% 0%, rgb(23 107 82 / 28%), transparent 70%); }
[dir="ltr"] .pay-steps li::before { content: counter(s); }
[dir="ltr"] .stage-title { line-height: 1.15; }
[dir="ltr"] .h2 { line-height: 1.25; }
[dir="ltr"] body, [dir="ltr"] { line-height: 1.7; }

/* ---------- الشاشات الأصغر ---------- */
@media (max-width: 1024px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { top: 22px; bottom: 22px; height: auto; width: 1px; inset-inline: auto; inset-inline-start: 22px; transform: scaleY(0); transform-origin: top; }
  .steps.in::before { transform: scaleY(1); }
  .steps li { padding: 0 0 28px 0; padding-inline-start: 64px; }
  .steps li:last-child { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .tiers, .plans, .pay-steps, .roles { grid-template-columns: minmax(0, 1fr); }
  .links { display: none; }
  .top-row { gap: 10px; }
  .brand { font-size: 1.05rem; }
  .lang { margin-inline-start: auto; }
  .btn-top { padding: 0 16px; font-size: 0.9rem; }
  .burger { display: flex; }
  .stage { min-height: 0; grid-template-rows: auto auto; background: var(--green-deep); }
  .stage-media { position: relative; aspect-ratio: 16 / 9; margin-top: 64px; }
  .stage-shade { background: linear-gradient(to top, var(--green-deep), transparent 45%); }
  .stage::after { display: none; }
  .vid-toggle { bottom: 12px; inset-inline-end: 12px; }
  .stage-copy { padding: 8px 0 0; grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .stage-copy > :not(.stage-shot) { max-width: none; }
  .stage-shot { grid-column: 1; grid-row: auto; width: min(100%, 320px); max-height: 220px; margin: 32px auto 0; border-radius: 22px 22px 0 0; }
  .stage-title { font-size: clamp(1.5rem, 0.7rem + 4.2vw, 2rem); } /* 360–412px: السطران «مشروعك تحت عينك» و«من الموقع لحد الحساب.» كلٌّ على سطر واحد */
  [dir="ltr"] .stage-title { line-height: 1.25; } /* عند الالتفاف على 360 كان 1.15 يركّب صفّين بـ2px */
  .cta-row .btn { flex: 1 1 100%; }
  .foot { padding-bottom: 96px; }
}
@media (max-width: 380px) {
  /* «Tashyidna» + عربي + Log in + القائمة (48) = 341px في 328: الفراغُ 6 والحشوُ 10 يوفّران 24 */
  .top-row { gap: 6px; }
  .btn-top { padding: 0 10px; }
}

/* ---------- حركة أقلّ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-now, .stage-title .w { opacity: 1; transform: none; animation: none; transition: none; }
  .steps::before { transform: none; transition: none; }
  .btn, .wa-float, .roles li, .tier, .plan, .top, .brand img, .burger span, .links a::after, .lang, .vid-toggle, .foot nav a { transition: none; }
  .menu a { animation: none; }
}

/* ---------- بلا JavaScript ---------- */
/* الظهورُ مع التمرير يحتاج IntersectionObserver؛ بلا سكربت تُقرأ الصفحة كاملةً في شكلها الأخير. */
@media (scripting: none) {
  .reveal, .reveal-now, .stage-title .w { opacity: 1; transform: none; animation: none; }
  .steps::before { transform: none; }
  .wa-float { opacity: 1; transform: none; pointer-events: auto; }
}
