/* =========================================================================
   ميدان — صفحة هبوط المدرِّب (عربية أولًا، RTL) + الورقة المشتركة لصفحات المستندات
   ستّة أقسام قصيرة بلقطات حقيقية، خلفية ساكنة بتدرّجات CSS، بلا مكتبات ولا CDN.
   ⚠️ الورقة **مشتركة** مع privacy/support/terms/coach-terms (لقطاتها الهيكلية مُثبَّتة):
   الأساس والترويسة والفوتر وكتلة «صفحات المستندات» تبقى كما هي أثرًا.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Almarai — مستضاف ذاتيًّا (self-hosted). لا `@import` ولا `<link>` إلى
   fonts.googleapis.com/fonts.gstatic.com في أيّ من الصفحات الثلاث.
   السبب ليس الأداء: تحميل الخطّ من مضيفَي Google كان يُرسِل عنوان IP لكلّ
   زائر — بمن فيهم قارئ سياسة الخصوصية نفسها — إلى طرف ثالث. الاستضافة
   الذاتية تُسقِط ذلك النداء الصادر كلّيًّا، وتُسقِط معه بندًا من السياسة.
   ⚠️ الملفّات في assets/fonts/ يجب أن تصل الحاوية: أسطر COPY في
   apps/landing-page/Dockerfile و Dockerfile.landing (الجذر) تنسخ مجلّد
   assets كاملًا، و@assets في Caddyfile يغطّي /assets/* بنمط عامّ.
   المصدر: أوزان Almarai v19 من Google Fonts (نفس ملفّات woff2 التي كان
   المتصفّح يجلبها)، بترخيص SIL OFL 1.1 — النصّ في assets/fonts/OFL.txt.
   وunicode-range مُبقًى كما ينتجه Google: المتصفّح لا يجلب مقطع latin
   لصفحة عربية خالصة، فلا نخسر شيئًا من تقسيم المقاطع.
   ------------------------------------------------------------------------- */

/* arabic */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/almarai-300-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* latin */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/almarai-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* arabic */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/almarai-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* latin */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/almarai-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* arabic */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/almarai-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* latin */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/almarai-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* arabic */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/almarai-800-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* latin */
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/almarai-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================================
   التوكنات — الداكن هو الأساس؛ للهبوط الفاتح لوحة عاجية مستقلة عن لقطات المنتج.
   • يُفعَّل الفاتح بإحدى طريقتين (والداكن هو الافتراض): `prefers-color-scheme: light` على الصفحات
     الحاملة للسمة ‎data-themed‎ (index.html وحدها — صفحات المستندات لا تحملها فتبقى داكنة كما هي
     ولقطاتها المُثبَّتة)، أو الاختيار اليدوي ‎data-theme="light"‎ (js/theme.js، محفوظ في localStorage).
   • ‎--teal‎ و‎--gold‎ في الفاتح قيمتان **للنصّ والحدود** (‎#0f766e‎ 5.47:1 · ‎#b45309‎ 5.0:1 على الأبيض)؛
     التعبئة الذهبية لها ‎--gold-fill‎ + ‎--on-gold‎ (‎#d97706‎ ← ‎#1c1303‎ 5.76:1).
   • كتلتا الفاتح أدناه (الوسائط وسمة اليدوي) **متطابقتان** — عدّلهما معًا.
   ========================================================================= */
:root {
  /* ---- Brand tokens — الأسماء ثابتة (Design/TOKENS-MAP.md) ---- */
  --bg: #020617;            /* Midnight */
  --surface: #0f172a;
  --surface-2: #1e293b;
  --teal: #2dd4bf;
  --teal-deep: #0d9488;
  --gold: #fbbf24;
  --gold-fill: #fbbf24;
  --gold-deep: #d97706;
  --violet: #a78bfa;
  --violet-deep: #6d28d9;
  --red: #f87171;
  --red-deep: #dc2626;
  /* مجالات التطبيق — accentGym/Nutrition/Fasting/Boxing في apps/mobile/src/constants/colors.ts
     (الداكن هنا، والفاتح في كتلتَي الفاتح). الصبغات بـcolor-mix منها. */
  --color-domain-gym: #2dd4bf;
  --color-domain-nutrition: #fbbf24;
  --color-domain-fasting: #a78bfa;
  --color-domain-boxing: #f87171;
  --on-gold: #1c1303;       /* نصّ فوق تعبئة ذهبية (≈11:1 داكنًا) */
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.45);  /* interactive borders — WCAG 1.4.11 ≥3:1 */

  /* ---- مواصفة الزرّ الموحَّدة (D42): توكن نصف قطر واحد + ألوان التعبئة وما فوقها ---- */
  --radius-control: 12px;
  --primary: #2dd4bf;
  --primary-strong: #5eead4;   /* تحويم/ضغط داكنًا: أفتح لا أغمق (10.2:1) */
  --on-primary: #0f172a;       /* فوق --primary: 9.59:1 */
  --focus: #2dd4bf;            /* حلقة التركيز = linkText: 9.59:1 داكنًا / 5.32:1 فاتحًا */
  --link-text: #2dd4bf;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;
}

/* ---- توكنات مكوّنات الهبوط: إضافة لا تمسّ توكنات العلامة أعلاه ---- */
:root {
  --body-2: #cbd5e1;      /* نصّ ثانويّ أفتح من --muted داخل البطاقات */
  --card-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.45));
  --shadow-frame: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 24px 90px -50px rgba(45, 212, 191, 0.35);
  --section-pad: clamp(4rem, 8vw, 6.25rem);
  /* ارتفاع ترويسة الهبوط الأدنى: 68px (‏--header-h) بالنصّ العادي، ويكبر مع تكبير نصّ النظام (rem)
     فيبقى الإزاح عند القفز إلى قسم (scroll-margin) متّسقًا مع ارتفاعها الفعلي. */
  --header-block: max(var(--header-h), 4.25rem);
  /* أسطح تتبدّل بين الثيمين (كانت rgba حرفيّة داخل القواعد) */
  --fill-1: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(2, 6, 23, 0.9);
  --panel: rgba(15, 23, 42, 0.55);
  --tile: rgba(15, 23, 42, 0.5);
  --frame-bar-bg: rgba(30, 41, 59, 0.92);
  --frame-url-bg: rgba(2, 6, 23, 0.6);
  --frame-dot: rgba(255, 255, 255, 0.16);
  --cta-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.75));
  --fog-grain: 0.045;
  color-scheme: dark;
}

/* Paper / ink swatches belong to the marketing page, not to the product screenshots. */
:root[data-themed] {
  --paper: #f7f2e8;
  --paper-raised: #fff;
  --paper-inset: #ebe6db;
  --paper-sage: #e6efe7;
  --paper-edge: #cfc9ba;
  --paper-ink: #172e2a;
  --paper-secondary: #344b44;
  --paper-caption: #4e6158;
  --paper-accent: #105f55;
  --paper-accent-hover: #094b44;
  --paper-frame-shadow: 0 18px 42px -27px #254c4273;
}

