/* نظام تصميم زيج — هوية "بازلت وكلس ونحاسي" طبقا لكتاب العلامة المعتمد (القسم 15،
   09_Color_System): أربعة ألوان فقط، لا إضافات. :root = الحالة الفاتحة الافتراضية
   (كلس #FAF6F0 + نحاسي فاتح #C2703E). .band-dark = تجاوز كامل للتوكنات لقسم بازلت
   غامق (#1c1d20) بنحاسي غامق (#D4813F) للتمييز — يستخدم للحظات التأثير (الافتتاح،
   إحصائية مؤثرة، الإغلاق) — الهيدر والفوتر بازلتيان دائما كإطار ثابت للهوية.
   تصحيح 2026-09-18: إزالة الأسود والبني غير المعتمدَين، وإزالة اللون الخامس
   بصفحات التقنية — النظام الآن مطابق حرفيا لتوكنات كتاب العلامة. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* رابط "تخط إلى المحتوى الرئيسي" — مخفي بصريا حتى يستقبل تركيز لوحة المفاتيح
   (تصفح Tab)، حينها يظهر كليا. يحقن ديناميكيا عبر nav.js/admin-nav.js. */
.skip-link {
  position: absolute; inset-inline-start: 0; top: -48px; z-index: 1000;
  background: var(--accent-2); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-size: var(--text-sm); font-weight: 700;
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

:root {
  --bg: #faf6f0;
  --bg-elevated: #ede9e4; /* بازلت #1c1d20 بنسبة 6% فوق الكلس #faf6f0 — مشتق من هوية زيج نفسها، لا رمادي عام */
  --card: #ffffff;
  --card-border: #e8ddce;
  --card-border-soft: rgba(20, 20, 20, 0.07);
  --text: #141414;
  --text-dim: #5c5852;
  --text-faint: #786d62;
  --accent: #c2703e;
  --accent-light: #d4813f;
  --accent-deep: #a85c31;
  --accent-soft: rgba(194, 112, 62, 0.08);
  --accent-border: rgba(194, 112, 62, 0.3);
  --accent-2: #c2703e;
  --accent-text: #a85c31;
  --on-accent: #1c1d20;
  --overlay-soft: rgba(20, 20, 20, 0.035);
  --overlay-strong: rgba(20, 20, 20, 0.07);
  --radius: 14px;
  --radius-sm: 9px;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-display: 'IBM Plex Sans Arabic', sans-serif;
  --font-display-en: 'Manrope', sans-serif;
  --shadow-lg: 0 24px 60px -24px rgba(20, 20, 20, 0.18);
  --gold-line: linear-gradient(90deg, transparent, var(--accent-2), transparent);

  /* سلّم طباعي موحّد (Type Scale) — 9 درجات بدل 40 قيمة عشوائية متفرقة.
     كل قياس نص بالموقع يُسحَب من هنا فقط، لا يُكتَب رقم خام بأي مكان آخر. */
  --text-2xs: 0.625rem;  /* 10px — تسميات دقيقة جدا (وسم البراند بالهيدر) */
  --text-xs:  0.75rem;   /* 12px — عناوين صغيرة، تسميات، نصوص هامشية */
  --text-sm:  0.875rem;  /* 14px — نص ثانوي، أزرار صغيرة */
  --text-base: 1rem;     /* 16px — النص الأساسي الافتراضي */
  --text-lg:  1.125rem;  /* 18px — فقرات تمهيدية (lead) */
  --text-xl:  1.25rem;   /* 20px — عناوين فرعية صغيرة */
  --text-2xl: 1.5rem;    /* 24px — عناوين h3/h4 */
  --text-3xl: 1.875rem;  /* 30px — عناوين متوسطة */
  --text-4xl: 2.25rem;   /* 36px — عناوين كبيرة ثابتة (غير متجاوبة بـclamp) */
}

/* قسم "غامق" — نحاسي بدل البني/البازلت سابقا، بلمسات سوداء للأزرار والتمييز.
   يعيد تعريف كل التوكنات محليا، فكل مكون موجود (بطاقات، أزرار، نصوص) يتكيف تلقائيا بلا أي تعديل إضافي. */
.band-dark,
.site-header,
.site-footer {
  --bg: #1c1d20;
  --bg-elevated: #26272b;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --card-border-soft: rgba(255, 255, 255, 0.1);
  --text: #f7efe8;
  --text-dim: rgba(247, 239, 232, 0.82);
  --text-faint: rgba(247, 239, 232, 0.62);
  --accent: #d4813f;
  --accent-light: #e0985c;
  --accent-deep: #c2703e;
  --accent-soft: rgba(212, 129, 63, 0.16);
  --accent-border: rgba(212, 129, 63, 0.4);
  --accent-2: #d4813f;
  --accent-text: #d4813f;
  --on-accent: #1c1d20;
  --overlay-soft: rgba(255, 255, 255, 0.04);
  --overlay-strong: rgba(255, 255, 255, 0.09);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

/* نظام الخطوط (قرار خالد 2026-09-28): خط واحد لكل لغة. العربية IBM Plex Sans Arabic، والإنجليزية Manrope، والفرق بين العناوين والنصوص بالسماكة فقط. */
html[lang="en"] { --font-body: 'Manrope', sans-serif; --font-display: 'Manrope', sans-serif; }
html[lang="en"] h1, html[lang="en"] h2 { font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
html[lang="en"] .hero-cinematic h1 { font-weight: 600; letter-spacing: -0.01em; }
html[lang="en"] .editorial-band h2, html[lang="en"] .closing-cinematic h2 { font-weight: 500; }


html[lang="ar"] h1, html[lang="ar"] h2 { font-family: 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; }
html[lang="ar"] .hero-cinematic h1 { font-weight: 600; }

/* background fx */
.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20,20,20,0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}
.bg-glow {
  position: fixed; top: -20%; right: -10%; width: 60vw; height: 60vw; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(194,112,62,0.08) 0%, rgba(28, 29, 32,0.04) 40%, transparent 70%);
  filter: blur(10px);
}

main, header, footer { position: relative; z-index: 1; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; padding: 12px 24px;
}
.btn-sm { padding: 9px 18px; font-size: var(--text-sm); }
.btn-lg { padding: 15px 30px; font-size: var(--text-base); }
.btn-block { width: 100%; padding: 13px 20px; font-size: var(--text-base); }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 26px -12px rgba(0,0,0,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(0,0,0,0.65); }
.btn-ghost { color: var(--text); border-color: var(--card-border); background: var(--overlay-soft); }
.btn-ghost:hover { background: var(--overlay-strong); }
.btn-outline { border-color: var(--card-border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(28, 29, 32, 0.92);
  border-bottom: 1px solid var(--card-border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 8px; }

/* علامة "زيج" الكتابية — النسخة العربية من الشعار. علامة كتابية بحتة بلا رمز منفصل
   (راجع Foundation/Logo/01_Master_Logo). النسخة اللاتينية "ZEEJ" مع تفصيل الفجوة
   القطرية بحرف Z محفوظة للنسخة الإنجليزية من الموقع إن وجدت مستقبلا. */
.brand-wordmark {
  display: inline-block; font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 800; font-size: var(--text-lg); line-height: 1; color: var(--accent); flex-shrink: 0;
}
/* النسخة اللاتينية "ZEEJ" (النسخة الإنجليزية من الموقع) — الشعار الأصلي مع فجوة Z القطرية */
.brand-wordmark.en {
  position: relative; font-family: 'Archivo Black', sans-serif; direction: ltr;
}
.brand-wordmark.en .cut {
  position: absolute; width: 1.3px; height: 8.7px; left: 8.1px; top: 4.8px;
  transform: rotate(40deg); background: var(--bg);
}
.brand-divider { width: 1px; height: 22px; background: currentColor; opacity: 0.25; flex-shrink: 0; }
.brand-tag { font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.14em; color: var(--text-dim); white-space: nowrap; }
.lang-switch {
  font-size: var(--text-xs); color: var(--text-faint) !important; border: 1px solid var(--card-border);
  border-radius: 999px; padding: 5px 14px !important;
}
.lang-switch:hover { color: var(--text) !important; border-color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; font-size: var(--text-sm); color: var(--text-dim); }
.nav > a:hover { color: var(--text); }
/* رابط الدراسات بالقائمة مخفي حتى يؤكد nav.js وجود دراسة منشورة واحدة على الأقل */
html:not(.zeej-has-studies) .nav a[data-zeej-text="global.nav.studies"] { display: none; }

/* ===== قائمة منسدلة للخدمات ===== */
.has-dropdown { position: relative; }
.dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: inherit; font: inherit; cursor: pointer; padding: 0;
}
.dropdown-trigger:hover, .has-dropdown.open .dropdown-trigger { color: var(--text); }
.dropdown-trigger .caret { font-size: var(--text-2xs); transition: transform .18s ease; }
.has-dropdown.open .dropdown-trigger .caret { transform: rotate(180deg); }

/* جسر غير مرئي يملأ الفراغ بين الزر والقائمة، حتى لا تغلق أثناء تحريك الماوس نحوها */
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; inset-inline: -20px;
  height: 22px; display: none;
}
.has-dropdown.open::after { display: block; }

.dropdown {
  position: absolute; top: calc(100% + 18px); inset-inline-end: 0; z-index: 70;
  min-width: 290px; padding: 8px;
  background: var(--bg-elevated); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px;
}
.has-dropdown.open .dropdown { display: flex; }
.dropdown-label {
  font-size: var(--text-2xs); letter-spacing: 0.12em; color: var(--accent);
  padding: 8px 12px 6px; font-weight: 700;
}
.dropdown a {
  display: block; padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--text-sm); line-height: 1.4;
}
.dropdown a small { display: block; font-size: var(--text-xs); color: var(--text-faint); margin-top: 2px; }
.dropdown a:hover { background: var(--card); color: var(--accent); }
.dropdown a:hover small { color: var(--text-dim); }

