/* موقع OnCloud: نظام التصميم «نهار راقٍ» (القسم 18.2 من خطة الموقع) وقواعد التناغم مع الشاشات (18.3).
   كل الألوان متغيرات في :root، والليل قلب كامل لها تحت html[data-theme="dark"]. التوقيع المضيء الوحيد خط الضوء.
   Claude (Fable 5.1)، 2026-11-02. */

/* خط ثمانية للحروف العربية، وRoboto خط الهوية الإنجليزي للإنجليزية والأرقام وللكلمات الإنجليزية داخل النص العربي، بقول مهند
   (القسم 18.11 من خطة الموقع). ووجوه ثمانية مقصورة على الحروف العربية، فاللاتيني في النص العربي يأتي من Roboto كما في الصفحة الإنجليزية.
   ملفات ثمانية الرسمية بأسمائها بلا تعديل، فرخصته تمنع تعديلها وإعادة تسميتها، وRoboto محوّل إلى WOFF2 بأداة Preview/Tools/Woff2Pack_Opus.cs
   ورخصته في fonts/Roboto-LICENSE.txt. والوجه المتوسط يغطي وزن 600 أيضًا، فما كان بنصف عرض لا يثقل إلى العريض. */
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("../fonts/thmanyah-sans-Regular.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500 600; font-display: swap; src: url("../fonts/thmanyah-sans-Medium.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Thmanyah Sans"; font-weight: 700; font-display: swap; src: url("../fonts/thmanyah-sans-Bold.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("../fonts/Roboto-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500 600; font-display: swap; src: url("../fonts/Roboto-Medium.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("../fonts/Roboto-Bold.woff2") format("woff2"); }

:root {
  --paper: #F6F7FB; --paper2: #FFFFFF; --paper3: #EEF1F8;
  /* النص الخافت 5:1 على الورق وعلى الأبيض (كان #7C86AD بنسبة 3.3 فرصده Lighthouse)، ويبقى أفتح من الحبر الثاني */
  --ink: #0E1535; --ink2: #4B557E; --mute: #5F6A91; --line: #E2E6F2; --line2: #CDD3E6; --logo-ink: #17245E;
  --c1: #36B8F4; --c2: #2F6BFF; --c3: #4850D8; --c4: #6B3FD6;
  --ok: #1E9E5A; --warn: #E0A100; --danger: #D9405B;
  /* معدن الأجهزة رصاصي واحد في الثيمين: أغمق من الورق فيبرز عليه، وأفتح من الليل فيبرز عليه (القسم 2.5 من خطة التنفيذ). وقاعدة الحاسوب
     في منظره الأمامي بالألوان نفسها (القسم 18.11 من خطة الموقع). */
  --metal-hi: #D6D9DF; --metal: #BDC1C9; --metal-lo: #A3A8B3; --metal-edge: rgba(255,255,255,.7); --screen-ring: #0B0C10;
  --glass: rgba(255,255,255,.72);
  --shadow: 0 50px 90px -40px rgba(14,21,53,.38); --shadow2: 0 24px 50px -24px rgba(14,21,53,.28); --shadow3: 0 10px 26px -14px rgba(14,21,53,.22);
  --light-grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c4));
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  --font-ar: "Thmanyah Sans", "Roboto", "Segoe UI", system-ui, sans-serif;
  --font-en: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Roboto", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #0A1024; --paper2: #121A3C; --paper3: #0F1630;
  --ink: #F3F5FF; --ink2: #B9C0DE; --mute: #8690B8; --line: rgba(255,255,255,.12); --line2: rgba(255,255,255,.2); --logo-ink: #FFFFFF;
  --glass: rgba(18,26,60,.78);
  --shadow: 0 50px 90px -40px rgba(0,0,0,.7); --shadow2: 0 24px 50px -24px rgba(0,0,0,.6); --shadow3: 0 10px 26px -14px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* العنوان الذي يركّز عليه التنقل برمجيًا (FocusOnNavigate) لا يُرسم حوله إطار تركيز؛ يبقى الإطار لعناصر الإدخال والروابط */
h1:focus, h2:focus, [tabindex="-1"]:focus { outline: none; }
/* لا overflow على body: كان `overflow-x: hidden` مع `overflow-x: clip` على html يجعل body حاوية تمرير، فلا يثبت شيء بـ`position: sticky`
   في الموقع كله (O2 في مراجعة الوكيل). والقص الأفقي على الجذر وحده (clip لا يصنع حاوية تمرير)، وعند العناصر التي تخرج عن الصفحة. */
body { margin: 0; font-family: var(--font-ar); font-size: 17px; line-height: 1.7; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
html[lang="en"] body { font-family: var(--font-en); font-weight: 400; }
html[lang="en"] { --font-ar: var(--font-en); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num, .en, bdi { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--paper2); color: var(--ink); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow3); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
/* المخفي عن العين الظاهر لقارئ الشاشة يغلب أنماط الحقول (`.fld input` تعطيه عرض 100%، فيمتد حقل المرفق المطلق بعرض الصفحة ويمررها أفقيًا) */
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(47,107,255,.18); }

/* الحركة: ظهور تدريجي من الأسفل، وتتعطل كلها مع تقليل الحركة. والإخفاء قبل الظهور تحت .js وحدها: يضعها سكربت الرأس ويرفعها بعد 4 ثوانٍ إن لم
   يعمل site.js، فيظهر المحتوى بلا حركة ولا يبقى مخفيًا (البند WEB-40 في خطة إصلاح بقية الحل 2026-11-22). */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }
