/* الصفحة الرئيسية التعريفية (Landing) — مستقلة عن app.css */
:root {
    --l-primary: #0e8a4a;
    --l-primary-2: #13a356;
    --l-primary-dark: #0a6b39;
    --l-ink: #0f2e22;
    --l-ink-2: #1d4434;
    --l-text: #1f2933;
    --l-muted: #5b6676;
    --l-border: #e3e8ee;
    --l-bg: #ffffff;
    --l-bg-soft: #f4f8f5;
    --l-soft: #e6f4ec;
    --l-ok: #157f3b;
    --l-warn: #c2700a;
    --l-accent: #f2a81d;
    --l-radius: 16px;
    --l-shadow: 0 10px 30px rgba(15, 46, 34, .08);
    --l-shadow-lg: 0 24px 60px rgba(15, 46, 34, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--l-text);
    background: var(--l-bg);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
.landing img, .landing svg { max-width: 100%; }
.landing a { color: var(--l-primary); text-decoration: none; }
.landing h1, .landing h2, .landing h3 { line-height: 1.35; margin: 0; color: var(--l-ink); }
.landing p { margin: 0; }
.l-container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.landing main, .landing footer { overflow-x: clip; }
.l-hero-grid > *, .l-split > *, .l-pillars > *, .l-modules > *, .l-plans > *, .l-integrations > *, .l-steps > * { min-width: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--l-ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.landing :focus-visible { outline: 3px solid var(--l-primary-2); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.l-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.4;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.l-btn:hover { transform: translateY(-1px); text-decoration: none; }
.l-btn svg { width: 18px; height: 18px; flex: none; }
.l-btn-primary { background: var(--l-primary); color: #fff !important; box-shadow: 0 8px 20px rgba(14, 138, 74, .3); }
.l-btn-primary:hover { background: var(--l-primary-dark); }
.l-btn-ghost { background: #fff; color: var(--l-ink) !important; border-color: var(--l-border); }
.l-btn-ghost:hover { border-color: var(--l-primary); color: var(--l-primary) !important; }
.l-btn-white { background: #fff; color: var(--l-ink) !important; }
.l-btn-outline-light { color: #fff !important; border-color: rgba(255,255,255,.45); }
.l-btn-outline-light:hover { background: rgba(255,255,255,.1); }
.l-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* Header */
.l-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.l-header.scrolled { border-color: var(--l-border); box-shadow: 0 4px 18px rgba(15, 46, 34, .06); }
.l-header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.l-logo { display: flex; align-items: center; flex: none; }
.l-logo img { height: 68px; width: auto; display: block; }
.l-nav { display: flex; gap: 4px; flex: 1; }
.l-nav a { color: var(--l-muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.l-nav a:hover { color: var(--l-ink); background: var(--l-bg-soft); text-decoration: none; }
.l-header-actions { display: flex; align-items: center; gap: 10px; }
.l-lang { color: var(--l-muted) !important; font-weight: 600; font-size: 14px; padding: 8px 10px; }
.l-lang:hover { color: var(--l-ink) !important; }
.l-menu-btn { display: none; background: none; border: 1px solid var(--l-border); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--l-ink); }
.l-menu-btn svg { width: 22px; height: 22px; display: block; }

/* Hero */
.l-hero {
    position: relative; overflow: hidden;
    padding: 72px 0 96px;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(19, 163, 86, .16), transparent 60%),
        radial-gradient(700px 420px at 0% 30%, rgba(242, 168, 29, .08), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--l-bg-soft) 100%);
}
.l-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.l-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--l-border); color: var(--l-primary-dark);
    padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
    box-shadow: 0 2px 10px rgba(15, 46, 34, .05);
}
.l-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--l-ok); box-shadow: 0 0 0 4px rgba(21, 127, 59, .15); }
.l-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -.3px; }
.l-hero h1 .hl { background: linear-gradient(90deg, var(--l-primary), var(--l-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--l-muted); max-width: 580px; }
.l-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.l-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--l-ink-2); font-weight: 600; font-size: 15px; }
.l-hero-points li { display: flex; align-items: center; gap: 8px; }
.l-hero-points svg { width: 20px; height: 20px; color: var(--l-ok); flex: none; }