/* عنوان المسار داخل القائمة (المستوى الأول) */
.dd-track { padding: 12px 12px 10px !important; }
.dd-track b { display: inline; font-size: var(--text-base); font-weight: 700; }
.dd-track small { color: var(--text-faint); }

/* مجالات فرعية تحت كل مسار (المستوى الثاني) */
.dd-sub { display: flex; flex-direction: column; gap: 1px; padding-inline-start: 12px; margin: 2px 0 4px; }
.dd-sub a {
  padding: 8px 12px !important; font-size: var(--text-sm); color: var(--text-dim);
  border-inline-start: 2px solid var(--card-border-soft);
}
.dd-sub a:hover { border-inline-start-color: var(--accent); background: transparent; }
.dropdown-sep { height: 1px; background: var(--card-border-soft); margin: 6px 4px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  color: var(--text); width: 40px; height: 40px; font-size: var(--text-xl); cursor: pointer;
  align-items: center; justify-content: center; flex-shrink: 0;
}

/* ===== hero ===== */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-copy > * { max-width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--text-xs); color: var(--text-faint); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.25; margin-bottom: 20px; }
.highlight { color: var(--accent); }
.lead { font-size: var(--text-lg); color: var(--text-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; max-width: 160px; }
.stat strong { font-size: var(--text-2xl); color: var(--text); }
.stat span { font-size: var(--text-xs); color: var(--text-faint); }

/* hero visual mocks */
.hero-visual { position: relative; }
.mock-browser {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.mock-browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-elevated); border-bottom: 1px solid var(--card-border); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--card-border); }
.mock-browser-body { padding: 24px; }
.mock-hero-block {
  height: 90px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(194,112,62,0.14));
}
.mock-line { height: 10px; border-radius: 6px; background: var(--overlay-strong); margin-bottom: 10px; }
.w-70 { width: 70%; } .w-40 { width: 40%; }
.mock-cta { width: 130px; height: 34px; border-radius: 999px; background: var(--accent); margin-top: 14px; }

.mock-chat-card {
  position: absolute; bottom: -30px; left: -30px; width: 270px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px;
}
.mock-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: var(--text-xs); font-weight: 800; color: #1c1d20;
  flex-shrink: 0;
}
.mock-chat-name { font-size: var(--text-sm); font-weight: 700; }
.mock-chat-status { font-size: var(--text-xs); color: var(--text-faint); display: flex; align-items: center; gap: 5px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(194,112,62,0.2); }
.mock-chat-body { display: flex; flex-direction: column; gap: 8px; }
.bubble { font-size: var(--text-xs); padding: 8px 12px; border-radius: 12px; max-width: 90%; line-height: 1.5; }
.bubble-bot { background: var(--bg-elevated); border: 1px solid var(--card-border); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-user { background: var(--accent-soft); color: var(--text); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-typing { color: var(--text-faint); font-style: italic; }

/* ===== sections ===== */
.section { padding: 88px 0; }
.kicker {
  color: var(--accent); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.06em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); }
.section h1, .section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lead { color: var(--text-dim); max-width: 60ch; margin-bottom: 48px; }

/* ===== قصة الاسم — عنوان مركز، فقرات بمحاذاة طبيعية لسهولة القراءة ===== */
.name-story h2 { font-size: var(--text-3xl); margin-bottom: 20px; }
.name-story h3 { font-size: var(--text-xl); margin-bottom: 16px; }
.name-story p { color: var(--text-dim); font-size: var(--text-base); line-height: 1.9; }

/* problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.problem-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; }
.problem-icon {
  width: 42px; height: 42px; margin-bottom: 14px; border-radius: 11px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.problem-icon svg { width: 20px; height: 20px; }
.problem-card h3 { font-size: var(--text-base); margin-bottom: 8px; }
.problem-card p { color: var(--text-dim); font-size: var(--text-sm); }

/* solution layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.layer-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 30px; position: relative; }
.layer-card-accent { border-color: var(--accent-border); background: linear-gradient(180deg, var(--accent-soft), var(--card)); }
.layer-num { display: inline-block; font-size: var(--text-xs); font-weight: 800; color: var(--accent); margin-bottom: 14px; }
.layer-card h3 { font-size: var(--text-lg); margin-bottom: 10px; }
.layer-card p { color: var(--text-dim); font-size: var(--text-sm); }

/* how / cycle */
.cycle { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; counter-reset: none; }
.cycle li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.cycle-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: var(--text-sm);
  display: flex; align-items: center; justify-content: center;
}
.cycle h3 { font-size: var(--text-base); margin-bottom: 6px; }
.cycle p { color: var(--text-dim); font-size: var(--text-sm); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; position: relative;
}
.price-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); transform: translateY(-6px); }
.price-badge {
  position: absolute; top: -13px; right: 24px; background: var(--accent); color: var(--on-accent);
  font-size: var(--text-xs); font-weight: 800; padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: var(--text-xl); margin-bottom: 6px; }
