/* ==========================================================================
   مِختبر — صفحة التعريف (Landing)
   نظام التصميم وفق DESIGN.md: ورق كريمي + حواف فحمية + برتقالي ماركر.
   RTL عربي. خط العرض: Baloo Bhaijaan 2 (بديل gelica) · النص: Readex Pro.
   ========================================================================== */

:root {
    /* Colors */
    --color-cream-paper: #fdfbf9;
    --color-charcoal: #171717;
    --color-cocoa-ink: #2b1a07;
    --color-true-black: #000000;
    --color-dew-drop: #f7efe9;
    --color-marker-orange: #ff6f1e;
    --color-burnt-sienna: #ce500a;
    --color-sky-sticker: #3b82f6;
    --color-bubblegum-sticker: #ff66cf;
    --color-sprout-sticker: #22c55e;
    --color-shadow-mist: #bebcbb;

    /* Typography */
    --font-display: 'Baloo Bhaijaan 2', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Readex Pro', ui-sans-serif, system-ui, sans-serif;

    /* Shadows */
    --shadow-lg: rgba(0, 0, 0, 0.06) 0 2px 20px 0;
    --shadow-subtle: rgba(0, 0, 0, 0.25) 0 1px 2px 0;

    /* Layout */
    --page-max: 1200px;
    --section-gap: 64px;
    --card-padding: 32px;
    --radius-cards: 12px;
    --radius-buttons: 20px;
    --radius-footer: 56px;
    --radius-tags: 20px;

    /* Decorations — خط ماركر مرسوم باليد يُستخدم أسفل الأرقام والأسعار */
    --marker-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='10' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 7 C 45 2, 95 9, 150 5 S 192 3, 197 5' fill='none' stroke='%23ff6f1e' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--color-cream-paper);
    color: var(--color-cocoa-ink);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* --------------------------------------------------------------------------
   خلفية الصفحة بالكامل: شبكة خطوط رفيعة وشفافة جدًا فقط (بلا نقاط أو هالات)
   طبقة ثابتة تغطّي الشاشة خلف المحتوى؛ الحركة تُقاد بمتغيّرَي --pg-x / --pg-y
   من سكربت landing.js. شبكة نظيفة وبسيطة بالكاد تُرى.
   -------------------------------------------------------------------------- */
.page-grid {
    position: fixed;
    inset: 0;                  /* يغطّي الشاشة بالكامل */
    z-index: -1;               /* خلف كل المحتوى وفوق خلفية الصفحة */
    pointer-events: none;
    --pg-x: 0;
    --pg-y: 0;
    background-image:
        /* خطوط الشبكة الأفقية والعمودية: رفيعة (1px) وخفيفة */
        linear-gradient(to right, rgba(23, 23, 23, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(23, 23, 23, 0.01) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    background-position:
        calc(var(--pg-x) * 1px) calc(var(--pg-y) * 1px),
        calc(var(--pg-x) * 1px) calc(var(--pg-y) * 1px);
    background-repeat: repeat, repeat;
}

a { color: inherit; }

::selection { background: var(--color-marker-orange); color: var(--color-cream-paper); }

.container {
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: var(--section-gap); }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--color-cream-paper);
    border-bottom: 1.5px solid var(--color-charcoal);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    line-height: 1;
}

.brand__logo {
    height: 26px;
    width: auto;
    display: block;
    filter: brightness(0) invert(8%);
}

.brand__logo--footer {
    height: 30px;
    filter: brightness(0) invert(1);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-charcoal);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-block: 4px;
    transition: border-color .15s ease;
}

.nav a:hover { border-bottom-color: var(--color-marker-orange); }

/* روابط تظهر في قائمة الجوال فقط */
.nav__mobile { display: none; }

.nav__cta { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.menu-toggle {
    display: none;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-charcoal);
    margin-inline-start: auto;
}

/* --------------------------------------------------------------------------
   Buttons (Pill Action Button) — دائمًا تعبئة كريمية + حد فحمي، بلا تعبئة لونية.
   يستند إلى نمط «Rolling Text Button» من motion.dev: نسخة مكرّرة من التسمية تنزلق للأعلى
   داخل حاوية مقصوصة (`overflow: hidden`) عند الـ hover، فيظهر نصٌّ بديل يحلّ محلّ الأصلي
   بدون أن يتغيّر حجم الزر.
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-charcoal);
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-buttons);
    padding: 10px 28px;
    box-shadow: var(--shadow-subtle);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
    white-space: nowrap;
    overflow: hidden;             /* مهم: يخفي النسخة الثانية قبل وبعد الحركة */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.18) 0 3px 8px 0;
    background: var(--color-charcoal);
    color: var(--color-cream-paper);
}

.btn:active { transform: translateY(0); }

.btn--lg { font-size: 18px; padding: 13px 34px; }

.btn--sm { font-size: 14px; padding: 8px 18px; }

/* ------------------------------------------------------------------
   Rolling text (نمط motion.dev — RollingTextButton):
   كلّ نسخة تنزلق رأسيًا + تتلاشى (crossfade) عند الـ hover، فلا تبقى
   أيّ لحظة فيها نسختان مرئيتان معًا — النسختان تتحرّكان في وقت واحد
   لكنّ شفافيّة إحداهما تنخفض صفر بينما ترتفع شفافيّة الأخرى.
   ------------------------------------------------------------------ */
.btn-roll {
    position: relative;
    display: inline-block;
    height: 1.15em;          /* سطر واحد بالضبط */
    line-height: 1.15;
    overflow: hidden;
    vertical-align: middle;
}

.btn-roll__stack {
    position: relative;
    display: block;
    height: 1.15em;
}

/* كل نسخة: كتلة بارتفاع سطر واحد، تتزحلق رأسيًا + تتلاشى */
.btn-roll__copy {
    display: block;
    line-height: 1.15;
    height: 1.15em;
    white-space: nowrap;
    transition: transform .22s cubic-bezier(.4, 0, .2, 1),
                opacity   .22s cubic-bezier(.4, 0, .2, 1);
    will-change: transform, opacity;
}