/* الفاتح — الكتلة الأولى: تفضيل النظام (على الصفحات الحاملة ‎data-themed‎، ما لم يُختر الداكن يدويًّا) */
@media (prefers-color-scheme: light) {
  :root[data-themed]:not([data-theme="dark"]) {
    --bg: var(--paper); --surface: var(--paper-raised); --surface-2: var(--paper-inset);
    --teal: var(--paper-accent); --teal-deep: var(--paper-accent-hover); --gold: #884710; --gold-fill: #f1d09c; --on-gold: #39230c;
    --color-domain-gym: #0f766e; --color-domain-nutrition: #d97706; --color-domain-fasting: #6d28d9; --color-domain-boxing: #dc2626;
    --text: var(--paper-ink); --muted: var(--paper-caption); --body-2: var(--paper-secondary);
    --line: #dcd7ca; --line-2: var(--paper-edge); --line-strong: #788077;
    --primary: var(--paper-accent); --primary-strong: var(--paper-accent-hover); --on-primary: #fff; --focus: var(--paper-accent); --link-text: var(--paper-accent);
    --card-bg: var(--surface); --shadow-frame: var(--paper-frame-shadow);
    --fill-1: #eee9de; --fill-2: #e1e8dc; --header-bg: #fbf8f0;
    --panel: var(--surface); --tile: var(--surface);
    --frame-bar-bg: var(--paper-sage); --frame-url-bg: #fff; --frame-dot: #a5b4aa;
    --day-band: var(--paper-sage); --proof-shadow: var(--paper-frame-shadow); --proof-edge: var(--paper-accent); --proof-head: var(--paper-sage);
    --step-bg: var(--surface); --step-gutter: 20px; --step-radius: 12px; --step-line: var(--paper-edge);
    --footer-panel: #173c35; --footer-quiet: #d0e0d4; --footer-link: #99ebd8;
    --cta-bg: var(--surface); --fog-grain: 0; --fog-display: none;
    color-scheme: light;
  }
}
/* الفاتح — الكتلة الثانية: الاختيار اليدوي (يربح على تفضيل النظام) */
:root[data-theme="light"] {
  --bg: var(--paper); --surface: var(--paper-raised); --surface-2: var(--paper-inset);
  --teal: var(--paper-accent); --teal-deep: var(--paper-accent-hover); --gold: #884710; --gold-fill: #f1d09c; --on-gold: #39230c;
  --color-domain-gym: #0f766e; --color-domain-nutrition: #d97706; --color-domain-fasting: #6d28d9; --color-domain-boxing: #dc2626;
  --text: var(--paper-ink); --muted: var(--paper-caption); --body-2: var(--paper-secondary);
  --line: #dcd7ca; --line-2: var(--paper-edge); --line-strong: #788077;
  --primary: var(--paper-accent); --primary-strong: var(--paper-accent-hover); --on-primary: #fff; --focus: var(--paper-accent); --link-text: var(--paper-accent);
  --card-bg: var(--surface); --shadow-frame: var(--paper-frame-shadow);
  --fill-1: #eee9de; --fill-2: #e1e8dc; --header-bg: #fbf8f0;
  --panel: var(--surface); --tile: var(--surface);
  --frame-bar-bg: var(--paper-sage); --frame-url-bg: #fff; --frame-dot: #a5b4aa;
  --day-band: var(--paper-sage); --proof-shadow: var(--paper-frame-shadow); --proof-edge: var(--paper-accent); --proof-head: var(--paper-sage);
  --step-bg: var(--surface); --step-gutter: 20px; --step-radius: 12px; --step-line: var(--paper-edge);
  --footer-panel: #173c35; --footer-quiet: #d0e0d4; --footer-link: #99ebd8;
  --cta-bg: var(--surface); --fog-grain: 0; --fog-display: none;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* [hidden] يربح دائمًا: قاعدة display لأيّ مكوّن (القسم، رابط الترويسة، نصّ الشارة) كانت
   ستُبطل إخفاء المتصفّح الافتراضي فيظهر قسم الفيديو فارغًا بلا مصدر. */
[hidden] { display: none !important; }

/* ---- Layout helpers ---- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 1rem; z-index: 200;
  background: var(--primary); color: var(--on-primary); padding: 0.6rem 1rem; border-radius: var(--radius-control);
  font-weight: 700; transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 1rem; }
/* الهبوط وحده (‎body:has(.site-nav)‎ — صفحات المستندات بلا ‎.site-nav‎ فلا يتغيّر شيء فيها): يُخفى الرابط
   بحافّته السفلى عند أعلى الشاشة لا بإزاحة -100px ثابتة — عند تكبير نصّ النظام 200% على 320px يلتفّ سطرين
   فيتجاوز ارتفاعه 100px ويطلّ أسفله فوق العلامة. */
body:has(.site-nav) .skip-link:not(:focus) { inset-block-start: auto; inset-block-end: 100%; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ==== الخلفية: طبقة CSS ساكنة (z-index 0) — مشتركة مع صفحات المستندات ==== */
#fog-fallback {
  display: var(--fog-display, block);
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
  background:
    radial-gradient(60% 50% at 30% 22%, rgba(45, 212, 191, 0.10), transparent 70%),
    radial-gradient(50% 45% at 76% 68%, rgba(167, 139, 250, 0.06), transparent 70%),
    radial-gradient(40% 40% at 60% 18%, rgba(251, 191, 36, 0.05), transparent 70%),
    var(--bg);
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 35%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 82% 72% at 50% 35%, #000 55%, transparent 100%);
}
#fog-fallback::after { /* painted grain */
  content: ""; position: absolute; inset: 0; opacity: var(--fog-grain); mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==== Utilities ==== */
/* إخفاء بصريّ يبقى مقروءًا لقارئ الشاشة (فواصل «،» بين رقائق التسعير). */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap;
}
/* يُبقي آخر كلمة في الجملة ووسمها على سطر واحد فلا يتيم الوسم وحده على سطر. كتلة سطرية ذرّية لا
   white-space:nowrap: تنتقل كاملةً إلى السطر التالي متى لم تتّسع، ولا تفيض عن عمودها حين يكون السطر
   كلّه أضيق منها (تكبير نصّ النظام 200% على 320px) — فتلتفّ داخليًّا بدل أن تُقصّ عند الحافّة. */
.nowrap { display: inline-block; }

/* ==== Typography atoms ==== */
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent); padding: 0.35rem 0.85rem; border-radius: var(--pill);
  margin-block-end: 1.1rem;
}
.grad-text {
  background: linear-gradient(100deg, var(--teal), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-block-end: 1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin-block-end: 1.5rem; }

/* ==== Buttons — مواصفة الزرّ الموحَّدة (D42، Design/systems/DSDK/DESIGN.md §4.1) ====
   • نصف قطر واحد --radius-control (12) لكل الأحجام؛ الـpill للشرائح والشارات لا للأزرار.
   • أحجام: sm 36 · md 48 (الافتراضي) · lg 56 — Almarai 700 بـ13/14/16px؛ حشوة أفقية 12/16/20؛ فجوة 8.
   • متغيّرات: primary (تعبئة صمّاء، واحد لكل شاشة) · secondary (تعبئة محايدة) · outline (شفّاف بحدّ قويّ ≥3:1)
     · text (بلا حاوية). لا تدرّج ولا رفع ولا توهّج: التحويم = لون، والضغط = إزاحة 1px.
   • نصّ فوق التعبئة من --on-primary (≥4.5:1 في الثيمين) لا hex حرفيّ؛ حلقة التركيز عامّة (‎:focus-visible‎).
   • المعطَّل (aria-disabled): تعبئة --surface-2 + نصّ --muted + ‎not-allowed‎ — بلا opacity ولا حدّ متقطّع. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1rem; box-sizing: border-box;
  font-family: inherit; font-weight: 700; font-size: 0.875rem; line-height: 1.3; text-align: center;
  cursor: pointer; border: 1px solid transparent; border-radius: var(--radius-control);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding-inline: 0.75rem; font-size: 0.8125rem; }
/* منطقة اللمس الفعلية ≥44px للحجم sm دون تكبيره بصريًّا */
.btn-sm::after { content: ""; position: absolute; inset-inline: 0; inset-block: -4px; }
.btn-lg { min-height: 56px; padding-inline: 1.25rem; font-size: 1rem; }
/* Flex follows the document's RTL reading order. Only the directional arrow mirrors. */
.btn-forward { column-gap: 0.875em; }
.btn-forward::after {
  content: ""; flex: none; inline-size: 1.15em; block-size: 1.15em; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4m7-7-7 7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-forward:dir(ltr)::after { transform: scaleX(-1); }
.btn-forward[aria-disabled="true"]::after { display: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--fill-2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--fill-2); }
.btn-text { background: transparent; color: var(--link-text); min-height: 44px; padding-inline: 0.25rem; }
.btn-text.btn-lg { min-height:56px; }
.btn-text:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* حالة «قريبًا» (STORE_READY=false): <a> بلا href وبـaria-disabled — يُقرأ معطّلًا لا ميّتًا. */
.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:active {
  color: var(--muted); background: var(--surface-2); border-color: transparent;
  box-shadow: none; transform: none; cursor: not-allowed; text-decoration: none;
}

/* ==== Header ==== */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h); padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: var(--header-bg); backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-block-end: 1px solid var(--line);
  /* قرار المالك 2026-10-18: الأزرار يمينًا والشعار يسارًا (في كل الصفحات). ‎row-reverse‎ في RTL يبدأ من
     اليسار فيصير الشعار أوّلًا هناك، والهامش الآليّ الدافع للمجموعة صار ‎margin-inline-end‎ (يسار العنصر في
     RTL) على ‎.site-nav‎ و‎.nav-toggle‎ و‎.doc-back‎. ترتيب الروابط داخل ‎.site-nav‎ يبقى RTL كما هو. */
  flex-direction: row-reverse;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.01em; }