.count { font-variant-numeric: tabular-nums; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 17px; color: #fff; background: var(--light-grad); box-shadow: 0 10px 26px -10px rgba(47,107,255,.55); transition: transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(47,107,255,.65); }
.btn:active { transform: translateY(0); }
.btn.sm { min-height: 42px; padding: 9px 20px; font-size: 15.5px; }
.btn.ghost { color: var(--ink); background: var(--paper2); border: 1.5px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--c2); box-shadow: var(--shadow3); }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 17px; color: var(--ink2); border-bottom: 2px solid var(--line); transition: color .2s, border-color .2s; }
.textlink:hover { color: var(--ink); border-color: var(--c2); }
.textlink svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* سطر الشرح في صفحة موضع الظهور (القسم 5-أ من خطة مقالات الشرح 2026-11-28): هادئ تحت مقدمة الصفحة، وعنوان المقال رابط. */
.guideline { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.guideline span { margin-inline-end: .35em; }
.guideline a { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.guideline a:hover { border-color: var(--c2); }
.guideline ul { margin: 6px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
html[dir="rtl"] .textlink svg.arrow { transform: scaleX(-1); }

/* ---------- الرأس ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 40; padding: 18px 0; transition: padding .35s var(--ease), background .35s, border-color .35s, box-shadow .35s; }
/* الرأس صلب بعد التمرير بلون الورق، لا شفافية ولا ضبابية فيُرى ما تحته (O31) */
.nav.solid { padding: 8px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; position: relative; }
/* شريط الإعلان من «إعدادات الموقعين» (القسم 4.6 من خطة شعار الرأس 2026-11-26): نحيف فوق الرأس، يمضي مع الصفحة، والرأس الثابت يبدأ تحته ويرتفع
   حتى أعلى الشاشة كلما مضى الشريط (bindNav في site.js). ونصه يلتف على الهاتف. ولا يُطبع. */
.announce { display: block; padding: 9px var(--gutter); background: var(--ink); color: var(--paper); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
a.announce:hover span, a.announce:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
@media print { .announce { display: none; } }
.nav .logo { display: block; flex: none; }
.nav .logo img, .nav .logo svg { height: 54px; width: auto; transition: height .35s var(--ease); }
.nav.solid .logo img, .nav.solid .logo svg { height: 42px; }
/* الشعار المضمّن (OnCloudLogo.razor): الكتابة بحبر الشعار من الثيم، والحدّ حول الحرفين في النهار وحده، والسحابة الباهتة تحت الامتلاء */
.oclogo { display: block; }
.oclogo .ink { fill: var(--logo-ink); }
.oclogo .base { opacity: .16; }
html[data-theme="dark"] .oclogo .rim { display: none; }
.logo .dark, html[data-theme="dark"] .logo .light { display: none; }
html[data-theme="dark"] .logo .dark { display: block; }
.nav nav { margin-inline-start: auto; }
.nav nav > ul { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 16.5px; }
.nav nav > ul > li { position: static; }
/* عناصر الشريط وحدها، لا روابط القائمة الكبيرة التي داخله، فلكل منها تخطيطه. */
.nav nav > ul > li > a, .nav nav .mbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink2); white-space: nowrap; transition: color .2s; }
.nav nav > ul > li > a:hover, .nav nav .mbtn:hover, .nav nav > ul > li > a[aria-current="page"], .nav nav .mbtn.here { color: var(--ink); }
/* الصفحة الحالية: خط الضوء قصيرًا تحت عنصرها في الشريط، وزر «المزايا» حين تكون إحدى صفحاتها مفتوحة */
.nav nav > ul > li > a[aria-current="page"], .nav nav .mbtn.here { position: relative; }
.nav nav > ul > li > a[aria-current="page"]::after, .nav nav .mbtn.here::after { content: ""; position: absolute; inset-inline: 0; bottom: 5px; height: 2px; border-radius: 2px; background: var(--light-grad); }
.drawer > a[aria-current="page"], .drawer .sub a[aria-current="page"] { color: var(--c2); }
.nav nav .mbtn svg { flex: none; width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav nav li.open .mbtn svg { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { font-family: var(--font-num); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; border: 1.5px solid var(--line2); border-radius: 999px; min-width: 44px; min-height: 36px; padding: 4px 12px; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.lang:hover { color: var(--ink); border-color: var(--c2); }
.theme { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); transition: border-color .2s, color .2s; }
.theme:hover { color: var(--ink); border-color: var(--c2); }
.theme svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon, html[data-theme="dark"] .theme .sun { display: none; }
html[data-theme="dark"] .theme .moon { display: block; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line2); align-items: center; justify-content: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* قائمة «المزايا» المدمجة (القسم 5.2 من مراجعة Fable): تحت حافة زرها لا في وسط الشاشة، بعرض 440 وسهم صغير يشير إليه، وثلاثة صفوف
   بسطر وصف واحد، ثم فاصل و«كيف يعمل». والسهم من عنصر الزر الأب نفسه، فيقف في منتصف الزر أيًّا كان عرضه باللغتين. */
.nav nav li.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 440px; background: var(--paper2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow2); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s; z-index: 50; }
.nav nav li.has-mega::after { content: ""; position: absolute; top: calc(100% + 3px); left: calc(50% - 6px); width: 10px; height: 10px; background: var(--paper2); border-top: 1px solid var(--line); border-left: 1px solid var(--line); transform: rotate(45deg); border-top-left-radius: 3px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .25s; z-index: 51; }
li.has-mega.open .mega { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
.nav nav li.has-mega.open::after { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
.mega .mlist { display: grid; gap: 2px; }
.mega .mlist a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 56px; padding: 8px 10px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.mega .mlist a:hover, .mega .mlist a:focus-visible, .mega .mlist a[aria-current="page"] { background: var(--paper3); }
.mega .ico { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, rgba(54,184,244,.16), rgba(107,63,214,.16)); display: grid; place-items: center; color: var(--c2); }
.mega .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega .mtxt { min-width: 0; }
.mega b { font-size: 15px; display: block; line-height: 1.4; }
.mega small { display: block; font-size: 13px; color: var(--ink2); line-height: 1.5; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega .mhow { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.mega .mhow a { display: flex; grid-template-columns: none; gap: 8px; align-items: center; min-height: 44px; padding: 8px 10px; font-weight: 600; color: var(--c2); }
.mega .mhow .arrow { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .mega .mhow .arrow { transform: scaleX(-1); }

/* الدرج على التابلت والهاتف */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 90px var(--gutter) 40px; display: none; flex-direction: column; gap: 6px; overflow: auto; }
.drawer.open { display: flex; }
/* روابط التنقل وحدها، لا الزر الأساسي ومفتاح اللغة في أسفله، فيبقى الزر بشكله في كل موضع (O21) */
.drawer > a, .drawer .sub a { display: block; padding: 12px 6px; font-size: 20px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer .sub a { font-size: 17px; padding-inline-start: 22px; color: var(--ink2); border: 0; }
.drawer .sub { margin-bottom: 8px; border-bottom: 1px solid var(--line); }
/* صف أسفل الدرج بمقاس واحد: الزر ومفتاح اللغة والمظهر بارتفاع 48 */
.drawer .cta { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.drawer .cta .btn { min-height: 48px; padding-block: 0; }
.drawer .cta .lang { min-height: 48px; min-width: 48px; }
.drawer .cta .theme { width: 48px; height: 48px; }
.drawer .close { position: absolute; top: 18px; inset-inline-end: var(--gutter); width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.drawer .close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- الأقسام ---------- */
section { position: relative; }
/* سلّم المسافات (القسم 5.1 من مراجعة Fable): حشو المحطة، وفجوة واحدة من رأسها إلى جسمها لا يكررها الجسم بهامش خاص،
   ورابط «المزيد» بعد الجسم، والمحتوى بعد رأس الصفحات الداخلية بـ40. فلا بياض فوق عنوان محطة يزيد على 96 على 1440 و56 على 390. */
.sec { padding: clamp(56px, 6.6vw, 96px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec .head + *, .sec > .jscene { margin-top: 44px; }
@media (max-width: 1023px) { .sec .head + *, .sec > .jscene { margin-top: 32px; } }
@media (max-width: 520px) { .sec .head + *, .sec > .jscene { margin-top: 24px; } }
.more { margin-top: 28px; }
.sec > .wrap > .more { text-align: center; }
.hero.page + .sec { padding-top: 40px; }
.head { max-width: 820px; margin-inline: auto; text-align: center; }
.head.start { text-align: start; margin-inline: 0; }
/* السطر الصغير فوق العنوان في أعلى سطره، فلا تزيد فراغات السطر على حشو المحطة */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--c2); letter-spacing: .2px; margin-bottom: 14px; vertical-align: top; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--light-grad); }
/* العنوان الكبير سطران على 1440 و1024 (القسم 3.1 من مراجعة Fable) */
/* العناوين الرئيسية أصغر قليلًا بملاحظة مهند (2026-11-08): كانت 72 و50 على الحاسوب العريض */
h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.14; font-weight: 700; letter-spacing: 0; text-wrap: balance; max-width: 980px; }
h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.2; font-weight: 700; text-wrap: balance; }
h3 { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 22px); color: var(--ink2); font-weight: 500; max-width: 720px; margin: 18px auto 0; text-wrap: pretty; }
.head.start .lead { margin-inline: 0; }
.card { background: var(--paper2); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--paper2); }
.tag.tmp { color: #8a4b00; border-color: #f1d49a; background: #fff6e3; }
/* وسم «بيانات تجريبية» في سطره تحت جهاز، بلا هامش مكتوب في الصفحة */
html[data-theme="dark"] .tag.tmp { color: #f3c77d; border-color: #6a4a12; background: #2a1f08; }

/* ---------- الأجهزة ---------- */
/* قاعدة الحاسوب أعرض من الغطاء بـ8.8٪، فلا يزيد الحاسوب على عرض الصفحة بين هامشيها مقسومًا على 1.11، فتبقى القاعدة داخلهما ولا يقصّها
   حد الشاشة. والحد وُضع لسطح لوحة المفاتيح السابق، وكان أعرض بـ11٪، فيتسع للقاعدة. ولا يمس هذا الحواسيب التي في عمود أو مشهد،
   لأنها أصغر من الحد. */
/* هندسة الحاسوب بنسبة من عرضه في كل موضع وعرض (قول مهند 2026-11-03: الحواف «يجب أن تكون صحيحة مش عشوائية»): الحاسوب حاوية استعلام،
   فزوايا الغطاء وإطاره وحلقة الشاشة وزوايا السطح بوحدات الحاوية cqw، وقيمها نسبة ما كان بالبكسل على عرض 940. */
.laptop { position: relative; width: 100%; max-width: calc((100vw - 2 * var(--gutter)) / 1.11); margin-inline: auto; container-type: inline-size; }
/* الغطاء معدن رصاصي بحافة أفتح قليلًا، وحول الشاشة حد أسود رفيع داخل المعدن */
.laptop .lid { position: relative; background: linear-gradient(160deg, var(--metal-hi), var(--metal) 52%, var(--metal-lo)); border-radius: 2.13cqw 2.13cqw .64cqw .64cqw; padding: 1.28cqw 1.28cqw 1.6cqw; box-shadow: inset 0 0 0 1px var(--metal-edge), var(--shadow); }
.laptop .screen { position: relative; border-radius: .85cqw; overflow: hidden; aspect-ratio: 16/10; background: #F6F7FB; box-shadow: 0 0 0 .53cqw var(--screen-ring); }
html[data-theme="dark"] .laptop .screen { background: #0F1630; }
.laptop .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop .screen .tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; }
/* المنظر الأمامي بقول مهند (القسم 18.11 من خطة الموقع): تحت الشاشة قاعدة رفيعة أعرض منها قليلًا بلون المعدن نفسه، وفي وسطها تجويف
   الفتح، بنسبة من عرض الحاسوب، بدل لوحة المفاتيح المرسومة من فوق */
.laptop .base { position: relative; height: 1.9cqw; margin: 0 -4.4%; border-radius: 0 0 2.2cqw 2.2cqw / 0 0 1.9cqw 1.9cqw; background: linear-gradient(180deg, var(--metal-hi), var(--metal) 45%, var(--metal-lo)); box-shadow: inset 0 1px 0 var(--metal-edge), 0 30px 44px -30px rgba(14,21,53,.5); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: .75cqw; transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw; background: var(--metal-lo); box-shadow: inset 0 1px 2px rgba(14,21,53,.25); }
.laptop .lid::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 38%); }
.laptop .shots { position: absolute; inset: 0; }
.laptop .shots img { position: absolute; inset: 0; opacity: 0; transform: translateX(6%) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); }
html[dir="rtl"] .laptop .shots img { transform: translateX(-6%) scale(.98); }
/* الصورة الظاهرة تملأ الشاشة في الاتجاهين: قاعدة الاتجاه أعلى من .on وحدها، فكانت الصورة الظاهرة في العربية تبقى مزاحة 6% ومصغرة،
   يُقص طرف النافذة ويظهر فراغ في الجهة الأخرى (ملاحظة مهند على القصة في 2026-11-03). */
.laptop .shots img.on, html[dir="rtl"] .laptop .shots img.on { opacity: 1; transform: none; z-index: 2; }

/* الهاتف بالمعدن نفسه، والشق أسود، وحول الشاشة حد أسود رفيع.
   هندسته من مالك واحد (قول مهند 2026-11-03: حواف الهاتف «في جميع الصور ومع جميع أحجام الشاشات يجب أن تكون صحيحة مش عشوائية»): المتغير --pw
   عرض الهاتف، ومنه الزاوية 15.3٪ والإطار 3.3٪ وزاوية الشاشة 12.7٪ وحلقتها 1٪، وهي نسب 46 و10 و38 و3 بكسل على عرض 300. وكل موضع يضبط --pw
   وحده، على الهاتف أو على حاويته، بقيم بالبكسل أو vw أو svh لا بالنسبة المئوية، لأن النسبة تُحسب للعرض على الحاوية وللزاوية على الهاتف. */
.phone { position: relative; width: var(--pw, 300px); border-radius: calc(var(--pw, 300px) * .153); background: linear-gradient(150deg, var(--metal-hi), var(--metal) 48%, var(--metal-lo) 78%, var(--metal-hi)); padding: calc(var(--pw, 300px) * .033); box-shadow: inset 0 0 0 1px var(--metal-edge), var(--shadow); }
.phone .scr { position: relative; border-radius: calc(var(--pw, 300px) * .127); overflow: hidden; aspect-ratio: 1080/2400; background: #0E1535; box-shadow: 0 0 0 max(1.5px, calc(var(--pw, 300px) * .01)) var(--screen-ring); }
/* صور الهاتف مقصوص منها شريط الحالة (Preview/Tools/CropPhoneStatusBar_Opus.ps1)، فتبدأ تحت شريط بارتفاع ما قُص (136 من 2400، أي 12.593% من
   العرض) تملؤه أول صفوف رأس التطبيق ممدودة من الصورة نفسها، بلا خط فاصل. وتقع الجزيرة في هذا الشريط فوق رأس التطبيق كما في الهاتف
   الحقيقي (القسم 7 من مراجعة Fable)، بنسبة من الشاشة فتستقر فيه بكل مقاس للهاتف. والشاشة بنسبة الهاتف 1080/2400، وصورته 1080/2264 تحت
   الشريط فلا يُقص منها شيء. ولو جُعلت الشاشة 1080/2264 لغطت الجزيرة عنوان التطبيق. */
.phone .scr img { box-sizing: border-box; width: 100%; height: 100%; object-fit: cover; padding-top: 12.593%; background-repeat: no-repeat; background-position: top; background-size: 100% 2000%; }
.phone .scr::before { content: ""; position: absolute; top: 1.133%; left: 50%; width: 27%; aspect-ratio: 3.58; transform: translateX(-50%); border-radius: 999px; background: var(--screen-ring); z-index: 4; pointer-events: none; }
.phone.sm { --pw: 224px; }
.phone .shots { position: absolute; inset: 0; }
.phone .shots img { position: absolute; inset: 0; opacity: 0; transform: translateY(4%); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.phone .shots img.on { opacity: 1; transform: none; z-index: 2; }

/* خط الضوء: الخط والهالة والنقطة المسافرة؛ يُرسم بالمواضع الحقيقية من site.js */
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.thread .line { fill: none; stroke: url(#lightGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 9px rgba(47,107,255,.55)); }
.thread .halo { fill: none; stroke: rgba(54,184,244,.22); stroke-width: 14; stroke-linecap: round; filter: blur(8px); }
/* المرساة مخفية حتى يحسب site.js موضعها (drawn)، فلا تظهر نقطة في زاوية المشهد قبل رسم الخط */
.thread .pin { fill: #fff; stroke: var(--c2); stroke-width: 3; opacity: 0; }
.thread.drawn .pin { opacity: 1; }
.thread .spark { fill: #fff; filter: drop-shadow(0 0 10px rgba(54,184,244,.95)) drop-shadow(0 0 22px rgba(47,107,255,.7)); }
.chip { position: absolute; z-index: 5; background: var(--paper2); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow3); display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--light-grad); box-shadow: 0 0 0 4px rgba(47,107,255,.12); flex: none; }
.chip.on { opacity: 1; transform: none; }

/* ---------- 1. الشاشة الأولى ---------- */
.hero { padding: 140px 0 40px; }
.hero .copy { max-width: 980px; margin-inline: auto; text-align: center; }
.hero .copy h1 { margin-inline: auto; }
.hero .cta { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 15px; color: var(--mute); }
/* الشاشة الأولى في الرئيسية (القسم 3.1 من مراجعة Fable، كما في المعاينة المعتمدة): حاسوب فيه «شبكة الفروع» يشغل نحو ثلثي العرض من
   جهة بداية القراءة، وهاتف أمامه من الجهة الأخرى على ثلثه السفلي، وخط الضوء من وسط شاشة الحاسوب إلى أعلى الهاتف، ورقاقة الخبر.
   والهاتف فوق الحاسوب دائمًا. يرتفع الحاسوب بظهوره، والهاتف والرقاقة يرتفعان بلا شفافية لأنهما فوقه (O8). الحركة في bindHero. */
.stage { position: relative; max-width: 1180px; height: 820px; margin: 48px auto 0; }
.stage .laptop { position: absolute; inset-inline-start: 0; top: 0; width: min(940px, 100%); max-width: none; margin: 0; }
.js .stage .laptop { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s var(--ease); }
.stage .phone { --pw: 300px; position: absolute; inset-inline-end: 72px; top: 150px; z-index: 2; }
.js .stage .phone { visibility: hidden; transform: translateY(48px); transition: transform .9s var(--ease) .35s, visibility 0s .35s; }
.js .stage.in .laptop { opacity: 1; transform: none; }
.js .stage.in .phone { visibility: visible; transform: none; }
/* وسم «بيانات تجريبية» في أسفل الشاشة من جهة بداية القراءة، لا فوق رأس نافذة البرنامج (O46) */
.stage .laptop .screen .tag { top: auto; bottom: 10px; }
.stage .thread { z-index: 1; }
.stage .thread .spark { opacity: 0; }
.stage .chip { inset-inline-end: 236px; top: 332px; z-index: 3; opacity: 1; visibility: hidden; transform: translateY(8px) scale(.97); transition: transform .5s var(--ease), visibility 0s; }
.stage .chip.on { visibility: visible; transform: none; }
/* قاعدة الحاسوب أعرض من الغطاء، فيبقى المشهد داخل هامش الصفحة حتى يتسع له */
@media (max-width: 1347px) { .stage { max-width: calc(100% - 2 * var(--gutter) - 104px); } }
@media (max-width: 1099px) {
  /* والعنوان العربي سطران هنا أيضًا: يصغر خطه مع العرض فيسعه سطر واحد، فيُقيَّد عرضه بخطه */
  html:not([lang="en"]) .hero .copy h1 { max-width: 14em; }
  .stage { height: 700px; }
  .stage .laptop { width: 86%; }
  .stage .phone { --pw: 250px; inset-inline-end: 40px; }
  .stage .chip { inset-inline-end: 180px; top: 300px; }
}
@media (max-width: 768px) {
  .stage { max-width: none; height: auto; margin-top: 24px; padding-inline: var(--gutter); }
  .stage .laptop { position: relative; width: 100%; max-width: calc((100vw - 2 * var(--gutter)) / 1.11); margin-inline: auto; }
  /* الهاتف عند جهة النهاية فوق زاوية الحاسوب كما على الحاسوب، وخط الضوء يصلهما هنا أيضًا (ملاحظة مهند) */
  .stage .phone { --pw: min(calc((100vw - 2 * var(--gutter)) * .44), 190px); position: relative; inset: auto; margin: -70px 0 0; margin-inline: auto 6%; }
  .stage .chip { position: relative; inset: auto; width: max-content; max-width: 100%; margin: 14px auto 0; }
}
@media (max-width: 520px) { .stage .chip { display: none; } }
/* مشهد الحاسوبين في قصة الإرسال والاستلام بـ/transfers (القسم 2.5 من خطة التنفيذ): OnCloud في الأعلى في الوسط، وحاسوبا متجرين على
   جانبيه، والهاتف تحته بينهما. «أرسل» يصعد بالضوء من المرسل إلى OnCloud، و«استلم» ينزل به إلى المستلم فتتغير شاشته ويرن الهاتف.
   المواضع والحركة في site.js (data-scene). ولا شفافية لعنصر فوق عنصر: ما يخفت يخفت بلونه لا بشفافيته. */
/* عرض المشهد --sw يسعه ارتفاع الشاشة مع شريط التحكم تحته، فيرى الزائر الزر والحاسوبين والخط الناقل معًا (ملاحظة مهند 2026-11-05). ومنه ارتفاع الحاسوب:
   عرضه 39٪ من المشهد وارتفاعه 0.724 من عرضه. والثوابت فوقه: OnCloud والفراغ تحته 104، والاسم والأرقام تحت الحاسوب 106؛ والشريط 62، والتنقل والهامشان 92. */
.cscene { --sw: min(var(--wrap), 100vw, max(760px, calc((100svh - 364px) * 3.54))); position: relative; max-width: var(--sw); height: calc(210px + var(--sw) * .2824); margin: 56px auto 0; padding-inline: var(--gutter); }
.cscene .slines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
/* طريق خافت ثابت تحت الضوء، فيبقى الربط بين الأجهزة ظاهرًا بين الدورات وقبل أن يضغط الزائر «أرسل» */
.cscene .slines .track { fill: none; stroke: var(--line2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.cscene .slines .track.p { stroke-width: 1.6; }
.cscene .slines .ln { fill: none; stroke: url(#sceneGrad); stroke-width: 3; stroke-linecap: round; transition: opacity .6s ease; }
.cscene .slines .ln.glow { stroke: rgba(54,184,244,.2); stroke-width: 12; }
.cscene .slines .ln.p { stroke-width: 2; }
.cscene .slines .ln.p.glow { stroke-width: 8; }
.cscene .slines.rest .ln { opacity: 0; }
.cscene .slines .spark { opacity: 0; transition: opacity .25s; }
.cscene .slines .spark .core { fill: #fff; }
.cscene .slines .spark .aura { fill: url(#sceneSpark); }
.cscene .snode { position: absolute; top: 0; left: 0; right: 0; width: max-content; margin-inline: auto; z-index: 5; padding: 18px 28px; border-radius: 24px; background: var(--paper2); border: 1px solid var(--line); box-shadow: var(--shadow2); }
.cscene .snode img { height: 35px; width: auto; }
.cscene .snode::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; }
.cscene .snode.pulse::after { animation: nodePulse 1s ease-out; }
@keyframes nodePulse { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,107,255,.4); } 100% { opacity: 0; box-shadow: 0 0 0 24px rgba(47,107,255,0); } }
/* قاعدة الحاسوب أعرض من الغطاء، فيبتعد كل حاسوب عن حافته بقدر ما تزيد قاعدته، ولا تلامس القاعدة حافة الشاشة (O41) */
.cscene .sstore { position: absolute; top: 104px; width: 39%; z-index: 3; }
.cscene .sstore.a { inset-inline-start: calc(var(--gutter) + 2.15%); }
.cscene .sstore.b { inset-inline-end: calc(var(--gutter) + 2.15%); }
.cscene .sstore .laptop .shots img { transform: none; transition: opacity .7s var(--ease); }
.cscene .sstore .where { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 16px; font-size: 15.5px; font-weight: 600; color: var(--ink2); }
.cscene .sstore .where i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); transition: background .4s, box-shadow .4s; }
.cscene .sstore.sending .where i, .cscene .sstore.receiving .where i { background: var(--c2); box-shadow: 0 0 0 4px rgba(47,107,255,.14); }
/* عرض هاتف المشهد --pw على حاويته، فيرثه الهاتف بزواياه وإطاره */
.cscene .sphone { --pw: calc(39px + var(--sw) * .13); position: absolute; top: 122px; left: 0; right: 0; width: var(--pw); margin-inline: auto; z-index: 4; }
.cscene .sphone .phone.ring { animation: ring .75s var(--ease); }
@keyframes ring { 0%, 100% { transform: none; } 12% { transform: translateX(-3px) rotate(-2.2deg); } 26% { transform: translateX(3px) rotate(2.2deg); } 40% { transform: translateX(-2px) rotate(-1.4deg); } 54% { transform: translateX(2px) rotate(1.4deg); } 68% { transform: translateX(-1px) rotate(-.6deg); } }
/* الدخول: يرتفع كل جزء قليلًا حين يظهر المشهد، ثم يظهر الطريق بينها */
.js .cscene .snode, .js .cscene .sstore, .js .cscene .sphone { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform 1s var(--ease); }
.cscene .sstore.b { transition-delay: .12s; }
.cscene .sphone { transition-delay: .3s; }
.js .cscene.in .snode, .js .cscene.in .sstore, .js .cscene.in .sphone { opacity: 1; transform: none; }
.js .cscene .slines { opacity: 0; transition: opacity .6s ease 1.4s; }
.js .cscene.in .slines { opacity: 1; }

/* ---------- 2. الفكرة في سطر ---------- */
.idea { padding: 40px 0 64px; }
/* عنوان المحطة ظاهر فوق الرسم، والرسم أضيق قليلًا بلا فراغ تحته (القسم 3.2 من مراجعة Fable) */
.idea h2 { text-align: center; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 28px; }
.idea .howpath .hpv.wide { max-width: 960px; margin-inline: auto; }

/* ---------- 3. القصة بالتمرير ---------- */
.scrolly { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 60px; align-items: start; }
/* القصة كما في المعاينة المعتمدة (القسم 3.3 من مراجعة Fable): الخطوات في عمود بداية القراءة بلا فراغ قبل أولها ولا بعد آخرها،
   والمشهد المثبت بجوارها، ومراقب المنتصف يحدد الخطوة. */
.steps { padding: 8vh 0 12vh; }
.step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s; }
/* التخفيت حتى يصل القارئ الخطوة مع السكربت وحده، فبلا site.js تظهر كاملة (WEB-41 في WEB-40، الخطة الثانية 2026-11-22). ومثله أخواتها الثلاث أدناه. */
.js .step { opacity: .42; }
.js .step.on { opacity: 1; }
.step p { font-size: 18px; color: var(--ink2); margin-top: 10px; max-width: 34ch; }
.where { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--mute); margin-bottom: 8px; }
.where b { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); transition: background .4s, box-shadow .4s; flex: none; }
.step.on .where b { background: var(--light-grad); box-shadow: 0 0 0 4px rgba(47,107,255,.14); }
.pin { position: sticky; top: 110px; height: calc(100vh - 150px); min-height: 600px; }
/* المشهد: حاسوب وهاتف أمامه تتغير شاشاتهما مع الخطوات الثلاث، وخط الضوء من شاشة الحاسوب إلى أعلى الهاتف في الثانية، ورقاقة الوصول
   في الثالثة. والجهاز الخامل يخفت بطبقة ورق فوق شاشته، شفافيتها لها وحدها لا للجهاز (القسم 2.5 من خطة التنفيذ). */
.duo { position: relative; width: 100%; height: 100%; }
.duo .laptop { position: absolute; inset-inline-start: 0; top: 40px; width: min(640px, 78%); max-width: none; margin: 0; }
.duo .phone { position: absolute; inset-inline-end: 0; bottom: 0; z-index: 2; }
.duo .phone .scr::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--paper); opacity: 0; transition: opacity .6s; pointer-events: none; }
.duo[data-step="1"] .phone .scr::after { opacity: .5; }
.duo .thread { z-index: 1; }
.duo .thread .line, .duo .thread .halo { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.2s var(--ease); }
.duo[data-step="2"] .thread .line, .duo[data-step="2"] .thread .halo, .duo[data-step="3"] .thread .line, .duo[data-step="3"] .thread .halo { stroke-dashoffset: 0; }
.duo .spark { opacity: 0; transition: opacity .4s; }
.duo[data-step="2"] .spark { opacity: 1; }
.duo .chip { inset-inline-start: 0; bottom: 88px; }
.duo[data-step="3"] .chip { opacity: 1; transform: none; }
.duo .rail { inset-inline-end: 240px; }
.rail { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; display: flex; justify-content: center; align-items: center; font-size: 14.5px; color: var(--mute); }
.rail span { display: flex; align-items: center; gap: 8px; }
.rail span b { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); background: var(--paper2); transition: all .4s; }
.rail span.on { color: var(--ink); font-weight: 600; }
.rail span.on b { border-color: transparent; background: var(--light-grad); box-shadow: 0 0 0 4px rgba(47,107,255,.14); }
.rail hr { width: 70px; height: 2px; border: 0; background: var(--line); margin: 0 12px; }

/* ---------- 4. جدار الوحدات ---------- */
.wall { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.wall .rail2 { display: grid; gap: 8px; position: sticky; top: 110px; }
.wall .rail2 button { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); position: relative; overflow: hidden; transition: border-color .25s, box-shadow .25s; min-height: 64px; }
.wall .rail2 button:hover { border-color: var(--line2); }
.wall .rail2 button.on { border-color: var(--c2); box-shadow: var(--shadow3); }
.wall .rail2 .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c2); background: linear-gradient(135deg, rgba(54,184,244,.14), rgba(107,63,214,.14)); }
.wall .rail2 .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wall .rail2 b { display: block; font-size: 15.5px; }
.wall .rail2 .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.wall .rail2 button.on .prog i { display: block; height: 100%; width: 0; background: var(--light-grad); animation: prog 6s linear forwards; }
.wall.paused .rail2 button.on .prog i { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.wall .viewer { position: sticky; top: 110px; }
/* بين 901 و1180 يبدأ عمود الجدار عند هامش الصفحة، وقاعدة الحاسوب أعرض من الغطاء بـ4.4٪ في كل جهة، فيصغر الحاسوب قليلًا لتبقى قاعدته داخل الصفحة */
@media (min-width: 901px) and (max-width: 1180px) { .wall .viewer .laptop { width: 92%; } }
.wall .cap { margin-top: 22px; font-size: 17px; color: var(--ink2); min-height: 3.4em; text-align: center; max-width: 60ch; margin-inline: auto; }
.wall .more { text-align: center; }

/* ---------- 5. الهاتف ---------- */
.phoneshow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.phoneshow .pinp { position: sticky; top: 110px; display: grid; place-items: center; min-height: calc(100vh - 150px); }
.phoneshow .phone { transform: rotate(-4deg); transition: transform .8s var(--ease); }
.phoneshow.live .phone { transform: rotate(0); }
/* كل بند أطول من نصف الشاشة فيعبر منتصفها، فتتبدل صورة الهاتف للبنود الستة ويبقى مثبتًا حتى آخرها (القسم 3.4 من مراجعة Fable) */
.phoneshow .plist { display: grid; gap: 14px; padding: 4vh 0 10vh; }
.phoneshow .plist li { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .4s; cursor: pointer; }
.js .phoneshow .plist li { opacity: .5; }
.js .phoneshow .plist li.on { opacity: 1; }
.phoneshow .plist .pcard { padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.phoneshow .plist li.on .pcard { border-color: var(--line); background: var(--paper2); box-shadow: var(--shadow3); }
.phoneshow .plist b { display: block; font-size: 18px; margin-bottom: 4px; }
.phoneshow .plist span { color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.phoneshow .hint { font-size: 14px; color: var(--mute); text-align: center; margin-top: 14px; display: none; }
/* تلميح السحب للمس وحده، لا لمن يستعمل الفأرة (القسم 3.4 من مراجعة Fable) */
@media (max-width: 768px) and (hover: hover) { .phoneshow .hint { display: none !important; } }

/* ---------- 6. يومك مع OnCloud ---------- */
.day { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: center; }
.day .timeline { position: relative; display: grid; gap: 6px; }
.day .timeline::before { content: ""; position: absolute; inset-inline-start: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.day .tl { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 10px 0; transition: opacity .4s; cursor: pointer; }
.js .day .tl { opacity: .55; }
.js .day .tl.on { opacity: 1; }
.day .tl .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); border: 2px solid var(--line2); color: var(--mute); position: relative; z-index: 1; transition: all .4s; }
.day .tl.on .dot { border-color: transparent; background: var(--light-grad); color: #fff; box-shadow: 0 0 0 5px rgba(47,107,255,.14); }
.day .tl .dot svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day .tl small { display: block; font-size: 13px; color: var(--mute); }
.day .tl b { display: block; font-size: 17px; }
.day .tl p { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.day .phone { margin-inline: auto; }
/* الدخول بالبصمة في صفحة التطبيق: نافذة الدخول فوق شاشة حقيقية من التطبيق، والشاشة خلفها مطفأة قليلًا، وحلقة البصمة تنبض هادئة */
.phone.signin .scr img { filter: brightness(.7) blur(1.5px); transform: scale(1.04); transform-origin: top; }
.phone .bio { position: absolute; inset-inline: 12px; bottom: 22px; z-index: 5; background: #FFFFFF; color: #0E1535; border-radius: 22px; padding: 18px 14px 16px; display: grid; justify-items: center; gap: 4px; text-align: center; box-shadow: 0 18px 40px -16px rgba(14,21,53,.5); }
.phone .bio .fp { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #2F6BFF; background: rgba(47,107,255,.1); margin-bottom: 6px; animation: bioPulse 2.6s ease-in-out infinite; }
.phone .bio .fp svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone .bio b { font-size: 14.5px; line-height: 1.35; }
.phone .bio span { font-size: 12.5px; color: #4B557E; line-height: 1.45; }
html[data-theme="dark"] .phone .bio { background: #121A3C; color: #F3F5FF; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
html[data-theme="dark"] .phone .bio .fp { color: #6FA0FF; background: rgba(111,160,255,.14); }
html[data-theme="dark"] .phone .bio span { color: #B9C0DE; }
@keyframes bioPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,107,255,.28); } 50% { box-shadow: 0 0 0 10px rgba(47,107,255,0); } }

/* ---------- 7. بلا إنترنت ---------- */
.offline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.offline .panel { background: var(--paper2); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow2); display: grid; gap: 22px; }
.switch { display: flex; align-items: center; gap: 14px; }
.switch button { width: 64px; height: 36px; border-radius: 999px; background: var(--ok); position: relative; transition: background .3s; flex: none; }
.switch button::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch button[aria-checked="true"] { background: var(--mute); }
.switch button[aria-checked="true"]::after { transform: translateX(28px); }
.switch .lbl { font-weight: 700; font-size: 18px; }
.switch .lbl.off { color: var(--mute); }
/* العدّادان عمودان في البطاقة نفسها بخط بينهما، لا بلاطتان داخل بطاقة (العيب 33 عند الوكيل) */
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.counters div { padding: 4px 0; }
.counters .pend { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.counters small { display: block; font-size: 14px; color: var(--mute); }
.counters b { display: block; font-size: 38px; font-family: var(--font-num); line-height: 1.1; }
.counters .pend b { color: var(--warn); }
.offline .status { font-size: 16px; color: var(--ink2); min-height: 2.6em; display: flex; align-items: center; gap: 10px; }
.offline .status i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.offline.off .status i { background: var(--mute); }
.offline .status i.sync { background: var(--c2); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,107,255,.4); } 50% { box-shadow: 0 0 0 8px rgba(47,107,255,0); } }
.honest { margin-top: 30px; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink2); font-size: 16px; display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin-inline: auto; }
.honest svg { width: 22px; height: 22px; flex: none; stroke: var(--c2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }

/* ---------- 8. الخريطة ---------- */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.libya { width: 100%; height: auto; }
.libya .land { fill: var(--paper2); stroke: var(--line2); stroke-width: 1.5; }
.libya .link { fill: none; stroke: url(#lightGrad2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 3s linear infinite; opacity: .9; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.libya .pinb { cursor: pointer; }
.libya .pinb circle.r { fill: var(--c2); stroke: #fff; stroke-width: 3; transition: r .3s; }
.libya .pinb circle.h { fill: rgba(47,107,255,.15); animation: halo 2.4s ease-out infinite; }
.libya .pinb.off circle.r { fill: var(--mute); }
.libya .pinb.off circle.h { animation: none; fill: transparent; }
.libya .pinb circle.hit { fill: transparent; }
.libya .labels text { font-family: var(--font-ar); font-size: 14px; font-weight: 600; fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.libya .pinb.on circle.r, .libya .pinb:hover circle.r { r: 9; }
@keyframes halo { 0% { r: 10; opacity: .9; } 100% { r: 26; opacity: 0; } }
.mapcards { display: grid; gap: 10px; }
.mapcards .card { padding: 16px 18px; display: grid; gap: 4px; transition: opacity .35s, border-color .3s; cursor: pointer; }
.mapcards .card.on { border-color: var(--c2); }
.js .mapcards .card { opacity: .55; }
.js .mapcards .card.on { opacity: 1; }
.mapcards .card b { font-size: 17px; }
.mapcards .card span { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.mapcards .card i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-inline-end: 6px; }
.mapcards .card.off i { background: var(--mute); }

/* ---------- 9. الفريق والأمان ---------- */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.roles .card { display: grid; gap: 10px; padding: 22px; }
.roles .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c2); background: linear-gradient(135deg, rgba(54,184,244,.14), rgba(107,63,214,.14)); }
.roles .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.roles b { font-size: 18px; }
.roles span { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.secure { margin-top: 14px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper2); }
.secure .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ok); background: rgba(30,158,90,.12); }
.secure .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secure b { display: block; font-size: 16px; }
.secure span { font-size: 15px; color: var(--ink2); }

/* ---------- 10. الباقات ---------- */
.packages { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.tiers { display: grid; gap: 8px; }
.tiers li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper2); transition: border-color .3s, box-shadow .3s; }
.tiers li.on { border-color: var(--c2); box-shadow: var(--shadow3); }
.tiers li b { font-size: 16.5px; }
/* المبلغ والعملة تفصلهما مسافة في النص نفسه (العيب 32 عند الوكيل)، و«بعرض سعر» سطر واحد لا تلتف كلمتاه على الهاتف (العيب 13) */
.tiers li .price { font-family: var(--font-num); font-size: 22px; font-weight: 600; white-space: nowrap; flex: none; }
.tiers li .price small { font-family: var(--font-ar); font-size: 13px; color: var(--mute); font-weight: 400; }
.incl { margin-top: 14px; display: grid; gap: 6px; color: var(--ink2); font-size: 15px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; }
.incl li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--light-grad); flex: none; margin-top: 10px; }
.calc { background: var(--paper2); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow2); display: grid; gap: 18px; position: sticky; top: 110px; }
.calc label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 16px; }
.calc label output { font-family: var(--font-num); color: var(--c2); }
.calc input[type="range"] { width: 100%; accent-color: var(--c2); height: 36px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 40px; font-size: 20px; color: var(--ink2); }
.stepper button:hover { background: var(--paper3); color: var(--ink); }
.stepper output { min-width: 56px; text-align: center; font-family: var(--font-num); font-size: 18px; font-weight: 600; }
.total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.total small { display: block; font-size: 14px; color: var(--mute); }
.total b { font-family: var(--font-num); font-size: 42px; line-height: 1.1; font-weight: 600; }
.total .cur { font-family: var(--font-ar); font-size: 16px; color: var(--ink2); font-weight: 400; }
.calc .note { font-size: 14px; color: var(--mute); }
.unavail { padding: 26px; border-radius: 22px; border: 1px dashed var(--line2); color: var(--ink2); text-align: center; display: grid; gap: 14px; justify-items: center; }

/* ---------- 11. ابدأ ---------- */
.startsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.startsteps .card { display: grid; gap: 10px; align-content: start; }
.startsteps .n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--light-grad); font-family: var(--font-num); font-weight: 600; font-size: 18px; }
.startsteps b { font-size: 19px; }
.startsteps p { color: var(--ink2); font-size: 15.5px; line-height: 1.65; }
.stores { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.stores a { display: inline-flex; min-height: 44px; }
.stores a img, .stores a svg { height: 52px; width: auto; }
/* صورة Google Play الرسمية (646×250) تحمل هامشًا شفافًا 41 بكسلًا من كل جهة حول صندوقها (563×167)، فتُعرض أعلى ويُطوى هامشها بهامش سالب
   حتى يساوي صندوقها الظاهر صندوق شارة App Store في الارتفاع (52) ويصطفا على خط واحد */
.stores a img.gp { height: 78px; margin: -13px; max-width: none; }
.desktopline { margin-top: 18px; text-align: center; color: var(--ink2); font-size: 15.5px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.trialnote { text-align: center; color: var(--mute); font-size: 15px; margin-top: 14px; max-width: 760px; margin-inline: auto; }

/* ---------- 12. التذييل ---------- */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--paper3); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.fgrid .brand img { height: 52px; width: auto; }
.fgrid .brand p { margin-top: 16px; color: var(--ink2); font-size: 15.5px; max-width: 36ch; }
/* عناوين أعمدة التذييل h3 بعد h2 الصفحة، فلا قفز في ترتيب العناوين لقارئ الشاشة (Lighthouse heading-order) */
.fgrid h3 { font-size: 15px; color: var(--mute); margin-bottom: 12px; font-weight: 600; }
.fgrid ul { display: grid; gap: 8px; }
.fgrid ul a { display: inline-flex; min-height: 32px; align-items: center; color: var(--ink2); font-size: 15.5px; transition: color .2s; }
.fgrid ul a:hover { color: var(--ink); }
/* المنصات من اللوحة، وهي حتى سبع: عمود الشعار نحو 290 بكسل لا يسع سبعًا بمقاسها في سطر، فأربع في السطر ثم البقية، لا ستًّا ثم واحدة وحدها
   (قسم 5 من تقرير خانات اللوحة 2026-11-27). */
.social { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px; margin-top: 14px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink2); transition: color .2s, border-color .2s; }
.social a:hover { color: var(--c2); border-color: var(--c2); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.copy-line { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); }