.price-for { color: var(--text-faint); font-size: var(--text-sm); margin-bottom: 22px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--card-border); font-size: var(--text-sm); color: var(--text-dim); }
.price-row strong { color: var(--text); font-size: var(--text-base); }
.price-features { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: var(--text-sm); color: var(--text-dim); padding-right: 20px; position: relative; }
.price-features li::before { content: "✓"; position: absolute; right: 0; color: var(--accent); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* live demo */
.demo-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 48px; text-align: center;
}

/* cta band */
.cta-band { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-inner h2 { max-width: 24ch; }
.cta-inner p { color: var(--text-dim); max-width: 52ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-grid > *, .lp-grid > * { min-width: 0; }
.lp-main > .container { width: 100%; min-width: 0; }
/* حقول مصيدة الروبوتات (honeypot) مخفية عبر left:-9999px بأسلوب inline، وهذا في الصفحات
   العربية (RTL) يوسع عرض الصفحة أفقيا بآلاف البكسلات. تبقى الحقول في مكانها بحجم 1px
   ومخفية تماما، دون أي تغيير في منطق النماذج. */
input[style*="-9999px"] { left: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; clip-path: inset(50%); opacity: 0; pointer-events: none; }
/* ويدجت Turnstile (data-size="flexible") يعرض بعرض 100% وحده الأدنى 300px. حين تكون
   المساحة الداخلية للبطاقة أضيق من 300px (جوال 360-375px)، يتمدد الويدجت بالتساوي داخل
   الحشوة الجانبية للبطاقة بدل أن يدفع عرض الصفحة كلها، وعلى الشاشات الأوسع لا يتغير شيء. */
.cf-turnstile { width: max(300px, 100%); margin-inline: min(0px, calc((100% - 300px) / 2)) !important; }
.contact-form { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: var(--text-sm); color: var(--text-dim); }
.form-row input, .form-row textarea {
  background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 11px 14px; color: var(--text); font-family: inherit; font-size: var(--text-sm); resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,112,62,0.35); }
.form-note { text-align: center; font-size: var(--text-xs); color: var(--text-faint); }

/* footer */
.site-footer { border-top: 1px solid var(--card-border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { color: var(--text-faint); font-size: var(--text-sm); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; }
/* صف روابط داخلية صغيرة أسفل الفوتر — يستوعب أسطرا إضافية لاحقا، كل سطر بغرضه الخاص */
.footer-utility-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: end; }
.footer-utility-links a { color: var(--text-faint); font-size: var(--text-xs); text-decoration: none; opacity: 0.75; }
.footer-utility-links a:hover { opacity: 1; text-decoration: underline; }

/* ===== chat widget ===== */
.chat-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.55);
  font-size: var(--text-2xl); display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.06); }

.chat-widget {
  position: fixed; bottom: 96px; left: 24px; z-index: 100;
  width: 320px; max-width: calc(100vw - 48px); height: 420px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-widget.open { display: flex; }
.chat-widget-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--card-border); background: var(--bg-elevated); }
.chat-widget-head .chat-close { margin-right: auto; background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: var(--text-base); }
.chat-widget-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-widget-input { display: flex; border-top: 1px solid var(--card-border); }
.chat-widget-input input {
  flex: 1; background: transparent; border: none; padding: 14px 16px; color: var(--text); font-family: inherit; font-size: var(--text-sm);
}
.chat-widget-input input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent-2); }
.chat-widget-input button { background: none; border: none; color: var(--accent); font-size: var(--text-lg); padding: 0 16px; cursor: pointer; }

/* ===== معالجة لونية موحدة لكل الصور المعمارية (بديل الصور الفوتوغرافية غير المتوفرة) =====
   فلتر مشترك يسحب أي صورة مصدر — ملونة أو أبيض/أسود — إلى نفس العائلة النحاسية الدافئة،
   بغض النظر عن لونها الأصلي، حتى تحس كل صور الموقع إنها من تصوير واحد لا مجموعة متفرقة. */
.hero-art img, .hero-art video, .editorial-band img, .closing-cinematic img, .closing-cinematic video, .split-media img, .solution-visual img {
  filter: grayscale(0.5) sepia(0.25) saturate(1.3) contrast(1.05);
}

.hero-art {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 380px;
  border: 1px solid var(--card-border); box-shadow: var(--shadow-lg);
}
.hero-art img, .hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.75)), linear-gradient(35deg, rgba(212,129,63,0.28), rgba(28, 29, 32,0.1));
  mix-blend-mode: multiply;
}

.editorial-band {
  position: relative; overflow: hidden; padding: 120px 0; text-align: center;
  border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.editorial-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.editorial-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.85)), linear-gradient(35deg, rgba(212,129,63,0.22), rgba(28, 29, 32,0.08));
  mix-blend-mode: multiply;
}
.editorial-band .container { position: relative; z-index: 2; }
.editorial-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); max-width: 22ch; margin: 0 auto 18px; }
.editorial-band p { color: var(--text-dim); max-width: 56ch; margin: 0 auto; font-size: var(--text-base); }

/* ===== شريط الإحصاءات الحقيقية (من كتالوج الهوية) ===== */
.stat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  overflow: hidden; margin-top: 12px;
}
.stat-cell { padding: 26px 18px; text-align: center; border-inline-start: 1px solid var(--card-border-soft); }
.stat-cell:first-child { border-inline-start: none; }
.stat-cell strong { display: block; font-size: var(--text-3xl); color: var(--accent); font-weight: 700; line-height: 1.1; }
.stat-cell span { display: block; font-size: var(--text-sm); color: var(--text); margin-top: 6px; font-weight: 600; }
.stat-cell small { display: block; font-size: var(--text-xs); color: var(--text-faint); margin-top: 3px; }