/* النسخة الأولى: ظاهرة، تتحرّك للأعلى + تتلاشى عند الـ hover */
.btn-roll__copy:nth-child(1) {
    transform: translateY(0);
    opacity: 1;
}

/* النسخة الثانية: مخفية تحت + شفافيّتها 0، تتحرّك للأعلى + تظهر */
.btn-roll__copy:nth-child(2) {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    transform: translateY(100%);
    opacity: 0;
}

/* hover: النسخة الأولى تتحرّك للأعلى وتتلاشى، الثانية تتحرّك للأعلى وتظهر */
.btn:hover .btn-roll__copy:nth-child(1),
.btn:focus-visible .btn-roll__copy:nth-child(1) {
    transform: translateY(-100%);
    opacity: 0;
}

.btn:hover .btn-roll__copy:nth-child(2),
.btn:focus-visible .btn-roll__copy:nth-child(2) {
    transform: translateY(0);
    opacity: 1;
}

/* احترام إعداد المستخدم لتقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .btn-roll__copy { transition: none; }
    .btn:hover .btn-roll__copy:nth-child(1),
    .btn:focus-visible .btn-roll__copy:nth-child(1) { transform: translateY(0); opacity: 1; }
    .btn-roll__copy:nth-child(2) { transform: translateY(100%); opacity: 0; }
    .btn:hover .btn-roll__copy:nth-child(2),
    .btn:focus-visible .btn-roll__copy:nth-child(2) { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(44px, 8vw, 96px);
    line-height: 1.08;
    color: var(--color-cocoa-ink);
    margin: 0;
    letter-spacing: normal;
}

.heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.2;
    color: var(--color-cocoa-ink);
    margin: 0 0 12px;
}

.subheading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--color-cocoa-ink);
}

.lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-cocoa-ink);
    margin: 0;
    max-width: 60ch;
}

/* Handwritten caption (برتقالي الماركر) */
.caption {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--color-marker-orange);
    margin: 0;
    transform: rotate(-1.5deg);
    transform-origin: right bottom;
}

/* Marker highlight: كلمة ببرتقالي + خط سفلي مرسوم باليد */
.mark {
    color: var(--color-marker-orange);
    background-image: var(--marker-underline);
    background-repeat: no-repeat;
    background-position: 0 96%;
    background-size: 100% 0.16em;
    padding-bottom: 0.1em;
}

.muted { color: #6b6257; }

.small { font-size: 15px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: 48px 64px; overflow: hidden; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

.hero__body {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-cocoa-ink);
    margin: 0;
    max-width: 52ch;
}

/* Hero visual: بطاقات تجارب متبدّلة (فيزياء ⇄ كيمياء) + ملصقات */
.hero-visual { position: relative; min-height: 400px; }

.hero-card {
    position: absolute;
    inset: 6px 0 42px 0;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transform: rotate(-5deg) translateY(28px) scale(.95);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-card.is-active {
    opacity: 1;
    transform: rotate(-5deg) translateY(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.hero-card.is-active:hover {
    transform: rotate(-3deg) translateY(-4px) scale(1);
    box-shadow: rgba(0, 0, 0, 0.12) 0 8px 26px 0;
}

/* نقاط التنقل بين بطاقات الهيرو */
.hero-dots {
    position: absolute;
    bottom: 8px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 6;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 50%;
    background: var(--color-cream-paper);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.hero-dot:hover { transform: scale(1.15); }

.hero-dot.is-active {
    background: var(--color-marker-orange);
    transform: scale(1.2);
}

.hero-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-cocoa-ink);
}

.chip {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    padding: 3px 12px;
    background: var(--color-dew-drop);
}

.hero-card__stage {
    flex: 1;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 12px;
    background: var(--color-dew-drop);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-card__stage svg { width: 100%; height: 100%; }

.hero-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.readout {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.readout span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 10px;
    padding: 4px 10px;
    background: var(--color-cream-paper);
}

/* Name-label sticker على البطاقة */
.name-label {
    position: absolute;
    top: -18px;
    inset-inline-start: 26px;
    background: #fff;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: var(--shadow-subtle);
    transform: rotate(3deg);
    z-index: 6;
}

.name-label b { font-family: var(--font-display); font-weight: 700; display: block; font-size: 16px; }

/* Stickers */
.sticker { position: absolute; z-index: 5; pointer-events: none; }

.sticker svg { width: 100%; height: 100%; }

.sticker--bolt { width: 64px; height: 64px; top: -12px; inset-inline-end: -6px; transform: rotate(8deg); }
.sticker--heart { width: 58px; height: 58px; bottom: 34px; inset-inline-start: -20px; transform: rotate(-10deg); }
.sticker--sparkle { width: 46px; height: 46px; bottom: -10px; inset-inline-end: 12%; transform: rotate(6deg); }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 780px;
    margin-inline: auto;
}

.stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    background: var(--color-cream-paper);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, 0.1) 0 10px 26px 0;
}

/* الرقم: خط العرض كبير + تسطير مرسوم باليد */
.stat b {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.08;
    color: var(--color-cocoa-ink);
    align-self: flex-start;
    background-image: var(--marker-underline);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.12em;
    padding-bottom: 0.08em;
}

.stat__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat__body > span {
    font-size: 15px;
    color: #6b6257;
}

.stat__icon {
    flex: none;
    width: 58px;
    height: 58px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--color-burnt-sienna);
    background: rgba(255, 111, 30, 0.14);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.stat:nth-child(2) .stat__icon {
    color: var(--color-sky-sticker);
    background: rgba(59, 130, 246, 0.14);
}

.stat__icon svg { width: 26px; height: 26px; }

.stat:hover .stat__icon { transform: rotate(-4deg); }

.stat:nth-child(1):hover .stat__icon {
    background: var(--color-marker-orange);
    color: var(--color-cream-paper);
}

.stat:nth-child(2):hover .stat__icon {
    background: var(--color-sky-sticker);
    color: var(--color-cream-paper);
}

/* هالة زخرفية ناعمة في الزاوية */
.stat__spark {
    position: absolute;
    inset-block-start: -48px;
    inset-inline-end: -48px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 111, 30, 0.16) 0%, rgba(255, 111, 30, 0) 70%);
    pointer-events: none;
}