.site-nav { display: flex; flex-wrap:wrap; gap: 0.25rem 1.5rem; margin-inline-end: auto; }
.site-nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 700; transition: color 0.2s var(--ease);
  /* أهداف لمس ≥44px على الديسكتوب أيضًا (أجهزة لوحية أفقية بعرض >820px تُلمَس). ‎.site-nav‎ و‎.header-cta‎
     لا يحملهما إلا index.html، والعلامة تُقيَّد بترويسة فيها ‎.site-nav‎ — ترويسة المستندات لا تتغيّر. */
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
}
.site-header:has(.site-nav) .brand { min-height: 44px; }
.site-nav a:hover { color: var(--text); }
.header-cta { min-height: 44px; } /* هدف لمس ≥44px (‏btn-sm وحده ≈43px) */

/* ترويسة الهبوط وحدها — ‎:has(.site-nav)‎ لا يطابق ترويسة المستندات (بلا ‎.site-nav‎) فتبقى لقطاتها كما هي:
   • أعتم (0.9 لا 0.55) مع الضبابية نفسها: روابط ‎--muted‎ كانت تهبط إلى 2.6:1 حين يمرّ العنوان الأبيض تحتها.
   • تتمدّد ولا تُقصّ (WCAG 1.4.4/1.4.10 — تكبير نصّ النظام 150%/200% وعرض 320px): ارتفاع أدنى لا ثابت،
     وهوامش بـpx لا rem فلا تتضخّم مع النصّ، والتفاف سطر الترويسة ملاذٌ أخير؛ زرّ الدخول يلفّ نصّه قبله.
     بلا هذا كان الزرّ ينتفخ داخل 68px ثابتة فيُقصّ أعلاه، ويفيض عرضه فيتّسع الـviewport على الجوال
     و‎body{overflow-x:hidden}‎ يقصّ بدايات الأسطر عند الحافّة اليمنى. */
.site-header:has(.site-nav) {
  height: auto; min-height: var(--header-block);
  flex-wrap: wrap; column-gap: clamp(0.5rem, 2.5vw, 1rem); row-gap: 0.25rem;
  padding-inline: clamp(12px, 4vw, 40px);
  background: var(--header-bg);
}
/* أساس 0 ونموّ حتى عرض المحتوى: يأخذ سطرًا واحدًا متى اتّسع المكان، ويلفّ نصّه حين يضيق، ولا يُكسر سطر
   الترويسة إلا إن لم تتّسع حتى أضيق صيغه (أطول كلمة). */
.site-header:has(.site-nav) .header-cta { flex: 1 0 0%; max-width: max-content; line-height: 1.3; text-align: center; }

/* Mobile disclosure button — hidden on desktop; ≥44px touch target */
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex: none; /* لا ينضغط تحت 44px */
  width: 44px; height: 44px; padding: 0; margin: 0;
  background: transparent; border: 0; color: var(--text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-icon line { transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); transform-origin: center; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; margin-inline-end: auto; }
  .header-cta { margin-inline-start: 0; }

  /* .site-nav becomes a dropdown panel under the sticky header.
     يبدأ تحت حدّ الترويسة السفلي أيًّا كان ارتفاعها (100% من صندوق حشوها + الحدّ) لا عند 68px ثابتة.
     **معتمة تمامًا** لا زجاجية شفّافة: فوق العنوان الأبيض كانت روابط ‎--muted‎ تهبط إلى 1.8:1. ولا تكفي
     شفافية جزئية: اللوحة داخل ترويسة لها backdrop-filter (جذر خلفية)، فضبابيتها لا ترى ما تحت حدود
     الترويسة ويظهر المحتوى من خلالها حادًّا بنسبة شفافيتها (‏0.97 تُبقي ظلّ العنوان مقروءًا). */
  .site-nav {
    position: absolute; inset-block-start: calc(100% + 1px); inset-inline: 0;
    flex-direction: column; flex-wrap:nowrap; gap: 0; margin-inline-start: 0;
    padding: 0.5rem clamp(12px, 4vw, 40px) 0.75rem;
    background: var(--bg);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border-block-end: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 0.85rem; font-size: 1.05rem; border-block-end: 1px solid var(--line); }
  .site-nav a:last-child { border-block-end: 0; }

  /* Hamburger → X when open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-top { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-mid { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bot { transform: translateY(-5px) rotate(-45deg); }
}

/* ==== أقسام الهبوط — مشترك ==== */
.section { padding-block: var(--section-pad); }
/* القفز إلى قسم من الترويسة: حشو القسم أعلى من الترويسة اللاصقة على الديسكتوب فلا حاجة لهامش،
   وعلى الجوال (حشو أصغر) يُضاف الفرق فقط كي لا يلتصق عنوان القسم بأسفل الترويسة. */
main > section[id] { scroll-margin-block-start: max(0px, calc(var(--header-block) + 1.25rem - var(--section-pad))); }

.section-head { text-align: center; max-width: 54rem; margin-inline: auto; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
.section-head .section-title { margin-block-end: 0.85rem; }
.section-head .section-lead { margin-inline: auto; margin-block-end: 0; }
/* عناوين متوازنة الأسطر ونثر بلا كلمة يتيمة (تحسين تدريجي: يُتجاهَل حيث لا يُدعَم). */
.hero-title, .section-title { text-wrap: balance; }
.hero-sub, .section-lead, .step p { text-wrap: pretty; }

/* علامة ✓ — حدّان فيزيائيان (يسار+أسفل) لا منطقيّان: العلامة لا تنعكس في RTL، والمنطقيّان
   كانا يرسمانها مقلوبة. موضعها عند بداية السطر (يمين) بهامش معلّق. */
.ticks > li, .ticks > span { position: relative; padding-inline-start: 1.55rem; }
.ticks > li::before, .ticks > span::before {
  content: ""; position: absolute; inset-inline-start: 0.1rem; inset-block-start: 0.52em;
  width: 0.72rem; height: 0.4rem; transform: rotate(-45deg);
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
}

/* ---- إطار المتصفّح (لقطات البوابة) — حدّ زخرفي بـ--line-2 لا بالتوكن القويّ ---- */
.frame-browser {
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--shadow-frame);
}
.frame-bar {
  display: flex; align-items: center; gap: 0.4rem;
  height: 2rem; padding-inline: 0.85rem 3.2rem;
  background: var(--frame-bar-bg); border-block-end: 1px solid var(--line);
}
.frame-bar i { flex: none; width: 0.58rem; height: 0.58rem; border-radius: 50%; background: var(--frame-dot); }
.frame-url {
  margin-inline: auto; min-width: 42%; padding: 0.05rem 1rem; border-radius: var(--pill);
  background: var(--frame-url-bg); color: var(--muted);
  font-size: 0.72rem; font-weight: 700; line-height: 1.6; text-align: center; white-space: nowrap;
}
.frame-browser img { display: block; width: 100%; height: auto; }

/* ---- إطار الجوال — العرض والانحناء والحافّة كلّها من --pw كي يبقى التناسب على أيّ مقاس ---- */
.frame-phone {
  --pw: 220px;
  width: var(--pw); padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(155deg, #26324a, #0a1122 45%, #050a17);
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.frame-phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * 0.13); }

/* ---- الكشف عند التمرير (js/reveal.js) ----
   الإخفاء مشروط بصنف `reveal-armed` الذي يضيفه reveal.js وحده، وفي اللحظة التي سيراقب فيها فعلًا.
   فيفشل مفتوحًا بالبنية لا بالتوقيت: بلا جافاسكربت، أو إن رمت وحدة ES قبل الوصول إليه (مثلًا
   Object.hasOwn في config.js على Safari < 15.4)، أو تحت تقليل الحركة — لا يُضاف الصنف فلا يُخفى شيء.
   ولا حركة CSS احتياطية مؤقَّتة: كانت تُظهر كل عنصر لم يُمرَّر إليه بعد 2.5ث حتى مع نجاح JS،
   فتُبطل الكشف لكل من يمرّر ببطء. */
