/* ============ الصفحة الرئيسية ============
   امتداد لهوية «كراسة المدرّس» الموجودة (ورق · حبر بترولي · هايلايتر ·
   قلم أحمر) لا هوية تانية: الزائر اللي بيسجّل المفروض يلاقي نفس المنصة
   اللي شافها، مش تصميم غريب عنه.                                          */

.lp { background: var(--paper); }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--primary); background: rgba(20, 97, 110, .09);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 12px;
}
.lp-h2 { font-size: clamp(23px, 3.4vw, 34px); line-height: 1.35; margin-bottom: 10px; }
.lp-sub { color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; max-width: 62ch; }
.lp-section { padding: 78px 0; }
.lp-section.alt { background: #fff; border-block: 1px solid var(--line); }

/* ── أزرار ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--primary); color: #fff; border: 1.5px solid var(--primary);
  border-radius: 10px; padding: 11px 20px; font: inherit; font-weight: 700;
  font-size: 14.5px; cursor: pointer; text-decoration: none;
  transition: transform .12s, background .15s;
}
.lp-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.lp-btn.ghost { background: transparent; color: var(--primary); }
.lp-btn.ghost:hover { background: rgba(20, 97, 110, .07); }
.lp-btn.light { background: #fff; color: var(--primary); border-color: #fff; }
.lp-btn.big { padding: 14px 26px; font-size: 16px; }
.lp-btn.small { padding: 8px 15px; font-size: 13.5px; }

/* ── الشريط العلوي ── */
.lp-nav {
  position: sticky; top: 0; z-index: 60; background: rgba(246, 245, 240, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.lp-nav.stuck { border-bottom-color: var(--line); box-shadow: 0 2px 14px rgba(30, 59, 77, .05); }
.lp-nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.lp-logo { font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 19px;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.lp-logo span { color: var(--primary); }
.lp-links { display: flex; gap: 22px; flex: 1; }
.lp-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.lp-links a:hover { color: var(--primary); }
.lp-nav-cta { display: flex; gap: 8px; }
.lp-burger { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); }

/* ── البطل ── */
.lp-hero { padding: 60px 0 74px; overflow: hidden; }
.lp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.lp-badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--highlight); padding: 5px 13px; border-radius: 99px; margin-bottom: 16px;
}
.lp-hero h1 { font-size: clamp(30px, 5.2vw, 50px); line-height: 1.28; margin-bottom: 16px; }
/* توقيع الهوية: ضربة هايلايتر مائلة تحت الكلمة المهمة */
.hl { position: relative; display: inline-block; }
.hl::before {
  content: ""; position: absolute; inset: 12% -6px 8% -6px; z-index: -1;
  background: var(--highlight); opacity: .55; border-radius: 4px;
  transform: rotate(-1deg) skewX(-6deg);
}
.lp-lead { font-size: 17px; line-height: 1.8; color: var(--ink-soft); max-width: 54ch; }
.lp-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 18px; }
.lp-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }

/* ── لقطة اللوحة ── */
.lp-shot { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(30, 59, 77, .13); overflow: hidden; }
.shot-head { display: flex; gap: 6px; padding: 11px 14px; background: var(--paper);
  border-bottom: 1px solid var(--line); }
.shot-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-body { padding: 16px; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.shot-kpi { background: var(--paper); border-radius: 11px; padding: 13px 10px; text-align: center; }
.shot-kpi b { display: block; font-family: 'Alexandria', sans-serif; font-size: 21px; color: var(--primary); }
.shot-kpi.red b { color: var(--red-pen); }
.shot-kpi small { font-size: 11px; color: var(--ink-soft); }
.shot-chart { height: 92px; margin-bottom: 14px; }
.shot-chart svg { width: 100%; height: 100%; }
.shot-list div { display: flex; align-items: center; gap: 9px; font-size: 13.5px;
  padding: 8px 0; border-bottom: 1px dashed var(--line); }
.shot-list div:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot.ok { background: var(--green-ok); }
.dot.warn { background: var(--red-pen); }

/* ── المشكلة ── */
.lp-pain { padding: 54px 0; background: var(--ink); color: #fff; }
.lp-pain .lp-h2 { color: #fff; text-align: center; margin-bottom: 26px; }
.lp-pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.lp-pain-grid > div { background: rgba(255, 255, 255, .07); border-radius: 13px; padding: 18px; }
.lp-pain-grid span { font-size: 24px; display: block; margin-bottom: 8px; }
.lp-pain-grid p { font-size: 14.5px; line-height: 1.7; opacity: .92; }

/* ── المميزات ── */
.lp-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px; margin-top: 30px; }
.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 22px; transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30, 59, 77, .09); }
.lp-feat .ic { font-size: 26px; display: block; margin-bottom: 10px; }
.lp-feat h3 { font-size: 17px; margin-bottom: 7px; }
.lp-feat p { font-size: 14.2px; line-height: 1.75; color: var(--ink-soft); }
.lp-feat ul { margin: 10px 0 0; padding: 0; list-style: none; }
.lp-feat li { font-size: 13.2px; color: var(--ink-soft); padding: 3px 0 3px 0; }
.lp-feat li::before { content: "— "; color: var(--primary); }

