/* ==========================================================================
   منظومة ديب سكوبر للجداول الذكية | Deep Scoper Timetable AI
   assets/css/home.css - أقسام صفحة الهبوط بهوية «الجدول»
   يعتمد على متغيرات الألوان والخط المعرّفة في landing.css دون أي تغيير عليها:
   كل قسم يُبنى كجدول (رؤوس أعمدة، خلايا متلاصقة، خطوط شبكية)
   ========================================================================== */

:root {
    --lp-grid: rgba(15, 23, 42, 0.045);
    --lp-cell-gap: 1px;
    /* ألوان المواد المستخدمة في محاكي الجدول (نفس ألوان النسخة السابقة) */
    --s-math: #d97706;
    --s-arabic: #2563eb;
    --s-quran: #059669;
    --s-sci: #0d9488;
    --s-eng: #7c3aed;
    --s-pe: #ea580c;
    --s-art: #db2777;
    --s-soc: #0284c7;
}

.lp-main { display: block; }
.lp-main h1, .lp-main h2, .lp-main h3, .lp-main h4 { color: var(--ds-text-heading); line-height: 1.35; }
.lp-main svg { flex-shrink: 0; }

/* ----------------------------------------------------
   أدوات عامة: الخلفية المسطّرة، رأس القسم، شبكة الخلايا
---------------------------------------------------- */
.lp-ruled {
    background-image:
        linear-gradient(var(--lp-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--lp-grid) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: center top;
}

.lp-section { padding: 96px 0; position: relative; }
.lp-section.lp-alt { background: var(--ds-bg-subtle); border-block: 1px solid var(--ds-border-light); }

.lp-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    max-width: 820px;
    margin-bottom: 44px;
    border: 1px solid var(--ds-border-light);
    border-radius: var(--ds-radius-md);
    background: var(--ds-bg-card);
    overflow: hidden;
    box-shadow: var(--ds-shadow-sm);
}
.lp-head.is-center { margin-inline: auto; }
.lp-head-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 86px;
    padding: 16px 12px;
    background: var(--ds-primary);
    color: #ffffff;
    font-weight: 900;
}
.lp-head-num small { font-size: 11px; font-weight: 700; opacity: .8; }
.lp-head-num b { font-size: 26px; line-height: 1; }
.lp-head-body { padding: 18px 24px; border-inline-start: 1px solid var(--ds-border-light); }
.lp-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ds-primary);
    background: var(--ds-primary-light);
    border: 1px solid #bbf7d0;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.lp-head h2 { font-size: clamp(22px, 3vw, 31px); font-weight: 900; margin-bottom: 6px; }
.lp-head p { color: var(--ds-text-muted); font-size: 15px; line-height: 1.8; }

/* شبكة خلايا متلاصقة تبدو كجدول */
.lp-cells {
    display: grid;
    gap: var(--lp-cell-gap);
    background: var(--ds-border-light);
    border: 1px solid var(--ds-border-light);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    box-shadow: var(--ds-shadow-md);
}
.lp-cells > * { background: var(--ds-bg-card); min-width: 0; }