[data-reveal] { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.reveal-armed [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(14px); }
/* الطباعة: لا مراقِب تمرير في الطباعة، فكل ما تحت الطية لم يُكشَف بعد وسيُطبع فارغًا. المحدِّد مطابق
   لقاعدة الإخفاء أعلاه حرفيًّا (بما فيه :not(.is-visible)) — بدونه تكون خصوصيته أدنى فتخسر أمامها. */
@media print {
  html.reveal-armed [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  [data-reveal] { transition: none; }
}

/* ==== s-01 — الهيرو ==== */
.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center;
}
.hero-title { font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.2; margin-block-end: 1.25rem; }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.2rem); max-width: 40ch; margin-block-end: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); font-size: 0.95rem; font-weight: 700; }

/* التركيب: البوابة تملأ الحاوية عدا شريط عند بداية السطر يتراكب فيه الجوال. container-type
   يجعل مقاس الجوال نسبةً من عرض التركيب (cqi) لا من الشاشة، فيبقى التناسب على كل العروض. */
.hero-visual {
  position: relative; isolation: isolate; container-type: inline-size;
  padding-inline-start: 14%; padding-block-end: 8%;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 0 0 12%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(45, 212, 191, 0.2), transparent),
    radial-gradient(closest-side at 85% 85%, rgba(167, 139, 250, 0.16), transparent);
  filter: blur(36px);
}
.hero-phone { --pw: 24cqi; position: absolute; inset-inline-start: 0; inset-block-end: 0; }

/* s-02: visible storyboard, or the finished film when supplied. */
.video-frame {
  max-width: 60rem; margin-inline: auto; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--shadow-frame);
}
.video-frame video { display: block; width: 100%; height: 100%; background: #000; }
.film-tour .video-frame { width:100%; margin:0; }
.film-spread { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); align-items:center; gap:clamp(24px,4vw,64px); }
.film-board { --board-ink:#f7f2e8; --board-soft:#c4ded4; --board-accent:#70efd0;
  position:relative; color:var(--board-ink); background:#103a35; overflow:hidden; border-radius:20px;
  padding:clamp(18px,3vw,32px); border:1px solid #437067; }
.film-slate,.film-strip-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; }
.film-status { display:inline-flex; gap:8px; align-items:center; font-size:.9rem; font-weight:700; }
.film-status::before { content:""; width:9px; height:9px; border:2px solid var(--board-accent); border-radius:50%; }
.slate-stripes { width:52px; height:10px; background:repeating-linear-gradient(125deg,transparent 0 5px,var(--board-soft) 5px 9px); }
.film-scenes { list-style:none; margin:20px 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.film-scenes li { min-inline-size:0; padding:clamp(10px,2vw,18px); display:grid; align-content:start; gap:6px;
  border:1px solid #598277; border-radius:12px; background:#184740; }
.film-scenes li:nth-child(2) { --beat:850ms; } .film-scenes li:nth-child(3) { --beat:1700ms; }
.film-scenes svg { width:clamp(34px,5vw,54px); height:auto; margin-block-end:.4rem; color:var(--board-accent); fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.film-scenes span,.film-strip-foot { color:var(--board-soft); font-size:.875rem; }
.film-strip-foot { border-block-start:1px solid #568174; padding-block-start:10px; }
.film-strip-foot button { display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:0 12px; font:inherit; font-weight:700; color:var(--board-ink); background:transparent; border:1px solid #81a99e; border-radius:12px; cursor:pointer; }
.film-strip-foot button:focus-visible { outline-color:var(--board-accent); }
@media (prefers-reduced-motion:no-preference) {
  .film-board[data-rolling] li { animation:film-beat 900ms ease-out var(--beat,0ms) 1; }
  .film-board[data-rolling] svg path { animation:film-ink 800ms ease-out var(--beat,0ms) 1; }
}
@keyframes film-beat { 45% { transform:translateY(-4px); background:#24594e; border-color:#70efd0; } }
@keyframes film-ink { from { stroke-dasharray:100; stroke-dashoffset:100; } to { stroke-dasharray:100; stroke-dashoffset:0; } }
.voices-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:clamp(20px,5vw,70px); align-items:center;
  padding:clamp(20px,4vw,54px); border-radius:20px; border:1px solid var(--line-2); background:var(--day-band,var(--surface)); }
.voices-art svg { display:block; width:clamp(80px,12vw,144px); height:auto; }
.voice-ask { fill:var(--primary); } .voice-reply { fill:var(--surface); stroke:var(--link-text); stroke-width:2; } .voice-lines { stroke:var(--on-primary); stroke-linecap:round; stroke-width:5; }
.voices-copy { max-inline-size:58ch; } .voices-copy .btn { margin-block:18px 6px; }
.voices-copy .voices-note { font-size:.875rem; color:var(--muted); }
@media(max-width:880px){ .film-spread { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px){
  .film-scenes { grid-template-columns:minmax(0,1fr); }
  .film-scenes li { grid-template-columns:auto minmax(0,1fr); align-items:center; gap:0 14px; }
  .film-scenes svg { grid-row:span 2; margin:0; }
  .voices-card { grid-template-columns:minmax(0,1fr); gap:12px; }
}

/* ==== s-03 — كيف يعمل: صفوف متعاقبة (نصّ ⇄ لقطة) لا أعمدة ضيّقة — لقطة البوابة تُقرأ
   بنصف مقاسها الأصلي على الأقل بدل ربعه. ==== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.step {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.step:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.step:nth-child(even) .step-copy { order: 1; }
.step-num {
  display: block; margin-block-end: 0.6rem;
  font-size: clamp(3.75rem, 7vw, 5.5rem); font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--teal), color-mix(in srgb, var(--teal) 10%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-block-end: 0.75rem; }
.step p { color: var(--muted); font-size: 1.07rem; max-width: 38ch; }

/* ==== بطاقات المجالات الأربعة (s-03 كاملة + s-04 مدمجة) — لون كل مجال من --color-domain-* ==== */
.domains { margin-block-start: clamp(3.5rem, 8vw, 6.5rem); }
.domains-title { text-align: center; font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-block-end: 1.75rem; }
.domain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.domain-card {
  --c: var(--color-domain-gym);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 1.25rem 1.15rem 1.3rem; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  border-block-start: 3px solid var(--c);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), var(--tile));
}
.domain-card--gym { --c: var(--color-domain-gym); }
.domain-card--nutrition { --c: var(--color-domain-nutrition); }
.domain-card--fasting { --c: var(--color-domain-fasting); }
.domain-card--boxing { --c: var(--color-domain-boxing); }
.domain-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-block-end: 0.4rem;
  border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}
.domain-name { font-size: 1.15rem; color: var(--text); }
.domain-desc { color: var(--body-2); font-size: 0.97rem; text-wrap: pretty; }
.domain-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-block-end: 1.5rem; }
.domain-grid--compact .domain-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.7rem; padding: 0.8rem 0.9rem; }
.domain-grid--compact .domain-icon { width: 38px; height: 38px; margin: 0; grid-row: span 2; }
.domain-grid--compact .domain-name { font-size: 1rem; flex: 1 1 0; min-width: 4.5rem; }
.domain-grid--compact .domain-desc { flex: 1 0 100%; font-size: 0.88rem; }

/* ==== s-04 — للمتدرِّب ==== */
.trainee-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.optin {
  margin-block-end: 1.75rem; padding: 1.25rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card-bg);
}
.optin-title { font-weight: 700; margin-block-end: 0.75rem; }
.optin .ticks { display: grid; gap: 0.45rem; color: var(--body-2); }

.trainee-shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem); align-items: start;
}
.trainee-shot { margin: 0; container-type: inline-size; }
.trainee-shot:nth-child(odd) { margin-block-start: 2.5rem; } /* الأوسط أعلى: إيقاع لا صفّ مسطّح */
.trainee-shot .frame-phone { --pw: 100cqi; }
.trainee-shot figcaption { margin-block-start: 0.9rem; text-align: center; color: var(--body-2); font-weight: 700; font-size: 0.95rem; }
/* متصفّح بلا وحدات الحاويات (cqi): var(--pw) يصير غير صالح فيسقط العرض إلى auto ويتضخّم
   الجوال إلى عرض صورته الطبيعيّ — مقاسات ثابتة بديلة بدل ذلك. */
@supports not (width: 1cqi) {
  .hero-phone { --pw: clamp(110px, 13vw, 160px); }
  .trainee-shot .frame-phone { --pw: 160px; margin-inline: auto; }
}