/* ===== منهجية الخمس ركائز ===== */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 12px; }
.pillar {
  background: var(--card); border: 1px solid var(--card-border-soft); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; position: relative;
}
.pillar-en { font-size: var(--text-xs); letter-spacing: 0.18em; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.pillar-num {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%;
  border: 1px solid var(--accent-border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm);
}
.pillar h4 { font-size: var(--text-base); margin-bottom: 6px; }
.pillar p { font-size: var(--text-xs); color: var(--text-dim); }

/* ===== بطاقات نتائج العملاء الحقيقية ===== */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.result-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow-lg); transition: transform .18s ease;
}
.result-card:hover { transform: translateY(-4px); }
.result-num {
  position: absolute; top: 18px; inset-inline-end: 20px; font-family: var(--font-display);
  font-size: var(--text-4xl); font-weight: 800; color: var(--card-border); line-height: 1; z-index: 0;
}
.result-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--card-border-soft); position: relative; z-index: 1; }
.result-sector { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: 4px; }
.result-head h3 { font-size: var(--text-base); color: var(--accent); }
.result-head small { display: block; font-size: var(--text-xs); color: var(--text-dim); margin-top: 4px; }
.result-metric { padding: 22px 24px; text-align: center; background: var(--accent-soft); }
.result-metric strong { display: block; font-size: var(--text-4xl); color: var(--accent); font-weight: 700; }
.result-metric span { display: block; font-size: var(--text-sm); color: var(--text-dim); margin-top: 4px; }
.result-body { padding: 18px 24px 22px; }
.result-body h5 { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: 8px; font-weight: 600; }
.result-body ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.result-body li { font-size: var(--text-sm); color: var(--text-dim); padding-inline-start: 14px; position: relative; }
.result-body li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--accent); }
.result-ba { display: flex; gap: 12px; border-top: 1px solid var(--card-border-soft); padding-top: 14px; }
.result-ba div { flex: 1; text-align: center; }
.result-ba b { display: block; font-size: var(--text-base); color: var(--text); }
.result-ba em { display: block; font-size: var(--text-xs); color: var(--text-faint); font-style: normal; margin-top: 2px; }

.disclaimer {
  margin-top: 22px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--card-border-soft);
  font-size: var(--text-sm); color: var(--text-faint); text-align: center;
}

/* ===== بطاقات المسار (تصميم محسن: أيقونة + ترقيم + تدرج + تفاعل) ===== */
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 12px; }
.track-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(194,112,62,0.07), var(--card) 42%);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 34px 32px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.track-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 2px;
  background: var(--gold-line); opacity: 0; transition: opacity .2s ease;
}
.track-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow-lg); }
.track-card:hover::before { opacity: 1; }
.track-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: var(--text-2xl);
}
.track-card h2 { font-size: var(--text-xl); }
.track-card > p { color: var(--text-dim); font-size: var(--text-sm); flex: 1; }
.track-count {
  font-size: var(--text-xs); color: var(--accent-text); font-weight: 700;
  letter-spacing: 0.04em; text-transform: none;
}
.track-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.track-list li {
  font-size: var(--text-xs); color: var(--text-dim);
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border-soft);
  padding: 5px 11px; border-radius: 999px;
}
.track-go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 4px;
  color: var(--accent-text); font-size: var(--text-sm); font-weight: 700;
}
.track-card:hover .track-go { gap: 12px; }
.track-go { transition: gap .2s ease; }

/* بطاقة مجال بشريط جانبي مرقم */
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.domain-card {
  position: relative; background: var(--card); border: 1px solid var(--card-border-soft);
  border-radius: var(--radius); padding: 30px 30px 30px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
  border-inline-start: 3px solid transparent;
}
.domain-card:hover { border-color: var(--card-border); border-inline-start-color: var(--accent); transform: translateY(-3px); }
.domain-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.domain-num {
  font-size: var(--text-3xl); font-weight: 700; color: rgba(194,112,62,0.22); line-height: 1;
}
.domain-icon { font-size: var(--text-2xl); }
.domain-card h3 { font-size: var(--text-lg); }
.domain-card > p { color: var(--text-dim); font-size: var(--text-sm); flex: 1; }
.domain-card .track-list li { font-size: var(--text-xs); }
.domain-go { color: var(--accent); font-size: var(--text-sm); font-weight: 700; margin-top: 4px; }

/* بطاقة حل تقني */
.solution-card {
  display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: center;
  background: linear-gradient(150deg, rgba(194,112,62,0.06), var(--card) 45%);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 36px; margin-bottom: 20px;
}
.solution-card.soon { background: var(--card); opacity: 0.9; }
.solution-badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: var(--text-xs); font-weight: 800; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.badge-live { background: transparent; border: 1px solid var(--accent-border); color: var(--accent-deep); }
.band-dark .badge-live { color: var(--accent); }
.badge-soon { background: rgba(194,112,62,0.14); color: var(--accent); }
.solution-card h2 { font-size: var(--text-2xl); margin-bottom: 10px; }
.solution-card > div > p { color: var(--text-dim); font-size: var(--text-base); margin-bottom: 18px; }
.solution-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.solution-features li { font-size: var(--text-sm); color: var(--text-dim); padding-inline-start: 22px; position: relative; }
.solution-features li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 800;
}
.solution-card.soon .solution-features li::before { color: var(--accent); }
.solution-visual {
  border-radius: var(--radius-sm); overflow: hidden; height: 100%; min-height: 190px;
  border: 1px solid var(--card-border-soft); position: relative;
}
.solution-visual img { width: 100%; height: 100%; object-fit: cover; }
.solution-visual .mock-chat-card {
  position: static; width: 100%; height: 100%; margin: 0; box-sizing: border-box;
  border: none; box-shadow: none; border-radius: 0; background: var(--card);
  display: flex; flex-direction: column; justify-content: center;
}

/* شريط تنقل داخلي (Breadcrumb) */
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-faint); margin-bottom: 16px; }
.crumb a { color: var(--accent); }
.crumb a:hover { text-decoration: underline; }

/* ===== بطل سينمائي (نسخة مرفوعة) ===== */
.hero-cinematic { padding: 76px 0 0; overflow: hidden; }
.hero-cinematic .hero-copy { padding-bottom: 64px; }
.hero-cinematic h1 {
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 26px;
}
.hero-cinematic h1 span.line { display: block; }
.hero-cinematic .lead { font-size: var(--text-lg); max-width: 52ch; }
.hero-trust {
  display: flex; align-items: center; gap: 10px; margin-top: 40px;
  font-size: var(--text-sm); color: var(--text-faint);
}
.hero-trust .gold-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-cinematic .hero-visual { align-self: stretch; }
.hero-cinematic .hero-art { min-height: 460px; border-radius: 4px; }

/* ===== بطل سينمائي غامر بملء الشاشة (الرئيسية فقط) — فيديو/صورة خلفية كاملة تحت النص،
   بدل صندوق منفصل — نفس منطق closing-cinematic لكن بمحتوى الهيرو الفعلي فوقه. */
.hero-immersive {
  position: relative; overflow: hidden; min-height: 86vh;
  display: flex; align-items: flex-end; padding: 0 0 72px;
}
.hero-immersive > video, .hero-immersive > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-immersive::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(28,29,32,0.1) 0%, rgba(28,29,32,0.55) 55%, rgba(28,29,32,0.94) 100%),
              linear-gradient(35deg, rgba(212,129,63,0.22), transparent 60%);
}
.hero-immersive .container { position: relative; z-index: 2; }
.hero-immersive .hero-copy { max-width: 62ch; padding-top: 140px; }
.hero-immersive h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 24px; color: var(--text);
}
.hero-immersive h1 span.line { display: block; }
.hero-immersive .lead { font-size: var(--text-lg); max-width: 50ch; color: var(--text-dim); }
@media (max-width: 720px) {
  .hero-immersive { min-height: 78vh; }
  .hero-immersive .hero-copy { padding-top: 96px; }
}