/* ---------- العرض الكامل للصورة ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(10,16,36,.86); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .close { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 12px; background: var(--paper2); color: var(--ink); display: grid; place-items: center; }
.lightbox .close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.zoomable { cursor: zoom-in; }
/* العرض الكامل على التابلت والهاتف: صورة البرنامج داخل الحاسوب تصغر كاملة كما على الحاسوب ولا تُكبَّر داخل إطاره (قول مهند)،
   ولمسة تفتحها بعرض تُقرأ فيه جداولها عند منطقتها المعلنة في ProgramShots، يسحبها الزائر من هناك. */
@media (max-width: 768px) {
  .lightbox { direction: ltr; overflow: auto; align-items: flex-start; justify-content: flex-start; padding: 72px 0 24px; }
  .lightbox img { width: 1100px; max-width: none; max-height: none; margin: auto; border-radius: 0; }
  .lightbox .close { position: fixed; }
}

/* ---------- Blazor ---------- */
#blazor-error-ui { display: none; position: fixed; bottom: 16px; inset-inline: 16px; z-index: 90; background: var(--paper2); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow2); }
#blazor-error-ui a { color: var(--c2); font-weight: 600; margin-inline-start: 8px; }
#components-reconnect-modal { font-family: var(--font-ar); }

/* ---------- التناغم مع الشاشات: 1280 و1024 و768 و390 ---------- */
@media (max-width: 1280px) {
  .nav .wrap { gap: 20px; }
  .nav nav > ul { gap: 18px; font-size: 15.5px; }
}
/* حتى 1100 تضيق المسافات قليلًا فيبقى الشريط سطرًا واحدًا باللغتين حتى يظهر زر القائمة. وبعد «اشتراكي» لا تسع الإنجليزيةَ سطرًا واحدًا
   إلا 1013 فما فوق، فيظهر زر القائمة تحت 1024 في اللغتين، ولا ينضغط سهم «المزايا» (قبول جلسة المتاجر 2026-11-13). */