.stat:nth-child(2) .stat__spark {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 70%);
}

@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; gap: 12px; }
    .stat { padding: 16px 18px; gap: 14px; }
    .stat__icon { width: 50px; height: 50px; border-radius: 15px; }
    .stat__icon svg { width: 22px; height: 22px; }
    .stat b { font-size: 34px; }
}

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); align-items: start; }

@media (max-width: 880px) {
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    padding: var(--card-padding);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.card--tint { background: var(--color-dew-drop); }

.card__icon {
    width: 54px;
    height: 54px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 14px;
    background: var(--color-dew-drop);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.card__icon svg { width: 30px; height: 30px; }

/* أيقونات القسم ملوّنة — نفس لوحة ملصقات نظام التصميم */
.card__icon--orange { background: var(--color-marker-orange); color: var(--color-cream-paper); }
.card__icon--sky { background: var(--color-sky-sticker); color: var(--color-cream-paper); }
.card__icon--sprout { background: var(--color-sprout-sticker); color: var(--color-cream-paper); }
.card__icon--bubblegum { background: var(--color-bubblegum-sticker); color: var(--color-cream-paper); }
.card__icon--sienna { background: var(--color-burnt-sienna); color: var(--color-cream-paper); }
.card__icon--ink { background: var(--color-cocoa-ink); color: var(--color-cream-paper); }

/* عند المرور: الأيقونة تدور وتكبُر قليلاً — إحساس حيوي متّسق مع بقية الكاردات */
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

.card p { margin: 0; color: #6b6257; font-size: 16px; line-height: 1.6; }

.card__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--color-cocoa-ink);
}

/* Section head */
.section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: center; text-align: center; margin-bottom: 36px; }

.section-head .caption { margin-bottom: 8px; }

.section-head .heading { margin: 0; }

.section-head--center { justify-content: center; text-align: center; }

/* النص التعريفي الفرعي تحت عنوان القسم — متمركز وبعرض مريح للقراءة */
.section-head__lede {
    flex: 0 0 100%;
    margin: 10px 0 0;
    color: #6b6257;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    max-width: 56ch;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   قسم السبورة التفاعلية (spotlight) — ترويسة موحّدة + عمودان (نص + مockup)
   -------------------------------------------------------------------------- */
.section--wb {
    position: relative;
    padding-block: 56px 72px;
}

.wb-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 720px;
    margin-inline: auto;
}

.wb-head__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    box-shadow: var(--shadow-subtle);
    color: var(--color-marker-orange);
    transform: rotate(-4deg);
}

.wb-head__badge svg { width: 28px; height: 28px; }

.wb-head .caption { margin: 0; }
.wb-head .heading { margin: 0; }

.wb-head .heading .kicker {
    display: inline-block;
    color: var(--color-marker-orange);
    background-image: var(--marker-underline);
    background-repeat: no-repeat;
    background-position: 0 96%;
    background-size: 100% 0.18em;
    padding-bottom: 0.05em;
}

.wb-head__lead {
    margin: 4px 0 8px;
    color: #6b6257;
    font-size: 17px;
    line-height: 1.7;
    max-width: 60ch;
}

/* تبويبات الوضع (رسم حرّ / خريطة مفاهيم) */
.wb-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    margin-top: 6px;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    box-shadow: var(--shadow-subtle);
}

.wb-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-cocoa-ink);
    background: transparent;
    border: 0;
    border-radius: calc(var(--radius-tags) - 8px);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.wb-tab:hover { transform: translateY(-1px); }

.wb-tab.is-active {
    background: var(--color-marker-orange);
    color: var(--color-cream-paper);
    box-shadow: rgba(255, 111, 30, 0.35) 0 4px 10px 0;
}

.wb-tab__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.wb-tab__icon svg { width: 100%; height: 100%; }

.wb-tab.is-active .wb-tab__icon svg path,
.wb-tab.is-active .wb-tab__icon svg rect,
.wb-tab.is-active .wb-tab__icon svg polygon,
.wb-tab.is-active .wb-tab__icon svg ellipse,
.wb-tab.is-active .wb-tab__icon svg circle { stroke: var(--color-cream-paper); }

/* صفّحتا النص والموك أب */
.wb-spotlight {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.wb-spotlight__copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

/* شبكة المميزات (2×2) */
.wb-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.wb-feature {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 14px;
    box-shadow: var(--shadow-subtle);
    transition: transform .25s ease, box-shadow .25s ease;
}

.wb-feature:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.18) 0 6px 14px 0;
}

.wb-feature__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--color-dew-drop);
    color: var(--color-charcoal);
}

.wb-feature__icon svg { width: 22px; height: 22px; }

.wb-feature:nth-child(1) .wb-feature__icon { background: #d3f9d8; color: #1f7a3d; }
.wb-feature:nth-child(2) .wb-feature__icon { background: #a5d8ff; color: #1d4f86; }
.wb-feature:nth-child(3) .wb-feature__icon { background: #ffec99; color: #8a5a00; }
.wb-feature:nth-child(4) .wb-feature__icon { background: #e5dbff; color: #5a3aa0; }

.wb-feature__title {
    margin: 2px 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--color-cocoa-ink);
}

.wb-feature__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b6257;
}

/* عمود الموك أب */
.wb-spotlight__visual { position: relative; padding-top: 14px; }

.wb-mock__mode {
    position: absolute;
    top: -6px;
    inset-inline-end: 24px;
    z-index: 5;
    background: var(--color-cream-paper);
    color: var(--color-charcoal);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 999px;
    box-shadow: var(--shadow-subtle);
    transform: rotate(3deg);
}

.wb-mock {
    position: relative;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(1.2deg);
    transition: transform .4s ease;
}

.wb-mock:hover { transform: rotate(0.4deg) translateY(-4px); }

/* شريط العنوان */
.wb-mock__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--color-charcoal);
    background: var(--color-dew-drop);
}

.wb-mock__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-marker-orange);
    border: 1.5px solid var(--color-charcoal);
    flex: none;
}