/* Hero mockup (زخرفي فقط) */
.l-mock { position: relative; }
.l-mock-window {
    background: #fff; border-radius: 18px; box-shadow: var(--l-shadow-lg);
    border: 1px solid var(--l-border); overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
[dir="ltr"] .l-mock-window { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.l-mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--l-ink); }
.l-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.l-mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.l-mock-side { background: var(--l-bg-soft); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; border-inline-end: 1px solid var(--l-border); }
.l-mock-side span { height: 10px; border-radius: 6px; background: #d9e3ec; }
.l-mock-side span.on { background: var(--l-primary-2); }
.l-mock-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.l-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.l-mock-stat { border: 1px solid var(--l-border); border-radius: 12px; padding: 10px; }
.l-mock-stat b { display: block; font-size: 20px; color: var(--l-ink); line-height: 1.2; }
.l-mock-stat small { color: var(--l-muted); font-size: 11px; }
.l-mock-chart { border: 1px solid var(--l-border); border-radius: 12px; padding: 12px; display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.l-mock-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--l-primary-2), #8fd4ad); }
.l-mock-rows { display: flex; flex-direction: column; gap: 8px; }
.l-mock-row { display: flex; align-items: center; gap: 10px; }
.l-mock-row i { width: 26px; height: 26px; border-radius: 50%; background: var(--l-soft); flex: none; }
.l-mock-row span { height: 8px; border-radius: 6px; background: #e4ebf1; flex: 1; }
.l-mock-row em { width: 54px; height: 18px; border-radius: 999px; background: #e7f6ec; flex: none; }
.l-mock-row em.w { background: #fef3e2; }
.l-float {
    position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--l-shadow-lg);
    padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--l-ink);
    border: 1px solid var(--l-border); animation: l-float 6s ease-in-out infinite;
}
.l-float small { display: block; color: var(--l-muted); font-weight: 600; font-size: 11.5px; }
.l-float .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.l-float .ic svg { width: 20px; height: 20px; }
.l-float-1 { inset-inline-start: -28px; bottom: 34px; }
.l-float-2 { inset-inline-end: -18px; top: 46px; animation-delay: -3s; }
@keyframes l-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats strip */
.l-stats { margin-top: -48px; position: relative; z-index: 2; }
.l-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border: 1px solid var(--l-border); border-radius: var(--l-radius); box-shadow: var(--l-shadow);
}
.l-stat { padding: 24px 20px; text-align: center; }
.l-stat + .l-stat { border-inline-start: 1px solid var(--l-border); }
.l-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--l-primary); line-height: 1.3; }
.l-stat span { color: var(--l-muted); font-size: 14.5px; font-weight: 600; }

/* Sections */
.l-section { padding: 96px 0; }
.l-section.soft { background: var(--l-bg-soft); }
.l-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.l-kicker { display: inline-block; color: var(--l-primary); font-weight: 800; font-size: 14px; letter-spacing: .5px; margin-bottom: 10px; }
.l-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 14px; }
.l-head p { color: var(--l-muted); font-size: 17px; }