/* والشعار المقصوص أعرض من سابقه وهو بمقاسه، فلا تسع الإنجليزيةُ الروابطَ على 1024 إلا بفجوة 10 ثم خطها 15 (قرار المدير 2026-11-26 على القسم 5
   من تقرير شعار الرأس: الفجوة ثم الخط درجة واحدة لا تنزل عن 15). */
@media (max-width: 1100px) {
  .nav .wrap { gap: 14px; }
  .nav nav > ul { gap: 10px; font-size: 15px; }
}
@media (max-width: 1023px) {
  /* التابلت والهاتف: «ابدأ تجربتك» ومفتاح اللغة ظاهران في الرأس، والمظهر في الدرج (O9)، وأهداف اللمس 44 (O10) */
  .nav nav, .nav .tools .theme { display: none; }
  .burger { display: inline-flex; }
  /* الأدوات عند طرف الرأس الآخر، وكان الشريط المخفي يدفعها إليه */
  .nav .tools { margin-inline-start: auto; }
  .nav .tools .lang { min-height: 44px; }
  .nav .tools > .btn.sm { min-height: 44px; }
  .drawer .tools { display: flex; gap: 12px; }
  .drawer .tools .lang, .drawer .tools .theme { display: inline-flex; }
}
@media (max-width: 1100px) {
  .hero { padding-top: 140px; }
  /* التابلت: المشهد نفسه أصغر، والهاتف بين الحاسوبين لا يغطي شاشتيهما */
  .cscene .snode { padding: 14px 22px; }
  .cscene .snode img { height: 29px; }
  .cscene .sstore .where { font-size: 14.5px; margin-top: 12px; }
  .scrolly { grid-template-columns: 300px minmax(0, 1fr); gap: 30px; }
  .pin { min-height: 520px; }
  .duo .phone { --pw: 190px; }
  .wall { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
  .phoneshow { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .day { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .day .phone { --pw: 240px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero .cta { gap: 16px; }
  /* الهاتف: المشهد كاملًا بأجزائه الأربعة: OnCloud في الأعلى، والحاسوبان جنبًا إلى جنب، والهاتف تحتهما في الوسط */
  .cscene { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "node node" "a b" "phone phone"; column-gap: 22px; row-gap: 34px; height: auto; margin-top: 40px; padding-bottom: 10px; padding-inline: calc(var(--gutter) + 3%); }
  .cscene .snode, .cscene .sstore, .cscene .sphone { position: relative; inset: auto; top: auto; margin: 0; }
  .cscene .snode { grid-area: node; justify-self: center; padding: 12px 20px; border-radius: 18px; }
  .cscene .snode img { height: 24px; }
  .cscene .sstore { width: auto; }
  .cscene .sstore.a { grid-area: a; inset-inline-start: auto; }
  .cscene .sstore.b { grid-area: b; inset-inline-end: auto; }
  .cscene .sstore .where { font-size: 13px; margin-top: 10px; gap: 7px; }
  .cscene .sphone { grid-area: phone; justify-self: center; --pw: 172px; margin-top: -10px; }
  /* على الهاتف يبقى المشهد مثبتًا فوق النص مضغوطًا، والخطوات تمر تحته فتتبدل شاشاته مع الأقرب إلى المنتصف (القسم 3.3 من مراجعة Fable) */
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly .pin { order: -1; position: sticky; top: 64px; z-index: 3; height: auto; min-height: 0; padding: 8px 0 20px; background: var(--paper); }
  .duo { height: auto; }
  .duo .laptop { position: relative; inset: auto; width: 100%; max-width: calc((100vw - 2 * var(--gutter)) / 1.11); margin-inline: auto; }
  .duo .phone { --pw: 118px; position: absolute; inset-inline-end: 0; bottom: -8px; }
  .duo .thread, .duo .chip, .duo .rail { display: none; }
  .steps { padding: 0; }
  .step { min-height: auto; padding: 18px 0; }
  .wall { grid-template-columns: 1fr; gap: 16px; }
  /* أزرار الوحدات شبكة من عمودين تظهر كلها، لا شريطًا يتمرر جانبيًا (ملاحظة مهند) */
  .wall .rail2 { position: relative; top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wall .rail2 button { grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 10px; min-height: 50px; border-radius: 14px; }
  .wall .rail2 .ico { width: 28px; height: 28px; border-radius: 9px; }
  .wall .rail2 .ico svg { width: 16px; height: 16px; }
  .wall .rail2 b { font-size: 14px; line-height: 1.35; }
  .wall .viewer { position: relative; top: 0; }
  /* «من هاتفك» و«يومك»: هاتف يسع الشاشة، وبجواره ما يُلمس فيتبدل أمام العين، لا هاتف بطول الشاشة ولا نقاط بلا معنى (ملاحظة مهند) */
  .phoneshow { grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
  .phoneshow .pinp { position: relative; top: 0; min-height: 0; }
  .phoneshow .phone { --pw: min(170px, 42vw, 25svh); transform: none; }
  .phoneshow .hint { display: block; font-size: 12.5px; margin-top: 10px; max-width: 170px; }
  .phoneshow .plist { display: grid; gap: 4px; padding: 0; }
  .phoneshow .plist li { min-height: 0; }
  .js .phoneshow .plist li { opacity: 1; }
  .phoneshow .plist .pcard { padding: 9px 12px; border-radius: 12px; }
  .phoneshow .plist b { font-size: 15px; margin-bottom: 0; }
  .phoneshow .plist span { display: none; font-size: 13.5px; line-height: 1.5; margin-top: 4px; }
  .phoneshow .plist li.on span { display: block; }
  .day { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .day .phone { --pw: min(150px, 38vw, 24svh); }
  .day .timeline { gap: 0; }
  .day .timeline::before { inset-inline-start: 14px; top: 16px; bottom: 16px; }
  .day .tl { grid-template-columns: 30px 1fr; gap: 10px; padding: 7px 0; }
  .day .tl .dot { width: 30px; height: 30px; }
  .day .tl .dot svg { width: 14px; height: 14px; }
  .day .tl small { font-size: 12px; }
  .day .tl b { font-size: 14.5px; line-height: 1.35; }
  .day .tl p { display: none; }
  .offline { grid-template-columns: 1fr; gap: 24px; }
  /* الخريطة على الهاتف والتابلت ثابتة أعلى الشاشة بارتفاع يترك للمواقع مكانًا تحتها، فتُلمس المواقع وتضيء نقطتها أمام العين
     (ملاحظة مهند 2026-11-03: كانت الخريطة تخرج من الشاشة حين يُنقر الموقع تحتها). وجسمها بلون الورق فلا يُرى ما يمر تحتها. */
  .mapwrap { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .libya { position: sticky; top: 64px; z-index: 3; display: block; width: auto; max-width: 100%; height: min(38svh, 320px); margin-inline: auto; padding: 6px 0 10px; box-sizing: content-box; background: var(--paper); }
  .mapcards { gap: 8px; }
  .mapcards .card { padding: 10px 14px; }
  .js .mapcards .card { opacity: .7; }
  .mapcards .card span { display: none; font-size: 14px; }
  .mapcards .card.on span { display: block; }
  /* الخريطة تُصغَّر إلى نصف مقاسها تقريبًا على الهاتف، فتكبر أسماء المواقع ودبابيسها وخيوطها داخل الرسم لتبقى مقروءة */
  .libya .labels text { font-size: 28px; stroke-width: 8px; }
  .libya .pinb circle.hit { r: 50; }
  .libya .pinb circle.r { r: 12; stroke-width: 5; }
  .libya .pinb circle.h { r: 18; }
  .libya .pinb.on circle.r, .libya .pinb:hover circle.r { r: 15; }
  .libya .link { stroke-width: 4; stroke-dasharray: 9 12; }
  .roles { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; }
  .calc { position: relative; top: 0; }
  .startsteps { grid-template-columns: 1fr; }
  /* التذييل على التابلت عمودان لا عمود طويل، وعمود واحد على الهاتف */
  .fgrid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .copy-line { flex-direction: column; }
  .nav .logo img, .nav .logo svg { height: 46px; }
  .nav.solid .logo img, .nav.solid .logo svg { height: 40px; }
  .nav .wrap { gap: 12px; }
  .nav .tools { gap: 8px; }
}
@media (max-width: 420px) {
  h1 { font-size: 33px; }
  /* على الهاتف يسع الرأس الشعار و«ابدأ تجربتك» وزر القائمة في سطر واحد باللغتين حتى عرض 360، ومفتاح اللغة في القائمة الجانبية */
  .nav .wrap { gap: 8px; }
  .nav .tools { gap: 6px; }
  .nav .logo img, .nav .logo svg { height: 40px; }
  .nav.solid .logo img, .nav.solid .logo svg { height: 38px; }
  /* ومفتاح اللغة في القائمة الجانبية على الهاتف، فيبقى الشعار بمقاسه (البند 4 من القسم 5 في تقرير شعار الرأس، اعتمده المدير 2026-11-26). */
  .nav .tools .lang { display: none; }
  .nav .tools > .btn.sm { padding-inline: 14px; font-size: 15px; }
  .cscene .sphone { --pw: 160px; }
  .counters b { font-size: 30px; }
  .total b { font-size: 34px; }
}
@media (max-width: 380px) {
  .nav .logo img, .nav.solid .logo img, .nav .logo svg, .nav.solid .logo svg { height: 38px; }
  .nav .tools > .btn.sm { padding-inline: 12px; font-size: 14px; }
}

/* ---------- صفحات الخطوة 4: رؤوس الصفحات وأقسام المزايا وأزرار الصور ومعرض الهاتف والرحلة التفاعلية وشبكة الفروع (الأقسام 7 و8 و11 من خطة الموقع) ---------- */
.hero.page { padding-bottom: 20px; }
.hero.page .copy .eyebrow { justify-content: center; }
.hero .ribbon { margin-top: 54px; }
/* قصاصة شريط تبويب OnCloud من صورة البرنامج (O28): من التبويبات إلى أسماء المجموعات، y من 44 إلى 170 من 900 */
.ribbon .ribcut { position: relative; overflow: hidden; aspect-ratio: 1440 / 126; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow2); background: var(--paper2); }
.ribbon .ribcut img { display: block; width: 100%; height: auto; margin-top: -3.056%; }
.ribbon .ribcut .tag { position: absolute; top: 8px; inset-inline-start: 8px; }
@media (max-width: 768px) {
  .ribbon .ribcut { aspect-ratio: auto; height: 116px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .ribbon .ribcut img { width: 1326px; max-width: none; margin-top: -40.5px; }
}
.hero .ribbon .cap { text-align: center; margin-top: 18px; color: var(--ink2); font-size: 16px; }
.groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.groups li { background: var(--paper2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.groups li b { font-size: 15.5px; }
.groups li span { font-size: 14px; color: var(--ink2); line-height: 1.6; }

/* بين قسمي مزية مسافة محطة من السلّم نفسه */
.features .feature + .feature { margin-top: clamp(56px, 6.6vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature.flip .ftext { order: 2; }
.feature.flip .fvisual { order: 1; }
.feature .ftext h2 { font-size: clamp(26px, 2.6vw, 37px); }
.feature .ftxt { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--ink2); max-width: 54ch; line-height: 1.75; }
.fpoints { margin-top: 18px; display: grid; gap: 10px; }
.fpoints li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.fpoints li i { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 10px; border-radius: 50%; background: var(--light-grad); }
.feature .more { margin-top: 18px; }
.fvisual { min-width: 0; }
.phonewrap { display: grid; place-items: center; }

/* أزرار الصور فوق الحاسوب المحمول: سلوك جدار الوحدات نفسه بشكل رقائق */
.wall.tabs { grid-template-columns: 1fr; gap: 16px; margin-top: 0; }
.wall.tabs .rail2 { position: static; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wall.tabs .rail2 button { grid-template-columns: 1fr; padding: 9px 16px 11px; border-radius: 999px; min-height: 44px; }
.wall.tabs .rail2 b { font-size: 15px; white-space: nowrap; }
.wall.tabs .rail2 .prog { left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; }
.wall.tabs .viewer { position: static; }

/* صفحة التطبيق */
.apphero .duo2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.apphero .copy.start { text-align: start; margin: 0; max-width: none; }
.apphero .copy.start .lead { margin-inline: 0; }
.stores.start { justify-content: flex-start; }
.heroPhone { display: grid; place-items: center; }
.phone.lg { --pw: 340px; }
.gallery { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 48px; align-items: center; }
.gstage { display: grid; justify-items: center; gap: 14px; }
.gscene { perspective: 1400px; position: relative; padding-bottom: 36px; }
.phone.g { --pw: 300px; transform: var(--drag, none); transition: transform .55s var(--ease); will-change: transform; }
.phone.g .scr { perspective: 900px; }
.phone.g .shots img { transform: rotateY(38deg) translateX(34%); transition: transform .6s var(--ease), opacity .5s; }
.phone.g .shots img.on { transform: none; }
.phone.g .shots img.before { transform: rotateY(-38deg) translateX(-34%); }
.glass { position: absolute; left: 10%; right: 10%; bottom: 2px; height: 30px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(47,107,255,.28), rgba(14,21,53,0) 70%); filter: blur(8px); }
.gnav { display: flex; align-items: center; gap: 14px; }
.gbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.gbtn:hover { border-color: var(--c2); transform: translateY(-1px); }
.gbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .gbtn svg { transform: scaleX(-1); }
.gdots { display: flex; gap: 6px; }
.gdots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line2); transition: width .3s, background .3s; }
.gdots i.on { width: 20px; background: var(--light-grad); }
.gstage .hint { font-size: 14px; color: var(--mute); }
/* تلميح السحب للمس وحده، لا لمن يستعمل الفأرة (القسم 4.4 من مراجعة Fable) */
@media (hover: hover) { .gstage .hint { display: none; } }
.glist { display: grid; gap: 8px; }
.glist li { padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; cursor: pointer; display: grid; gap: 2px; transition: background .3s, border-color .3s, box-shadow .3s; }
.glist li b { font-size: 16.5px; }
.glist li span { font-size: 15px; color: var(--ink2); line-height: 1.55; }
.glist li.on { background: var(--paper2); border-color: var(--line); box-shadow: var(--shadow3); }
.glist li:focus-visible { outline: 2px solid var(--c2); outline-offset: 2px; }
.twophones { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.twophones figure { display: grid; gap: 12px; justify-items: center; }
.twophones figcaption { font-size: 15px; color: var(--ink2); font-weight: 600; }

/* أنواع المعاملات */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.types .card { display: grid; gap: 10px; padding: 24px; align-content: start; }
.types .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c2); background: linear-gradient(135deg, rgba(54,184,244,.14), rgba(107,63,214,.14)); }
.types .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.types .card b { font-size: 19px; }
.types .card > span:last-child { font-size: 15.5px; color: var(--ink2); line-height: 1.6; }
/* شبكة ببطاقتين، كشروط صفحة الأسعار بعد حذف بطاقة السنة المشمولة (2026-11-13): عمودان فوق 900، وعمود واحد تحتها كبقية الشبكات */
@media (min-width: 901px) { .types.pair { grid-template-columns: repeat(2, 1fr); } }

/* الرحلة التفاعلية: مشهد الربط اليدوي بحاسوبي المرسل والمستلم وOnCloud والهاتف (القسم 2.5 من خطة التنفيذ). تحت كل حاسوب رصيده،
   وتحت المشهد المحطات الثلاث والأزرار. ومحطة OnCloud تمسك الحزمة بحلقة هادئة بين «أرسل» و«استلم». */
.jstage { margin-top: 0; }
.cscene .snode::before { content: ""; position: absolute; inset: -7px; border-radius: 31px; border: 2px solid rgba(47,107,255,.3); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cscene .snode.hold::before { opacity: 1; animation: holdBreath 2.4s ease-in-out infinite; }
@keyframes holdBreath { 50% { opacity: .3; } }
.jstage .sstore .jcounts { display: flex; justify-content: center; gap: 30px; margin-top: 10px; }
.jcount { display: grid; justify-items: center; }
.jcount small { font-size: 12.5px; color: var(--mute); }
.jcount .num { font-size: 30px; line-height: 1.1; font-weight: 600; }
.jcount.way .num { color: var(--warn); }
.jctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 44px; margin-top: 16px; padding-inline: var(--gutter); }
.jctl .rail { position: relative; inset: auto; }
.jacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.jacts .jitem { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink2); margin-inline-end: 8px; }
.jacts .jitem svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--c2); stroke-width: 1.7; stroke-linejoin: round; }
.jacts .textlink { font-size: 15px; min-height: 40px; }
.jacts button[disabled] { opacity: .45; cursor: default; }
/* الطلب الفوري تحت المشهد: نص وشريط وزر على جانب، وهاتفه برحلته على الجانب الآخر، بلا إطار حولهما */
.jinstant { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(36px, 6vw, 88px); align-items: center; max-width: 980px; margin: 60px auto 0; padding-top: 44px; border-top: 1px solid var(--line); }
.jinstant .itext { display: grid; gap: 12px; justify-items: start; }
.jinstant .itext > b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; }
.jinstant .itext > span:not(.istate) { font-size: clamp(16px, 1.3vw, 18.5px); color: var(--ink2); line-height: 1.75; max-width: 44ch; }
.jinstant .phone.sm { --pw: 300px; }
.jinstant .jcounts { display: flex; gap: 40px; margin-top: 6px; }
.ibar { width: 100%; max-width: 360px; height: 6px; border-radius: 3px; background: var(--paper3); overflow: hidden; margin-top: 4px; }
.ibar i { display: block; height: 100%; width: 0; background: var(--light-grad); transition: width 1.4s var(--ease); }
.jinstant.asked .ibar i { width: 50%; }
.jinstant.done .ibar i { width: 100%; }
.jinstant .istate { display: none; align-items: center; gap: 8px; font-size: 15px; color: var(--ok); font-weight: 600; }
.jinstant .istate i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.jinstant.asked .iadded, .jinstant.done .idone { display: inline-flex; }
.jinstant.asked [data-act="irequest"], .jinstant.done [data-act="irequest"] { display: none; }
.jinstant [data-act="connect"], .jinstant .ireset { display: none; }
.jinstant.asked [data-act="connect"] { display: inline-flex; }
.jinstant .ireset { font-size: 15px; }
.jinstant.asked .ireset, .jinstant.done .ireset { display: inline-flex; }

/* الخاتمة */
.closing .head .symbol { width: 120px; height: 120px; margin: 0 auto 22px; }
.closing .cta { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .gallery { grid-template-columns: 380px minmax(0, 1fr); gap: 30px; }
  .jstage .sstore .jcounts { gap: 22px; margin-top: 8px; }
  .jcount .num { font-size: 25px; }
}
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .ftext { order: 1; }
  .feature.flip .fvisual { order: 2; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .apphero .duo2 { grid-template-columns: 1fr; }
  .apphero .copy.start { text-align: center; }
  .apphero .copy.start .lead { margin-inline: auto; }
  .stores.start { justify-content: center; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .glist { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .groups { grid-template-columns: 1fr; }
  /* رقائق أزرار الصور تلتف في سطر أو سطرين على الهاتف، لا شريطًا متمررًا كجدار الوحدات */
  .wall.tabs .rail2 { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .wall.tabs .rail2 button { min-width: 0; }
  .glist { grid-template-columns: 1fr; }
  .cscene .snode::before { border-radius: 24px; inset: -6px; }
  .jstage .sstore .jcounts { gap: 14px; }
  .jcount small { font-size: 11.5px; }
  .jcount .num { font-size: 22px; }
  .jctl { display: grid; justify-items: center; gap: 14px; margin-top: 22px; }
  .jctl .rail { font-size: 13px; }
  .jctl .rail hr { width: 28px; margin: 0 8px; }
  .jacts .jitem { flex-basis: 100%; justify-content: center; margin: 0; }
  .jinstant { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; margin-top: 44px; padding-top: 34px; }
  .jinstant .itext { justify-items: center; }
  .jinstant .jcounts { justify-content: center; }
  .jinstant .phone.sm { --pw: min(300px, 70vw, 30svh); }
  /* الهاتف على الهاتف: لا أطول من ثلثي الشاشة (ملاحظة مهند)؛ وزواياه وإطاره من --pw في قاعدة .phone نفسها */
  .phone.g { --pw: min(300px, 70vw, 30svh); }
  .phone.lg { --pw: min(340px, 70vw, 30svh); }
  .twophones { gap: 16px; }
  .twophones .phone { --pw: min(300px, 42vw, 30svh); }
}
@media (max-width: 520px) {
  .twophones .phone { --pw: min(300px, 70vw, 30svh); }
  .fgrid { grid-template-columns: 1fr; }
}

/* ---------- صفحات الخطوة 7: كيف يعمل وابدأ والأسئلة والنماذج (الأقسام 5.2 و8 و13 من خطة الموقع). Claude (Opus 5.5)، 2026-11-02 ---------- */
.wrap.narrow { max-width: 880px; }

/* كيف يعمل في لحظة (القسم 2.5 من خطة التنفيذ): OnCloud وسيط بين متجرين، والضوء يسافر من متجر إلى الآخر عبره، وخط أرفع إلى الهاتف
   فيرن حين يصل الخبر. نسخة عريضة، وأخرى عمودية على عرض الهاتف. الأسماء نص فوق الرسم، فلا تنقلب مع انعكاسه في العربية (site.js، data-howpath). */
.howpath { max-width: 1000px; margin: 50px auto 0; }
.howpath .hpv { position: relative; }
.howpath .hpv.tall { display: none; max-width: 400px; margin-inline: auto; }
.howpath svg { display: block; width: 100%; height: auto; overflow: visible; }
[dir="rtl"] .howpath svg { transform: scaleX(-1); }
.howpath .rail { fill: none; stroke: var(--line2); stroke-width: 3; stroke-linecap: round; }
.howpath .rail.thin { stroke-width: 2; stroke-dasharray: 1 7; }
.howpath .lit { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: opacity .5s ease; }
.howpath .lit.thin { stroke-width: 2.4; }
.howpath.rest .lit { opacity: 0; }
.howpath .dot { fill: #fff; stroke: var(--c2); stroke-width: 2.5; opacity: 0; transition: opacity .2s; }
.howpath .hst .disc { fill: var(--paper2); stroke: var(--line2); stroke-width: 2; }
.howpath .hst.cloud .disc { stroke-width: 2.5; }
.howpath .hst .halo { fill: rgba(47,107,255,.14); opacity: 0; transform-box: fill-box; transform-origin: center; }
.howpath .hst.pulse .halo { animation: hpRipple 1.1s ease-out; }
@keyframes hpRipple { 0% { opacity: .9; transform: scale(.78); } 100% { opacity: 0; transform: scale(1.22); } }
.howpath .hst .ico { fill: none; stroke: var(--c2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* عقدة الهاتف واسمه بالصنف tel لا phone، لأن .phone صنف إطار الهاتف الرصاصي في الموقع كله فيأخذ معدنه وشقه */
.howpath .hst.tel { transform-box: fill-box; transform-origin: center; }
.howpath .hst.tel.ring { animation: ring .75s var(--ease); }
.howpath .hst .badge { fill: var(--danger); stroke: var(--paper2); stroke-width: 2.5; opacity: 0; transition: opacity .3s; }
.howpath .hst.tel.on .badge { opacity: 1; }
.howpath .hpn { position: absolute; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.35; white-space: nowrap; text-wrap: balance; }
.howpath .wide .hpn.a, .howpath .wide .hpn.b { top: 77.5%; width: 26%; margin-inline-start: -13%; text-align: center; white-space: normal; }
.howpath .wide .hpn.a { inset-inline-start: 15%; }
.howpath .wide .hpn.b { inset-inline-start: 85%; }
/* اسم OnCloud فوق عقدته في الوسط، لا بجانبها على القوس */
.howpath .wide .hpn.cloud { inset-inline-start: 50%; width: 30%; margin-inline-start: -15%; text-align: center; top: 4.5%; transform: translateY(-50%); }
.howpath .wide .hpn.tel { inset-inline-start: 55%; top: 86.2%; transform: translateY(-50%); }
.howpath .tall .hpn.a, .howpath .tall .hpn.b { inset-inline-start: 64%; max-width: 35%; white-space: normal; transform: translateY(-50%); }
.howpath .tall .hpn.a { top: 10.9%; }
.howpath .tall .hpn.b { top: 80.6%; }
.howpath .tall .hpn.cloud { inset-inline-end: 64%; top: 45.7%; transform: translateY(-50%); }
.howpath .tall .hpn.tel { inset-inline-start: 82.5%; top: 53.5%; width: 34%; margin-inline-start: -17%; text-align: center; white-space: normal; }
.idea .howpath { margin-top: 0; }
.hlabels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; text-align: center; }
.hlabels li { display: grid; gap: 6px; align-content: start; justify-items: center; padding: 12px 14px; border-radius: 18px; transition: background-color .3s var(--ease); outline: none; }
/* المرور على جزء من الفكرة يضيء أداته في الرسم ويخفت ما سواها (العيب 26 عند الوكيل) */
.hlabels li:hover, .hlabels li:focus-visible { background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.howpath .hst, .howpath .hpn { transition: opacity .3s var(--ease), color .3s var(--ease); }
.howpath:has(.hlabels li:is(:hover, :focus-visible)) .hst, .howpath:has(.hlabels li:is(:hover, :focus-visible)) .hpn { opacity: .35; }
.howpath:has(.hlabels [data-part="store"]:is(:hover, :focus-visible)) :is(.hst.store, .hpn.a, .hpn.b),
.howpath:has(.hlabels [data-part="cloud"]:is(:hover, :focus-visible)) :is(.hst.cloud, .hpn.cloud),
.howpath:has(.hlabels [data-part="tel"]:is(:hover, :focus-visible)) :is(.hst.tel, .hpn.tel) { opacity: 1; color: var(--c2); }
.howpath:has(.hlabels [data-part="store"]:is(:hover, :focus-visible)) .hst.store .disc,
.howpath:has(.hlabels [data-part="cloud"]:is(:hover, :focus-visible)) .hst.cloud .disc,
.howpath:has(.hlabels [data-part="tel"]:is(:hover, :focus-visible)) .hst.tel .disc { stroke: var(--c2); }
.howpath:has(.hlabels [data-part="store"]:is(:hover, :focus-visible)) .hst.store .halo,
.howpath:has(.hlabels [data-part="cloud"]:is(:hover, :focus-visible)) .hst.cloud .halo,
.howpath:has(.hlabels [data-part="tel"]:is(:hover, :focus-visible)) .hst.tel .halo { opacity: 1; }
.hlabels b { font-size: 18.5px; }
.hlabels span { font-size: 15.5px; color: var(--ink2); line-height: 1.6; max-width: 30ch; }

/* ما يبقى وما ينتقل ومتى */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split .card { display: grid; gap: 10px; align-content: start; padding: 28px; }
.split .ico, .qrrow .ico, .aside .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c2); background: linear-gradient(135deg, rgba(54,184,244,.14), rgba(107,63,214,.14)); }
.split .ico svg, .qrrow .ico svg, .aside .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.split .card > b { font-size: 21px; }
.split .card > p { color: var(--ink2); font-size: 16px; line-height: 1.75; }
.split .card.when { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; }
.split .card.when .ico { grid-row: span 2; }

/* ابدأ: رمز QR للتطبيق، وما بعد التجربة */
.qrrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.card.qr { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px; }
/* الرمز على بياضه الذي يلزم قراءته في الليل، بلا حد ثانٍ داخل البطاقة (العيب 33 عند الوكيل) */
.card.qr img { width: 172px; height: 172px; padding: 12px; border-radius: 16px; background: #fff; }
.card.qr b, .card.after b { font-size: 20px; }
.card.qr p, .card.after p { color: var(--ink2); font-size: 15.5px; line-height: 1.7; margin-top: 6px; }
.card.after { display: grid; gap: 10px; align-content: start; padding: 26px; }

/* الأسئلة: عناصر details الأصلية، فتُفتح بلا JavaScript */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper2); border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: var(--line2); box-shadow: var(--shadow3); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 14px 22px; font-weight: 700; font-size: 18px; line-height: 1.45; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c2); }
.faq summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line2); transition: border-color .3s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; border-radius: 1px; background: var(--ink2); transition: transform .3s var(--ease), background .3s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { border-color: var(--c2); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--c2); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink2); font-size: 16.5px; line-height: 1.8; max-width: 72ch; }

/* النماذج: الدعم الفني وتواصل معنا وطلب الاشتراك. الحقول معتمة بلون سطحها، والتركيز خط بلون الضوء */
.formgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(22px, 3vw, 34px); }
.form > header b { font-size: 21px; display: block; }
.form > header p { color: var(--ink2); font-size: 15.5px; margin-top: 4px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: grid; gap: 7px; align-content: start; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld > label { font-size: 15px; font-weight: 600; color: var(--ink); }
.fld > label small { font-weight: 400; color: var(--mute); margin-inline-start: 6px; }
.fld input, .fld textarea, .fld select { width: 100%; min-height: 50px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line2); border-radius: 14px; padding: 11px 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.fld textarea { min-height: 156px; resize: vertical; line-height: 1.7; }
.fld select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C86AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 44px; }
[dir="rtl"] .fld select { background-position: left 14px center; }
.fld input:hover, .fld textarea:hover, .fld select:hover { border-color: color-mix(in srgb, var(--c2) 40%, var(--line2)); }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; background: var(--paper2); border-color: var(--c2); box-shadow: 0 0 0 4px rgba(47,107,255,.14); }
.fld input.invalid, .fld textarea.invalid, .fld select.invalid { border-color: var(--danger); }
[dir="rtl"] .fld input[dir="ltr"] { text-align: right; }
.fld .validation-message, .fld .err { color: var(--danger); font-size: 13.5px; line-height: 1.5; }
.fld .hint { color: var(--mute); font-size: 13.5px; line-height: 1.5; }
/* تدارك أخطاء الكتابة (خطة تساوي البريد والرقم 2026-11-16): تنبيه الرقم بلون التنبيه، و«هل تقصد …؟» سطر يُلمس فيكتب المقترح في الخانة */
.fld .hint.warn { color: color-mix(in srgb, var(--warn) 55%, var(--ink)); }
.fld .suggest { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; line-height: 1.5; font-weight: 600; color: var(--c2); cursor: pointer; text-align: start; }
.fld .suggest:hover { text-decoration: underline; }
/* المرفق: زر بنص الموقع، والحقل الأصلي مخفي خلفه، والتركيز يُرى على الزر */
.filepick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 4px 6px 4px 14px; border: 1.5px dashed var(--line2); border-radius: 14px; background: var(--paper); }
[dir="rtl"] .filepick { padding: 4px 14px 4px 6px; }
.filepick label.btn { flex: none; font-size: 14.5px; min-height: 40px; padding: 7px 18px; cursor: pointer; }
.filepick input:focus-visible + label { outline: 2px solid var(--c2); outline-offset: 3px; }
.filepick .fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); font-size: 15px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kinds label { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line2); background: var(--paper); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.kinds label:hover { border-color: color-mix(in srgb, var(--c2) 40%, var(--line2)); }
.kinds label.on { border-color: var(--c2); background: var(--paper2); box-shadow: var(--shadow3); }
.kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kinds label:focus-within { outline: 2px solid var(--c2); outline-offset: 2px; }
.kinds b { font-size: 15.5px; }
.kinds span { font-size: 13.5px; color: var(--ink2); line-height: 1.55; }
.human { min-height: 68px; }
.formfoot { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; padding-top: 4px; }
.formfoot .note { font-size: 14px; color: var(--mute); max-width: 46ch; }
.formfoot .note a { color: var(--c2); font-weight: 600; }
.formfoot .note a:hover { text-decoration: underline; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; font-size: 15.5px; line-height: 1.65; }
.notice::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 9px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 9%, var(--paper2)); border: 1px solid color-mix(in srgb, var(--ok) 32%, var(--paper2)); }
.notice.ok::before { background: var(--ok); }
.notice.err { background: color-mix(in srgb, var(--danger) 8%, var(--paper2)); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--paper2)); }
.notice.err::before { background: var(--danger); }
.notice b { display: block; }