.wb-mock__title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-cocoa-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-mock__saved {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-sprout-sticker);
    background: #e8f8ee;
    border: 1px solid var(--color-charcoal);
    border-radius: 999px;
    padding: 2px 10px;
}

.wb-mock__saved svg { width: 12px; height: 12px; }

/* جسم السبورة: أدوات + مساحة الرسم */
.wb-mock__body {
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(to right, rgba(23, 23, 23, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(23, 23, 23, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    min-height: 280px;
}

.wb-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-inline-start: 1.5px solid var(--color-charcoal);
    background: var(--color-cream-paper);
    flex: 0 0 auto;
}

.wb-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 10px;
    background: var(--color-cream-paper);
    color: var(--color-charcoal);
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-subtle);
}

.wb-tool:hover {
    transform: translateY(-1px);
    background: var(--color-dew-drop);
}

.wb-tool.is-active {
    background: var(--color-marker-orange);
    color: var(--color-cream-paper);
    box-shadow: rgba(255, 111, 30, 0.35) 0 4px 10px 0;
}

.wb-tool.is-active svg { stroke: var(--color-cream-paper); }

.wb-tool--accent {
    border-color: var(--color-marker-orange);
    color: var(--color-marker-orange);
}

.wb-tool--accent:hover { background: #fff1e6; }

.wb-tool svg { width: 18px; height: 18px; }

.wb-tool__divider {
    width: 22px;
    height: 1.5px;
    background: var(--color-charcoal);
    opacity: 0.25;
    margin: 2px 0;
}

.wb-mock__stage {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
}

.wb-scene {
    width: 100%;
    height: auto;
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

.wb-scene.is-active {
    display: block;
    opacity: 1;
    transform: none;
}

/* مؤشر "متصل الآن" داخل السبورة */
.wb-cursor {
    position: absolute;
    top: 28%;
    inset-inline-start: 56%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.wb-cursor svg { width: 18px; height: 18px; }

.wb-cursor em {
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-charcoal);
    background: var(--color-cream-paper);
    border: 1.2px solid var(--color-charcoal);
    border-radius: 999px;
    padding: 2px 8px;
}

/* تذييل الموك أب */
.wb-mock__foot {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 14px 14px;
    border-top: 1.5px solid var(--color-charcoal);
    background: var(--color-cream-paper);
}

.wb-mock__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1e6 !important;
    color: var(--color-burnt-sienna) !important;
    border-color: var(--color-marker-orange) !important;
}

.wb-mock__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-marker-orange);
    box-shadow: 0 0 0 0 rgba(255, 111, 30, 0.6);
    animation: wb-pulse 1.6s ease-out infinite;
}

@keyframes wb-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 111, 30, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 111, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 30, 0); }
}

/* ملصقات القسم */
.sticker--wb-net {
    width: 56px;
    height: 56px;
    top: -16px;
    inset-inline-end: -10px;
    transform: rotate(8deg);
}

.sticker--wb-spark {
    width: 40px;
    height: 40px;
    bottom: -8px;
    inset-inline-start: 8%;
    transform: rotate(-8deg);
}

.sticker--wb-pen {
    width: 54px;
    height: 54px;
    bottom: 22%;
    inset-inline-start: -22px;
    transform: rotate(-14deg);
}

@media (max-width: 980px) {
    .wb-spotlight { grid-template-columns: 1fr; gap: 36px; }
    .wb-features { grid-template-columns: 1fr; }
    .wb-mock { transform: none; }
    .wb-mock:hover { transform: translateY(-3px); }
    .sticker--wb-net { width: 46px; height: 46px; inset-inline-end: 0; }
    .sticker--wb-spark { width: 34px; height: 34px; }
    .sticker--wb-pen { display: none; }
}

@media (max-width: 560px) {
    .wb-tabs { flex-wrap: wrap; justify-content: center; }
    .wb-mock__mode { font-size: 11px; padding: 4px 9px; }
    .wb-tools { padding: 8px 4px; }
    .wb-tool { width: 30px; height: 30px; }
    .wb-cursor { inset-inline-start: 46%; }
}

/* --------------------------------------------------------------------------
   لوح الزجاج (card-detail) — طبقة الشرح التي تنزلق من أسفل البطاقة عند المرور.
   تظهر فوق المحتوى بخلفية كريمية شبه شفافة + بلور للحفاظ على وضوح النص.
   -------------------------------------------------------------------------- */
.card-detail {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 18px 20px;
    margin: 0;
    color: var(--color-cocoa-ink);
    font-size: 15px;
    line-height: 1.6;
    text-align: right;
    background: rgba(253, 251, 249, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(101%);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.card:not(.price-card):hover .card-detail,
.why-card:hover .card-detail {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Subjects (ماذا نغطّي؟) — متصفّح مراحل (تبويبات) + شبكة بطاقات المواد
   -------------------------------------------------------------------------- */
.stage-browser {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1000px;
    margin-inline: auto;
}

.stage-browser__stages {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 190px;
}

.stage-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-cocoa-ink);
    text-align: right;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.stage-tab:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, 0.18) 0 4px 10px 0; }

.stage-tab.is-active {
    background: var(--color-dew-drop);
    box-shadow: var(--shadow-subtle), inset 0 -3px 0 0 var(--color-marker-orange);
}

.stage-tab__soon {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: #6b6257;
    background: var(--color-dew-drop);
    border: 1px dashed var(--color-charcoal);
    border-radius: 999px;
    padding: 1px 8px;
    white-space: nowrap;
}

.stage-tab--soon { opacity: .8; }

.stage-browser__subjects { flex: 1 1 0; min-width: 0; }

/* لوحات المراحل: لوحة واحدة ظاهرة، والبقية مخفية */
.stage-panel { display: none; }

.stage-panel.is-active {
    display: block;
    animation: flipStage .25s ease;
}