/* جدول بيانات عام */
.lp-table-wrap {
    border: 1px solid var(--ds-border-light);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-bg-card);
    overflow: hidden;
    box-shadow: var(--ds-shadow-md);
}
.lp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lp-table th, .lp-table td { padding: 15px 20px; text-align: right; vertical-align: top; border-bottom: 1px solid var(--ds-border-light); }
.lp-table thead th {
    background: #0f172a;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    border-bottom: none;
}
.lp-table tbody tr:last-child td, .lp-table tbody tr:last-child th { border-bottom: none; }
.lp-table tbody tr:nth-child(even) { background: #fbfcfd; }
.lp-table tbody tr:hover { background: var(--ds-primary-light); }
.lp-table tbody th { font-weight: 800; color: var(--ds-text-heading); background: var(--ds-bg-subtle); white-space: nowrap; }
.lp-table td + td, .lp-table th + td, .lp-table th + th { border-inline-start: 1px solid var(--ds-border-light); }
.lp-table thead th + th { border-inline-start: 1px solid #334155; }

.lp-ic {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--ds-primary-light);
    color: var(--ds-primary);
    border: 1px solid #bbf7d0;
}
.lp-ic svg { width: 22px; height: 22px; }

/* ----------------------------------------------------
   1. البطل
---------------------------------------------------- */
.lp-hero { padding: 64px 0 0; position: relative; overflow: hidden; }
.lp-hero::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 160px;
    background: linear-gradient(to bottom, transparent, var(--ds-bg-main));
    pointer-events: none;
}
.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.lp-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ffffff;
    border: 1px solid var(--ds-border-light);
    color: var(--ds-primary);
    font-weight: 800; font-size: 13.5px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    box-shadow: var(--ds-shadow-sm);
    margin-bottom: 22px;
}
.lp-kicker b { background: var(--ds-primary); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.lp-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 20px; }
.lp-hero h1 .ds-gradient-text { display: inline; }
/* اسم المنصة داخل العنوان الرئيسي حتى يربطه قوقل بالموقع */
.lp-h1-brand { display: block; font-size: clamp(17px, 1.9vw, 21px); font-weight: 800; letter-spacing: 0; color: var(--ds-primary); margin-bottom: 8px; }
.lp-underline { position: relative; white-space: nowrap; }
.lp-underline::after {
    content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 12px; z-index: -1;
    background: rgba(16, 185, 129, 0.22); border-radius: 4px;
}
.lp-lead { font-size: 17.5px; color: var(--ds-text-body); line-height: 1.9; margin-bottom: 30px; max-width: 560px; }
.lp-lead strong { color: var(--ds-primary); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lp-trust { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; max-width: 520px; }
.lp-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ds-text-body); }
.lp-trust svg { width: 18px; height: 18px; color: var(--ds-primary-glow); }