/* بجوار النموذج: طرق التواصل الأخرى وما يسرّع الرد */
.aside { display: grid; gap: 14px; }
.aside .card { display: grid; gap: 8px; padding: 22px; align-content: start; }
.aside .card b { font-size: 17.5px; }
.aside .card p { color: var(--ink2); font-size: 15px; line-height: 1.7; }
.aside .mail { font-family: var(--font-num); font-weight: 600; color: var(--c2); direction: ltr; unicode-bidi: isolate; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.aside .mail:hover { text-decoration: underline; }
/* اسم جهة البريد من اللوحة فوق عنوانها، بنص صغير هادئ (قسم 5 من تقرير خانات اللوحة 2026-11-27). */
.aside .mailbox { display: grid; justify-items: start; }
.aside .mail-name { font-size: 13px; font-weight: 500; color: var(--mute); line-height: 1.5; }
.aside .social { margin-top: 4px; }
.aside ol { display: grid; gap: 8px; counter-reset: tip; }
.aside ol li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink2); line-height: 1.6; counter-increment: tip; }
.aside ol li::before { content: counter(tip); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-size: 12.5px; font-weight: 600; color: #fff; background: var(--light-grad); margin-top: 1px; }

@media (max-width: 1100px) {
  .formgrid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .qrrow { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hlabels { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
  .howpath .hpn { font-size: 14px; }
  .split { grid-template-columns: 1fr; }
  .split .card.when { grid-template-columns: 1fr; }
  .split .card.when .ico { grid-row: auto; }
  .fields { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 14px 18px; }
  .faq details p { padding: 0 18px 20px; font-size: 16px; }
}
/* على عرض الهاتف يصير رسم كيف يعمل عموديًا (القسم 2.5 من خطة التنفيذ) */
@media (max-width: 600px) {
  .howpath .hpv.wide { display: none; }
  .howpath .hpv.tall { display: block; }
}
@media (max-width: 520px) {
  .card.qr { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .formfoot .btn { width: 100%; }
}
/* لحظة افتتاح لكل صفحة داخلية (العيب 27 عند الوكيل) */
/* صفحات النماذج: النص وطرق التواصل في عمود، والنموذج بطاقة بجواره في الشاشة الأولى على 1024 فما فوق؛ وما دونها النص ثم النموذج ثم البطاقات */
.formpage .formgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "copy form" "aside form"; gap: 30px 52px; }
.formpage .copy.start { grid-area: copy; text-align: start; margin: 0; max-width: none; }
.hero.formpage .copy.start .eyebrow, .hero.faqpage .copy.start .eyebrow { justify-content: flex-start; }
.formpage .copy.start h1, .faqpage .copy.start h1 { font-size: clamp(31px, 3vw, 44px); margin-inline: 0; }
.formpage .copy.start .lead, .faqpage .copy.start .lead { margin-inline: 0; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.75; }
.formpage .fcard { grid-area: form; }
.formpage .aside { grid-area: aside; grid-template-columns: 1fr; }
@media (max-width: 1023px) {
  .formpage .formgrid { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "aside"; gap: 26px; }
  .formpage .copy.start { text-align: center; }
  .hero.formpage .copy.start .eyebrow { justify-content: center; }
  .formpage .copy.start h1, .formpage .copy.start .lead { margin-inline: auto; }
  .formpage .aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) { .formpage .aside { grid-template-columns: 1fr; } }
/* الأسئلة الشائعة: العنوان في عمود الأسئلة، والأسئلة تحته مباشرة */
.faqpage .copy.start { text-align: start; margin: 0; max-width: none; }
.faqpage .faq { margin-top: 34px; }
.hero.page.faqpage + .sec { padding-top: clamp(56px, 6.6vw, 96px); border-top: 1px solid var(--line); }
/* ابدأ: التطبيق في الهاتف، وشارتا المتجرين، وبطاقة رمز QR لمن يتصفح من حاسوبه */
.starthero .stores.start { margin-top: 28px; }
.qrtile { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-block: 14px; padding-inline: 14px 18px; max-width: 460px; text-align: start; }
.qrtile img { flex: none; width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #fff; }
.qrtile b { font-size: 16.5px; display: block; }
.qrtile p { color: var(--ink2); font-size: 14.5px; line-height: 1.65; margin-top: 4px; }
.qrrow.one { grid-template-columns: 1fr; }
@media (max-width: 900px) { .qrtile { margin-inline: auto; } }
@media (max-width: 520px) { .qrtile { display: none; } }

/* أهداف اللمس 44 على التابلت والهاتف وكل شاشة لمس (O10)، في آخر الملف فتغلب مقاسات أقسامها */
@media (max-width: 900px), (pointer: coarse) {
  .nav .logo { display: flex; align-items: center; min-height: 44px; }
  .fgrid ul { gap: 0; }
  .fgrid ul a { min-height: 44px; min-width: 44px; }
  .social a { width: 44px; height: 44px; }
  .switch button { width: 76px; height: 44px; }
  .switch button::after { top: 5px; left: 5px; width: 34px; height: 34px; }
  .switch button[aria-checked="true"]::after { transform: translateX(32px); }
  .calc input[type="range"] { height: 44px; }
  .stepper button { height: 44px; }
  .jacts .textlink { min-height: 44px; }
  .aside .mail { min-height: 44px; }
  .filepick label.btn { min-height: 44px; }
  .theme { width: 44px; height: 44px; }
}

/* ---------- تنويع عرض شاشات البرنامج (القسم 18.11 من خطة الموقع) ----------
   الحاسوب للحظات قليلة مقصودة، وما سواها نافذة البرنامج نفسها بعرض شاشة الحاسوب في عمودها: وحدها بظل خفيف متساوٍ حولها،
   أو متجاورة، أو متراكبة. والنافذة تعلو حين يمر المؤشر ويظهر زر التكبير، والنقر يكبّرها من موضعها (bindLightbox). Claude (Opus 5.5)، 2026-11-08. */

/* الإيقاع: شريطان بلون السطح بين الأقسام بلا توهج، وعمود الصورة بالعرض نفسه في القسم وعكسه (كان أضيق في المعكوس) */
.sec.band { background: var(--paper2); }
html[data-theme="dark"] .sec.band { background: var(--paper3); }
.sec.band + .sec, .sec + .sec.band { border-top: 0; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feature.roomy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.feature.roomy.flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* النافذة، ومالك هندستها ProgramWindow.razor: الصورة كاملة، وحوافها بنسبة من عرض حاويتها. وظلها خفيف متساوٍ حولها بحجمها، بلا إزاحة،
   وبلون داكن لا مضيء، فخط الضوء وحده يضيء (قول مهند «ضل خفيف بحجم الصورة تماما»، القسم 18.11) */
.winstage, .stack, .winpair figure { container-type: inline-size; }
.pwin { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: clamp(6px, 1.9cqw, 14px); overflow: hidden; background: #F6F7FB; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(14,21,53,.08), 0 0 30px rgba(14,21,53,.13);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), translate .95s var(--ease); }
html[data-theme="dark"] .pwin { background: #0F1630; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 32px rgba(0,0,0,.55); }
.pwin > img, .pwin .shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pwin .shots { position: absolute; inset: 0; }
.pwin .shots img { opacity: 0; transform: scale(.985); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.pwin .shots img.on { opacity: 1; transform: none; z-index: 2; }
.pwin .tag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; }
/* زر التكبير في زاوية النافذة: يظهر حين يمر المؤشر أو يقف عليها التركيز، ويبقى ظاهرًا على اللمس؛ والنقر للنافذة كلها */
.pwin .expand { position: absolute; z-index: 4; top: clamp(8px, 2cqw, 14px); inset-inline-end: clamp(8px, 2cqw, 14px); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--paper2); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(14,21,53,.35); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.pwin .expand svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwin:focus-visible .expand { opacity: 1; transform: none; }
@media (hover: hover) {
  .pwin:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(14,21,53,.1), 0 0 44px rgba(14,21,53,.2); }
  html[data-theme="dark"] .pwin:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 0 46px rgba(0,0,0,.75); }
  .pwin:hover .expand { opacity: 1; transform: none; }
}
@media (hover: none) { .pwin .expand { opacity: 1; transform: none; } }

/* النافذة وحدها بلا لوح خلفها، بعرضها الذي يساوي شاشة الحاسوب: طرفها الخارجي على حافة المحتوى، والفراغ نحو النص؛ وفي القسم المعكوس
   ينعكس، وفي العمود الواحد تقف في الوسط */
.winstage { padding-inline-start: 6%; }
.flip .winstage { padding-inline-start: 0; padding-inline-end: 6%; }

/* المخازن: نافذتان كاملتان متجاورتان بدرجتين، وتحت كل نافذة اسم شاشتها */
.winpair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); max-width: 1116px; margin-inline: auto; }
.winpair figure { position: relative; margin: 0; }
.winpair figure:nth-child(2) { margin-top: clamp(28px, 5vw, 72px); }
.winpair figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-weight: 700; font-size: 16px; color: var(--ink2); }
.winpair figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--light-grad); flex: none; }