@keyframes flipStage {
    from { opacity: 0; transform: rotateY(-6deg) translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.stage-browser__subjects.is-flipping .stage-panel.is-active { animation: none; }

.empty-note {
    padding: 40px 24px;
    text-align: center;
    color: #6b6257;
    font-size: 16px;
    background: var(--color-dew-drop);
    border: 1.5px dashed var(--color-charcoal);
    border-radius: var(--radius-cards);
}

/* شبكة بطاقات المواد */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.subject-slot { position: relative; display: flex; }

/* بطاقة المادة */
.subject-plate {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 12px;
    padding: 26px 20px 24px;
    flex: 1;
    height: 100%;
    min-height: 190px;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    box-shadow: var(--shadow-lg);
    transition: transform .25s ease, box-shadow .25s ease;
}

.subject-plate:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(23, 23, 23, 0.14); }

/* أيقونة المادة — مربّع ملوّن بلون المادة من قاعدة البيانات */
.subject-plate__emoji {
    width: 72px;
    height: 72px;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--color-cocoa-ink);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 16px;
    box-shadow: var(--shadow-subtle);
    transition: transform .25s ease;
}

.subject-plate:hover .subject-plate__emoji { transform: rotate(-6deg) scale(1.06); }

.subject-plate__emoji svg { width: 34px; height: 34px; }

.subject-plate__name {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    color: var(--color-cocoa-ink);
}

/* شارة «قريباً» فوق البطاقة */
.subject-plate__soon {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 3;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-cocoa-ink);
    background: var(--color-cream-paper);
    border: 1.5px dashed var(--color-charcoal);
    border-radius: 999px;
    padding: 2px 12px;
    transform: rotate(-4deg);
}

.subject-plate--soon { opacity: .85; }

.subject-plate--soon:hover { transform: none; }

@media (max-width: 900px) {
    .stage-browser { flex-direction: column; }
    .stage-browser__stages {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stage-tab { flex: 1 1 auto; }
    .subjects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .subjects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .stage-panel.is-active { animation: none; }
    .subject-plate,
    .subject-plate__emoji,
    .stage-tab { transition: none; }
    .card-detail,
    .card:not(.price-card):hover .card-detail,
    .why-card:hover .card-detail,
    .subject-plate:hover .card-detail { transform: none; }
}

/* ملاحظة عند فراغ المحتوى */
.empty-note {
    padding: 40px 24px;
    text-align: center;
    color: #6b6257;
    font-size: 16px;
    background: var(--color-dew-drop);
    border: 1.5px dashed var(--color-charcoal);
    border-radius: var(--radius-cards);
}

/* --------------------------------------------------------------------------
   Why us — لماذا مختبر؟ (٦ بطاقات ميزة بأيقونات ملوّنة)
   -------------------------------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin-inline: auto;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .why-grid { grid-template-columns: 1fr; }
}

.why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    background: var(--color-cream-paper);
    padding: 26px 20px 24px;
    box-shadow: var(--shadow-lg);
    transition: transform .25s ease;
}

.why-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(23, 23, 23, 0.14); }

.why-card__icon {
    width: 58px;
    height: 58px;
    flex: none;
    margin-bottom: 14px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--color-cream-paper);
    box-shadow: var(--shadow-subtle);
    transition: transform .25s ease;
    /* اللون يأتي من --why-tint (لوحة ألوان المواد) على مستوى البطاقة ليخدم الأيقونة
       ولوح الشرح معًا؛ البديل عند غياب ألوان المواد: حبر كاكاو. */
    background: var(--why-tint, var(--color-cocoa-ink));
}

.why-card:hover .why-card__icon { transform: rotate(-6deg) scale(1.06); }

.why-card__icon svg { width: 28px; height: 28px; }

.why-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(19px, 2.6vw, 23px);
    line-height: 1.25;
    color: var(--color-cocoa-ink);
    margin: 0 0 8px;
    display: inline-block;
    background-image: var(--marker-underline);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 92% 0.16em;
    padding-bottom: 0.12em;
}

/* لا تُطبّق أنماط الفقرة العادية على لوح الزجاج (card-detail) */
.why-card p:not(.card-detail) { margin: 0; color: #6b6257; font-size: 14.5px; line-height: 1.65; }

/* لوح الزجاج داخل بطاقات «لماذا مختبر؟» — نص متمركز كبقية البطاقة (بلا bold)،
   وخلفيته فاتحة وشفافة بلون أيقونة الكارد (--why-tint-soft) مع بلور خلفه
   للحفاظ على وضوح النص؛ الحركة نفسها كبقية الألواح: ينزلق من الأسفل. */
.why-card .card-detail {
    text-align: center;
    align-items: center;
    font-size: 16.5px;
    font-weight: 400;
    background: var(--why-tint-soft, rgba(253, 251, 249, 0.72));
}

/* --------------------------------------------------------------------------
   Journey (رحلة الحصّة) — رسم عمودي متسلسل: كل مرحلة صف (شارة ملوّنة على
   اليمين + بطاقة المحتوى)، ويربط بين المراحل سهم منحنٍ مرسوم باليد (SVG)
   يرسم نفسه عند الظهور فيوضّح التسلسل الزمني (قبل ← أثناء ← تفاعل ← بعد).
   -------------------------------------------------------------------------- */
.journey {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    max-width: 1080px;
    margin-inline: auto;
}

/* خط متقطّع يمرّ أفقيًا بين الخطوات في مستوى منتصف الدوائر.
   البداية/النهاية عند مركز أول وآخر دائرة (16.667% = نصف خطوة من ٣ خطوات
   متساوية)؛ فتدخل أطرافه تحت الدوائر الصلبة (z-index أعلى) وتُخفى تمامًا
   فلا يظهر أي جزء من الخط خارج الدوائر. */
.journey::before {
    content: '';
    position: absolute;
    top: 44px;                       /* منتصف الدائرة (88px) */
    inset-inline: 16.667%;           /* من مركز الدائرة الأولى إلى مركز الأخيرة */
    border-top: 2.5px dashed var(--color-marker-orange);
    z-index: 0;
    pointer-events: none;
}

/* كل مرحلة: عمود يجمع الشارة في الأعلى ثم بطاقة المحتوى تحتها */
.journey__step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

/* الدائرة الملوّنة (المحطة) */
.journey__marker {
    --marker-color: var(--color-charcoal);
    position: relative;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    color: var(--color-cream-paper);          /* أيقونة بيضاء */
    background: var(--marker-color);
    border: 2.5px solid var(--color-charcoal);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform .35s ease, box-shadow .35s ease;
}

.journey__marker svg { width: 40px; height: 40px; }

/* هالة ناعمة خلف كل محطة بلونها */
.journey__marker::before {
    content: '';
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--marker-color) 0%, transparent 70%);
    opacity: 0.18;
    z-index: -1;
}