/* ── الخطوات ── */
.lp-steps { counter-reset: s; list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.lp-steps li { counter-increment: s; position: relative; padding-top: 44px; }
.lp-steps li::before {
  content: counter(s); position: absolute; top: 0; inset-inline-start: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-family: 'Alexandria', sans-serif; font-weight: 700;
}
.lp-steps b { display: block; font-size: 16px; margin-bottom: 5px; }
.lp-steps span { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* ── البوابات ── */
.lp-portals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 28px; }
.lp-portal { background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 24px; text-align: center; border-top: 4px solid var(--primary); }
.lp-portal.student { border-top-color: #1E7A45; }
.lp-portal.parent { border-top-color: #8A4B12; }
.p-icon { font-size: 34px; margin-bottom: 8px; }
.lp-portal h3 { font-size: 18px; margin-bottom: 8px; }
.lp-portal p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }

/* ── الذكاء ── */
.lp-ai { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lp-ticks { list-style: none; margin-top: 18px; padding: 0; }
.lp-ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 10px;
  font-size: 14.5px; line-height: 1.7; }
.lp-ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0;
  color: var(--green-ok); font-weight: 700; }
.lp-chat { background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; }
.msg { border-radius: 13px; padding: 11px 14px; margin-bottom: 10px;
  font-size: 13.8px; line-height: 1.7; }
.msg.q { background: var(--primary); color: #fff; margin-inline-start: 40px; }
.msg.a { background: #fff; border: 1px solid var(--line); margin-inline-end: 40px; }
.msg.a.refuse { border-color: var(--red-pen); background: #fff7f6; }
.msg small { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink-soft); }

/* ── الأسعار ── */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px; margin: 28px 0 16px; }
.lp-plan { background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.lp-plan.featured { border-color: var(--primary); box-shadow: 0 14px 36px rgba(20, 97, 110, .12); }
.lp-plan .tag { position: absolute; top: -12px; inset-inline-start: 22px;
  background: var(--highlight); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; }
.lp-plan h3 { font-size: 19px; margin-bottom: 4px; }
.lp-plan .desc { font-size: 13.5px; color: var(--ink-soft); min-height: 40px; line-height: 1.6; }
.lp-price { font-family: 'Alexandria', sans-serif; font-size: 34px; font-weight: 800;
  color: var(--primary); margin: 12px 0 2px; }
.lp-price small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lp-year { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.lp-plan li { font-size: 13.8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lp-plan li:last-child { border-bottom: 0; }
.lp-trial { display: inline-block; background: rgba(245, 200, 76, .3); color: var(--ink);
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.lp-note { font-size: 13.5px; color: var(--ink-soft); text-align: center;
  max-width: 66ch; margin: 0 auto; line-height: 1.75; }
.lp-loading { color: var(--ink-soft); padding: 20px; }

/* ── أسئلة شائعة ── */
.lp-faq-wrap { max-width: 800px; }
.lp-faq { margin-top: 24px; }
.lp-faq details { background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px; margin-bottom: 10px; }
.lp-faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; float: left; color: var(--primary); font-size: 19px; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq p { margin-top: 10px; font-size: 14.3px; line-height: 1.8; color: var(--ink-soft); }

/* ── الخاتمة والتذييل ── */
.lp-cta { background: var(--primary); color: #fff; padding: 66px 0; text-align: center; }
.lp-cta h2 { font-size: clamp(23px, 3.6vw, 32px); margin-bottom: 10px; }
.lp-cta p { opacity: .9; margin-bottom: 22px; font-size: 15.5px; }
.lp-foot { background: var(--ink); color: #fff; padding: 44px 0 0; }
.lp-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.lp-foot .lp-logo { color: #fff; }
.lp-foot p { font-size: 13.5px; opacity: .72; margin-top: 8px; line-height: 1.7; }
.lp-foot h4 { font-size: 14px; margin-bottom: 10px; }
.lp-foot a { display: block; color: #fff; opacity: .75; text-decoration: none;
  font-size: 13.5px; padding: 4px 0; }
.lp-foot a:hover { opacity: 1; }
/* ── التواصل في الأسفل ── */
.lp-contact { text-align: center; margin-top: 34px; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12); }
.lp-contact-label { font-size: 18px; opacity: .85; margin-bottom: 6px; }
.lp-foot a.lp-contact-num { display: inline-block; opacity: 1; font-weight: 800;
  font-size: clamp(30px, 7vw, 46px); letter-spacing: 1px; color: #fff; padding: 2px 0 12px; }
.lp-foot a.lp-contact-wa { display: inline-flex; align-items: center; gap: 8px; opacity: 1;
  background: #25d366; color: #fff; font-weight: 700; font-size: 16px;
  padding: 11px 22px; border-radius: 999px; }
.lp-foot a.lp-contact-wa:hover { background: #1ebe5b; }
.lp-wa-float { position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .15s; }
.lp-wa-float:hover { transform: scale(1.07); }
@media print { .lp-wa-float { display: none; } }

.lp-copy { text-align: center; font-size: 12.5px; opacity: .6; padding: 26px 0 20px; margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .12); }

/* ── نافذة اختيار البوابة ── */
.lp-modal-back { position: fixed; inset: 0; background: rgba(30, 59, 77, .55);
  display: none; place-items: center; z-index: 100; padding: 20px; }
.lp-modal-back.on { display: grid; }
.lp-modal { background: #fff; border-radius: 18px; padding: 26px; max-width: 400px; width: 100%; }
.lp-modal h3 { font-size: 20px; }
.lp-role { display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 9px;
  text-decoration: none; color: var(--ink); }
.lp-role:hover { border-color: var(--primary); background: rgba(20, 97, 110, .05); }
.lp-role span { font-size: 24px; }
.lp-role b { font-size: 15px; }
.lp-role small { display: block; font-size: 12px; color: var(--ink-soft); }

/* ── الموبايل ── */
@media (max-width: 900px) {
  .lp-hero-in, .lp-ai { grid-template-columns: 1fr; }
  .lp-shot { order: -1; }
  .lp-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .lp-links {
    display: none; position: absolute; top: 66px; inset-inline: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-block: 1px solid var(--line); padding: 8px 20px;
  }
  body.menu-open .lp-links { display: flex; }
  .lp-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lp-burger { display: block; }
  .lp-nav-cta .ghost { display: none; }
  .lp-section { padding: 54px 0; }
  .lp-hero { padding: 34px 0 50px; }
  .lp-foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-feat { transition: none; }
  .lp-btn:hover, .lp-feat:hover { transform: none; }
}

/* ── الكتالوج الكامل ── */
.lp-cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 28px; align-items: start; }
.lp-cat-group { background: var(--paper); border: 1px solid var(--line);
  border-radius: 15px; padding: 20px; }
.lp-cat-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.lp-cat-head .ic { font-size: 21px; }
.lp-cat-head h3 { font-size: 16.5px; flex: 1; }
.lp-cat-head .n { font-size: 12px; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.lp-cat-item { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.lp-cat-item:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-cat-item b { display: block; font-size: 14.3px; margin-bottom: 3px; }
.lp-cat-item span { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.lp-cat-item .core { display: inline-block; font-size: 10.5px; font-weight: 700;
  color: var(--primary); background: rgba(20, 97, 110, .1);
  border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: 2px; }

/* ══════════════ الحركة ══════════════
   قاعدتان حاكمتان هنا:

   ١) **المحتوى يظهر حتى لو الجافاسكربت وقع.** العناصر المتحرّكة بتبقى
      ظاهرة افتراضياً، و`.reveal` بيخفيها **بس لما** الجافاسكربت يعلّم
      الصفحة بـ`js-anim`. من غير الترتيب ده، أي خطأ في السكربت بيسيب
      الزائر قدام صفحة فاضية — وده أسوأ بكتير من صفحة بلا حركة.

   ٢) **الحركة تُحترم إطفاؤها.** `prefers-reduced-motion` مش رفاهية:
      فيه ناس الحركة بتسبّب لهم دوخة فعلية.                                */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js-anim .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0ms);
}

/* البطل: ظهور متدرّج بلا انتظار التمرير */
.js-anim .lp-hero-text > * { animation: lpUp .55s both cubic-bezier(.22, .8, .3, 1); }
.js-anim .lp-hero-text > :nth-child(2) { animation-delay: .06s; }
.js-anim .lp-hero-text > :nth-child(3) { animation-delay: .12s; }
.js-anim .lp-hero-text > :nth-child(4) { animation-delay: .18s; }
.js-anim .lp-hero-text > :nth-child(5) { animation-delay: .24s; }
.js-anim .lp-shot { animation: lpUp .7s .15s both cubic-bezier(.22, .8, .3, 1); }

@keyframes lpUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* الخطّ البياني في اللقطة بيترسم بدل ما يظهر فجأة */
.js-anim .shot-chart polyline:first-child {
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: lpDraw 1.5s .5s forwards ease-out;
}
@keyframes lpDraw { to { stroke-dashoffset: 0; } }

/* نبضة خفيفة على النقطة الخضراء — إشارة «حيّ» */
.js-anim .dot.ok { animation: lpPulse 2.4s ease-in-out infinite; }
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  50%      { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

.lp-feat .ic { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.lp-feat:hover .ic { transform: scale(1.14) rotate(-5deg); }

/* ══════════════ عرض الإرسال الجماعي ══════════════ */
.lp-blast { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px;
  align-items: start; margin-top: 26px; }
.lp-blast-filters { background: #fff; border: 1px solid var(--line);
  border-radius: 15px; padding: 18px; }
.lp-blast-filters h4 { font-size: 14.5px; margin-bottom: 12px; color: var(--ink-soft); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip { font: inherit; font-size: 13.2px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-soft);
  border-radius: 99px; padding: 7px 13px; transition: all .18s; }
.lp-chip:hover { border-color: var(--primary); color: var(--primary); }
.lp-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.lp-blast-out { background: #fff; border: 1px solid var(--line);
  border-radius: 15px; padding: 18px; }
.lp-blast-count { font-size: 14.5px; margin-bottom: 12px; }
.lp-blast-count b { font-size: 26px; color: var(--primary);
  display: inline-block; min-width: 2ch; }
.lp-blast-list { list-style: none; padding: 0; margin: 0;
  max-height: 210px; overflow-y: auto; }
.lp-blast-list li { display: flex; align-items: center; gap: 9px;
  font-size: 13.4px; padding: 7px 0; border-bottom: 1px dashed var(--line);
  animation: lpIn .22s both; }
.lp-blast-list li:last-child { border-bottom: 0; }
.lp-blast-list .why { margin-inline-start: auto; font-size: 11.8px;
  color: var(--ink-soft); }
.lp-blast-list li.out { opacity: .5; }
.lp-blast-list li.out .nm { text-decoration: line-through; }
@keyframes lpIn { from { opacity: 0; transform: translateX(8px); } }

.lp-blast-note { font-size: 13px; color: var(--ink-soft); line-height: 1.75;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }

@media (max-width: 820px) { .lp-blast { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal,
  .js-anim .lp-hero-text > *,
  .js-anim .lp-shot { opacity: 1; transform: none; animation: none; }
  .js-anim .reveal.in { transition: none; }
  .js-anim .shot-chart polyline:first-child { stroke-dashoffset: 0; animation: none; }
  .js-anim .dot.ok { animation: none; }
  .lp-feat .ic, .lp-feat:hover .ic { transition: none; transform: none; }
  .lp-blast-list li { animation: none; }
}