/* ==== s-05 — الباقات: ثلاث ثابتة في صفّ (انطلاقة · محترف · استوديو) + المخصّصة شريطًا عريضًا تحتها
   حدود البطاقات بـ--line-strong (≥3:1، مواصفة «تباين عناصر التفاعل الثانوية»). ==== */
.pricing-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-block-start: 1.5rem; }
/* شروط التجربة عنوانًا (D29): أوّل الرقائق وأكبرها، بتعبئة العلامة المخفّفة لا حدّ محايد */
.pricing-note > span.pricing-note-lead {
  flex: 1 0 100%; text-align: center; padding: 0.7rem 1.25rem; border-radius: var(--radius-control);
  border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--text); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800;
}
.pricing-note > span.pricing-note-lead::before { display: none; }
.pricing-note > span {
  padding: 0.4rem 1rem; padding-inline-start: 2.1rem;
  border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--fill-1);
  color: var(--body-2); font-size: 0.95rem; font-weight: 700;
}
.pricing-note > span::before { inset-inline-start: 0.95rem; inset-block-start: calc(0.4rem + 0.52em); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan-card {
  display: flex; flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--card-bg);
}
.plan-name { font-size: 1.1rem; color: var(--body-2); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; margin-block: 1rem 0.4rem; }
.plan-price bdi { font-size: clamp(2.4rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1; }
.plan-unit { color: var(--muted); font-size: 1rem; font-weight: 700; }
.plan-limit { color: var(--teal); font-size: 1.02rem; font-weight: 700; margin-block-end: 1.5rem; }
.plan-cta { margin-block-start: auto; width: 100%; }
/* الباقة الموصى بها: حدّ ذهبي + شارة نصّية (لا تمييز بتيل عامّ) */
.plan-card--recommended {
  position: relative; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 50px -28px var(--gold);
}
.plan-badge {
  position: absolute; inset-block-start: 0; inset-inline-start: 1.4rem; transform: translateY(-50%);
  padding: 0.15rem 0.85rem; border-radius: var(--pill);
  background: var(--gold-fill); color: var(--on-gold); font-size: 0.82rem; font-weight: 800; line-height: 1.6;
}
.plan-card--custom {
  grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.35rem;
}
/* min() لا 12rem وحدها: عند تكبير نصّ النظام 200% صارت 384px داخل بطاقة 332px ففاض الزرّ عن الشاشة. */
.plan-card--custom .plan-cta { margin-block-start: 0; width: auto; min-width: min(12rem, 100%); }
.plan-desc { color: var(--muted); margin-block-start: 0.3rem; }

.plan-includes {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: 1.25rem 2.5rem; align-items: center;
  margin-block-end: 1.5rem; padding: 1.6rem 1.75rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.plan-includes h3 { font-size: 1.2rem; margin-block-end: 0.25rem; }
.plan-includes-head p { color: var(--muted); font-size: 0.95rem; }
.plan-includes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 2rem; color: var(--body-2); font-weight: 700; }

/* وسم «قريبًا» — معالجة صادقة لميزة معلَن عنها وغير منفَّذة بعد. */
.soon-tag {
  display: inline-block; vertical-align: middle; margin-inline-start: 0.5rem;
  padding: 0.15em 0.6em; border-radius: var(--pill);
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold); font-size: 0.68em; font-weight: 800; letter-spacing: 0.02em;
}

/* إشارة «شهران مجانًا» — السنوي = 10 أشهر في الكتالوج (يحرسه e2e/claims.spec.ts). تيل لا ذهب: الذهب لـ«قريبًا». */
.save-tag {
  display: inline-block; vertical-align: middle;
  padding: 0.15em 0.6em; border-radius: var(--pill);
  background: color-mix(in srgb, var(--teal) 12%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent);
  color: var(--teal); font-size: 0.78rem; font-weight: 800; line-height: 1.5;
}

/* مفتاح شهري/سنوي — CSS خالص: زرّا راديو حقيقيّان (لوحة المفاتيح وقارئ الشاشة مجّانًا) مخفيّان بصريًّا
   خلف تسميتيهما. السنوي مخفيّ افتراضًا بلا شرط، ويُظهره :has() وحده ⇒ متصفّح بلا :has يبقى على الشهري. */
.billing-switch {
  position: relative; display: inline-flex; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0.3rem;
  border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--fill-1);
}
.billing-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.billing-switch label {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.4rem 1.25rem;
  border-radius: var(--pill); color: var(--body-2); font-weight: 700; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.billing-switch input:checked + label { background: var(--primary); color: var(--on-primary); }
.billing-switch label::before {
  content: ""; flex: none; width: 0.62em; height: 0.34em; border-left: 2px solid; border-bottom: 2px solid;
  transform: rotate(-45deg); visibility: hidden;
}
.billing-switch input:checked + label::before { visibility: visible; }
.billing-switch input:checked + label .save-tag { background: transparent; border-color: currentColor; color: var(--on-primary); }
.billing-switch input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.plan-save { color: var(--body-2); font-size: 0.95rem; font-weight: 700; }
.plan-save bdi { color: var(--text); font-weight: 800; }
.plan-price[data-period="annual"], .plan-save { display: none; }
.pricing:has(#billing-annual:checked) .plan-price[data-period="annual"] { display: flex; }
.pricing:has(#billing-annual:checked) .plan-save { display: block; margin-block: 0 0.9rem; }
.pricing:has(#billing-annual:checked) .plan-price[data-period="monthly"] { display: none; }

/* ==== كتلة «ذكاء ميدان» (s-04) — مخفيّة بـhidden حتى AI_SALES_READY (js/apply-config.js) ==== */
.ai-offer {
  margin-block-end: 1.75rem; padding: 1.25rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--card-bg);
}
.ai-offer-title { font-weight: 800; font-size: 1.1rem; margin-block-end: 0.4rem; }
.ai-offer-desc { color: var(--muted); font-size: 0.95rem; margin-block-end: 0.9rem; }
.ai-offer-plans { display: grid; gap: 0.4rem; margin-block-end: 1rem; color: var(--body-2); font-weight: 700; }
.ai-offer-plans li { display: flex; justify-content: space-between; gap: 1rem; padding-block-end: 0.4rem; border-block-end: 1px solid var(--line); }

/* ==== شارة المتجر (s-04) — «قريبًا» بلا href، ورابط حقيقي بعد المتجر ==== */
.store-badge {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.7rem; border-radius: var(--pill);
  background: var(--fill-1); border: 1px solid var(--line-2);
  color: var(--text); cursor: default; user-select: none;
}
.store-badge-icon { color: var(--teal); display: inline-flex; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.3; text-align: start; }
.store-badge-text small { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.store-badge-text b { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.01em; }
.store-badge[href] { cursor: pointer; user-select: auto; border-color: var(--line-strong); transition: background 0.25s var(--ease); }
.store-badge[href]:hover { background: var(--fill-2); }

/* ==== s-06 — الدعوة الختامية ==== */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: 24px; border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(45, 212, 191, 0.18), transparent 70%),
    radial-gradient(45% 60% at 12% 100%, rgba(251, 191, 36, 0.08), transparent 70%),
    var(--cta-bg);
}
.cta-panel .section-lead { margin-inline: auto; }
.cta-mark {
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 1.5rem;
  border-radius: 50%; color: var(--teal); border: 4px solid var(--teal);
  box-shadow: 0 0 36px -4px color-mix(in srgb, var(--teal) 55%, transparent), inset 0 0 24px -8px color-mix(in srgb, var(--teal) 60%, transparent);
}
.cta-mark::after { /* حلقة نابضة خارجية */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0; animation: cta-ring 2.8s ease-out infinite;
}
@keyframes cta-ring { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.45); opacity: 0; } }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-block-end: 1.5rem; }
.cta-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem; color: var(--muted); font-size: 0.95rem; font-weight: 700; }

/* ==== Footer — الأساس مشترك مع صفحات المستندات (.doc-footer) ==== */
.site-footer { padding-block: 3.5rem 2rem; }
.footer-rule { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--teal), var(--gold), transparent); opacity: 0.5; margin-block-end: 2.5rem; }
.footer-tag { color: var(--teal); font-weight: 700; margin-block: 0.6rem 0.4rem; }
.footer-desc { color: var(--muted); max-width: 50ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-content: start; }
.footer-links a { color: var(--muted); font-weight: 700; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }
/* مجموعة الروابط القانونية — قائمة بذاتها لا مخلوطة بـ.footer-links (مراسي داخلية
   يحرسها متطلّب «بقاء المراسي»). أنماطها الأساسية في كتلة صفحات المستندات أدناه. */