/* ألوان المحطات حسب التسلسل (١←٢←٣) — الخطوات في المواضع ١ و٣ و٥ */
.journey__step:nth-child(1) .journey__marker { --marker-color: var(--color-sky-sticker); }
.journey__step:nth-child(3) .journey__marker { --marker-color: var(--color-marker-orange); }
.journey__step:nth-child(5) .journey__marker { --marker-color: var(--color-sprout-sticker); }

.journey__step:hover .journey__marker {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-subtle);
}

/* رقم المحطة (شارة مائلة فوق الدائرة) */
.journey__num {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    color: var(--color-cocoa-ink);
    background: var(--color-cream-paper);
    border: 2px solid var(--color-charcoal);
    border-radius: 999px;
    box-shadow: var(--shadow-subtle);
    transform: rotate(-5deg);
}

/* بطاقة محتوى المرحلة (تحت الشارة) */
.journey__body {
    margin-top: 0;
    width: 100%;
    text-align: center;
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    padding: 18px 16px;
    box-shadow: var(--shadow-lg);
    transition: transform .3s ease, box-shadow .3s ease;
}

.journey__step:hover .journey__body {
    transform: translateY(-4px);
    box-shadow: var(--shadow-subtle);
}

/* وسم المرحلة (قبل الحصّة …) */
.journey__phase {
    display: inline-block;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .02em;
    color: var(--color-cocoa-ink);
    background: var(--color-dew-drop);
    border: 1px solid var(--color-charcoal);
    border-radius: 999px;
    padding: 3px 12px;
}

.journey__title {
    margin: 12px 0 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-cocoa-ink);
}

.journey__desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.65;
    color: #6b6257;
}

/* قائمة أدوات المرحلة */
.journey__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    text-align: start;
}

.journey__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.journey__chip {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    display: grid;
    place-items: center;
    background: var(--color-dew-drop);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 10px;
    color: var(--color-cocoa-ink);
}

.journey__chip svg { width: 18px; height: 18px; }

.journey__list li > div { display: flex; flex-direction: column; gap: 2px; }

.journey__list b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--color-cocoa-ink);
}

.journey__list span {
    font-size: 12.5px;
    line-height: 1.55;
    color: #6b6257;
}

/* استجابة: تابلت — عمودان (الخطوة الثالثة تنزل لصف ثانٍ) */
@media (max-width: 900px) {
    .journey {
        flex-wrap: wrap;
        max-width: 720px;
        gap: 24px 16px;
    }
    .journey__step { flex: 1 1 40%; }
    /* في عمودين يختفي الخط الأفقي الطويل ويُترك لكل صف خط قصير بين الخطوتين */
    .journey::before { display: none; }
}

/* استجابة: جوال — عمود واحد والخط المتقطّع يصبح عموديًا بين الخطوات */
@media (max-width: 620px) {
    .journey {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        max-width: 420px;
    }
    .journey__step { flex: 1 1 auto; }
    /* الخط الأفقي يختفي، ويُرسم خط عمودي متقطّع بين كل خطوة والتي تليها */
    .journey::before { display: none; }
    .journey__step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -14px;                  /* في منتصف الفجوة بين الخطوتين */
        width: 0;
        height: 14px;
        border-inline-start: 2.5px dashed var(--color-marker-orange);
        transform: translateX(-50%);
    }
}

/* --------------------------------------------------------------------------
   Card detail reveal — زجاج (بلور) ينزلق من الأسفل دون تغيير حجم الكارت
   -------------------------------------------------------------------------- */
.card:not(.price-card),
.why-card { overflow: hidden; }

.card-detail {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    margin: 0;
    color: var(--color-cocoa-ink);
    font-size: 16px;
    line-height: 1.6;
    background: rgba(253, 251, 249, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(101%);
    opacity: 0;
    transition: transform .45s ease, opacity .35s ease;
}

.card:hover .card-detail,
.why-card:hover .card-detail {
    transform: translateY(0);
    opacity: 1;
}

@media (hover: none) {
    .card-detail {
        position: static;
        display: block;
        inset: auto;
        transform: none;
        opacity: 1;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        padding: 0;
        margin-top: 8px;
    }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.08;
    color: var(--color-cocoa-ink);
    margin: 2px 0;
    /* نفس الخط المرسوم باليد أسفل أرقام الإحصاءات */
    background-image: var(--marker-underline);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.12em;
    padding-bottom: 0.08em;
}

.price small { font-size: 13px; font-weight: 500; color: #6b6257; }

/* Pricing card — أربع باقات في سطر واحد ببطاقات مضغوطة ومصغّرة */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1140px;
    margin-inline: auto;
}

@media (max-width: 1080px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 620px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Pricing card
   -------------------------------------------------------------------------- */
.price-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 14px;
}

.price-card .subheading {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    min-width: 0;
}

.price-card--featured { outline: 2px solid var(--color-marker-orange); outline-offset: -2px; }

.price-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 2px;
}

.price-card__period {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    padding: 2px 7px;
    background: var(--color-dew-drop);
    white-space: nowrap;
}

.price-card--featured .price-card__period { background: var(--color-marker-orange); color: var(--color-cream-paper); }

.price-card__icon {
    width: 26px;
    height: 26px;
    flex: none;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 8px;
    background: var(--color-dew-drop);
    display: grid;
    place-items: center;
    color: var(--color-cocoa-ink);
}

.price-card__icon svg { width: 14px; height: 14px; }

.price-card__amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.price-card__amount .price { margin: 0; }