/* Pillars */
.l-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.l-pillar {
    background: #fff; border: 1px solid var(--l-border); border-radius: var(--l-radius);
    padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.l-pillar:hover { transform: translateY(-4px); box-shadow: var(--l-shadow); border-color: transparent; }
.l-pillar h3 { font-size: 20px; margin: 18px 0 10px; }
.l-pillar > p { color: var(--l-muted); font-size: 15.5px; }
.l-pillar ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--l-border); display: grid; gap: 8px; }
.l-pillar li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--l-ink-2); font-weight: 600; }
.l-pillar li svg { width: 18px; height: 18px; color: var(--l-primary); flex: none; margin-top: 4px; }
.l-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.l-icon svg { width: 26px; height: 26px; }
.t-blue { background: #e6f4ec; color: #0e8a4a; }
.t-green { background: #fff4dc; color: #a86f06; }
.t-amber { background: #fef3e2; color: #b45309; }
.t-violet { background: #efeafd; color: #6a48cf; }
.t-rose { background: #fdecef; color: #c0365a; }
.t-teal { background: #e3f6f4; color: #0f7f74; }

/* Split feature (البوابة) */
.l-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.l-split h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 16px; }
.l-split > div > p { color: var(--l-muted); font-size: 17px; }
.l-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.l-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--l-ink-2); font-size: 15px; }
.l-checks .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--l-soft); color: var(--l-primary); display: grid; place-items: center; flex: none; margin-top: 1px; }
.l-checks .ck svg { width: 16px; height: 16px; }

.l-phone-wrap { display: flex; justify-content: center; position: relative; }
.l-phone-wrap::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(19,163,86,.22), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.l-phone {
    position: relative; width: 290px; background: var(--l-ink); border-radius: 40px; padding: 12px;
    box-shadow: var(--l-shadow-lg);
}
.l-phone-screen { background: #f4f8f5; border-radius: 30px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.l-phone-top { background: linear-gradient(135deg, var(--l-primary), var(--l-primary-dark)); color: #fff; padding: 26px 18px 54px; }
.l-phone-top small { opacity: .8; font-size: 12px; display: block; }
.l-phone-top b { font-size: 17px; }
.l-phone-card { background: #fff; margin: -38px 14px 0; border-radius: 18px; padding: 16px; box-shadow: 0 8px 20px rgba(15,46,34,.1); text-align: center; }
.l-phone-card .time { font-size: 30px; font-weight: 800; color: var(--l-ink); line-height: 1.3; }
.l-phone-card .btn { margin-top: 10px; background: var(--l-ok); color: #fff; border-radius: 12px; padding: 10px; font-weight: 700; font-size: 14px; }
.l-phone-card small { color: var(--l-muted); font-size: 11.5px; }
.l-phone-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 14px; }
.l-phone-tiles div { background: #fff; border-radius: 14px; padding: 12px 4px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--l-ink-2); box-shadow: 0 2px 8px rgba(15,46,34,.05); }
.l-phone-tiles svg { width: 22px; height: 22px; display: block; margin: 0 auto 4px; color: var(--l-primary); }

/* Modules directory */
.l-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.l-module { background: #fff; border: 1px solid var(--l-border); border-radius: 14px; padding: 22px; }
.l-module h3 { font-size: 16.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.l-module h3 .l-icon { width: 36px; height: 36px; border-radius: 10px; }
.l-module h3 .l-icon svg { width: 19px; height: 19px; }
.l-module ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.l-module li { font-size: 14px; color: var(--l-muted); padding-inline-start: 14px; position: relative; }
.l-module li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #b9cbd9; }

/* Steps */
.l-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.l-step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--l-radius); border: 1px solid var(--l-border); }
.l-step::before {
    counter-increment: step; content: counter(step);
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--l-ink); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.l-step h3 { font-size: 18px; margin-bottom: 8px; }
.l-step p { color: var(--l-muted); font-size: 15px; }

/* Integrations / compliance */
.l-dark { background: radial-gradient(800px 400px at 90% 0%, rgba(19,163,86,.35), transparent 60%), var(--l-ink); color: #cfe3d8; }
.l-dark .l-head h2, .l-dark h3 { color: #fff; }
.l-dark .l-head p { color: #a8c7b6; }
.l-dark .l-kicker { color: #f5c04a; }
.l-integrations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.l-int { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.l-int .l-icon { background: rgba(245,192,74,.14); color: #f5c04a; width: 46px; height: 46px; flex: none; }
.l-int .l-icon svg { width: 22px; height: 22px; }
.l-int h3 { font-size: 17px; margin-bottom: 4px; }
.l-int p { font-size: 14.5px; color: #a8c7b6; }

/* FAQ */
.l-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.l-faq details { background: #fff; border: 1px solid var(--l-border); border-radius: 14px; padding: 0 22px; transition: box-shadow .2s; }
.l-faq details[open] { box-shadow: var(--l-shadow); border-color: transparent; }
.l-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16.5px; color: var(--l-ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; font-size: 24px; color: var(--l-primary); font-weight: 400; line-height: 1; transition: transform .2s; flex: none; }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { padding: 0 0 20px; color: var(--l-muted); font-size: 15.5px; }

/* Access / CTA */
.l-cta { padding: 96px 0; background: linear-gradient(180deg, var(--l-bg-soft), #fff); }
.l-cta-box {
    background: linear-gradient(135deg, var(--l-primary) 0%, var(--l-primary-dark) 55%, var(--l-ink) 100%);
    border-radius: 28px; padding: 56px; color: #e2f2e8; position: relative; overflow: hidden;
}
.l-cta-box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); inset-inline-end: -140px; top: -160px; }
.l-cta-box h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 10px; }
.l-cta-box > p { font-size: 17px; max-width: 640px; }
.l-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; position: relative; z-index: 1; }
.l-cta-note { margin-top: 18px !important; font-size: 14.5px; color: #d3eadc; position: relative; z-index: 1; }
[dir="rtl"] .l-btn .flip { transform: scaleX(-1); }

/* Pricing */
.l-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.l-plan {
    position: relative; background: #fff; border: 1px solid var(--l-border); border-radius: 20px;
    padding: 30px 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.l-plan:hover { transform: translateY(-4px); box-shadow: var(--l-shadow); }
.l-plan.featured { border: 2px solid var(--l-primary); box-shadow: var(--l-shadow-lg); }
.l-plan-badge {
    position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%);
    background: var(--l-primary); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
[dir="rtl"] .l-plan-badge { transform: translateX(50%); }
.l-plan h3 { font-size: 22px; }
.l-plan-desc { color: var(--l-muted); font-size: 15px; margin-top: 6px !important; min-height: 50px; }
.l-plan-price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.l-plan-price strong { font-size: 40px; font-weight: 800; color: var(--l-ink); line-height: 1.1; }
.l-plan-price span { color: var(--l-muted); font-size: 14px; font-weight: 600; }
.l-plan-meta { font-size: 13.5px; color: var(--l-ok); font-weight: 600; }
.l-plan ul { list-style: none; margin: 20px 0 26px; padding: 20px 0 0; border-top: 1px dashed var(--l-border); display: grid; gap: 9px; flex: 1; align-content: start; }
.l-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--l-ink-2); font-weight: 600; }
.l-plan li svg { width: 18px; height: 18px; color: var(--l-primary); flex: none; margin-top: 4px; }
.l-plan .l-btn { width: 100%; }
.l-plans-note { text-align: center; color: var(--l-muted); font-size: 14px; margin-top: 26px !important; }

/* Footer */
.l-footer { background: var(--l-ink); color: #a8c7b6; padding: 56px 0 28px; font-size: 14.5px; }
.l-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.l-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.l-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.l-footer a { color: #cfe3d8; }
.l-footer a:hover { color: #fff; }
.l-footer-logo { background: #fff; display: inline-flex; padding: 8px 14px; border-radius: 10px; margin-bottom: 14px; }
.l-footer-logo img { height: 84px; width: auto; display: block; }
.l-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .l-float { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
    .l-modules { grid-template-columns: repeat(2, 1fr); }
    .l-integrations { grid-template-columns: repeat(2, 1fr); }
    .l-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .l-nav { display: none; position: absolute; top: 84px; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--l-border); box-shadow: 0 12px 24px rgba(15,46,34,.08); }
    .l-nav.open { display: flex; }
    .l-nav a { padding: 12px; }
    .l-menu-btn { display: block; }
    .l-header-inner { justify-content: space-between; }
    .l-header-actions .l-btn-ghost { display: none; }
    .l-hero { padding: 48px 0 90px; }
    .l-hero-grid, .l-split { grid-template-columns: 1fr; gap: 48px; }
    .l-mock { max-width: 560px; margin-inline: auto; width: 100%; }
    .l-pillars { grid-template-columns: 1fr 1fr; }
    .l-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
    .l-footer-grid { grid-template-columns: 1fr 1fr; }
    .l-footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .l-section, .l-cta { padding: 68px 0; }
    .l-head { margin-bottom: 36px; }
    .l-stats-grid { grid-template-columns: 1fr 1fr; }
    .l-stat:nth-child(3) { border-inline-start: 0; }
    .l-stat:nth-child(n+3) { border-top: 1px solid var(--l-border); }
    .l-pillars, .l-modules, .l-integrations, .l-steps, .l-checks { grid-template-columns: 1fr; }
    .l-mock-body { grid-template-columns: 1fr; }
    .l-mock-side { display: none; }
    .l-mock-window, [dir="ltr"] .l-mock-window { transform: none; }
    .l-float-1 { inset-inline-start: 8px; bottom: -22px; }
    .l-float-2 { inset-inline-end: 8px; top: -22px; }
    .l-cta-box { padding: 34px 22px; border-radius: 22px; }
    .l-header-actions .l-btn-primary { padding: 8px 12px; font-size: 13.5px; }
    .l-logo img { height: 56px; }
    .l-footer-grid { grid-template-columns: 1fr; }
    .l-hero-cta .l-btn { flex: 1 1 100%; }
}

/* ===== Signup ===== */
.l-signup {
    padding: 48px 0 96px;
    background:
        radial-gradient(800px 420px at 90% -10%, rgba(19, 163, 86, .14), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--l-bg-soft) 340px);
}
.l-signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.l-signup-card { background: #fff; border: 1px solid var(--l-border); border-radius: 22px; padding: 36px; box-shadow: var(--l-shadow); min-width: 0; }
.l-signup-head { margin-bottom: 26px; }
.l-signup-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 14px 0 6px; }
.l-signup-head p { color: var(--l-muted); }
.l-alert { background: #fdecea; color: #b42318; border: 1px solid #f6c9c4; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: 14.5px; font-weight: 600; }

.l-step-block { border: 0; margin: 0 0 8px; padding: 26px 0 6px; border-top: 1px solid var(--l-border); min-width: 0; }
.l-step-block legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--l-ink); padding: 0; margin-bottom: 18px; float: inline-start; width: 100%; }
.l-step-block legend + * { clear: both; }
.l-step-block .num { width: 30px; height: 30px; border-radius: 9px; background: var(--l-soft); color: var(--l-primary); display: grid; place-items: center; font-size: 15px; }

/* حقول النموذج (تشمل الجزء المشترك _company-details) */
.l-form .grid { display: grid; gap: 0 18px; }
.l-form .grid-2 { grid-template-columns: 1fr 1fr; }
.l-form .field { margin-bottom: 18px; min-width: 0; }
.l-form label, .l-form .l-label { display: block; font-weight: 700; font-size: 14.5px; color: var(--l-ink-2); margin-bottom: 7px; }
.l-form input[type=text], .l-form input[type=email], .l-form input[type=tel], .l-form input[type=password], .l-form select {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--l-text); background-color: #fff;
    border: 1px solid #d5dde5; border-radius: 12px; padding: 11px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.l-form select {
    appearance: none; -webkit-appearance: none; padding-inline-end: 38px; background-repeat: no-repeat; background-position: left 14px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 fill=%22none%22 stroke=%22%235b6676%22 stroke-width=%222%22%3E%3Cpath d=%22M1 1l5 5 5-5%22/%3E%3C/svg%3E");
}
[dir="ltr"] .l-form select { background-position: right 14px center; }
.l-form input:focus, .l-form select:focus { outline: none; border-color: var(--l-primary); box-shadow: 0 0 0 4px rgba(14, 138, 74, .14); }
.l-form input::placeholder { color: #a3adb9; }
.l-form .ltr { direction: ltr; text-align: left; }
.l-form .help { font-size: 13px; color: var(--l-muted); margin-top: 6px; line-height: 1.6; }
.l-form .help.ok { color: var(--l-ok); font-weight: 700; }
.l-form .help.bad { color: #b42318; font-weight: 700; }
.l-otp-row { display: flex; gap: 8px; align-items: stretch; }
.l-otp-row + .l-otp-row { margin-top: 8px; }
.l-otp-row input { flex: 1; min-width: 0; }
.l-otp-row .l-btn { white-space: nowrap; }
.l-otp-row [data-otp-code] { letter-spacing: .4em; text-align: center; max-width: 180px; }
.l-form .small { font-size: 12.5px; }
.l-form .muted { color: var(--l-muted); font-weight: 600; }

.l-input-group { display: flex; align-items: stretch; border: 1px solid #d5dde5; border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.l-input-group:focus-within { border-color: var(--l-primary); box-shadow: 0 0 0 4px rgba(14, 138, 74, .14); }
.l-form .l-input-group input { border: 0; box-shadow: none; border-radius: 0; flex: 1; min-width: 0; padding-inline: 4px; }
.l-input-icon { display: grid; place-items: center; padding: 0 4px 0 14px; color: var(--l-muted); }
.l-input-icon svg { width: 18px; height: 18px; }
.l-input-suffix { display: flex; align-items: center; padding: 0 14px; background: var(--l-bg-soft); color: var(--l-muted); font-weight: 700; font-size: 14.5px; border-left: 1px solid var(--l-border); white-space: nowrap; }

.l-password { position: relative; }
.l-form .l-password input { padding-left: 46px; padding-right: 14px; }
.l-eye { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--l-muted); cursor: pointer; border-radius: 8px; }
.l-eye svg { width: 18px; height: 18px; display: block; }
.l-eye.on { color: var(--l-primary); }
[dir="ltr"] .l-form .l-password input { padding-left: 14px; padding-right: 46px; }
[dir="ltr"] .l-eye { left: auto; right: 6px; }

/* اختيار الباقة */
.l-plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.l-form .l-plan-option { margin: 0; cursor: pointer; font-weight: inherit; position: relative; }
.l-plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.l-plan-option-body { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 1.5px solid var(--l-border); border-radius: 16px; padding: 16px; transition: border-color .15s, box-shadow .15s, background .15s; }
.l-plan-option:hover .l-plan-option-body { border-color: #a6d6bb; }
.l-plan-option input:checked + .l-plan-option-body { border-color: var(--l-primary); background: #f3faf6; box-shadow: 0 0 0 4px rgba(14, 138, 74, .12); }
.l-plan-option input:focus-visible + .l-plan-option-body { outline: 3px solid var(--l-primary-2); outline-offset: 2px; }
.l-plan-option-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.l-plan-option-top strong { font-size: 17px; color: var(--l-ink); }
.l-plan-option .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c5d1dc; display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.l-plan-option .tick svg { width: 13px; height: 13px; }
.l-plan-option input:checked + .l-plan-option-body .tick { background: var(--l-primary); border-color: var(--l-primary); color: #fff; }
.l-plan-option-price b { font-size: 22px; font-weight: 800; color: var(--l-primary-dark); }
.l-plan-option-price small { display: block; color: var(--l-muted); font-size: 12px; font-weight: 600; }
.l-plan-option-desc { font-size: 13px; color: var(--l-muted); line-height: 1.6; font-weight: 500; }

.l-segmented { display: inline-flex; background: var(--l-bg-soft); border: 1px solid var(--l-border); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.l-form .l-segmented label { margin: 0; cursor: pointer; position: relative; }
.l-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.l-segmented span { display: block; padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--l-muted); transition: all .15s; }
.l-segmented input:checked + span { background: #fff; color: var(--l-ink); box-shadow: 0 2px 8px rgba(15, 46, 34, .1); }
.l-segmented input:focus-visible + span { outline: 3px solid var(--l-primary-2); }

.l-form .l-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 8px 0 20px; cursor: pointer; }
.l-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--l-primary); flex: none; }
.l-submit { width: 100%; padding: 15px 22px; font-size: 16px; }
.l-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--l-muted); font-size: 13px; margin-top: 14px !important; }
.l-secure svg { width: 15px; height: 15px; }

/* الملخص الجانبي */
.l-signup-side { position: sticky; top: 94px; min-width: 0; }
.l-summary { background: radial-gradient(400px 260px at 100% 0%, rgba(19, 163, 86, .45), transparent 70%), var(--l-ink); color: #cfe3d8; border-radius: 22px; padding: 28px; box-shadow: var(--l-shadow-lg); }
.l-summary-kicker { color: #f5c04a; font-weight: 800; font-size: 13px; letter-spacing: .4px; }
.l-summary-plan { color: #fff; font-size: 24px; font-weight: 800; margin-top: 4px; }
.l-summary-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.l-summary-price strong { color: #fff; font-size: 36px; font-weight: 800; line-height: 1.2; }
.l-summary-price span { font-size: 13.5px; }
.l-summary-min { font-size: 13.5px; color: #a8c7b6; margin-top: 4px !important; min-height: 22px; }
.l-summary-trial { display: flex; align-items: center; gap: 10px; background: rgba(245, 192, 74, .12); border: 1px solid rgba(245, 192, 74, .25); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 18px 0; font-weight: 700; font-size: 14.5px; }
.l-summary-trial svg { width: 20px; height: 20px; color: #f5c04a; flex: none; }
.l-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.l-summary li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.l-summary li svg { width: 18px; height: 18px; color: #6fd39a; flex: none; margin-top: 4px; }
.l-summary-note { font-size: 12.5px; color: #8fb09e; margin-top: 18px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.l-summary-login { text-align: center; font-size: 13.5px; color: var(--l-muted); margin-top: 16px !important; }

@media (max-width: 1080px) {
    .l-signup-grid { grid-template-columns: 1fr; }
    .l-signup-side { position: static; order: -1; }
    .l-summary ul, .l-summary-note { display: none; }
    .l-summary { padding: 22px; }
}
@media (max-width: 640px) {
    .l-signup { padding: 24px 0 64px; }
    .l-signup-card { padding: 22px 18px; border-radius: 18px; }
    .l-form .grid-2, .l-plan-options { grid-template-columns: 1fr; }
    .l-segmented { display: flex; }
    .l-form .l-segmented label { flex: 1; text-align: center; }
}

/* ===== Legal pages ===== */
.l-legal-hero {
    padding: 48px 0 56px;
    background:
        radial-gradient(700px 360px at 90% -20%, rgba(242, 168, 29, .16), transparent 60%),
        radial-gradient(700px 360px at 0% 0%, rgba(19, 163, 86, .12), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--l-bg-soft) 100%);
    border-bottom: 1px solid var(--l-border);
}
.l-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--l-muted); font-weight: 600; flex-wrap: wrap; }
.l-breadcrumb a { color: var(--l-primary); }
.l-legal-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 12px 0 8px; }
.l-legal-hero p { color: var(--l-muted); font-size: 17px; max-width: 720px; }
.l-legal-updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: #fff; border: 1px solid var(--l-border); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; color: var(--l-ink-2); }
.l-legal-updated svg { width: 16px; height: 16px; color: var(--l-accent); }

.l-legal { padding: 48px 0 96px; background: var(--l-bg-soft); }
.l-legal-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.l-legal-toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--l-border); border-radius: 18px; padding: 20px; }
.l-legal-toc strong { display: block; font-size: 14px; color: var(--l-ink); margin-bottom: 10px; }
.l-legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.l-legal-toc li { counter-increment: toc; }
.l-legal-toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--l-muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
.l-legal-toc a::before { content: counter(toc); color: var(--l-primary); font-weight: 800; min-width: 16px; }
.l-legal-toc a:hover, .l-legal-toc a.active { background: var(--l-soft); color: var(--l-ink); text-decoration: none; }

.l-legal-body { background: #fff; border: 1px solid var(--l-border); border-radius: 22px; padding: 40px; box-shadow: var(--l-shadow); min-width: 0; }
.l-legal-section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--l-border); scroll-margin-top: 100px; }
.l-legal-section h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.l-legal-section h2 .num { width: 32px; height: 32px; border-radius: 10px; background: var(--l-soft); color: var(--l-primary); display: grid; place-items: center; font-size: 15px; flex: none; }
.l-legal-section p { color: #3b4654; font-size: 16px; line-height: 1.95; }
.l-legal-section ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.l-legal-section li { display: flex; gap: 10px; align-items: flex-start; color: #3b4654; font-size: 15.5px; line-height: 1.85; }
.l-legal-section li svg { width: 18px; height: 18px; color: var(--l-primary); flex: none; margin-top: 6px; }

.l-legal-contact { background: linear-gradient(135deg, var(--l-ink) 0%, #164a33 100%); color: #cfe3d8; border-radius: 18px; padding: 28px; }
.l-legal-contact h2 { color: #fff; font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.l-legal-contact ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.l-legal-contact li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.l-legal-contact li svg { width: 20px; height: 20px; color: var(--l-accent); flex: none; }
.l-legal-contact a { color: #fff; }
.l-legal-owner { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #a8c7b6; }

.l-legal-others { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.l-legal-others a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--l-border); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; color: var(--l-ink-2); background: #fff; }
.l-legal-others a:hover { border-color: var(--l-primary); color: var(--l-primary); text-decoration: none; }
.l-legal-others svg { width: 18px; height: 18px; color: var(--l-primary); }

.l-form .l-check a { color: var(--l-primary); text-decoration: underline; }

@media (max-width: 960px) {
    .l-legal-grid { grid-template-columns: 1fr; }
    .l-legal-toc { position: static; }
}
@media (max-width: 640px) {
    .l-legal-body { padding: 24px 18px; border-radius: 18px; }
    .l-legal-contact ul { grid-template-columns: 1fr; }
    .l-legal-section h2 { font-size: 18.5px; }
}

/* ===== صفحات الدخول على نطاق الشركة ===== */
.l-auth { display: grid; grid-template-columns: minmax(360px, 42%) 1fr; min-height: 100vh; }
.l-auth-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 40px 48px; color: #d3eadc;
    background:
        radial-gradient(520px 380px at 100% 0%, rgba(242, 168, 29, .28), transparent 65%),
        radial-gradient(600px 420px at 0% 100%, rgba(19, 163, 86, .45), transparent 65%),
        linear-gradient(160deg, #0f2e22 0%, #0d3d29 55%, #0a5a34 100%);
}
.l-auth-brand::before, .l-auth-brand::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.l-auth-brand::before { width: 420px; height: 420px; border: 56px solid rgba(255, 255, 255, .05); inset-inline-end: -170px; top: 28%; }
.l-auth-brand::after { width: 180px; height: 180px; border: 26px solid rgba(242, 168, 29, .14); inset-inline-start: -60px; bottom: -40px; }
.l-auth-brand > * { position: relative; z-index: 1; }
.l-auth-company { display: inline-flex; align-items: center; gap: 14px; color: #fff !important; text-decoration: none !important; }
.l-auth-logo { background: #fff; border-radius: 16px; padding: 8px 12px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.l-auth-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.l-auth-company strong { font-size: 20px; font-weight: 800; }
.l-auth-brand-body h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.l-auth-brand-body p { font-size: 16.5px; color: #b9d6c6; max-width: 440px; }
.l-auth-brand-body ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.l-auth-brand-body li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; font-size: 15.5px; }
.l-auth-brand-body li span { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: #f5c04a; flex: none; }
.l-auth-brand-body li svg { width: 20px; height: 20px; }
.l-auth-powered { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #a8c7b6; }
.l-auth-powered .chip { background: #fff; border-radius: 10px; padding: 4px 8px; display: inline-flex; }
.l-auth-powered img { height: 30px; width: auto; display: block; }
.l-auth-powered strong { color: #fff; }

.l-auth-main { display: flex; flex-direction: column; padding: 24px 40px; background: radial-gradient(600px 300px at 50% 0%, rgba(19, 163, 86, .07), transparent 70%), var(--l-bg-soft); }
.l-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.l-auth-top .l-lang { margin-inline-start: auto; background: #fff; border: 1px solid var(--l-border); border-radius: 10px; }
.l-auth-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--l-muted) !important; }
.l-auth-back:hover { color: var(--l-ink) !important; text-decoration: none; }
.l-auth-back svg { width: 16px; height: 16px; }
[dir="ltr"] .l-auth-back svg, [dir="rtl"] .l-choice .flip { transform: scaleX(-1); }
.l-auth-box { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.l-auth-box.wide { max-width: 640px; }
.l-auth-head { margin-bottom: 26px; }
.l-auth-head .l-icon { margin-bottom: 16px; }
.l-auth-head h1 { font-size: clamp(25px, 2.6vw, 32px); font-weight: 800; margin-bottom: 6px; }
.l-auth-head p { color: var(--l-muted); font-size: 15.5px; }
.l-auth-box .l-form { background: #fff; border: 1px solid var(--l-border); border-radius: 20px; padding: 28px; box-shadow: var(--l-shadow); }
.l-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.l-label-row a { font-size: 13.5px; font-weight: 700; color: var(--l-primary); }
.l-otp { font-size: 26px !important; letter-spacing: 8px; text-align: center !important; font-weight: 800; }
.l-auth-switch { text-align: center; margin-top: 20px !important; color: var(--l-muted); font-size: 14.5px; }
.l-auth-switch a { font-weight: 700; }
.l-auth-foot { text-align: center; color: var(--l-muted); font-size: 13px; }
.l-alert.ok { background: #e7f6ec; color: #157f3b; border-color: #bfe5cc; }

.l-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.l-choice {
    display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1.5px solid var(--l-border); border-radius: 20px; padding: 26px;
    color: var(--l-text) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.l-choice:hover { transform: translateY(-4px); box-shadow: var(--l-shadow-lg); border-color: var(--l-primary); }
.l-choice .l-icon { margin-bottom: 8px; }
.l-choice strong { font-size: 20px; color: var(--l-ink); }
.l-choice .desc { color: var(--l-muted); font-size: 14.5px; flex: 1; }
.l-choice .go { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 800; color: var(--l-primary); border-top: 1px dashed var(--l-border); padding-top: 14px; }
.l-choice .go svg { width: 18px; height: 18px; transition: transform .2s; }
.l-auth-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px !important; color: var(--l-muted); font-size: 14px; text-align: center; }
.l-auth-note svg { width: 18px; height: 18px; color: var(--l-primary); flex: none; }

@media (max-width: 960px) {
    .l-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .l-auth-brand { padding: 22px 20px; gap: 0; }
    .l-auth-brand-body, .l-auth-powered { display: none; }
    .l-auth-logo img { height: 36px; }
    .l-auth-main { padding: 16px 16px 24px; }
    .l-auth-box { padding: 24px 0; }
}
@media (max-width: 640px) {
    .l-choices { grid-template-columns: 1fr; }
    .l-auth-box .l-form { padding: 22px 18px; }
}