.footer-legal { margin-block-start: 2rem; }
.footer-bottom { text-align: center; color: var(--muted); font-size: 0.85rem; margin-block-start: 1rem; }

/* فوتر الهبوط: ثلاثة أعمدة (العلامة · الأقسام · مقدّم الخدمة). كل محدِّد مقيَّد بـ#s-07-footer
   كي لا يمسّ فوتر المستندات ولقطاته المُثبَّتة. */
#s-07-footer .footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 3rem; }
#s-07-footer .footer-links { flex-direction: column; gap: 0; }
#s-07-footer .footer-links a,
#s-07-footer .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
#s-07-footer .footer-legal { margin-block-start: 2.25rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
.footer-heading { color: var(--text); font-size: 0.95rem; font-weight: 800; margin-block-end: 0.35rem; }
.footer-provider { color: var(--muted); font-size: 0.95rem; }
.footer-provider .footer-heading { margin-block-end: 0.85rem; }
/* الرابطان صارا هدفَي لمس 44px يتجاوران بلا هامش بينهما — الهامش القديم (0.5rem بين فقرتين نصّيتين)
   كان سيضاعف الفراغ، والإيقاع الآن مطابق لعمود روابط الأقسام (خطوة 44px). */
.footer-provider a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; /* هدف لمس ≥44px كباقي روابط الفوتر */
  color: var(--teal); text-decoration: underline; text-underline-offset: 0.25em;
}
.footer-provider a:hover { color: var(--text); }

/* =========================================================================
   صفحات المستندات — privacy / support / terms / coach-terms
   ⚠️ **الورقة مشتركة، والانفصال ليس كاملًا**: محدِّدات ‎.doc-*‎ خاملة تمامًا على
   ‎index.html‎ (لا يحمل أيّ عنصر فيه صنفًا بالبادئة). أمّا ‎.footer-legal‎
   و‎.footer-lockup‎ فيستهلكهما **فوتر الهبوط نفسه** — انظر ‎index.html‎ عند
   ‎<img class="footer-lockup">‎ و‎<nav class="footer-legal wrap">‎.
   ⇒ أيّ تعديل عليهما يستوجب ‎npm run test:visual:landing‎ (لقطة ‎s-07-footer‎)
   إلى جانب ‎test:visual:legal‎. تشغيل بوابة المستندات وحدها يمرّ بينما ينكسر
   فوتر الهبوط.
   موضعها هنا مقصود: بعد فوتر الهبوط وقبل كتلتَي Responsive و
   prefers-reduced-motion حتى تبقيا آخر الملف وتكسبا التتالي.
   ========================================================================= */

/* ---- هيكل صفحة المستند ---- */
.doc-body {
  /* مقاس القراءة: min(68ch, 40rem).
     وحدة ch = عرض المحرف «0»؛ ومتوسط تقدّم المحرف العربي في Almarai أضيق من
     الرقم، فـ68ch قد تُنتج 85‑95 محرفًا عربيًا في السطر — خارج النطاق الموصى
     به (45‑75). عند أساس 17px تكون 68ch ≈ 636px ≈ 40rem، فالقيمتان تكادان
     تتطابقان اليوم، والسقف 40rem لا «يعضّ» إلا إذا انزاحت مقاييس الخط. */
  --doc-measure: min(68ch, 40rem);

  inline-size: min(100% - 2.5rem, var(--doc-measure));
  margin-inline: auto;
  padding-block: clamp(2rem, 6vh, 3.25rem) clamp(3rem, 9vh, 5rem);
}

/* الأساس يصفّر هوامش العناوين والفقرات (قاعدتا ‎h1, h2, h3‎ و‎p‎ في الأساس)؛ تُعاد هنا
   صراحةً وإلا صار المستند جدارًا واحدًا من النص بلا إيقاع. */
.doc-body h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); margin-block-end: 0.85rem; }
.doc-body h2 { font-size: clamp(1.2rem, 3.4vw, 1.55rem); margin-block: 2.75rem 0.8rem; }
.doc-body h3 { font-size: clamp(1.02rem, 2.6vw, 1.18rem); margin-block: 1.75rem 0.55rem; }
.doc-body p { margin-block-end: 1rem; }

/* بدون هذا يختفي العنوان المقصود خلف الترويسة اللاصقة عند القفز من الفهرس. */
.doc-body h1,
.doc-body h2,
.doc-body h3 { scroll-margin-block-start: calc(var(--header-h) + 1.25rem); }

.doc-lede { color: var(--muted); font-size: 1.08rem; margin-block-end: 1.25rem; }
.doc-meta { color: var(--muted); font-size: 0.88rem; margin-block-end: 0; }

.doc-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 0.25em; }
.doc-body a:hover { color: var(--text); }

/* ---- رابط العودة في الترويسة المبسَّطة ---- */
.doc-back {
  /* ‎margin-inline-end: auto‎ **منسوخة** عن قاعدة ‎.site-nav‎ في الترويسة لا منقولة:
     الورقة مشتركة و index.html هو المستهلك الوحيد لـ‎.site-nav‎، ونقل الإعلان
     يهدم تخطيط ترويسة الهبوط. (كانت ‎start‎ قبل قلب الترويسة ‎row-reverse‎ — 2026-10-18.) */
  margin-inline-end: auto;
  color: var(--muted); font-size: 0.95rem; font-weight: 700;
  transition: color 0.2s var(--ease);
}
.doc-back:hover { color: var(--text); }

/* ---- فهرس المحتويات ---- */
.doc-toc {
  margin-block: 2rem 2.5rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc-toc h2 { font-size: 1.05rem; margin-block: 0 0.8rem; }
.doc-toc ol {
  /* ‎ol‎ لا يصفّرها الأساس (قاعدة ‎ul‎ في الأساس تخصّ ‎ul‎ وحده)، لكن الترقيم والحشو يُعادان
     صراحةً حتى لا يعتمد المظهر على ورقة المتصفّح الافتراضية. */
  margin: 0;
  padding-inline-start: 1.5rem;
  list-style: decimal;
}
.doc-toc li { margin-block-end: 0.4rem; }
.doc-toc li:last-child { margin-block-end: 0; }
.doc-toc a { color: var(--muted); text-decoration: none; font-weight: 700; }
.doc-toc a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---- قوائم داخل المتن ---- */
.doc-list {
  /* الأساس يصفّر ‎ul { margin: 0; padding: 0; list-style: none }‎ (قاعدة ‎ul‎ في الأساس) —
     تُعاد العلامات والحشو الداخليّ هنا صراحةً. */
  margin-block: 0 1.25rem;
  padding-inline-start: 1.5rem;
  list-style: disc;
}
.doc-list li { margin-block-end: 0.4rem; }
.doc-list li::marker { color: var(--teal); }

/* ---- تنبيه/اقتباس جانبيّ ---- */
.doc-note {
  margin-block: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-inline-start: 3px solid var(--teal);
  border-radius: var(--radius);
  color: var(--muted);
}
.doc-note p:last-child { margin-block-end: 0; }

/* ---- الفوتر المبسَّط للمستندات ---- */
.doc-footer { text-align: center; }
.doc-footer .footer-lockup { margin-inline: auto; margin-block-end: 1.25rem; }

/* ‎.footer-legal‎: مجموعة روابط قائمة بذاتها — عمدًا **ليست** ‎.footer-links‎.
   ‎.footer-links‎ محكومة بمتطلَّب «المراسي لا تتغيّر» ومزجُ روابط المستندات فيها
   يميّع معنى ذلك المتطلَّب. **ويستهلكها فوتر الهبوط أيضًا** لا صفحات المستندات
   وحدها ⇒ أي تغيير هنا يكسر لقطة ‎s-07-footer‎، فشغّل ‎test:visual:landing‎. */
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem 1.5rem;
}
.footer-legal a { color: var(--muted); font-weight: 700; transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--text); }

/* شعار العلامة الأفقيّ: الحدّ الأدنى المطلوب في وثيقة الهوية ‎≥120px‎ على كل
   المقاسات بما فيها الجوال؛ أرضية 148px تعطي هامش أمان ‎23%‎. */
.footer-lockup { inline-size: clamp(148px, 22vw, 196px); block-size: auto; display: block; }