.price-card__per { font-size: 12.5px; font-weight: 500; color: #6b6257; }

.price-card__features {
    list-style: none;
    margin: 8px 0 10px;
    padding: 10px 0 0;
    border-top: 1.5px dashed var(--color-shadow-mist);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--color-cocoa-ink);
}

.price-card__features .tick {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-marker-orange);
}

.price-card .btn { margin-top: auto; width: 100%; font-size: 13.5px; padding: 8px 12px; }

/* السطر التعريفي للباقة (من حقل «الوصف» في لوحة الإدارة) */
.price-card__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #6b6257;
}

/* سطر «صلاحية …» أسفل السعر — مصغّر ليتناسب مع بطاقة مضغوطة */
.price-card .small { font-size: 12px; }

/* --------------------------------------------------------------------------
   باقة «قريباً»: الباقة موجودة لكنها غير مفعّلة
   -------------------------------------------------------------------------- */
.price-card--soon { border-style: dashed; }

.price-card__soon {
    position: absolute;
    top: -11px;
    inset-inline: 0;
    width: fit-content;
    margin-inline: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-cream-paper);
    background: var(--color-marker-orange);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    padding: 2px 10px;
    transform: rotate(-3deg);
    box-shadow: var(--shadow-subtle);
    z-index: 4;
}

.price-card--soon .subheading,
.price-card--soon .price-card__per,
.price-card--soon .price-card__desc { color: #6b6257; }

.price-card--soon .price { opacity: 0.75; }

/* باقة غير مفعّلة: أصفار مشطوبة كأن السعر ملغى (بدون خط التسطير المعتاد) */
.price--void {
    color: #6b6257;
    background-image: none;
    text-decoration: line-through;
    text-decoration-color: var(--color-marker-orange);
    text-decoration-thickness: 0.12em;
}

.price-card--soon .price-card__icon { opacity: 0.55; }

.price-card--soon .price-card__period {
    background: var(--color-cream-paper);
    color: #6b6257;
    border-color: var(--color-shadow-mist);
}

.price-card--soon .price-card__features li { color: #6b6257; }

.price-card--soon .price-card__features .tick {
    border-color: var(--color-shadow-mist);
    color: var(--color-shadow-mist);
}

/* زر معطّل داخل بطاقات الباقات */
.price-card .btn:disabled {
    cursor: not-allowed;
    color: #6b6257;
    background: var(--color-dew-drop);
    border-style: dashed;
    box-shadow: none;
}

.price-card .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    border: 1.5px solid var(--color-charcoal);
    border-radius: 20px;
    background: var(--color-dew-drop);
    padding: 44px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.cta-band__icon {
    width: 56px;
    height: 56px;
    flex: none;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 16px;
    background: var(--color-cream-paper);
    display: grid;
    place-items: center;
    color: var(--color-cocoa-ink);
}

.cta-band__icon svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   Footer brand band (برتقالي)
   -------------------------------------------------------------------------- */
.footer-band {
    background: var(--color-marker-orange);
    border-radius: var(--radius-footer) var(--radius-footer) 0 0;
    color: var(--color-cocoa-ink);
    margin-top: 18px;
    padding: 28px 24px 18px;
}

.footer-band__inner {
    max-width: var(--page-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    width: 100%;
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-band__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col__desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; max-width: 40ch; }

.footer-col__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    margin: 0 0 8px;
    color: var(--color-cocoa-ink);
}

.footer-col__title-icon { width: 15px; height: 15px; flex: none; }

.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col__list a { color: var(--color-cocoa-ink); text-decoration: none; font-size: 13px; }
.footer-col__list a:hover { text-decoration: underline; }

.footer-col__contact {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-cocoa-ink);
    text-decoration: none;
    margin-bottom: 5px;
}
.footer-col__contact:hover { text-decoration: underline; }

.footer-col__contact-icon { width: 14px; height: 14px; flex: none; }

/* عمود «تواصل معنا» على الجهة الشمال (يسار) */
.footer-col--contact { text-align: end; }

.footer-col--contact .footer-col__title,
.footer-col--contact .footer-col__contact { justify-content: flex-end; }

.footer-band__bottom {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1.5px solid rgba(23, 23, 23, 0.35);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px 18px;
    width: 100%;
}

.footer-band__bottom .small { font-size: 12.5px; }

/* --------------------------------------------------------------------------
   لمسة تصميم للبطاقات: تدرّج دافئ خفيف + شريط علوي برتقالي يتوسّع عند المرور
   -------------------------------------------------------------------------- */
.card:not(.price-card),
.why-card {
    background-image: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(255, 111, 30, 0.07) 100%
    );
    transition: box-shadow .3s ease, transform .3s ease;
}

.card:not(.price-card)::before,
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--color-marker-orange);
    transform: scaleX(0.3);
    transform-origin: right center;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
    z-index: 3;
    pointer-events: none;
}

.card:not(.price-card):hover::before,
.why-card:hover::before { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }

.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Hand-drawn divider arrow — يظهر بين الأقسام الرئيسة ويرسم نفسه عند التمرير
   -------------------------------------------------------------------------- */
.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    margin: 0;
}

.section-divider svg {
    width: 110px;              /* أكبر بشكل واضح */
    height: 96px;
    overflow: visible;
}

/* المسار يُحاكي قلم الماركر: يبدأ مخفيًا ثم يرسم نفسه عند الدخول لمجال الرؤية */
.section-divider path {
    stroke: var(--color-marker-orange);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    /* dasharray = طول المسار (~40) حتى يرسم نفسه فعليًا بدل أن يظهر فجأة */
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    transition: stroke-dashoffset 1s ease 0.05s, opacity .3s ease;
    opacity: 0.9;
}