/* الأتمتة: نوافذ متراكبة كنوافذ مفتوحة على سطح المكتب. الأمامية كاملة، والخلفيتان تخفتان بطبقة بلون الورق لا بشفافيتهما،
   والزر أو النقر على نافذة خلفية يقدّمها (bindWall) */
.stack { position: relative; aspect-ratio: 1 / .66; }
.stack .pwin { position: absolute; width: 90%; transition: top .75s var(--ease), inset-inline-start .75s var(--ease), transform .55s var(--ease), box-shadow .55s var(--ease), translate .95s var(--ease); }
.stack .pwin::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--paper); opacity: 0; transition: opacity .5s; pointer-events: none; }
.stack .pwin.back { top: 0; inset-inline-start: 0; z-index: 1; cursor: pointer; }
.stack .pwin.back::after { opacity: .45; }
.stack .pwin.mid { top: 5%; inset-inline-start: 5%; z-index: 2; cursor: pointer; }
.stack .pwin.mid::after { opacity: .25; }
.stack .pwin.front { top: 10%; inset-inline-start: 10%; z-index: 3; }
.stack .pwin:not(.front) .expand { display: none; }

/* دخول النافذة: ترتفع إلى مكانها حين يظهر قسمها، فوق ظهور القسم نفسه */
.js .rv .winstage .pwin, .js .rv .stack .pwin, .js .winpair.rv .pwin { translate: 0 28px; }
.js .rv.in .winstage .pwin, .js .rv.in .stack .pwin, .js .winpair.rv.in .pwin { translate: none; }