/* ==== قصّ اللقطات (D30) — منطقة مكبَّرة من لقطة ديمو حقيقية بلا ملفّ جديد ====
   كل قصّ متغيّرات بلا وحدة (بكسلات اللقطة الأصلية): --cw/--ch حجم المنطقة، --cx/--cy إزاحتها، --iw عرض
   اللقطة. الصورة تُكبَّر وتُزاح بنسب مئوية فيبقى القصّ صحيحًا على أيّ عرض. النداء (.callout) واحد لكل قصّ:
   إطار حول العنصر المقصود + تسمية قصيرة، بإحداثيات المنطقة (--rx/--ry/--rw/--rh نسب مئوية). لا ألوان
   دلالية: الإطار بـ--text فلا يختلط بتيل الواجهة المصوَّرة. */
.shot-crop { position: relative; overflow: hidden; aspect-ratio: calc(var(--cw) / var(--ch)); background: var(--surface); }
.frame-browser .shot-crop img {
  position: absolute; max-width: none; height: auto;
  width: calc(var(--iw, 1280) / var(--cw) * 100%);
  left: calc(var(--cx) / var(--cw) * -100%); top: calc(var(--cy) / var(--ch) * -100%);
}
.crop-hero { --cw: 650; --ch: 355; --cx: 380; --cy: 10; }
.crop-invite { --cw: 580; --ch: 300; --cx: 700; --cy: 20; }
.crop-calc { --cw: 480; --ch: 365; --cx: 520; --cy: 130; }
.crop-track { --cw: 592; --ch: 270; --cx: 430; --cy: 225; }
.callout {
  position: absolute; left: calc(var(--rx) * 1%); top: calc(var(--ry) * 1%);
  width: calc(var(--rw) * 1%); height: calc(var(--rh) * 1%);
  border: 2px solid var(--text); border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 16%, transparent);
}
.callout-label {
  position: absolute; top: 50%; right: calc(100% + 0.6rem); transform: translateY(-50%); /* فيزيائيّ: إحداثيات القصّ فيزيائية */
  padding: 0.2rem 0.7rem; border-radius: var(--pill); white-space: nowrap;
  background: var(--text); color: var(--bg); font-size: 0.8rem; font-weight: 800; line-height: 1.5;
}
.callout--in .callout-label { top: 0.55rem; right: auto; left: 0.55rem; transform: none; }
.callout-invite { --rx: 62.5; --ry: 64; --rw: 35; --rh: 15.5; }
.callout-calc { --rx: 78; --ry: 85.5; --rw: 21.5; --rh: 12; }
.callout-track { --rx: 0; --ry: 5.5; --rw: 99.5; --rh: 48; }
.shots-note { margin-block-start: 1.25rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ==== شريط اعتراضات المتدرِّب (D30): كل ادّعاء مقابل ميزة قائمة — لا أعداد ولا شهادات ==== */
.objections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-block-end: 1.5rem; }
.objection {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem 1rem;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--fill-1);
}
.objection b { font-size: 1rem; font-weight: 800; color: var(--text); }
.objection span { color: var(--body-2); font-size: 0.88rem; text-wrap: pretty; }

/* ==== مبدّل الثيم (D38/OQ8) — زرّ أيقونيّ ≥44px؛ الأيقونة تتبع الثيم الفعّال (يضبط js/theme.js الحالة) ==== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; margin: 0; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid transparent; border-radius: var(--radius-control);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: var(--fill-2); }
.theme-toggle .ti-sun { display: none; }
.theme-toggle[aria-pressed="true"] .ti-sun { display: inline; }
.theme-toggle[aria-pressed="true"] .ti-moon { display: none; }

/* ==== دعوة لاصقة على الجوال (D30) — تظهر حين يغيب زرّ الهيرو عن الشاشة، وتختفي عند الدعوة الختامية والفوتر ==== */
.sticky-cta { display: none; }
@media (max-width: 880px) {
  .sticky-cta {
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90; display: flex; justify-content: center;
    padding: 0.6rem clamp(12px, 4vw, 40px) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg); border-block-start: 1px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; max-width: 28rem; }
}

/* ==== Responsive — 880px: الشبكات (الهيرو، الخطوات، الباقات، المتدرِّب) عمود واحد؛
   767px: لقطات المتدرِّب الثلاث صفًّا واحدًا مصغّرًا بلا تدرّج (انحراف مقصود عن «عمود واحد» في مواصفة
   «مقروئية الأقسام على الجوال» — قرار المالك معلّق؛ معيار المقروئية يحرسه e2e/layout.spec.ts) ==== */