.section-divider.is-visible path {
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 300px; }
    .nav {
        display: none;
        position: absolute;
        top: 68px;
        inset-inline: 0;
        background: var(--color-cream-paper);
        border-bottom: 1.5px solid var(--color-charcoal);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        gap: 14px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav a { font-size: 16px; }
    .nav__mobile { display: block; }
    .nav__mobile--cta { font-weight: 700; color: var(--color-marker-orange); }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .section { padding-block: 44px; }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }

    /* الهيدر */
    .site-header__inner { gap: 10px; }
    .brand__logo { height: 20px; }
    .brand__logo--footer { height: 24px; }
    .nav__cta { gap: 6px; }
    .nav__cta .btn { padding: 8px 12px; font-size: 12.5px; }
    .nav__cta > a:first-of-type { display: none; }
    .nav { top: 60px; max-height: calc(100vh - 60px); }

    /* الخطوط والأقسام */
    .display { font-size: clamp(34px, 10vw, 50px); }
    .heading { font-size: clamp(25px, 7vw, 32px); }
    .lead { font-size: 17px; }
    .caption { font-size: 18px; }
    .section { padding-block: 34px; }
    .section-head { margin-bottom: 24px; }

    /* الهيرو */
    .hero { padding-block: 26px 34px; }
    .hero__body { font-size: 17px; }
    .hero-visual { min-height: 280px; }
    .hero-card { inset: 6px 0 32px 0; padding: 14px; }
    .hero-dots { bottom: 6px; gap: 7px; }
    .hero-dot { width: 9px; height: 9px; }
    .name-label { top: 4px; inset-inline-start: 12px; font-size: 12px; padding: 6px 10px; }
    .name-label b { font-size: 14px; }
    .sticker--bolt { width: 52px; height: 52px; inset-inline-end: -2px; }
    .sticker--heart { width: 48px; height: 48px; inset-inline-start: -6px; }
    .sticker--sparkle { width: 38px; height: 38px; }

    /* الإحصاءات */
    .stat { padding: 14px 16px; gap: 12px; }
    .stat__icon { width: 44px; height: 44px; border-radius: 13px; }
    .stat__icon svg { width: 20px; height: 20px; }
    .stat b { font-size: 30px; }

    /* البطاقات والخطوات والباقات */
    .card { padding: 22px 18px; }
    .journey__marker { width: 88px; height: 88px; }
    .journey__marker svg { width: 36px; height: 36px; }
    .price-card { padding: 18px 16px; }
    .price { font-size: 26px; }

    /* شريط CTA */
    .cta-band { padding: 24px 18px; }
    .cta-band .heading { font-size: clamp(22px, 6.5vw, 28px); }

    /* الفوتر */
    .footer-band { padding: 24px 16px 16px; border-radius: 36px 36px 0 0; }
    .footer-grid { gap: 14px; }
}

@media (max-width: 400px) {
    .nav__cta .btn { padding: 7px 10px; font-size: 11.5px; }
    .menu-toggle { width: 38px; height: 38px; }
    .display { font-size: clamp(30px, 11vw, 40px); }
}


/* --------------------------------------------------------------------------
   Page Mask Transition (نمط motion.dev)
   طبقة قناع كاملة تغطّي الشاشة عند الانتقال بين أقسام الصفحة، تعمل كستارة
   تنزلق من نقطة النقر: دائرتان متّحدتان المركز (CSS mask-image مع SVG mask)
   تكبران معًا ثم تنكمش لتكشف المحتوى في مكانه. اللوحة نفسها تظل شفّافة اللون
   وتُرسم فوقها الـ mask فقط، فيظهر تأثير "القناع" كقطعة قماش تكشف المحتوى.
   -------------------------------------------------------------------------- */
.page-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    /* اللوحة كريمية مع حد فحمي */
    background: var(--color-cream-paper);
}

.page-mask.is-active {
    opacity: 1;
    visibility: visible;
}

/* svg mask يستخدم دائرة سوداء على شفّاف، فيكون المرئي داخل الدائرة فقط */
.page-mask__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* يبدأ بقناع ضيق جدًّا ثم يكبر */
    -webkit-mask: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%), black 0px, black 0px, transparent 0px);
            mask: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%), black 0px, black 0px, transparent 0px);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    transition: -webkit-mask-radius .9s cubic-bezier(.7, 0, .3, 1);
    transition:         mask-radius .9s cubic-bezier(.7, 0, .3, 1);
    /* لا نضع خلفية للـ svg نفسه — الـ mask يكشف الـ .page-mask تحته */
    background: transparent;
}

/* استخدم متغيّرًا واحدًا للمدى: --mask-r يحدّد نصف قطر الدائرة المرئية */
.page-mask__svg {
    -webkit-mask: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%),
                                  rgba(0,0,0,1) 0,
                                  rgba(0,0,0,1) var(--mask-r, 0px),
                                  rgba(0,0,0,0) var(--mask-r, 0px));
            mask: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%),
                                  rgba(0,0,0,1) 0,
                                  rgba(0,0,0,1) var(--mask-r, 0px),
                                  rgba(0,0,0,0) var(--mask-r, 0px));
    --mask-r: 0px;
}

/* الحالة الأولى: الستارة تنمو من نقطة النقر */
.page-mask.is-opening .page-mask__svg {
    --mask-r: 160vmax;
    transition: -webkit-mask-radius .9s cubic-bezier(.7, 0, .3, 1);
    transition:         mask-radius .9s cubic-bezier(.7, 0, .3, 1);
}

/* الحالة الثانية: بعد أن تتمدّد الستارة، يبدأ الكشف بانكماش الدائرة */
.page-mask.is-closing .page-mask__svg {
    --mask-r: 0px;
    transition: -webkit-mask-radius .8s cubic-bezier(.7, 0, .3, 1);
    transition:         mask-radius .8s cubic-bezier(.7, 0, .3, 1);
}

/* نسيج يدوي خفيف داخل الستارة ليتماشى مع DESIGN.md (ورق كريمي + خط ماركر) */
.page-mask::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 111, 30, 0.06), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 111, 30, 0.04), transparent 60%);
    pointer-events: none;
}

/* خط فحمي داخلي لتأطير الستارة بلون التصميم */
.page-mask::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1.5px solid transparent;
    pointer-events: none;
}

/* عند إكمال الانتقال: نخفي الستارة لإرجاع التحكم للصفحة */
.page-mask.is-done {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease .1s, visibility .35s ease .1s;
}

@media (prefers-reduced-motion: reduce) {
    .page-mask { display: none !important; }
}