/* لوحة الجدول الحي */
.lp-board {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-light);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-lg), 0 30px 60px -20px rgba(15, 118, 110, 0.18);
    overflow: hidden;
}
.lp-board-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ds-border-light);
    background: linear-gradient(to bottom, #ffffff, var(--ds-bg-main));
}
.lp-board-title { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ds-text-heading); font-size: 15px; }
.lp-board-title small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ds-text-muted); }
.lp-board-title .lp-ic { width: 36px; height: 36px; border-radius: 10px; }
.lp-board-title .lp-ic svg { width: 18px; height: 18px; }
.lp-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 800;
    padding: 5px 12px; border-radius: 999px;
    background: var(--ds-primary-light); color: var(--ds-primary); border: 1px solid #bbf7d0;
    transition: all .25s ease;
}
.lp-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lp-status.is-busy { background: var(--ds-accent-cyan-light); color: var(--ds-accent-cyan); border-color: #bae6fd; }
.lp-status.is-warn { background: var(--ds-accent-red-light); color: #b91c1c; border-color: #fecaca; }

.lp-board-scroll { overflow-x: auto; }
.lp-tt { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.lp-tt th {
    background: var(--ds-bg-subtle);
    color: var(--ds-text-muted);
    font-size: 12px; font-weight: 800;
    padding: 8px 4px;
    border-bottom: 1px solid var(--ds-border-light);
    text-align: center;
}
.lp-tt th:first-child { width: 72px; }
.lp-tt td { padding: 4px; border-bottom: 1px solid #f1f5f9; border-inline-start: 1px solid #f1f5f9; height: 56px; }
.lp-tt tr:last-child td { border-bottom: none; }
.lp-tt .day {
    font-weight: 900; font-size: 12.5px; color: var(--ds-text-heading);
    background: var(--ds-bg-main); text-align: center; border-inline-start: none;
}
.lp-slot {
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 4px 8px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid var(--ds-border-light);
    border-inline-start: 3px solid var(--c, var(--ds-primary));
    transition: background .3s ease, border-color .3s ease, opacity .3s ease, transform .3s ease;
    min-width: 0;
}
.lp-slot b { font-size: 12px; font-weight: 800; color: var(--ds-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-slot span { font-size: 10.5px; color: var(--ds-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-slot.is-empty { opacity: 0; transform: scale(.9); }
.lp-slot.is-dup { background: var(--ds-accent-red-light); border-color: #fecaca; border-inline-start-color: var(--ds-accent-red); }
.lp-slot.is-dup b, .lp-slot.is-dup span { color: #b91c1c; }
.lp-slot.is-swap { background: var(--ds-primary-light); border-color: #86efac; border-inline-start-color: var(--ds-primary-glow); }
.lp-slot.is-reserved { background: repeating-linear-gradient(135deg, #f8fafc 0 6px, #f1f5f9 6px 12px); border-style: dashed; border-inline-start-style: solid; --c: #94a3b8; }
.s-math { --c: var(--s-math); } .s-arabic { --c: var(--s-arabic); } .s-quran { --c: var(--s-quran); }
.s-sci { --c: var(--s-sci); } .s-eng { --c: var(--s-eng); } .s-pe { --c: var(--s-pe); }
.s-art { --c: var(--s-art); } .s-soc { --c: var(--s-soc); }

.lp-board-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 12px 18px;
    border-top: 1px solid var(--ds-border-light);
    background: var(--ds-bg-main);
    font-size: 12.5px; font-weight: 700; color: var(--ds-text-muted);
}
.lp-board-foot strong { color: var(--ds-text-heading); }
.lp-replay {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--ds-border-light); border-radius: 8px;
    padding: 4px 10px; font-size: 12px; font-weight: 800; color: var(--ds-text-body); cursor: pointer;
}
.lp-replay:hover { border-color: var(--ds-primary); color: var(--ds-primary); }
.lp-replay svg { width: 14px; height: 14px; }
.lp-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* شريط الأرقام (صف جدول) */
.lp-stats { margin-top: 56px; position: relative; z-index: 2; }
.lp-stats .lp-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.lp-stat small { font-size: 11.5px; font-weight: 800; color: var(--ds-text-light); }
.lp-stat b { font-size: 28px; font-weight: 900; color: var(--ds-primary); line-height: 1.2; }
.lp-stat span { font-size: 13.5px; font-weight: 700; color: var(--ds-text-body); }

/* ----------------------------------------------------
   2. جدول المقارنة
---------------------------------------------------- */
.lp-compare th:first-child { width: 190px; }
.lp-compare td { color: var(--ds-text-body); }
.lp-compare .bad, .lp-compare .good { display: flex; align-items: flex-start; gap: 10px; }
.lp-compare .bad svg, .lp-compare .good svg {
    width: 22px; height: 22px; padding: 4px; border-radius: 6px; margin-top: 1px;
}
.lp-compare .bad { color: var(--ds-text-muted); }
.lp-compare .bad svg { background: var(--ds-accent-red-light); color: var(--ds-accent-red); }
.lp-compare .good { color: var(--ds-text-heading); font-weight: 700; }
.lp-compare .good svg { background: var(--ds-primary-light); color: var(--ds-primary); }
.lp-compare thead th.col-good { background: var(--ds-primary); }

/* ----------------------------------------------------
   3. خطوات الإعداد (صف حصص)
---------------------------------------------------- */
.lp-steps { list-style: none; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: step; }
.lp-step { display: flex; flex-direction: column; }
.lp-step-hd {
    counter-increment: step;
    background: var(--ds-bg-subtle);
    padding: 10px 14px;
    font-size: 12px; font-weight: 800; color: var(--ds-text-muted);
    border-bottom: 1px solid var(--ds-border-light);
    display: flex; align-items: center; justify-content: space-between;
}
.lp-step-hd::before { content: 'الخطوة ' counter(step); }
.lp-step-hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-border-hover); }
.lp-step:last-child .lp-step-hd { background: var(--ds-primary); color: #ffffff; }
.lp-step:last-child .lp-step-hd i { background: #ffffff; }
.lp-step-bd { padding: 18px 14px 20px; flex: 1; border-inline-start: 3px solid transparent; transition: border-color .2s ease, background .2s ease; }
.lp-step:hover .lp-step-bd { border-inline-start-color: var(--ds-primary-glow); background: #fcfffe; }
.lp-step-bd .lp-ic { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px; }
.lp-step-bd .lp-ic svg { width: 19px; height: 19px; }
.lp-step h3 { font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.lp-step p { font-size: 13px; color: var(--ds-text-muted); line-height: 1.7; }
.lp-steps-note {
    margin-top: 18px; display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--ds-text-body);
}
.lp-steps-note svg { width: 20px; height: 20px; color: var(--ds-primary); }

/* ----------------------------------------------------
   4. المحرك (شبكة خلايا)
---------------------------------------------------- */
.lp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-feat { padding: 28px 26px; position: relative; transition: background .2s ease; }
.lp-feat:hover { background: #fcfffe; }
.lp-feat.span-2 { grid-column: span 2; }
.lp-feat.span-3 { grid-column: span 3; }
.lp-feat .lp-ic { margin-bottom: 16px; }
.lp-feat h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.lp-feat p { font-size: 14.5px; color: var(--ds-text-muted); line-height: 1.85; }
.lp-feat.tone-red .lp-ic { background: var(--ds-accent-red-light); color: var(--ds-accent-red); border-color: #fecaca; }
.lp-feat.tone-cyan .lp-ic { background: var(--ds-accent-cyan-light); color: var(--ds-accent-cyan); border-color: #bae6fd; }
.lp-feat.tone-amber .lp-ic { background: var(--ds-accent-amber-light); color: var(--ds-accent-amber); border-color: #fde68a; }
.lp-feat.tone-purple .lp-ic { background: var(--ds-accent-purple-light); color: var(--ds-accent-purple); border-color: #e9d5ff; }
.lp-feat.tone-indigo .lp-ic { background: var(--ds-accent-indigo-light); color: var(--ds-accent-indigo); border-color: #c7d2fe; }
.lp-tag {
    position: absolute; top: 20px; inset-inline-end: 20px;
    font-size: 11.5px; font-weight: 900;
    background: var(--ds-accent-amber-light); color: #b45309; border: 1px solid #fde68a;
    padding: 2px 10px; border-radius: 6px;
}
.lp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lp-chips li {
    font-size: 12.5px; font-weight: 700; color: var(--ds-text-body);
    background: var(--ds-bg-main); border: 1px solid var(--ds-border-light);
    padding: 4px 11px; border-radius: 6px;
}
.lp-chips li::before { content: '✓'; color: var(--ds-primary-glow); font-weight: 900; margin-inline-end: 6px; }

/* رسومات مصغرة داخل الخلايا */
.lp-mini { margin-top: 18px; display: grid; gap: 4px; }
.lp-mini i { height: 22px; border-radius: 5px; background: var(--ds-bg-subtle); border: 1px solid var(--ds-border-light); display: block; }
.lp-mini-row { grid-template-columns: repeat(6, 1fr); }
.lp-mini-row i.d { background: var(--ds-accent-red-light); border-color: #fca5a5; }
.lp-mini-map { grid-template-columns: repeat(6, 1fr); }
.lp-mini-map i.g { background: #dcfce7; border-color: #86efac; }
.lp-mini-map i.y { background: #fef3c7; border-color: #fcd34d; }
.lp-mini-map i.r { background: #fee2e2; border-color: #fca5a5; }
.lp-mini-map i.x { background: var(--ds-primary); border-color: var(--ds-primary); }
.lp-mini-key { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--ds-text-muted); }
.lp-mini-key span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 5px; vertical-align: middle; background: var(--k); }
.lp-chain { margin-top: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-chain span {
    font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 6px;
    background: #fff; border: 1px solid var(--ds-border-light); border-inline-start: 3px solid var(--c);
}
.lp-chain em { font-style: normal; color: var(--ds-text-light); font-weight: 900; }
.lp-meter { margin-top: 18px; }
.lp-meter-bar { height: 10px; border-radius: 99px; background: var(--ds-bg-subtle); overflow: hidden; border: 1px solid var(--ds-border-light); }
.lp-meter-bar i { display: block; height: 100%; width: 96%; background: linear-gradient(90deg, #10b981, #0f766e); border-radius: 99px; }
.lp-meter-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--ds-text-muted); margin-top: 6px; }
.lp-meter-row b { color: var(--ds-primary); }
.lp-versions { margin-top: 18px; display: grid; gap: 6px; }
.lp-versions div {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; font-weight: 700; color: var(--ds-text-body);
    padding: 7px 12px; border: 1px solid var(--ds-border-light); border-radius: 7px; background: var(--ds-bg-main);
}
.lp-versions div.on { border-color: #86efac; background: var(--ds-primary-light); color: var(--ds-primary); }
.lp-versions small { font-size: 11px; font-weight: 800; }

/* ----------------------------------------------------
   5. حصص الانتظار
---------------------------------------------------- */
.lp-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.lp-split .lp-head { margin-bottom: 28px; }
.lp-rows { list-style: none; }
.lp-rows li { display: grid; grid-template-columns: 44px 1fr; gap: 0; }
.lp-rows li > b {
    display: flex; align-items: center; justify-content: center;
    background: var(--ds-bg-card); color: var(--ds-primary);
    font-size: 15px; font-weight: 900;
}
.lp-rows li > div { padding: 16px 18px; }
.lp-rows h3 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.lp-rows p { font-size: 14px; color: var(--ds-text-muted); line-height: 1.75; }
.lp-rows { grid-template-columns: 1fr; }
.lp-rows li { background: var(--ds-border-light); gap: 1px; }
.lp-rows li > div { background: var(--ds-bg-card); }

.lp-sb { overflow: hidden; }
.lp-sb-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 18px; border-bottom: 1px solid var(--ds-border-light);
}
.lp-sb-head strong { font-size: 15px; font-weight: 900; color: var(--ds-text-heading); }
.lp-sb-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; color: var(--ds-text-muted); }
.lp-sb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lp-sb-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; color: #fff; }
.lv1 i, i.lv1 { background: var(--ds-primary); }
.lv2 i, i.lv2 { background: var(--ds-accent-cyan); }
.lv3 i, i.lv3 { background: #64748b; }
.lp-sb-table { min-width: 520px; }
.lp-sb-table th, .lp-sb-table td { padding: 8px; font-size: 12px; }
.lp-sb-table thead th { text-align: center; }
.lp-sb-cell { display: grid; gap: 3px; }
.lp-sb-cell span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ds-text-body); white-space: nowrap; }
.lp-sb-cell span i { width: 15px; height: 15px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9.5px; font-weight: 900; color: #fff; flex-shrink: 0; }
.lp-sb-cell span.lv1 { color: var(--ds-text-heading); font-weight: 800; }

.lp-fair { border-top: 1px solid var(--ds-border-light); padding: 14px 18px 18px; }
.lp-fair h4 { font-size: 13px; font-weight: 900; margin-bottom: 10px; display: flex; justify-content: space-between; }
.lp-fair h4 small { color: var(--ds-primary); font-size: 12px; }
.lp-fair-row { display: grid; grid-template-columns: 76px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; color: var(--ds-text-body); margin-bottom: 7px; }
.lp-fair-row .bar { height: 8px; border-radius: 99px; background: var(--ds-bg-subtle); overflow: hidden; }
.lp-fair-row .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--ds-accent-amber), #f59e0b); border-radius: 99px; }
.lp-fair-row b { text-align: left; color: var(--ds-text-heading); }

/* ----------------------------------------------------
   6. الطباعة والتصدير
---------------------------------------------------- */
.lp-print { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.lp-fmt {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 58px; padding: 4px 8px; border-radius: 6px;
    font-size: 12px; font-weight: 900; color: #fff; letter-spacing: .3px;
}
.f-a4 { background: #0f172a; } .f-xls { background: #047857; } .f-ppt { background: #c2410c; } .f-pdf { background: #b91c1c; }
.lp-formats td:first-child { width: 90px; text-align: center; vertical-align: middle; }
.lp-formats td b { display: block; color: var(--ds-text-heading); font-size: 14.5px; margin-bottom: 2px; }
.lp-formats td span { color: var(--ds-text-muted); font-size: 13.5px; }
.lp-outputs { margin-top: 20px; }

.lp-paper-stack { position: relative; height: 440px; }
.lp-paper {
    position: absolute; inset-inline: 8%; top: 0;
    aspect-ratio: 1 / 1.414; max-height: 420px; margin-inline: auto;
    background: #ffffff; border: 1px solid var(--ds-border-light); border-radius: 6px;
    box-shadow: var(--ds-shadow-lg);
    padding: 22px 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.lp-paper.back1 { transform: rotate(-5deg) translate(-26px, 16px); opacity: .7; }
.lp-paper.back2 { transform: rotate(4deg) translate(22px, 8px); opacity: .85; }
.lp-paper-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 9px; font-weight: 800; color: var(--ds-text-muted); line-height: 1.5; }
.lp-paper-title { text-align: center; font-size: 13px; font-weight: 900; color: var(--ds-text-heading); border-block: 1px solid var(--ds-border-light); padding: 6px 0; }
.lp-paper-grid { flex: 1; display: grid; grid-template-columns: 38px repeat(6, 1fr); grid-auto-rows: 1fr; border: 1px solid #cbd5e1; }
.lp-paper-grid i { border-inline-start: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 7.5px; font-weight: 800; color: var(--ds-text-body); }
.lp-paper-grid i.h { background: #0f172a; color: #fff; }
.lp-paper-grid i.d { background: #f1f5f9; }
.lp-paper-grid i.r { background: #fee2e2; color: #b91c1c; }
.lp-paper-sign { display: flex; justify-content: space-between; font-size: 8.5px; font-weight: 800; color: var(--ds-text-muted); padding-top: 4px; }
.lp-paper-badge {
    position: absolute; bottom: 22px; inset-inline-start: 0; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--ds-border-light); border-radius: 12px;
    padding: 10px 14px; box-shadow: var(--ds-shadow-lg);
    font-size: 13px; font-weight: 800; color: var(--ds-text-heading);
}
.lp-paper-badge svg { width: 20px; height: 20px; color: var(--ds-primary); }

/* ----------------------------------------------------
   7. المنصة
---------------------------------------------------- */
.lp-platform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-pf { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.lp-pf .lp-ic { grid-row: span 2; }
.lp-pf h3 { font-size: 16px; font-weight: 900; }
.lp-pf p { font-size: 13.5px; color: var(--ds-text-muted); line-height: 1.75; }

/* ----------------------------------------------------
   8. الباقات (أعمدة جدول)
---------------------------------------------------- */
.lp-promo {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    max-width: 860px; margin: 0 auto 28px;
    padding: 12px 18px; border-radius: var(--ds-radius-md);
    background: var(--ds-accent-amber-light); border: 1px dashed #f59e0b;
    font-size: 14px; font-weight: 700; color: #92400e; text-align: center;
}
.lp-promo strong { background: #d97706; color: #fff; padding: 2px 10px; border-radius: 6px; font-size: 12.5px; }
.lp-promo code { background: #fff; border: 1px solid #fcd34d; border-radius: 6px; padding: 1px 8px; font-weight: 900; direction: ltr; display: inline-block; }
.lp-plans { max-width: 900px; margin-inline: auto; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.lp-plan { display: flex; flex-direction: column; }
.lp-plan-hd { padding: 22px 24px 18px; border-bottom: 1px solid var(--ds-border-light); background: var(--ds-bg-main); position: relative; }
.lp-plan.is-featured .lp-plan-hd { background: var(--ds-primary); }
.lp-plan.is-featured .lp-plan-hd h3, .lp-plan.is-featured .lp-plan-hd p { color: #ffffff; }
.lp-plan-badge { display: inline-block; font-size: 11.5px; font-weight: 900; padding: 2px 10px; border-radius: 6px; background: var(--ds-accent-amber-light); color: #b45309; margin-bottom: 8px; }
.lp-plan-hd h3 { font-size: 19px; font-weight: 900; }
.lp-plan-hd p { font-size: 13px; color: var(--ds-text-muted); margin-top: 2px; }
.lp-price { padding: 18px 24px; border-bottom: 1px solid var(--ds-border-light); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lp-price b { font-size: 40px; font-weight: 900; color: var(--ds-text-heading); line-height: 1; }
.lp-price span { font-size: 14px; font-weight: 700; color: var(--ds-text-muted); }
.lp-price s { color: var(--ds-accent-red); }
.lp-plan ul { list-style: none; flex: 1; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 24px; font-size: 14px; color: var(--ds-text-body); border-bottom: 1px solid #f1f5f9; }
.lp-plan li:nth-child(even) { background: #fbfcfd; }
.lp-plan li svg { width: 18px; height: 18px; color: var(--ds-primary-glow); margin-top: 3px; }
.lp-plan-ft { padding: 20px 24px; }
.lp-plan-ft .ds-btn { width: 100%; }
.lp-pay { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--ds-text-muted); }
.lp-pay .m { background: #fff; border: 1px solid var(--ds-border-light); border-radius: 6px; padding: 3px 10px; font-weight: 800; color: var(--ds-text-heading); }

/* ----------------------------------------------------
   9. الأسئلة الشائعة (صفوف)
---------------------------------------------------- */
.lp-faq { max-width: 900px; margin-inline: auto; grid-template-columns: 1fr; }
.lp-faq details { padding: 0; }
.lp-faq summary {
    list-style: none; cursor: pointer;
    display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px; align-items: center;
    padding: 18px 22px;
    font-size: 16px; font-weight: 800; color: var(--ds-text-heading);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i {
    font-style: normal; width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ds-bg-subtle); color: var(--ds-text-muted); font-size: 13px; font-weight: 900;
}
.lp-faq summary svg { width: 20px; height: 20px; color: var(--ds-text-light); transition: transform .2s ease; }
.lp-faq details[open] summary { color: var(--ds-primary); }
.lp-faq details[open] summary i { background: var(--ds-primary); color: #fff; }
.lp-faq details[open] summary svg { transform: rotate(180deg); color: var(--ds-primary); }
.lp-faq details p { padding: 0 22px 20px 60px; padding-inline-start: 76px; padding-inline-end: 22px; font-size: 14.5px; color: var(--ds-text-body); line-height: 1.9; }

/* ----------------------------------------------------
   10. الدعوة الأخيرة
---------------------------------------------------- */
.lp-final { padding: 0 0 96px; }
.lp-final-box {
    display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
    padding: 40px 44px; border-radius: var(--ds-radius-xl);
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    color: #fff; position: relative; overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(15, 118, 110, 0.45);
}
.lp-final-box::before {
    content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px);
    background-size: 40px 40px;
}
.lp-final-box > * { position: relative; }
.lp-final-box h2 { color: #fff !important; font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin-bottom: 6px; }
.lp-final-box p { color: rgba(255, 255, 255, 0.9); font-size: 15.5px; }
.lp-final-box .lp-cta { margin: 0; }
.lp-btn-light { background: #ffffff !important; color: var(--ds-primary) !important; font-weight: 900 !important; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }
.lp-btn-light:hover { transform: translateY(-2px); }
.lp-btn-wa { background: #25D366 !important; color: #fff !important; font-weight: 900 !important; }
.lp-btn-wa:hover { transform: translateY(-2px); background: #1fb855 !important; }

/* ظهور تدريجي عند التمرير */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .lp-slot { transition: none; }
}

/* ----------------------------------------------------
   الاستجابة للشاشات
---------------------------------------------------- */
@media (max-width: 1100px) {
    .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-hero-grid { gap: 32px; }
}

@media (max-width: 960px) {
    .lp-section { padding: 72px 0; }
    .lp-hero-grid, .lp-split, .lp-print { grid-template-columns: minmax(0, 1fr); }
    .lp-hero { padding-top: 40px; }
    .lp-hero-text { text-align: center; }
    .lp-lead, .lp-trust { margin-inline: auto; }
    .lp-cta { justify-content: center; }
    .lp-stats .lp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-features, .lp-platform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-feat.span-3 { grid-column: span 2; }
    .lp-paper-stack { max-width: 380px; margin-inline: auto; width: 100%; }
    .lp-final-box { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .lp-final-box .lp-cta { justify-content: center; }
}

@media (max-width: 760px) {
    .ds-container { padding: 0 16px; }
    .lp-section { padding: 56px 0; }
    .lp-head { grid-template-columns: minmax(0, 1fr); }
    .lp-head-num { flex-direction: row; gap: 8px; min-width: 0; padding: 8px 16px; justify-content: flex-start; }
    .lp-head-num b { font-size: 18px; }
    .lp-head-body { border-inline-start: none; padding: 16px 18px; }
    .lp-trust { grid-template-columns: minmax(0, 1fr); justify-items: start; max-width: 300px; }
    .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-step { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
    .lp-step-hd { border-bottom: none; border-inline-end: 1px solid var(--ds-border-light); align-items: flex-start; }
    .lp-features, .lp-platform { grid-template-columns: minmax(0, 1fr); }
    .lp-feat.span-2, .lp-feat.span-3 { grid-column: auto; }
    .lp-feat { padding: 22px 18px; }
    .lp-plans { grid-template-columns: minmax(0, 1fr); }

    /* جدول المقارنة يتحول إلى بطاقات صفوف */
    .lp-compare thead { display: none; }
    .lp-compare, .lp-compare tbody, .lp-compare tr, .lp-compare th, .lp-compare td { display: block; width: 100% !important; }
    .lp-compare tr { border-bottom: 1px solid var(--ds-border-light); }
    .lp-compare tbody tr:last-child { border-bottom: none; }
    .lp-compare th, .lp-compare td { border: none !important; padding: 10px 16px; }
    .lp-compare tbody th { white-space: normal; }
    .lp-compare td { padding-top: 6px; }

    .lp-table th, .lp-table td { padding: 12px 14px; }
    .lp-formats td:first-child { width: 72px; }
    .lp-paper-stack { height: 380px; }
    .lp-faq summary { grid-template-columns: 32px 1fr 20px; padding: 16px; font-size: 15px; gap: 10px; }
    .lp-faq summary i { width: 30px; height: 30px; }
    .lp-faq details p { padding-inline-start: 16px; padding-inline-end: 16px; }
    .lp-final-box { padding: 30px 20px; }
    .lp-final-box .ds-btn { width: 100%; }
}

@media (max-width: 480px) {
    .lp-stats .lp-cells { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lp-stat { padding: 16px; }
    .lp-stat b { font-size: 22px; }
    .lp-cta .ds-btn { width: 100%; }
    .lp-board-head { padding: 12px 14px; }
}