@media (max-width: 880px) {
  .hero-grid, .trainee-grid { grid-template-columns: minmax(0, 1fr); }
  .domain-grid:not(.domain-grid--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { width: 100%; max-width: 36rem; margin-inline: auto; }
  .trainee-shots { width: 100%; max-width: 34rem; margin-inline: auto; }

  .step, .step:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .step:nth-child(even) .step-copy { order: 0; }
  .step p { max-width: none; }

  .plans, .plan-includes { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin-inline: auto; }
  .plan-card--custom { flex-direction: column; align-items: stretch; }
  /* بطاقة الباقة مضغوطة: الاسم والحدّ عند بداية السطر، والسعر مقابلهما، والزرّ تحتهما. */
  .plan-card:not(.plan-card--custom) {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 0.15rem 1rem; padding: 1.15rem 1.25rem;
  }
  .plan-card:not(.plan-card--custom) .plan-name { grid-area: 1 / 1; }
  .plan-card:not(.plan-card--custom) .plan-limit { grid-area: 2 / 1; margin: 0; }
  .plan-card:not(.plan-card--custom) .plan-price { grid-area: 1 / 2 / 3 / 3; flex-direction: column; align-items: flex-end; gap: 0.3rem; margin: 0; }
  .plan-card:not(.plan-card--custom) .plan-cta { grid-column: 1 / -1; margin-block-start: 0.85rem; }
  .plan-card:not(.plan-card--custom) .plan-save { grid-column: 1 / -1; margin-block: 0.4rem 0; }
  .plan-card--custom .plan-cta { width: 100%; }

  #s-07-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #s-07-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .domain-grid:not(.domain-grid--compact) { grid-template-columns: minmax(0, 1fr); }
  .objections { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  /* الجوالات الثلاثة في صفّ واحد (≈30% لكلٍّ) وتعليق كلٍّ تحته بخطّ أصغر، بلا تعرّج — بدل جوال في كل صفّ
     بجانب تعليق يتيم (≈1050px من التمرير لثلاث صور ظلّية). الشبكة والعرض من القاعدة الأساسية (3 أعمدة،
     --pw = 100cqi من عرض الشكل)؛ هنا الفجوة والإيقاع فقط. sizes في index.html تتبع هذا العرض (≈26vw). */
  /* الفجوة والخطّ محسوبان كي يبقى أطول تعليق («تسجيل مجموعة» ≈87px) سطرًا واحدًا حتى عرض 320px. */
  .trainee-shots { gap: clamp(0.375rem, 2vw, 1rem); }
  .trainee-shot:nth-child(odd) { margin-block-start: 0; }
  .trainee-shot figcaption { margin-block-start: 0.55rem; font-size: 0.78rem; line-height: 1.4; text-wrap: balance; }
  /* بلا cqi: البديل الثابت 160px (أعلاه) أعرض من عمود الجوال — يُقيَّد بعرض العمود التقريبي. */
  @supports not (width: 1cqi) { .trainee-shot .frame-phone { --pw: min(26vw, 10rem); } }

  .plan-includes ul { grid-template-columns: minmax(0, 1fr); }
  .objections { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #s-07-footer .footer-links { flex-direction: row; gap: 0 1.5rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .btn-lg { padding-inline: 1.35rem; }
  .hero-trust { flex-direction: column; align-items: center; }
  #s-07-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==== Reduced motion — الحالة النهائية فورًا، ولا شيء مخفيّ ==== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-mark::after { animation: none; opacity: 0; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  /* reveal.js لا يُسلِّح تحت تقليل الحركة أصلًا؛ هذه حزام ثانٍ لمن يفعّل التفضيل بعد التحميل. */
  html.reveal-armed [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

/* ==== سطر بدء التجربة تحت دعوة التسجيل (change ui-rebuild-round-2، 9.1) ==== */
.trial-note { margin-block: 0 1.25rem; color: var(--body-2); font-size: 0.95rem; }
.trial-note strong { color: var(--text); font-weight: 800; }
.trial-note span { color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.cta-panel .trial-note, .plans + .trial-note { justify-items: center; text-align: center; }
.plans + .trial-note { margin-block: 1.25rem 0; }
@media (max-width: 767px) { .hero-copy .trial-note { text-align: center; justify-items: center; } }

/* Field notes: today's workout → prescription vs actual set → a separate coach history. */
.story-wrap { width:min(1140px,calc(100% - 40px)); margin-inline:auto; }
.story-grid { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:24px; align-items:start; }
.story-hero,.story-band { padding-block:clamp(48px,5vw,80px); }
.story-hero { background:var(--bg); padding-block:clamp(32px,4.6vw,68px); }
.session-spread { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:clamp(32px,5vw,80px); align-items:center; }
.session-intro { min-inline-size:0; }
.session-plate {
  --mount:#103d37; --mount-ink:#f7f5e9; --mount-soft:#c2ded0;
  position:relative; isolation:isolate; margin:0; display:grid; justify-items:center; gap:14px;
  padding:20px clamp(18px,3vw,46px); border:1px solid color-mix(in srgb,var(--mount-soft) 34%,var(--mount));
  border-radius:24px; background:var(--mount); color:var(--mount-ink);
}
.session-plate::before { content:""; z-index:-1; pointer-events:none; position:absolute; inset:0; border-radius:inherit;
  background:repeating-linear-gradient(135deg,transparent 0 12px,#ffffff08 12px 13px);
}
.session-plate figcaption,.plate-foot { inline-size:100%; display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px 16px; color:var(--mount-soft); font-size:.875rem; line-height:1.5; }
.session-plate .plate-label,.plate-foot a { color:var(--mount-ink); font-weight:800; }
.plate-foot a { display:inline-flex; align-items:center; min-block-size:48px; text-decoration:underline; text-underline-offset:.25em; }
.plate-foot a:focus-visible { outline-color:var(--mount-ink); }
.plate-label::before { content:""; display:inline-block; inline-size:1.25rem; block-size:.18rem; margin-inline-end:.5rem; vertical-align:middle; background:currentColor; }
.plate-foot { border-block-start:1px solid #ffffff40; align-items:center; }
.session-plate .day-media { inline-size:min(100%,365px); overflow:hidden; border-radius:16px; outline:1px solid #ffffff48; }
.story-band { border-block-start:1px solid var(--line-2); }
#day-story { background:var(--day-band,var(--surface)); }
.story-hero h1 { max-inline-size:13ch; font-size:clamp(2.65rem,4.7vw,4.4rem); line-height:1.25; margin:0; text-wrap:balance; }
.story-hero em { font-style:normal; color:var(--teal); }
.story-band h2,#trainee-title { font-size:clamp(1.75rem,3vw,2.5rem); line-height:1.4; margin:0 0 16px; }
.story-kicker { font-weight:800; color:var(--teal); margin:0 0 12px; }
.story-lead,.story-band p { color:var(--body-2); line-height:1.75; }
.story-lead { font-size:1.125rem; margin:16px 0 24px; }
.story-hero .trial-note { display:block; max-inline-size:45ch; margin:12px 0 0; line-height:1.65; }
.story-hero .story-kicker { display:flex; align-items:center; gap:.6rem; }
.story-hero .story-kicker::before { content:""; inline-size:1.75rem; block-size:3px; background:currentColor; }
.story-media,.story-media img { display:block; width:100%; height:auto; border-radius:12px; }
.week-media { aspect-ratio:604/100; }
.day-media { aspect-ratio:740/632; }.set-media { aspect-ratio:700/306; }.follow-media { aspect-ratio:326/211; }
.spread-heading { max-inline-size:48rem; margin-block-end:28px; }
.proof-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.proof-pair figure { min-inline-size:0; margin:0; padding:clamp(14px,2vw,26px); display:grid; grid-template-rows:auto 1fr; gap:18px; border:1px solid var(--line-2); border-radius:16px; background:var(--surface); }
.proof-label { display:inline-flex; gap:.65rem; align-items:center; color:var(--link-text); font-size:.875rem; font-weight:700; }
.proof-label bdi { font-weight:800; padding-inline-end:.65rem; border-inline-end:1px solid var(--line-strong); }
.proof-pair h3 { margin-block:.7rem .4rem; font-size:clamp(1.2rem,2vw,1.55rem); }
.proof-window { min-inline-size:0; display:grid; align-content:center; border-block-start:1px solid var(--line-2); padding-block-start:18px; }
.follow-spread { display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,6vw,90px); align-items:center; }
.follow-excerpt { margin:0; justify-self:center; inline-size:min(100%,386px); padding:14px; border:1px solid var(--line-2); border-radius:16px; background:var(--surface); }
.follow-excerpt figcaption,.registration-only { display:block; color:var(--muted); font-size:.875rem; line-height:1.6; margin-block-start:8px; }
html[data-store-ready="true"] .registration-only { display:none; }
.story-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; counter-reset:step; padding:0; }
.story-steps li { list-style:none; border:1px solid var(--step-line, transparent); border-block-start:2px solid var(--teal); border-radius:var(--step-radius,0); background:var(--step-bg,transparent); padding:20px var(--step-gutter,0); line-height:1.8; }
.story-steps li::before { counter-increment:step; content:counter(step,decimal-leading-zero); color:var(--teal); font-weight:800; }
.story-faq { display:grid; grid-template-columns:1fr 2fr; gap:20px; }
.story-faq dt { font-weight:800; }.story-faq dd { margin:0; }
#follow a { color:var(--link-text); text-decoration:underline; text-underline-offset:.22em; display:inline-flex; align-items:center; min-block-size:48px; }
#s-07-footer { background:var(--footer-panel,transparent); color:var(--footer-quiet,var(--text)); }
#s-07-footer :is(.footer-desc,.footer-links a,.footer-legal a,.footer-provider,.footer-bottom) { color:var(--footer-quiet,var(--muted)); }
#s-07-footer :is(.footer-tag,.footer-provider a,.footer-links a:hover,.footer-legal a:hover) { color:var(--footer-link,var(--teal)); }
#s-07-footer .footer-heading { color:var(--footer-quiet,var(--text)); }
#s-07-footer :focus-visible { outline-color:var(--footer-link,var(--focus)); }
.site-header:has(.site-nav) { flex-direction:row; }
.site-header:has(.site-nav) :is(.theme-toggle,.nav-toggle,.brand,.header-cta,.site-nav a) { min-width:48px; min-height:48px; }
.site-nav { margin-inline:clamp(8px,2vw,28px) auto; }
.billing-switch { min-inline-size:0; max-width:100%; flex-wrap:wrap; justify-content:center; }
.billing-switch label { min-height:48px; flex-wrap:wrap; justify-content:center; }
@media(max-width:880px){
 .nav-toggle { margin-inline:0 auto; }
 .site-header:has(.site-nav) .site-nav { margin-inline:0; }
 .site-header:has(.site-nav) .header-cta { flex:none; }
 .registration-only { grid-column:1/-1; }
 .session-spread,.proof-pair,.follow-spread,.story-grid,.story-steps,.story-faq { grid-template-columns:minmax(0,1fr); }
 .session-spread { gap:16px; }
 .session-plate { justify-self:center; inline-size:min(100%,460px); padding:14px 18px; gap:10px; }
 .session-plate .day-media { max-inline-size:340px; }
 .proof-pair { gap:14px; }.week-media { aspect-ratio:318/210; }
 .story-hero { padding-block:24px; }.story-band { padding-block:32px; }
 .story-hero h1 { font-size:clamp(2rem,calc(1.5rem + 4vw),2.5rem); max-inline-size:100%; }.story-lead { margin:8px 0 16px; font-size:1rem; }
 .story-hero .btn-forward { inline-size:100%; }
 .story-faq dd { margin-block:-12px 12px; }
}
@media(max-width:480px){
 .site-header:has(.site-nav) .brand-name { display:none; }
 .plan-card:not(.plan-card--custom) { display:flex; flex-direction:column; align-items:stretch; }
 .plan-card:not(.plan-card--custom) .plan-price { align-items:flex-start; }
 .plan-includes { padding-inline:16px; }
 .cta-actions .btn-forward { inline-size:100%; }
}