/* المعاملات في صفحة Windows: لحظة الحاسوب الكبرى بعرض الصفحة، والنقاط الثلاث صفًا تحته */
.stagebig .laptop { width: min(1000px, 100%); }
.fpoints.prow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 48px auto 0; }
.fpoints.prow li { background: var(--paper2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.band .fpoints.prow li { background: var(--paper); }

/* متابعة الفروع: الهاتف أمام زاوية الحاسوب بجسم معتم، وصورته تتبدل مع الأزرار */
.wall.tabs.devpair .viewer { position: relative; top: 0; padding-bottom: 7%; }
.devpair .laptop { width: 88%; max-width: none; margin-inline: 0 auto; }
.devpair .phone { --pw: clamp(96px, 12.2vw, 176px); position: absolute; inset-inline-end: 0; bottom: 0; z-index: 4; }

@media (max-width: 900px) {
  .feature.flip, .feature.roomy, .feature.roomy.flip { grid-template-columns: 1fr; }
  .feature .winstage { padding-inline: 3%; }
  .fpoints.prow { grid-template-columns: 1fr; max-width: 640px; }
  .devpair .phone { --pw: clamp(84px, 22vw, 150px); }
}
@media (max-width: 768px) {
  .offline .winstage { padding-inline: 3%; }
}
@media (max-width: 640px) {
  .winpair { grid-template-columns: 1fr; }
  .winpair figure:nth-child(2) { margin-top: 6px; }
}

/* ---------- الوثائق القانونية: شروط الخدمة والخصوصية ونصوصهما السابقة (خطة الاتفاقيات 2026-11-16، القسم 3). Claude (Opus 5.5)، 2026-11-16 ----------
   قالب قراءة: عمود ضيق على ورق الموقع بلا عنصر تسويقي ولا حركة، العنوان وتاريخ السريان، ثم فهرس قصير، ثم البنود ولكل منها رابطه. والليل يقلبه
   الموقع كله بمتغيراته، وتُطبع الوثيقة نظيفة. */
.legalpage .copy.start { text-align: start; margin: 0; max-width: none; }
.hero.legalpage .copy.start .eyebrow { justify-content: flex-start; }
.legalpage .copy.start h1 { font-size: clamp(31px, 3vw, 44px); margin-inline: 0; }
.legalpage .copy.start .lead { margin-inline: 0; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.75; }
.ldate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 14px; font-size: 15px; color: var(--mute); }
.ldate a, .lpast a { color: var(--c2); font-weight: 600; }
.ldate a:hover, .lpast a:hover { text-decoration: underline; }
.lpast { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--paper2); color: var(--ink2); font-size: 15.5px; }
.lpast b { color: var(--ink); }
.lpast a { margin-inline-start: auto; }
.hero.page.legalpage + .sec { padding-top: 34px; }
.ltoc { background: var(--paper2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 34px; }
.ltoc b { display: block; font-size: 14.5px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.ltoc ul { columns: 2; column-gap: 28px; }
.ltoc li { break-inside: avoid; padding: 3px 0; }
.ltoc a { color: var(--ink2); font-size: 15.5px; }
.ltoc a:hover { color: var(--c2); }
.ldoc [id] { scroll-margin-top: 96px; }
.ldoc h2 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.35; margin: 34px 0 12px; }
.ldoc h2:first-child { margin-top: 0; }
.ldoc p { color: var(--ink2); font-size: 16.5px; line-height: 1.9; margin: 0 0 14px; max-width: 72ch; }
.ldoc p b { color: var(--ink); font-weight: 700; }
/* النص المربوط في الوثيقة (القاعدة السادسة في LegalDocumentText، 2026-11-28) بنمط روابط الصفحة نفسها (.ldate a و.lpast a)، والعريض داخله بلونه. */
.ldoc a { color: var(--c2); font-weight: 600; }
.ldoc a b { color: inherit; }
.ldoc a:hover { text-decoration: underline; }
.lversions { display: grid; gap: 10px; }
.lversions a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; min-height: 58px; padding: 14px 22px; background: var(--paper2); border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, box-shadow .25s; }
.lversions a:hover { border-color: var(--line2); box-shadow: var(--shadow3); }
.lversions b { font-size: 17px; }
.lversions span { color: var(--mute); font-size: 15px; }
.legalbody .more { margin-top: 26px; }
@media (max-width: 640px) {
  .ltoc ul { columns: 1; }
}
@media print {
  body:has(.legalpage) .nav, body:has(.legalpage) footer.site, .ltoc, .ldate a, .lpast a, .legalbody .more { display: none !important; }
  .hero.legalpage { padding-top: 0; }
}
