/* ==========================================================================
   مِختبر — صفحة التعريف (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%; }

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;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-cocoa-ink);
    line-height: 1;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 10px;
    background: var(--color-dew-drop);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}

.brand__mark img { width: 26px; height: 26px; }

.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) — دائمًا تعبئة كريمية + حد فحمي، بلا تعبئة لونية
   -------------------------------------------------------------------------- */
.btn {
    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 .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.18) 0 3px 8px 0;
}

.btn:active { transform: translateY(0); }

.btn--lg { font-size: 18px; padding: 13px 34px; }

.btn--sm { font-size: 14px; padding: 8px 18px; }

/* --------------------------------------------------------------------------
   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 p { margin: 0; color: #6b6257; font-size: 16px; line-height: 1.6; }

/* Section head */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; justify-content: space-between; margin-bottom: 36px; }

.section-head .caption { margin-bottom: 8px; }

.section-head .heading { margin: 0; }

.section-head--center { justify-content: center; text-align: center; }

/* --------------------------------------------------------------------------
   Subjects — أسماء المواد بخط العرض
   -------------------------------------------------------------------------- */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin-inline: auto;
}

@media (max-width: 900px) {
    .subjects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .subjects-grid { grid-template-columns: 1fr; }
}

.subject-plate {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    background: var(--color-dew-drop);
    padding: 24px 20px 22px;
    box-shadow: var(--shadow-lg);
    transition: transform .25s ease;
}

.subject-plate:hover { transform: translateY(-3px); }

.subject-plate__emoji {
    width: 56px;
    height: 56px;
    flex: none;
    margin-bottom: 12px;
    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);
}

.subject-plate__emoji svg { width: 26px; height: 26px; }

.subject-plate__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.15;
    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: 90% 0.18em;
    padding-bottom: 0.12em;
}

.subject-plate__desc { margin: 0; color: #6b6257; font-size: 14px; line-height: 1.6; }

/* مادة غير مفعّلة — تظهر «قريباً» بشكل مميز */
.subject-plate--soon {
    border-style: dashed;
    background: var(--color-cream-paper);
}

.subject-plate--soon:hover { transform: none; }

.subject-plate--soon .subject-plate__emoji { opacity: .5; }

.subject-plate--soon .subject-plate__name { color: #6b6257; }

/* خانة المادة: الشارة تُوضع فوق البطاقة (خارجها) فلا يقصّها overflow البطاقة */
.subject-slot {
    position: relative;
    display: flex;
}

.subject-slot > .subject-plate { flex: 1; min-width: 0; }

/* شارة «قريباً» بنفس شكل شارة قسم الباقات — أعلى الوسط فوق الحدّ */
.subject-plate__soon {
    position: absolute;
    top: -11px;
    inset-inline: 0;
    width: fit-content;
    margin-inline: auto;
    z-index: 4;
    font-size: 12px;
    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: 3px 14px;
    transform: rotate(-3deg);
    box-shadow: var(--shadow-subtle);
}

/* متصفّح المراحل: المرحلة في الأعلى بالوسط، والمواد أسفلها، مع حركة تقليب */
.stage-browser {
    display: block;
}

.stage-browser__stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.stage-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-cocoa-ink);
    background: var(--color-cream-paper);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-buttons);
    padding: 12px 18px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.stage-tab:hover { transform: translateY(-2px); }

.stage-tab.is-active {
    background: var(--color-marker-orange);
    color: var(--color-cream-paper);
}

/* مرحلة غير مفعّلة: إطار متقطّع + شارة «قريباً» برتقالية */
.stage-tab--soon {
    border-style: dashed;
    color: #6b6257;
    background: var(--color-cream-paper);
}

.stage-tab__soon {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-cream-paper);
    background: var(--color-marker-orange);
    border-radius: var(--radius-tags);
    padding: 2px 9px;
    white-space: nowrap;
}

.stage-tab.is-active .stage-tab__soon {
    background: var(--color-cream-paper);
    color: var(--color-marker-orange);
}

.stage-browser__subjects {
    position: relative;
    min-height: 220px;
}

.stage-panel { display: none; }
.stage-panel.is-active { display: block; }