/* ===== خريطة الألم (Pain Map) ===== */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--card-border-soft); border: 1px solid var(--card-border-soft); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.pain-cell { background: var(--bg-elevated); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.pain-num { font-size: var(--text-xs); color: var(--text-faint); font-weight: 700; letter-spacing: 0.06em; }
.pain-cell h3 { font-size: var(--text-lg); line-height: 1.35; }
.pain-cell p { font-size: var(--text-sm); color: var(--text-dim); margin: 0; }
.pain-impact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--card-border-soft); }
.pain-impact .pct { font-size: var(--text-2xl); font-weight: 800; color: var(--accent); }
.pain-impact .desc { display: block; font-size: var(--text-xs); color: var(--text-faint); margin-top: 2px; }

.pain-summary {
  margin-top: 40px; padding: 36px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(194,112,62,0.08), var(--card) 55%);
  border: 1px solid var(--accent-border);
  display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 24px; align-items: center;
}
.pain-summary p { color: var(--text-dim); font-size: var(--text-base); }
.pain-summary-stat { text-align: center; }
.pain-summary-stat strong { display: block; font-size: var(--text-3xl); font-weight: 800; color: var(--accent-light); }
.pain-summary-stat span { font-size: var(--text-xs); color: var(--text-faint); line-height: 1.4; display: block; margin-top: 4px; }

/* ===== قسم تحريري متبادل (صورة + نص) ===== */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; }
.split-block:not(:last-child) { border-bottom: 1px solid var(--card-border-soft); }
.split-block.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; min-height: 340px; position: relative; border: 1px solid var(--card-border-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.track-icon svg { width: 26px; height: 26px; }
.split-text .track-icon { margin-bottom: 18px; display: flex; }
.split-text .track-icon svg { width: 30px; height: 30px; }
.split-text h3 { font-size: var(--text-3xl); margin-bottom: 16px; line-height: 1.3; }
.split-text > p { color: var(--text-dim); font-size: var(--text-base); margin-bottom: 22px; }
.split-text .track-list { margin-bottom: 26px; }
/* عنوان المسار: الأيقونة بجانب العنوان على السطر نفسه */
.split-text .track-title { display: flex; align-items: center; gap: 14px; }
.split-text .track-title .track-icon { margin-bottom: 0; width: 48px; height: 48px; border-radius: 12px; }
.split-text .track-title .track-icon svg { width: 24px; height: 24px; }
.split-text .track-tagline { color: var(--accent-light); font-size: var(--text-lg); font-weight: 600; margin-bottom: 12px; }
.track-items { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; padding: 0; }
.track-items li a {
  display: block; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--card-border-soft); background: rgba(255,255,255,0.03);
  color: inherit; text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.track-items li a:hover, .track-items li a:focus-visible { border-color: var(--accent-border); background: var(--accent-soft); }
.track-items b { display: block; font-size: var(--text-base); margin-bottom: 4px; }
.track-items span { display: block; font-size: var(--text-sm); color: var(--text-dim); line-height: 1.6; }
.track-items li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.split-text .track-closing { font-weight: 600; color: inherit; margin-bottom: 18px; }
@media (max-width: 700px) {
  .track-items { grid-template-columns: 1fr; }
  .split-text .track-title { gap: 10px; }
}

/* ===== ركائز المنهجية (نسخة مرفوعة) ===== */
.pillars-cinematic { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 20px; }
.pillars-cinematic::before {
  content: ""; position: absolute; top: 34px; inset-inline: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), var(--accent-border), transparent);
}
.pillar-c { position: relative; padding: 0 18px; text-align: center; }
.pillar-c .pillar-num {
  position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 800; color: var(--accent);
}
.pillar-c .pillar-en { font-size: var(--text-2xs); letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 8px; }
.pillar-c h3 { font-size: var(--text-base); margin-bottom: 8px; }
.pillar-c p { font-size: var(--text-sm); color: var(--text-dim); }

/* ===== أثر متوقع (من العرض الرسمي) ===== */
.impact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.impact-card { background: var(--card); border: 1px solid var(--card-border-soft); border-radius: var(--radius); padding: 26px; }
.impact-card h4 { font-size: var(--text-base); margin-bottom: 10px; }
.impact-card p { font-size: var(--text-sm); color: var(--text-dim); margin-bottom: 16px; }
.impact-value { font-size: var(--text-lg); font-weight: 800; color: var(--accent); }

/* ===== إغلاق سينمائي ===== */
.closing-cinematic { position: relative; overflow: hidden; padding: 130px 0; text-align: center; }
.closing-cinematic img, .closing-cinematic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.closing-cinematic::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.9)), linear-gradient(35deg, rgba(212,129,63,0.22), rgba(28, 29, 32,0.08));
  mix-blend-mode: multiply;
}
.closing-cinematic .container { position: relative; z-index: 2; }
.closing-cinematic h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 20ch; margin: 0 auto 22px; line-height: 1.2; }
.closing-cinematic p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 34px; font-size: var(--text-base); }

/* ===== حركة كشف عند التمرير ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
/* كشف متدرج للعناصر الفرعية داخل قسم واحد — كل عنصر يظهر بعد سابقه بلحظة قصيرة،
   بدل ظهور القسم كله دفعة واحدة. يفعل بإضافة data-stagger لكل عنصر فرعي. */
.reveal [data-stagger] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view [data-stagger] { opacity: 1; transform: translateY(0); }
.reveal.in-view [data-stagger="1"] { transition-delay: .08s; }
.reveal.in-view [data-stagger="2"] { transition-delay: .16s; }
.reveal.in-view [data-stagger="3"] { transition-delay: .24s; }
.reveal.in-view [data-stagger="4"] { transition-delay: .32s; }
.reveal.in-view [data-stagger="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal [data-stagger] { opacity: 1; transform: none; transition: none; }
}

/* ===== حاجز الدفع لأدوات القرار المدفوعة (المرحلة التاسعة) ===== */
.paywall-icon { font-size: var(--text-3xl); margin-bottom: 8px; }
.paywall-price-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 22px; padding: 14px 16px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.paywall-price-row label { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); font-weight: 600; cursor: pointer; }
.paywall-price-row input[type="radio"] { width: auto; }
#paywallStatus { font-size: var(--text-sm); margin-top: 14px; min-height: 1.2em; }

