/* =====================================================================
   Public site components (lp-*), ported unchanged from the design package (git 169b498).
   Layer 2 of 4: mila.css (the web token file without its font import, SP3-T21) > public.css > site-v3.css > portal.css.
   ===================================================================== */

:root{
  --lp-navy-50:#EEF3F9;
  --lp-radius-lg:22px;
  --lp-shadow-card:0 18px 40px rgba(11,37,64,.16);
  --lp-ease:cubic-bezier(.2,.7,.2,1);
}

@media (prefers-reduced-motion:no-preference){
  html{ scroll-behavior:smooth; }
}
html{ scroll-padding-top:84px; }

.lp{ background:var(--surface); color:var(--ink); font-size:16px; line-height:1.7; }
.lp *{ box-sizing:border-box; }
.lp a{ text-decoration:none; }
.lp h1, .lp h2, .lp h3, .lp p{ margin:0; }
.lp-container{ max-width:1160px; margin-inline:auto; padding-inline:20px; }

.lp-skip{ position:absolute; inset-inline-start:12px; top:-60px; z-index:100; background:var(--gold); color:var(--navy-900);
  padding:10px 16px; border-radius:10px; font-weight:700; }
.lp-skip:focus{ top:12px; color:var(--navy-900); }

/* ---------- أزرار ---------- */
.lp .btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; }
.lp .lp-btn-lg{ min-height:52px; padding:14px 26px !important; font-size:16px !important; border-radius:14px !important; }
.lp .btn svg{ width:18px; height:18px; }
.lp-btn-outline-light{ background:transparent !important; color:#fff !important; border:1px solid rgba(255,255,255,.34) !important; box-shadow:none !important; }
.lp-btn-outline-light:hover{ background:rgba(255,255,255,.08) !important; color:#fff !important; }
[dir="rtl"] .lp-flip{ transform:scaleX(-1); }

/* ---------- الترويسة ---------- */
.lp-header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.94); backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid var(--line); }
.lp-header .lp-container{ display:flex; align-items:center; gap:20px; min-height:68px; }
.lp-brand{ display:flex; align-items:center; gap:10px; color:var(--navy-900); font-weight:800; font-size:20px; flex:0 0 auto; }
.lp-brand:hover{ color:var(--navy-900); }
.lp-brand svg{ width:36px; height:36px; }
.lp-actions{ display:flex; align-items:center; gap:10px; margin-inline-start:auto; }
.lp-actions .mila-lang a{ padding:7px 12px; }
.lp-menu-btn{ display:none; width:44px; height:44px; border-radius:12px; border:1px solid var(--line); background:var(--surface);
  color:var(--navy-700); cursor:pointer; place-items:center; }
.lp-menu-btn svg{ width:22px; height:22px; }

/* ---------- البطل ---------- */
.lp-hero{ background:linear-gradient(160deg,var(--navy-700),var(--navy-900)); color:#fff; position:relative; overflow:hidden; }
.lp-hero::before{ content:""; position:absolute; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle,rgba(228,196,91,.20),transparent 68%); inset-inline-end:-160px; top:-200px; pointer-events:none; }
.lp-hero .lp-container{ display:grid; grid-template-columns:1.08fr .92fr; gap:56px; align-items:center; padding-block:80px 88px; position:relative; }
.lp-eyebrow{ display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; font-size:13.5px; font-weight:700;
  background:rgba(228,196,91,.14); color:var(--gold-2); border:1px solid rgba(228,196,91,.3); }