.stage-browser__subjects.is-flipping { animation: flipStage 0.5s ease-in-out; }

@keyframes flipStage {
    0%   { transform: perspective(1200px) rotateY(0deg); }
    50%  { transform: perspective(1200px) rotateY(90deg); }
    100% { transform: perspective(1200px) rotateY(0deg); }
}

.empty-note {
    border: 1.5px dashed var(--color-charcoal);
    border-radius: var(--radius-cards);
    background: var(--color-cream-paper);
    padding: 40px 20px;
    text-align: center;
    color: #6b6257;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Steps (كيف تبدأ) — بطاقات مرقّمة بخط سير
   -------------------------------------------------------------------------- */
.steps {
    position: relative;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.steps::before {
    content: '';
    position: absolute;
    top: 26px;
    inset-inline: 14%;
    border-top: 2px dashed var(--color-marker-orange);
    opacity: 0.45;
}

@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-cards);
    background: var(--color-cream-paper);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}

.step-card--tint { background: var(--color-dew-drop); }

.step-card__no {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-cream-paper);
    background: var(--color-marker-orange);
    border: 1.5px solid var(--color-charcoal);
    border-radius: 50%;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-subtle);
}

.step-card__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 12px;
    background: var(--color-cream-paper);
    color: var(--color-cocoa-ink);
}

.step-card__icon svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Card detail reveal — زجاج (بلور) ينزلق من الأسفل دون تغيير حجم الكارت
   -------------------------------------------------------------------------- */
.card:not(.price-card),
.subject-plate,
.step-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,
.subject-plate:hover .card-detail,
.step-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: 30px;
    line-height: 1.08;
    color: var(--color-cocoa-ink);
    margin: 4px 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(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin-inline: auto;
}

@media (max-width: 940px) {
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 620px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
}

.price-card .subheading {
    font-size: 18px;
    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: 8px;
    margin-bottom: 2px;
}

.price-card__period {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
    border-radius: var(--radius-tags);
    padding: 2px 9px;
    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: 30px;
    height: 30px;
    flex: none;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 9px;
    background: var(--color-dew-drop);
    display: grid;
    place-items: center;
    color: var(--color-cocoa-ink);
}

.price-card__icon svg { width: 16px; height: 16px; }

.price-card__amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-card__amount .price { margin: 0; }

.price-card__per { font-size: 13.5px; font-weight: 500; color: #6b6257; }

.price-card__features {
    list-style: none;
    margin: 12px 0 14px;
    padding: 12px 0 0;
    border-top: 1.5px dashed var(--color-shadow-mist);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--color-cocoa-ink);
}

.price-card__features .tick {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1.5px solid var(--color-charcoal);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-marker-orange);
}

.price-card .btn { margin-top: auto; width: 100%; font-size: 15px; padding: 9px 18px; }

/* السطر التعريفي للباقة (من حقل «الوصف» في لوحة الإدارة) */
.price-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b6257;
}

/* --------------------------------------------------------------------------
   باقة «قريباً»: الباقة موجودة لكنها غير مفعّلة
   -------------------------------------------------------------------------- */
.price-card--soon { border-style: dashed; }

.price-card__soon {
    position: absolute;
    top: -11px;
    inset-inline: 0;
    width: fit-content;
    margin-inline: auto;
    font-size: 12px;
    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: 3px 14px;
    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;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
}

.footer-band__brand .brand__mark { background: var(--color-cream-paper); }

.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),
.subject-plate,
.step-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,
.subject-plate::before,
.step-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,
.subject-plate:hover::before,
.step-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; }

@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 { font-size: 18px; }
    .brand__mark { width: 32px; height: 32px; }
    .brand__mark img { width: 22px; height: 22px; }
    .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; }

    /* المواد */
    .subject-plate { padding: 20px 16px 18px; }
    .subject-plate__name { font-size: 26px; }
    .subject-plate__emoji { width: 48px; height: 48px; }
    .subject-plate__emoji svg { width: 22px; height: 22px; }

    /* البطاقات والخطوات والباقات */
    .card { padding: 22px 18px; }
    .step-card { padding: 22px 18px; }
    .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); }
}