/* ===== إحصائية تحريرية — رقم كبير كنموذج طباعي، لا صندوق ===== */
.editorial-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 62ch; }
.editorial-stat .num { font-family: var(--font-display-en); font-size: clamp(3.2rem, 8vw, 5.5rem); font-weight: 600; line-height: 1; color: var(--text); }
html[lang="ar"] .editorial-stat .num { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.editorial-stat p { font-size: var(--text-lg); color: var(--text-dim); margin: 0; }
.editorial-stat .sub { font-size: var(--text-sm); color: var(--text-faint); }

/* ===== أسباب تحريرية — بلا بطاقات متطابقة. سبب رئيسي بارز بالطباعة، وسببان
   داعمان بقائمة بسيطة بلا إطار. يتفادى قصدا نمط "ثلاث بطاقات متساوية" الشائع
   بمواقع الذكاء الاصطناعي الجاهزة. ===== */
.reasons-editorial { max-width: 74ch; margin-inline: auto; }
.reasons-editorial .lead-reason { margin-bottom: 36px; padding-inline-start: 22px; border-inline-start: 3px solid var(--accent); }
.reasons-editorial .lead-reason h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 600; margin-bottom: 10px; }
html[lang="ar"] .reasons-editorial .lead-reason h3 { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.reasons-editorial .lead-reason p { font-size: var(--text-base); color: var(--text-dim); margin: 0; max-width: 60ch; }
.reasons-editorial .support-reasons { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; border-top: 1px solid var(--card-border-soft); }
.reasons-editorial .support-item { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: baseline; }
.reasons-editorial .support-item h4 { font-size: var(--text-base); font-weight: 700; color: var(--text); margin: 0; }
.reasons-editorial .support-item p { font-size: var(--text-sm); color: var(--text-dim); margin: 0; }

/* ===== كتلة دراسة حالة — نسخة تحريرية: رقم ضخم كعنصر طباعي + عنوان كبير
   بجانبه (لا لوحتان متجاورتان)، ثم تفصيل بعمودين أسفل. ===== */
.case-study-block {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 48px 46px; margin-top: 12px;
}
.case-study-top {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--card-border-soft);
}
.case-study-top .big-metric {
  font-family: var(--font-display-en); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600;
  color: var(--accent); line-height: 1; white-space: nowrap;
}
html[lang="ar"] .case-study-top .big-metric { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.case-study-top .headline-block .sector { font-size: var(--text-xs); color: var(--text-faint); margin-bottom: 8px; }
.case-study-top .headline-block h3 {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.4;
}
html[lang="ar"] .case-study-top .headline-block h3 { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.case-study-ba { display: flex; gap: 24px; margin-top: 14px; }
.case-study-ba div { display: flex; align-items: baseline; gap: 6px; }
.case-study-ba b { font-size: var(--text-base); color: var(--text); }
.case-study-ba em { font-style: normal; font-size: var(--text-xs); color: var(--text-faint); }
.case-study-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.case-study-bottom .col h4 { font-size: var(--text-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.case-study-bottom .col p { font-size: var(--text-sm); color: var(--text-dim); margin: 0; }
.case-study-bottom .col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.case-study-bottom .col li { font-size: var(--text-sm); color: var(--text-dim); padding-inline-start: 16px; position: relative; }
.case-study-bottom .col li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--accent); }

/* ===== responsive =====
   نقاط انكسار: لابتوب/سطح مكتب (افتراضي، ≥1024px) → تابلت (1023–701px) →
   جوال (≤700px). مبنية على قياسات فعلية شائعة (iPhone ~390px، iPad ~768–1024px،
   لابتوب ≥1280px)، لا كسر عشوائي واحد. */

/* ---- تابلت: أعمدة 3 و4 تنكمش إلى عمودين، لا عمود واحد فجأة ---- */
@media (max-width: 1023px) {
  .container { padding: 0 20px; }
  .problem-grid, .layers, .pricing-grid, .cycle, .svc-hub { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-cell { border-bottom: 1px solid var(--card-border-soft); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .track-grid, .domain-grid, .path-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card { grid-template-columns: 1fr; }
  .solution-visual { min-height: 180px; }
  .hero-grid { gap: 36px; }
  .price-card-featured { transform: none; }
  .svc-detail-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero-cinematic h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-summary { grid-template-columns: repeat(2, 1fr); }
  .split-block { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .split-block.reverse .split-media { order: 0; }
  .split-media { min-height: 260px; }
  .pillars-cinematic { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .pillars-cinematic::before { display: none; }
  .impact-strip { grid-template-columns: repeat(2, 1fr); }
  .statement-grid { grid-template-columns: 1fr; }
  .case-study-block { padding: 32px 28px; }
  .case-study-top { grid-template-columns: 1fr; gap: 16px; }
  .case-study-bottom { grid-template-columns: 1fr; gap: 24px; }
  .reasons-editorial .support-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- جوال ولوحي صغير ---- */
/* ---- تحويل القائمة لهمبرغر مبكرا على التابلت — الهيدر صار أطول (شعار كامل + وصف + رابط لغة)
   ولا يتسع بعد الآن بعرض التابلت الكامل، فينكسر الصف ويطفح أفقيا بدون هذا الكسر المبكر ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-inner > a.btn { display: none; }
  .nav {
    display: none;
    position: fixed; top: 64px; inset-inline: 14px; z-index: 60;
    background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: var(--radius);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav > a, .dropdown-trigger { padding: 13px 16px; border-radius: var(--radius-sm); width: 100%; justify-content: space-between; }
  .nav > a:hover, .nav > a:active { background: var(--card); }
  .has-dropdown { width: 100%; }
  .dropdown {
    position: static; min-width: 0; box-shadow: none; margin: 2px 0 6px;
    background: var(--card); border-color: var(--card-border-soft);
  }
  .dropdown a { padding: 12px 14px; }
}

@media (max-width: 700px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-art { min-height: 220px; }
  .mock-chat-card { position: static; width: 100%; margin-top: 16px; }
  .problem-grid, .layers, .pricing-grid, .cycle, .svc-hub { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .editorial-band { padding: 72px 0; }
  .hero-stats { gap: 20px; }
  .header-inner { padding: 14px 16px; }

  /* قائمة تنقل حقيقية بزر همبرغر، لا اختفاء بلا بديل */
  .nav-toggle { display: flex; }
  .header-inner > a.btn { display: none; }
  .nav {
    display: none;
    position: fixed; top: 64px; inset-inline: 14px; z-index: 60;
    background: var(--bg-elevated); border: 1px solid var(--card-border); border-radius: var(--radius);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav > a, .dropdown-trigger { padding: 13px 16px; border-radius: var(--radius-sm); width: 100%; justify-content: space-between; }
  .nav > a:hover, .nav > a:active { background: var(--card); }

  /* بالجوال: القائمة المنسدلة تتمدد داخل القائمة نفسها بدل أن تطفو */
  .has-dropdown { width: 100%; }
  .dropdown {
    position: static; min-width: 0; box-shadow: none; margin: 2px 0 6px;
    background: var(--card); border-color: var(--card-border-soft);
  }
  .dropdown a { padding: 12px 14px; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-inline-start: none; border-bottom: 1px solid var(--card-border-soft); }
  .pillars { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .track-grid, .domain-grid, .path-grid { grid-template-columns: 1fr; }
  .track-card, .domain-card, .path-card { padding: 26px 22px; }
  .solution-card { grid-template-columns: 1fr; padding: 26px 22px; }
  .lead-form-card { padding: 24px 20px; }
  .brand-tag, .brand-divider { display: none; }
  .svc-hook { padding: 14px 16px; }
  .chat-widget { inset-inline: 14px; width: auto; bottom: 88px; }
  .chat-fab { bottom: 18px; inset-inline-start: 18px; }

  .hero-cinematic { padding-top: 56px; }
  .hero-cinematic h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-cinematic .hero-art { min-height: 220px; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-summary { grid-template-columns: 1fr; padding: 26px 22px; text-align: center; }
  .split-block { padding: 40px 0; }
  .split-text h3 { font-size: var(--text-2xl); }
  .pillars-cinematic { grid-template-columns: 1fr; row-gap: 30px; }
  .pillars-cinematic .pillar-c { padding: 0; }
  .impact-strip { grid-template-columns: 1fr; }
  .closing-cinematic { padding: 80px 0; }
}

/* ---- جوال صغير جدا (≤380px مثل iPhone SE) ---- */
@media (max-width: 380px) {
  .hero h1 { font-size: var(--text-3xl); }
  .btn-lg { padding: 13px 22px; font-size: var(--text-sm); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; gap: 14px; }
}
@media (max-width: 400px) {
  .contact-form { padding: 20px 16px; }
}

/* ===== بطاقة الخدمة: السعر بجانب الزر، وخطوة الدفع ===== */
.solution-buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.solution-price { font-size: var(--text-xl); font-weight: 700; color: var(--text); }
#serviceOverview .solution-features { margin: 18px 0 22px; }
.paywall-price-row { justify-content: space-between; align-items: center; font-size: var(--text-base); }
.paywall-price-row strong { font-size: var(--text-xl); }
.paywall-switch { background: none; border: 0; padding: 0; color: var(--text-faint); font: inherit; font-size: var(--text-sm); text-decoration: underline; cursor: pointer; }
.paywall-switch:hover { color: var(--accent); }

/* ===== جولة 23: دعوة القائمة المنسدلة، بطل الصفحة الرئيسية، أقسام التحرير ===== */
.dropdown .dd-cta {
  display: block; margin: 10px 8px 6px; padding: 11px 16px !important; border-radius: 999px;
  background: var(--accent); color: #1c1d20 !important; font-weight: 700; text-align: center;
  font-size: var(--text-sm);
}
.dropdown .dd-cta:hover { filter: brightness(1.06); }

/* البطل: الشعار يملأ الصفحة من جهة البداية (يمين العربية، يسار الإنجليزية) */
.hero-immersive { min-height: 100vh; align-items: flex-end; padding-bottom: 88px; }
.hero-immersive > .container { width: 100%; }
.hero-immersive .hero-copy { max-width: none; padding-top: 160px; align-items: flex-start; text-align: start; }
.hero-immersive h1 {
  font-size: clamp(3.2rem, 9.5vw, 8.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 36px;
}
html[lang="ar"] .hero-immersive h1 { line-height: 1.15; letter-spacing: 0; }
.hero-immersive .lead {
  max-width: 44ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0;
  padding-inline-start: 18px; border-inline-start: 2px solid var(--accent);
}
@media (max-width: 720px) {
  .hero-immersive { min-height: 88vh; padding-bottom: 56px; }
  .hero-immersive .hero-copy { padding-top: 110px; }
}

/* أقسام التحرير: عنوان في عمود، ومحتوى في عمود، بمحاذاة واحدة لبداية الصفحة */
.editorial-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: 72px; align-items: start; }
.editorial-split > .kicker, .editorial-split > h2 { grid-column: 1; }
.editorial-split > h2 { margin-bottom: 0; }
.editorial-split > .reasons-editorial { grid-column: 2; grid-row: 1 / span 2; max-width: none; margin: 0; }
@media (max-width: 900px) {
  .editorial-split { grid-template-columns: 1fr; }
  .editorial-split > .reasons-editorial { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

/* قصة الاسم: توسيط كامل ومقصود لكل عناصر القسم */
.name-story .container { text-align: center; }
.name-story .container > p:not(.kicker) { margin-inline: auto; max-width: 56ch; }
.name-story .container > h3 { position: relative; padding-top: 8px; }

/* ===== جولة 24: تدرج مقاسات العناوين =====
   قبل: عنوان الرئيسية 9.5vw بسقف 8.6rem (122px على حاسوب محمول) وعناوين الصفحات الداخلية 6vw بسقف 5rem،
   فيملأ العنوان الشاشة الأولى. بعد: عنوان الرئيسية 6vw بسقف 5.25rem، والداخلية 3.8vw بسقف 3.25rem، وبطل بارتفاع محدود. */
.hero-immersive { min-height: clamp(520px, 88vh, 820px); padding-bottom: 72px; }
.hero-immersive .hero-copy { padding-top: 112px; }
.hero-immersive h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 1.05; margin-bottom: 28px; }
html[lang="ar"] .hero-immersive h1 { line-height: 1.2; }
.hero-cinematic h1, .section.contact h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.15; }
.hero-cinematic .hero-copy { padding-bottom: 48px; }
.hero-immersive h1, .hero-cinematic h1, .section.contact h1 { text-wrap: balance; }
@media (max-width: 720px) {
  .hero-immersive h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .hero-cinematic h1, .section.contact h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
}

/* ===== Phase 0 (11 Oct 2026): first-screen actions, contrast, article cards, mobile action bar ===== */
.study-card .kind-tag, .study-card .read-more, .latest-card .kind-tag, .latest-card .read-more { color: var(--accent-text); }
.footer-utility-links a { color: #b0aba4; opacity: 1; }
.hero-immersive { min-height: 74vh; }
.hero-immersive .hero-copy { padding-top: 110px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-immersive .btn-ghost { color: #faf6f0; border-color: rgba(250,246,240,0.7); background: rgba(28,29,32,0.35); }
.latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.latest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 22px 0 8px; }
.latest-card { display: flex; flex-direction: column; background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.latest-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); }
.latest-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.latest-card .lc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.latest-card .kind-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; border: 1px solid var(--accent-border, #c2703e); border-radius: 999px; padding: 2px 12px; line-height: 1.6; }
.latest-card h3 { font-size: var(--text-lg, 1.1rem); line-height: 1.45; margin: 0; }
.latest-card p { font-size: var(--text-sm, .92rem); color: var(--text-dim); margin: 0; }
.latest-card .read-more { font-weight: 700; font-size: .85rem; margin-top: 4px; }
.diag-gets { max-width: 980px; margin: 0 auto; padding: 8px 24px 60px; }
.diag-gets h2 { margin-bottom: 14px; }
.diag-gets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.diag-gets-item { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 18px 18px 20px; }
.diag-gets-item h3 { font-size: 1.02rem; margin: 0 0 6px; }
.diag-gets-item p { font-size: .92rem; color: var(--text-dim); margin: 0; }
.diag-gets-note { margin-top: 18px; color: var(--text-dim); font-size: .95rem; }
.diag-gets-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.zj-actionbar { display: none; }
@media (max-width: 720px) {
  .zj-actionbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(28,29,32,.97); border-top: 1px solid #38393e; transform: translateY(110%); transition: transform .25s ease; }
  .zj-actionbar.on { transform: none; }
  .zj-actionbar a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .zj-actionbar .p { background: #c2703e; color: #1c1d20; }
  .zj-actionbar .s { border: 1px solid #faf6f0; color: #faf6f0; }
  body.zj-has-actionbar { padding-bottom: 66px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .zj-actionbar, .latest-card { transition: none; } }

/* ===== Gradient model B (Owner approval, 12 Oct 2026): basalt toward a warm copper tint instead of flat black blocks ===== */
.band-dark, .site-footer {
  background-color: #1c1d20;
  background-image: linear-gradient(160deg, #1c1d20 0%, #2b2622 55%, #6b3d22 100%);
}
.site-header { background: linear-gradient(160deg, rgba(28,29,32,0.94) 0%, rgba(43,38,34,0.94) 100%); }
.zj-actionbar { background: linear-gradient(160deg, rgba(28,29,32,.97), rgba(43,38,34,.97)); }

/* ===== Tool guide (from the official catalog) ===== */
.tool-guide { padding: 8px 0 28px; }
.tool-guide h2 { margin-bottom: 8px; }
.tool-guide .tg-def { color: var(--text-dim); max-width: 70ch; margin-bottom: 18px; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tg-item { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 16px 18px 18px; }
.tg-item h3 { font-size: 1rem; margin: 0 0 6px; color: var(--accent-text); }
.tg-item p { font-size: .95rem; color: var(--text); margin: 0; line-height: 1.8; }

/* ===== Read next (article pages) ===== */
.read-next { max-width: 860px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--card-border, #ddd5ca); }
.read-next h2 { font-size: 1.3rem; margin-bottom: 8px; }
.read-next .latest-card h3 { font-size: 1rem; }

@media (min-width: 900px) { .diag-gets-item.wide { grid-column: span 2; } }

/* ===== Article dates, sources and review ===== */
.study-dates { color: var(--text-dim); font-size: .92rem; margin: 6px 0 0; }
.study-dates:empty { display: none; }
.study-sources { max-width: 860px; margin: 40px auto 0; padding: 18px 20px; background: var(--bg-elevated, #ede9e4); border-radius: var(--radius, 12px); }
.study-sources h2 { font-size: 1.1rem; margin: 0 0 8px; }
.study-sources ul { margin: 0 0 10px; padding-inline-start: 20px; }
.study-sources li { font-size: .92rem; margin-bottom: 4px; color: var(--text); }
.study-reviewed { margin: 0; font-size: .88rem; color: var(--text-dim); font-weight: 700; }

/* ===== Tool questions (from the official catalog) ===== */
.tool-faq-h { margin: 22px 0 8px; font-size: 1.05rem; }
.tool-faq { display: grid; gap: 10px; }
.tool-q { border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 12px 16px; background: var(--card, #fff); }
.tool-q summary { cursor: pointer; font-weight: 700; }
.tool-q p { margin: 10px 0 0; color: var(--text); line-height: 1.8; }
/* ===== Tool guide (from the official catalog) ===== */
.tool-guide { padding: 8px 0 28px; }
.tool-guide h2 { margin-bottom: 8px; }
.tool-guide .tg-def { color: var(--text-dim); max-width: 70ch; margin-bottom: 18px; }
.tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tg-item { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 16px 18px 18px; }
.tg-item h3 { font-size: 1rem; margin: 0 0 6px; color: var(--accent-text); }
.tg-item p { font-size: .95rem; color: var(--text); margin: 0; line-height: 1.8; }

/* ===== Release 2: featured article and consulting areas inside the Services menu ===== */
.latest-card.featured { flex-direction: row; margin: 22px 0 20px; }
.latest-card.featured img { width: 46%; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
.latest-card.featured .lc-body { padding: 20px 24px; justify-content: center; gap: 10px; }
.latest-card.featured h3 { font-size: var(--text-xl, 1.35rem); }
@media (max-width: 720px) { .latest-card.featured { flex-direction: column; } .latest-card.featured img { width: 100%; } }
.dd-subs { display: grid; gap: 2px; padding: 0 12px 8px; }
.dd-sub { display: block; font-size: .86rem; padding: 4px 10px; border-inline-start: 2px solid var(--accent-border, #c2703e); color: var(--text-dim); text-decoration: none; }
.dd-sub:hover { color: var(--accent-text); }

/* ===== Pending block (domain pages, methodology, sample report) ===== */
.dom-block { padding: 14px 0 22px; }
.dom-block h2 { margin-bottom: 12px; }
.dom-when, .dom-services, .dom-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dom-when li, .dom-services li, .dom-tools li { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 12px 16px; line-height: 1.8; }
.dom-services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dom-tools { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dom-tools a { font-weight: 700; color: var(--accent-text); }
.dom-q { border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 12px 16px; margin-bottom: 10px; background: var(--card, #fff); }
.dom-q summary { cursor: pointer; font-weight: 700; }
.dom-q p { margin: 10px 0 0; color: var(--text-dim); }
.dom-method { margin-top: 18px; font-weight: 700; }
.dom-method a { color: var(--accent-text); }
.mth-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.mth-step { display: flex; gap: 16px; align-items: flex-start; background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 16px 18px; }
.mth-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-2, #c2703e); color: var(--on-accent, #1c1d20); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mth-step h3 { margin: 0 0 2px; font-size: 1.1rem; }
.mth-out { color: var(--accent-text); font-weight: 700; margin: 0 0 4px; }
.mth-strip { padding: 40px 0 8px; }
.mth-minis { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mth-mini { display: flex; flex-direction: column; gap: 6px; background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 14px 14px 16px; }
.mth-mini b { font-size: 1.05rem; }
.mth-mini span:last-child { color: var(--text-dim); font-size: .9rem; }
.sample-report { max-width: 980px; margin: 0 auto; padding: 0 24px 60px; }
.sample-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sample-table th, .sample-table td { border: 1px solid var(--card-border, #ddd5ca); padding: 10px 12px; text-align: start; }
.sample-table th { background: var(--bg-elevated, #ede9e4); }
.sample-overall { font-size: 1.1rem; margin: 10px 0; }
.st { display: inline-block; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .9rem; border: 1px solid; }
.st-red { background: #fbe9e7; color: #8a1c13; border-color: #d98880; }
.st-yellow { background: #fff4d6; color: #6b4a00; border-color: #d9b44a; }
.st-green { background: #e3f4e6; color: #145a2a; border-color: #7bbf8a; }
.sample-issues { list-style: none; padding: 0; display: grid; gap: 8px; }
.sample-issues li { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 10px 14px; }

.study-related { max-width: 860px; margin: 32px auto 0; font-weight: 700; }
.study-related a { color: var(--accent-text); }
.dom-articles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dom-articles li { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 12px 16px; }
.dom-articles a { font-weight: 700; color: var(--accent-text); }

/* Reading paths (studies page) */
.reading-paths { margin-bottom: 40px; }
.rp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rp-card { background: var(--card, #fff); border: 1px solid var(--card-border, #ddd5ca); border-radius: var(--radius, 12px); padding: 20px 22px; }
.rp-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rp-card p { margin: 0 0 12px; color: var(--text-muted, inherit); }
.rp-card ol { margin: 0; padding-inline-start: 1.4em; display: grid; gap: 8px; }
.rp-card li::marker { color: var(--accent-text); font-weight: 700; }
.rp-card a { font-weight: 700; color: var(--accent-text); }