.lp-eyebrow svg{ width:15px; height:15px; flex:0 0 auto; }
.lp-hero h1{ font-size:clamp(32px,4.6vw,54px); font-weight:800; line-height:1.18; margin:20px 0 18px; color:#fff; letter-spacing:-.2px; }
.lp-hero h1 em{ font-style:normal; color:var(--gold-2); }
.lp-sub{ font-size:clamp(19px,2vw,23px); font-weight:700; color:#fff; line-height:1.5; margin-bottom:14px !important; }
.lp-lead{ font-size:18px; line-height:1.8; color:rgba(255,255,255,.86); max-width:56ch; }
.lp-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.lp-hero-note{ margin-top:22px; font-size:14px; color:rgba(255,255,255,.7); display:flex; flex-wrap:wrap; gap:6px 18px; }
.lp-hero-note span{ display:inline-flex; align-items:center; gap:6px; }
.lp-hero-note svg{ width:16px; height:16px; color:var(--gold-2); }

/* ---------- بطاقة مثال الإنذار المبكر ---------- */
figure.lp-risk{ margin:0; }
.lp-risk{ background:var(--surface); color:var(--ink); border-radius:var(--lp-radius-lg); box-shadow:var(--lp-shadow-card); padding:22px; }
.lp-risk-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color:var(--muted); }
.lp-tag{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:12.5px; font-weight:700;
  background:var(--lp-navy-50); color:var(--navy-700); }
.lp-risk-who{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 18px; }
.lp-risk-who b{ display:block; font-size:17px; }
.lp-risk-who small{ color:var(--muted); font-size:13px; }
.lp-level{ text-align:center; flex:0 0 auto; }
.lp-level .lvl{ display:inline-flex; align-items:center; gap:6px; background:var(--red-bg); color:var(--red); font-weight:800; font-size:13px; padding:5px 12px; border-radius:999px; }
.lp-level .lvl svg{ width:14px; height:14px; flex:0 0 auto; }
.lp-level .score{ display:block; font-size:26px; font-weight:800; line-height:1.2; margin-top:4px; font-variant-numeric:tabular-nums; }
.lp-level .score small{ font-size:13px; color:var(--muted); font-weight:600; }
.lp-risk h3{ font-size:14px; font-weight:800; color:var(--navy-700); margin-bottom:10px; }
.lp-factors{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.lp-factor{ display:grid; grid-template-columns:1fr auto; gap:4px 12px; font-size:14px; }
.lp-factor .imp{ font-weight:800; color:var(--red); font-variant-numeric:tabular-nums; direction:ltr; }
.lp-bar{ grid-column:1 / -1; height:7px; border-radius:99px; background:var(--lp-navy-50); overflow:hidden; }
.lp-bar i{ display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#E07B7B,var(--red)); }
[dir="rtl"] .lp-bar i{ margin-inline-start:0; }
.lp-risk-foot{ display:flex; align-items:center; gap:10px; margin-top:18px; padding-top:16px; border-top:1px dashed var(--line); font-size:13.5px; }
.lp-risk-foot .ic{ width:34px; height:34px; border-radius:10px; background:var(--green-bg); color:var(--green); display:grid; place-items:center; flex:0 0 auto; }
.lp-risk-foot .ic svg{ width:18px; height:18px; }
.lp-risk-foot small{ display:block; color:var(--muted); font-size:12.5px; }

/* ---------- شريط الحقائق ---------- */
.lp-facts{ background:var(--surface-2); border-bottom:1px solid var(--line); }
.lp-facts .lp-container{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding-block:28px; }
.lp-fact{ padding:8px 22px; border-inline-start:1px solid var(--line); }
.lp-fact:first-child{ border-inline-start:0; }
.lp-fact b{ display:block; font-size:30px; font-weight:800; color:var(--navy-700); line-height:1.2; font-variant-numeric:tabular-nums; }
.lp-fact span{ color:var(--muted); font-size:14.5px; line-height:1.6; }

/* ---------- الأقسام ---------- */
.lp-section{ padding-block:88px; }
.lp-section.alt{ background:var(--surface-2); border-block:1px solid var(--line); }
.lp-head{ max-width:760px; margin:0 auto 48px; text-align:center; }
.lp-kicker{ display:inline-block; font-size:14px; font-weight:800; color:var(--gold); letter-spacing:.3px; margin-bottom:10px; }
.lp-head h2{ font-size:clamp(26px,3.2vw,38px); font-weight:800; line-height:1.3; color:var(--navy-900); }
.lp-head p{ margin-top:14px; font-size:17.5px; color:var(--muted); line-height:1.8; }

.lp-grid{ display:grid; gap:20px; }
.lp-grid.c2{ grid-template-columns:repeat(2,1fr); }
.lp-grid.c3{ grid-template-columns:repeat(3,1fr); }
.lp-grid.c4{ grid-template-columns:repeat(4,1fr); }

.lp-card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px; transition:border-color .2s ease, box-shadow .2s ease; }
.lp-card:hover{ border-color:#D3DCE7; box-shadow:var(--shadow-sm); }
.lp-card h3{ font-size:19px; font-weight:800; color:var(--navy-900); margin:16px 0 8px; line-height:1.4; }
.lp-card p{ color:var(--muted); font-size:15.5px; line-height:1.75; }
.lp-ic{ width:48px; height:48px; border-radius:14px; background:var(--lp-navy-50); color:var(--navy-700); display:grid; place-items:center; }
.lp-ic svg{ width:24px; height:24px; }
.lp-ic.gold{ background:var(--gold-soft); color:#8A6B0E; }

.lp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; padding:0; list-style:none; }
.lp-chips li{ font-size:13px; font-weight:600; color:var(--navy-700); background:var(--lp-navy-50); padding:5px 11px; border-radius:999px; }

/* خطوات الإنذار المبكر */
.lp-ew{ display:grid; grid-template-columns:.95fr 1.05fr; gap:48px; align-items:center; }
.lp-ew .lp-head{ text-align:start; margin:0 0 28px; }
.lp-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; counter-reset:step; }
.lp-step{ display:grid; grid-template-columns:44px 1fr; gap:14px; align-items:start; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px; }
.lp-step::before{ counter-increment:step; content:counter(step); width:44px; height:44px; border-radius:12px; background:var(--navy-700); color:#fff;
  display:grid; place-items:center; font-weight:800; font-size:18px; }
.lp-step h3{ font-size:17px; font-weight:800; color:var(--navy-900); margin-bottom:4px; }
.lp-step p{ color:var(--muted); font-size:15px; line-height:1.7; }
.lp-callout{ margin-top:18px; display:flex; gap:12px; align-items:flex-start; background:var(--gold-soft); border:1px solid #EAD9A4; color:#5E4A0B;
  border-radius:14px; padding:14px 16px; font-size:15px; line-height:1.7; }
.lp-callout svg{ width:20px; height:20px; flex:0 0 auto; margin-top:4px; }

/* التكاملات */
.lp-integrations{ margin-top:40px; text-align:center; }
.lp-integrations p{ color:var(--muted); font-size:15px; margin-bottom:14px; }
.lp-integrations .lp-chips{ justify-content:center; }
.lp-integrations .lp-chips li{ background:var(--surface); border:1px solid var(--line); padding:8px 14px; font-size:14px; }

/* الفئات */
.lp-aud h3{ margin-top:14px; }
.lp-checks{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; }
.lp-checks li{ display:flex; gap:10px; align-items:flex-start; font-size:15px; color:var(--ink); line-height:1.6; }
.lp-checks svg{ width:18px; height:18px; color:var(--green); flex:0 0 auto; margin-top:4px; }

/* الأسئلة الشائعة */
.lp-faq{ max-width:840px; margin-inline:auto; display:flex; flex-direction:column; gap:12px; }
.lp-faq details{ background:var(--surface); border:1px solid var(--line); border-radius:16px; }
.lp-faq summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 22px; font-weight:700; font-size:16.5px; color:var(--navy-900); min-height:56px; }
.lp-faq summary::-webkit-details-marker{ display:none; }
.lp-faq summary svg{ width:20px; height:20px; color:var(--muted); flex:0 0 auto; transition:transform .2s var(--lp-ease); }
.lp-faq details[open] summary svg{ transform:rotate(180deg); }
.lp-faq details p{ padding:0 22px 20px; color:var(--muted); font-size:15.5px; line-height:1.85; }

/* طلب العرض */
.lp-demo{ background:linear-gradient(160deg,var(--navy-700),var(--navy-900)); color:#fff; }
.lp-demo .lp-container{ display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:start; }
.lp-demo h2{ font-size:clamp(26px,3.2vw,38px); font-weight:800; line-height:1.3; color:#fff; }
.lp-demo .intro p{ margin-top:14px; font-size:17px; line-height:1.8; color:rgba(255,255,255,.84); }
.lp-demo .lp-checks li{ color:rgba(255,255,255,.9); }
.lp-demo .lp-checks svg{ color:var(--gold-2); }
.lp-contact{ margin-top:28px; display:flex; flex-direction:column; gap:10px; }
.lp-contact p{ font-size:14.5px; color:rgba(255,255,255,.7); }
.lp-contact a{ display:inline-flex; align-items:center; gap:10px; color:#fff; font-weight:700; min-height:44px; }
.lp-contact a:hover{ color:var(--gold-2); }
.lp-contact svg{ width:20px; height:20px; color:var(--gold-2); }

.lp-form{ background:var(--surface); color:var(--ink); border-radius:var(--lp-radius-lg); box-shadow:var(--lp-shadow-card); padding:28px; }
.lp-form h3{ font-size:20px; font-weight:800; color:var(--navy-900); margin-bottom:4px; }
.lp-form .hint{ color:var(--muted); font-size:14px; margin-bottom:20px; }
.lp-form .row2{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.lp-form label{ font-weight:700; font-size:14px; color:var(--ink); margin-bottom:6px; display:block; }
.lp-form label .req{ color:var(--red); margin-inline-start:2px; }
.lp-form label .opt{ color:var(--muted); font-weight:500; font-size:13px; }
.lp-form .form-control{ min-height:48px; font-size:16px !important; }
.lp-form textarea.form-control{ min-height:96px; }
.lp-form .field-error{ color:var(--red); font-size:13.5px; margin-top:6px; display:flex; gap:6px; align-items:flex-start; }
.lp-form .form-control[aria-invalid="true"]{ border-color:var(--red) !important; box-shadow:0 0 0 3px rgba(209,67,67,.12) !important; }
.lp-form .privacy{ font-size:13px; color:var(--muted); margin-top:12px; line-height:1.7; }
.lp-hp{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.lp-success{ text-align:center; padding:24px 8px; }
.lp-success .ic{ width:64px; height:64px; border-radius:50%; background:var(--green-bg); color:var(--green); display:grid; place-items:center; margin:0 auto 16px; }
.lp-success .ic svg{ width:30px; height:30px; }
.lp-success h3{ font-size:22px; }
.lp-success p{ color:var(--muted); margin-top:8px; }


/* ---------- الاستجابة ---------- */
@media (max-width:1024px){
  .lp-hero .lp-container{ grid-template-columns:1fr; gap:40px; padding-block:56px 64px; }
  .lp-risk{ max-width:520px; }
  .lp-grid.c3, .lp-grid.c4{ grid-template-columns:repeat(2,1fr); }
  .lp-ew, .lp-demo .lp-container{ grid-template-columns:1fr; }
  .lp-facts .lp-container{ grid-template-columns:repeat(2,1fr); row-gap:18px; }
  .lp-fact:nth-child(3){ border-inline-start:0; }
}
@media (max-width:640px){
  .lp-section{ padding-block:60px; }
  .lp-head{ margin-bottom:32px; }
  .lp-grid.c2, .lp-grid.c3, .lp-grid.c4{ grid-template-columns:1fr; }
  .lp-facts .lp-container{ grid-template-columns:1fr; }
  .lp-fact{ border-inline-start:0; padding-inline:0; }
  .lp-form{ padding:22px 18px; }
  .lp-form .row2{ grid-template-columns:1fr; }
  .lp-cta .btn{ flex:1 1 100%; }
  .lp-brand span.nm{ font-size:18px; }
  .lp-header .lp-container{ gap:10px; }
  .lp-actions{ gap:8px; }
  .lp-actions .lp-signin{ display:none; }
}

/* =====================================================================
   شاشة الدخول: إضافات فوق .mila-login في mila.css
   ===================================================================== */
.mila-login .promo .eyebrow{ margin-bottom:16px; }
.mila-login .promo h2{ max-width:20ch; }
.mila-login .promo .lp-risk{ margin-top:26px; max-width:420px; padding:18px; }
.mila-login .promo .lp-risk-who{ margin:12px 0 14px; }
.mila-login .promo .roles{ margin-top:24px; display:flex; flex-direction:column; gap:10px; max-width:46ch; }
.mila-login .promo .roles div{ display:flex; gap:10px; align-items:flex-start; font-size:15px; line-height:1.6; color:rgba(255,255,255,.88); }
.mila-login .promo .roles b{ color:var(--gold-2); white-space:nowrap; }
.mila-login .promo .foot{ display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; opacity:.7; }
.mila-login .promo .foot a{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.mila-login .box .top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:26px; }
.mila-login .box .m-brand{ display:none; align-items:center; gap:8px; color:var(--navy-900); font-weight:800; font-size:19px; }
.mila-login .box .m-brand svg{ width:32px; height:32px; }
@media (max-width:991px){ .mila-login .box .m-brand{ display:flex; } }

.lp-roles{ border:0; padding:0; margin:0 0 16px; }
.lp-roles legend{ font-weight:700; font-size:14px; margin-bottom:8px; padding:0; color:var(--ink); }
.lp-seg{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; background:var(--surface-2); border:1px solid var(--line); border-radius:14px; padding:5px; }
.lp-seg input{ position:absolute; opacity:0; pointer-events:none; }
.lp-seg label{ display:grid !important; place-items:center; min-height:44px; margin:0; border-radius:10px; font-weight:700; font-size:14px;
  color:var(--muted); cursor:pointer; text-align:center !important; transition:background .15s ease, color .15s ease; padding:0 4px; }
.lp-seg label:hover{ color:var(--navy-700); }
.lp-seg input:checked + label{ background:var(--navy-700); color:#fff; box-shadow:var(--shadow-sm); }
.lp-seg input:focus-visible + label{ outline:3px solid var(--gold-2); outline-offset:2px; }

.lp-pass{ position:relative; }
.lp-pass .form-control{ padding-inline-end:52px !important; }
.lp-pass button{ position:absolute; inset-inline-end:4px; top:50%; transform:translateY(-50%); width:44px; height:44px; border:0; background:transparent;
  color:var(--muted); cursor:pointer; border-radius:10px; display:grid; place-items:center; }
.lp-pass button:hover{ color:var(--navy-700); background:var(--surface-2); }
.lp-pass button svg{ width:20px; height:20px; }
.lp-help{ margin-top:18px; font-size:14px; color:var(--muted); line-height:1.7; }
.lp-help a{ font-weight:700; }
.btn[aria-busy="true"]{ opacity:.75; cursor:progress; }
.mila-login .box h1{ font-size:24px; font-weight:800; margin:0 0 6px; color:var(--ink); line-height:1.4; }
.mila-login .promo .pt span:first-child svg{ display:block; }
.mila-login .form-control, .lp-form .form-control{ width:100%; display:block; }
.mila-login a.mila-brand, .mila-login a.m-brand, .lp-brand{ text-decoration:none; }
.lp-level .score{ direction:ltr; }

/* =====================================================================
   الموقع العام متعدد الصفحات: القوائم الموسّعة والصفحات الداخلية
   (على نمط منصات التعليم العالمية: منتجات، حلول، خدمات)
   ===================================================================== */
main:focus{ outline:none; }
.lp-center{ text-align:center; margin-top:28px; }
.lp-more{ display:inline-flex; align-items:center; gap:6px; font-weight:700; color:var(--navy-700); font-size:15px; }
.lp-more svg{ width:16px; height:16px; transition:transform .2s var(--lp-ease); }
.lp-more:hover{ color:var(--gold); }
.lp-ic.sm{ width:40px; height:40px; border-radius:12px; flex:0 0 auto; }
.lp-ic.sm svg{ width:20px; height:20px; }
.lp-ic.xs{ width:22px; height:22px; border-radius:7px; background:transparent; color:inherit; }
.lp-ic.xs svg{ width:15px; height:15px; }
.lp-ic.lg{ width:60px; height:60px; border-radius:18px; }
.lp-ic.lg svg{ width:28px; height:28px; }

/* ---------- القائمة الرئيسية ---------- */
.lp-header .lp-container{ min-height:72px; }
.lp-nav{ flex:1 1 auto; display:flex; align-items:center; margin-inline-start:18px; }
.lp-menu{ list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:2px; }
.lp-menu-link{ display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:10px 12px; border-radius:10px; border:0; background:transparent;
  color:var(--ink); font:700 15px/1.2 var(--font); cursor:pointer; transition:color .15s ease, background .15s ease; }
.lp-menu-link:hover, .lp-menu-link[aria-expanded="true"]{ color:var(--navy-700); background:var(--lp-navy-50); }
.lp-menu-link[aria-current="page"], .lp-mega-btn[data-current="1"]{ color:var(--navy-700); box-shadow:inset 0 -2px 0 var(--gold); border-radius:10px 10px 0 0; }
.lp-menu-link .chev{ width:16px; height:16px; transition:transform .2s var(--lp-ease); }
.lp-menu-link[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.lp-nav-cta{ display:none; }
.lp-menu-btn .i-close{ display:none; }
.lp-header.open .lp-menu-btn .i-open{ display:none; }
.lp-header.open .lp-menu-btn .i-close{ display:grid; }

.lp-mega{ position:absolute; inset-inline:0; top:100%; background:var(--surface); border-top:1px solid var(--line);
  box-shadow:0 24px 48px rgba(11,37,64,.14); }
.lp-mega[hidden]{ display:none; }
.lp-mega-inner{ display:grid; grid-template-columns:260px 1fr; gap:28px; padding-block:28px 32px; }
.lp-mega-inner.cols3{ grid-template-columns:1fr 1fr 1fr; }
.lp-mega-intro{ background:var(--surface-2); border:1px solid var(--line); border-radius:16px; padding:20px; align-self:start; }
.lp-mega-intro .t{ color:var(--muted); font-size:14.5px; line-height:1.8; margin:6px 0 14px; }
.lp-mega-grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 14px; }
.lp-mega-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.lp-mega-item{ display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:14px; color:var(--ink); transition:background .15s ease; }
.lp-mega-item:hover{ background:var(--lp-navy-50); color:var(--ink); }
.lp-mega-item b{ display:block; font-size:15px; color:var(--navy-900); }
.lp-mega-item small{ display:block; font-size:13px; color:var(--gold); font-weight:700; }
.lp-mega-item em{ display:block; font-style:normal; font-size:13.5px; color:var(--muted); line-height:1.6; margin-top:2px; }
.lp-mega-h{ font-size:13px; font-weight:800; color:var(--muted); letter-spacing:.3px; margin:0 0 8px; padding-inline:12px; }
.lp-mega-links{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.lp-mega-links a{ display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:10px; color:var(--ink); font-weight:600; font-size:14.5px; }
.lp-mega-links a:hover{ background:var(--lp-navy-50); color:var(--navy-700); }

/* ---------- معايير ---------- */
.lp-standards{ background:var(--surface); border-bottom:1px solid var(--line); }
.lp-standards .lp-container{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 28px; padding-block:22px; }
.lp-standards p{ color:var(--muted); font-weight:700; font-size:14.5px; }
.lp-standards ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px 22px; }
.lp-standards li{ font-weight:800; color:var(--navy-700); font-size:15px; letter-spacing:.2px; opacity:.85; }

/* ---------- الركائز ---------- */
.lp-pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.lp-pillar{ position:relative; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:30px 26px 28px; overflow:hidden; }
.lp-pillar::after{ content:""; position:absolute; inset-inline:0; top:0; height:4px; background:linear-gradient(90deg,var(--gold-2),var(--gold)); }
.lp-pillar h3{ font-size:21px; font-weight:800; color:var(--navy-900); margin:18px 0 8px; }
.lp-pillar p{ color:var(--muted); font-size:15.5px; line-height:1.8; }

/* ---------- محرّك Why ---------- */
.lp-engine{ background:radial-gradient(900px 400px at 85% 0%, rgba(228,196,91,.16), transparent 60%), linear-gradient(170deg,var(--navy-800),var(--navy-900));
  color:#fff; padding-block:92px; }
.lp-engine .lp-head h2{ color:#fff; }
.lp-engine .lp-head p{ color:rgba(255,255,255,.8); }
.lp-engine .lp-kicker{ color:var(--gold-2); }
.lp-cycle{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:16px; counter-reset:cyc; }
.lp-cycle li{ counter-increment:cyc; position:relative; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:22px; }
.lp-cycle li::before{ content:counter(cyc, decimal-leading-zero); position:absolute; inset-inline-end:18px; top:14px; font-weight:800; font-size:26px; color:rgba(228,196,91,.35); }
.lp-cycle .lp-ic{ background:rgba(228,196,91,.14); color:var(--gold-2); }
.lp-cycle h3{ font-size:18px; font-weight:800; color:#fff; margin:14px 0 6px; }
.lp-cycle p{ color:rgba(255,255,255,.76); font-size:15px; line-height:1.75; }
.lp-engine-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:28px; }
.lp-engine .lp-callout{ margin:0; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); color:rgba(255,255,255,.88); }

/* ---------- البطاقات القابلة للنقر ---------- */
.lp-card-link{ display:flex; flex-direction:column; color:var(--ink); }
.lp-card-link:hover{ color:var(--ink); border-color:var(--navy-700); box-shadow:var(--shadow); }
.lp-card-link:hover .lp-more svg{ transform:translateX(4px); }
[dir="rtl"] .lp-card-link:hover .lp-more svg{ transform:scaleX(-1) translateX(4px); }
.lp-card-link .lp-more{ margin-top:auto; padding-top:16px; }
.lp-ltr-title{ text-align:start; }
.lp-sublabel{ color:var(--gold) !important; font-weight:800; font-size:14px !important; margin:-4px 0 8px !important; }
.lp-card-t{ font-size:19px; font-weight:800; color:var(--navy-900); margin:16px 0 8px; }
.lp-product .lp-chips{ margin-top:14px; }

/* ---------- الحلول ---------- */
.lp-sol-groups{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.lp-sol-h{ font-size:15px; font-weight:800; color:var(--muted); margin:0 0 12px; display:flex; align-items:center; gap:10px; }
.lp-sol-h::after{ content:""; flex:1; height:1px; background:var(--line); }

/* ---------- الخدمات (مختصر) ---------- */
.lp-svc-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.lp-svc{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; padding:24px 14px; background:var(--surface);
  border:1px solid var(--line); border-radius:18px; color:var(--navy-900); font-size:15.5px; transition:border-color .2s ease, box-shadow .2s ease; }
.lp-svc:hover{ color:var(--navy-900); border-color:var(--navy-700); box-shadow:var(--shadow-sm); }

/* ---------- التكاملات ---------- */
.lp-logos{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
.lp-logos li{ display:grid; place-items:center; text-align:center; min-height:72px; padding:12px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); font-weight:800; color:var(--navy-700); font-size:15.5px; }

/* ---------- شريط الدعوة ---------- */
.lp-cta-band{ background:linear-gradient(160deg,var(--navy-700),var(--navy-900)); color:#fff; }
.lp-cta-band .lp-container{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; padding-block:56px; }
.lp-cta-band h2{ color:#fff; font-size:clamp(24px,2.8vw,32px); font-weight:800; }
.lp-cta-band p{ color:rgba(255,255,255,.82); margin-top:8px; max-width:60ch; }
.lp-cta-band .lp-cta{ margin-top:0; }

/* ---------- رأس الصفحات الداخلية ---------- */
.lp-page-hero{ background:radial-gradient(700px 360px at 90% 0%, rgba(228,196,91,.16), transparent 60%), linear-gradient(160deg,var(--navy-700),var(--navy-900)); color:#fff; }
.lp-page-hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; padding-block:56px 72px; }
.lp-page-hero h1{ font-size:clamp(30px,4vw,46px); font-weight:800; line-height:1.25; color:#fff; margin:18px 0 14px; }
.lp-crumbs{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; font-size:13.5px; margin-bottom:18px; color:rgba(255,255,255,.66); }
.lp-crumbs a{ color:rgba(255,255,255,.82); text-decoration:underline; text-underline-offset:3px; }
.lp-crumbs a:hover{ color:var(--gold-2); }
.lp-hero-panel{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:22px; padding:26px; }
.lp-hero-panel-h{ font-weight:800; color:var(--gold-2); margin-bottom:14px !important; }
.lp-hero-panel .lp-checks li{ color:rgba(255,255,255,.9); }
.lp-hero-panel .lp-checks svg{ color:var(--gold-2); }
.lp-hero-panel .lp-step{ background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.12); }
.lp-hero-panel .lp-step h3{ color:#fff; }
.lp-hero-panel .lp-step p{ color:rgba(255,255,255,.76); }
.lp-steps.compact{ gap:10px; }
.lp-steps.compact .lp-step{ padding:14px; }

/* ---------- المزايا المرقّمة ---------- */
.lp-zigzag{ display:grid; gap:0; border-top:1px solid var(--line); }
.lp-z-row{ display:grid; grid-template-columns:120px 1fr; gap:24px; padding-block:30px; border-bottom:1px solid var(--line); align-items:start; }
.lp-z-num{ font-size:44px; font-weight:800; color:var(--gold); line-height:1; opacity:.9; font-variant-numeric:tabular-nums; }
.lp-z-body{ display:grid; grid-template-columns:48px 1fr; gap:6px 18px; align-items:start; max-width:880px; }
.lp-z-body .lp-ic{ grid-row:span 2; }
.lp-z-body h3{ font-size:21px; font-weight:800; color:var(--navy-900); margin:0; }
.lp-z-body p{ color:var(--muted); font-size:16px; line-height:1.85; }

/* ---------- الاحتياجات ---------- */
.lp-needs{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.lp-need{ background:var(--surface); border:1px solid var(--line); border-inline-start:4px solid var(--gold); border-radius:16px; padding:24px; display:flex; flex-direction:column; gap:8px; }
.lp-need h3{ font-size:19px; font-weight:800; color:var(--navy-900); }
.lp-need p{ color:var(--muted); font-size:15.5px; line-height:1.8; }
.lp-need .lp-more{ margin-top:auto; padding-top:8px; }

/* ---------- الخدمات (الصفحة) ---------- */
.lp-services{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.lp-service{ scroll-margin-top:96px; }
.lp-service .lp-checks{ margin-top:14px; }

/* ---------- لماذا المنصة ---------- */
.lp-split2{ display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:start; }
.lp-split2 .lp-head{ text-align:start; margin:0; }
.lp-checks-lg li{ font-size:16px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.lp-std{ font-weight:800; color:var(--gold) !important; font-size:13.5px !important; margin:-2px 0 6px !important; }
#security, #integrations, #accessibility{ scroll-margin-top:80px; }

/* ---------- نماذج الواجهة التوضيحية ---------- */
.lp-mock-card{ background:var(--surface); color:var(--ink); border-radius:var(--lp-radius-lg); box-shadow:var(--lp-shadow-card); padding:22px; margin:0; }
.lp-mock-card .lp-risk-top{ margin-bottom:14px; }
.lp-mock-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.lp-mock-list li{ display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; }
.lp-mock-list li > span:nth-child(2){ flex:1; min-width:0; }
.lp-mock-list b{ display:block; font-size:14.5px; }
.lp-mock-list small{ display:block; color:var(--muted); font-size:12.5px; }
.lp-mock-list .ic{ width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--lp-navy-50); color:var(--navy-700); flex:0 0 auto; }
.lp-mock-list .ic svg{ width:18px; height:18px; }
.lp-mock-list .ic.done{ background:var(--green-bg); color:var(--green); }
.lp-mock-list .ic.live{ background:var(--red-bg); color:var(--red); }
.lp-mock-list .ic.warn{ background:#FBF1DC; color:#8A6B0E; }
.lp-chip-sm{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:800; padding:4px 10px; border-radius:999px; background:var(--lp-navy-50); color:var(--navy-700); white-space:nowrap; }
.lp-chip-sm svg{ width:13px; height:13px; }
.lp-chip-sm.ok{ background:var(--green-bg); color:var(--green); }
.lp-chip-sm.warn{ background:#FBF1DC; color:#8A6B0E; }
.lp-chip-sm.gold{ background:var(--gold-soft); color:#6B5210; }
.lp-mock-progress{ display:grid; grid-template-columns:1fr auto; gap:6px 12px; margin-top:16px; font-size:13.5px; color:var(--muted); }
.lp-mock-progress b{ color:var(--ink); font-variant-numeric:tabular-nums; }
.lp-bar i.ok{ background:linear-gradient(90deg,#5CC49A,var(--green)); }
.lp-mock-quote{ background:var(--surface-2); border-inline-start:3px solid var(--line); border-radius:10px; padding:12px 14px; font-size:14.5px; color:var(--ink); line-height:1.8; }
.lp-mock-grade{ display:flex; align-items:center; justify-content:space-between; margin-top:14px; }
.lp-mock-grade small{ display:block; color:var(--muted); font-size:12.5px; }
.lp-mock-grade b{ font-size:26px; font-weight:800; font-variant-numeric:tabular-nums; }
.lp-mock-note{ color:var(--muted); font-size:13.5px; margin-top:8px !important; }
.lp-mock-actions{ display:flex; gap:8px; margin-top:14px; }
.lp-mock-actions .a{ flex:1; text-align:center; padding:9px; border-radius:10px; border:1px solid var(--line); font-weight:700; font-size:14px; color:var(--navy-700); }
.lp-mock-actions .a.primary{ background:var(--navy-700); border-color:var(--navy-700); color:#fff; }
.lp-mock-table{ overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.lp-mock-table table{ width:100%; border-collapse:collapse; font-size:13.5px; }
.lp-mock-table th, .lp-mock-table td{ padding:10px 12px; text-align:start; border-bottom:1px solid var(--line); white-space:nowrap; }
.lp-mock-table th{ background:var(--surface-2); color:var(--muted); font-weight:700; font-size:12.5px; }
.lp-mock-table tr:last-child td{ border-bottom:0; }
.lp-mock-table td{ font-variant-numeric:tabular-nums; }
.lp-mock-cert{ background:var(--surface); border-radius:var(--lp-radius-lg); box-shadow:var(--lp-shadow-card); padding:20px; margin:0; color:var(--ink); }
.lp-mock-cert .lp-risk-top{ margin-bottom:12px; }
.lp-mock-cert .cert{ border:2px solid var(--gold-soft); outline:1px solid var(--gold); outline-offset:-8px; border-radius:14px; padding:26px 22px 18px; text-align:center; }
.lp-mock-cert .cert-mark svg{ width:44px; height:44px; }
.lp-mock-cert .cert-k{ color:var(--gold); font-weight:800; letter-spacing:.4px; margin-top:8px !important; }
.lp-mock-cert .cert-name{ font-size:24px; font-weight:800; color:var(--navy-900); margin-top:6px !important; }
.lp-mock-cert .cert-t{ color:var(--muted); font-size:14px; margin-top:4px !important; }
.lp-mock-cert .cert-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:18px; font-size:12.5px; color:var(--muted); font-family:monospace; }
.lp-mock-cert .qr{ display:grid; grid-template-columns:repeat(7,6px); gap:1px; }
.lp-mock-cert .qr i{ width:6px; height:6px; background:var(--line); }
.lp-mock-cert .qr i.on{ background:var(--navy-900); }

/* ---------- التذييل ---------- */
.lp-footer{ background:var(--navy-900); color:rgba(255,255,255,.72); font-size:14.5px; }
.lp-foot-grid{ display:grid; grid-template-columns:1.5fr repeat(4,1fr); gap:32px; padding-block:56px 40px; }
.lp-foot-brand .lp-brand{ color:#fff; font-size:20px; }
.lp-foot-brand p{ margin:14px 0 18px; line-height:1.8; max-width:36ch; }
.lp-foot-h{ font-size:14px; font-weight:800; color:#fff; margin:0 0 12px; }
.lp-footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.lp-footer nav a, .lp-foot-contact a{ color:rgba(255,255,255,.74); display:inline-flex; align-items:center; gap:8px; min-height:36px; }
.lp-footer nav a:hover, .lp-foot-contact a:hover{ color:var(--gold-2); }
.lp-foot-contact{ margin-top:16px !important; }
.lp-foot-contact svg{ width:18px; height:18px; color:var(--gold-2); }
.lp-foot-bottom{ border-top:1px solid rgba(255,255,255,.1); }
.lp-foot-bottom .lp-container{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; padding-block:20px; font-size:13.5px; color:rgba(255,255,255,.6); }

/* ---------- الاستجابة للموقع متعدد الصفحات ---------- */
@media (max-width:1180px){
  .lp-actions .lp-signin{ display:none; }
  .lp-foot-grid{ grid-template-columns:1fr 1fr 1fr; }
  .lp-foot-brand{ grid-column:1 / -1; }
}
@media (max-width:1080px){
  .lp-menu-btn{ display:grid; }
  .lp-actions .lp-hide-sm{ display:none; }
  .lp-nav{ display:none; position:fixed; inset-inline:0; top:72px; bottom:0; margin:0; flex-direction:column; align-items:stretch;
    background:var(--surface); border-top:1px solid var(--line); overflow-y:auto; padding:10px 16px 24px; z-index:60; }
  .lp-header.open .lp-nav{ display:flex; }
  .lp-menu{ flex-direction:column; align-items:stretch; gap:2px; }
  .lp-menu-link{ width:100%; justify-content:space-between; font-size:16px; padding:14px 12px; min-height:52px; }
  .lp-menu-link[aria-current="page"], .lp-mega-btn[data-current="1"]{ box-shadow:none; border-inline-start:3px solid var(--gold); border-radius:10px; }
  .lp-mega{ position:static; box-shadow:none; border-top:0; background:var(--surface-2); border-radius:14px; margin:4px 0 8px; }
  .lp-mega-inner, .lp-mega-inner.cols3{ grid-template-columns:1fr; gap:14px; padding:12px; }
  .lp-mega-intro{ display:none; }
  .lp-mega-grid{ grid-template-columns:1fr; }
  .lp-nav-cta{ display:grid; gap:10px; margin-top:16px; }
  .lp-nav-cta .btn{ width:100%; min-height:48px; }
  body.lp-nav-open{ overflow:hidden; }
  .lp-page-hero-grid, .lp-split2{ grid-template-columns:1fr; gap:32px; }
  .lp-pillars, .lp-cycle{ grid-template-columns:repeat(2,1fr); }
  .lp-sol-groups{ grid-template-columns:1fr; }
  .lp-svc-row{ grid-template-columns:repeat(3,1fr); }
  .lp-logos{ grid-template-columns:repeat(3,1fr); }
  .lp-services{ grid-template-columns:repeat(2,1fr); }
  .lp-z-row{ grid-template-columns:72px 1fr; }
  .lp-z-num{ font-size:34px; }
}
@media (max-width:640px){
  .lp-pillars, .lp-cycle, .lp-needs, .lp-services{ grid-template-columns:1fr; }
  .lp-svc-row, .lp-logos{ grid-template-columns:repeat(2,1fr); }
  .lp-z-row{ grid-template-columns:1fr; gap:10px; padding-block:24px; }
  .lp-z-num{ font-size:28px; }
  .lp-z-body{ grid-template-columns:1fr; }
  .lp-z-body .lp-ic{ grid-row:auto; }
  .lp-foot-grid{ grid-template-columns:1fr 1fr; gap:24px; }
  .lp-engine{ padding-block:64px; }
  .lp-page-hero-grid{ padding-block:40px 52px; }
  .lp-cta-band .lp-container{ padding-block:44px; }
  .lp-standards .lp-container{ justify-content:flex-start; }
}
@media (prefers-reduced-motion:reduce){
  .lp *{ transition:none !important; }
}
/* القائمة الموسّعة داخل الترويسة: شبكة تبدأ من الأعلى (تتجاوز قاعدة flex للترويسة) */
.lp-header .lp-mega-inner{ display:grid; align-items:start; min-height:0; }
/* منع تمدد أعمدة الشبكة بمحتوى عريض مثل جداول النماذج */
.lp-page-hero-grid > *, .lp-hero .lp-container > *, .lp-split2 > *{ min-width:0; }
/* على الجوال: backdrop-filter يجعل الترويسة مرجعًا للعناصر الثابتة فينضغط الدرج — نلغيه */
@media (max-width:1080px){
  .lp-header{ backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--surface); }
}

/* منع التفاف عناصر الترويسة */
.lp-menu-link, .lp-header .btn, .lp-brand{ white-space:nowrap; }
.lp-header .btn{ padding-inline:16px !important; }
@media (min-width:1081px) and (max-width:1320px){
  .lp-menu-faq{ display:none; }
  .lp-menu-link{ padding-inline:10px; }
}

/* العناوين الرئيسية في الصفحات العامة وشاشة الدخول بخط عام الإبل */
.lp h1, .lp h2:not(.lp-foot-h), .mila-login .box h1, .mila-login .promo h2{ font-family:var(--font-display) !important; font-weight:800; letter-spacing:0; }
.lp-hero h1{ line-height:1.3; }
.lp-head h2, .lp-demo h2, .lp-cta-band h2, .lp-page-hero h1{ line-height:1.4; }
