/*
 * الصفحة الرئيسية لمنصّة زاجل: هيرو كحلي متدرّج بأطر شفافة، وأقسام على أرضية عاجية.
 * ملف CSS عادي بلا بناء، والخط IBM Plex Sans Arabic مستضاف محليًا.
 */
:root {
    --ink: #131b2e;
    --ink-rgb: 19, 27, 46;
    --ink-hi: #292f42;
    --ink-lo: #111829;
    --amber-rgb: 227, 162, 75;
    --amber-deep: #8d642e;
    --amber-soft: #fbf1e4;
    --amber-line: #f4dab7;
    --amber-light: #eec593;
    --ink-2: #1c2540;
    --amber: #e3a24b;
    --amber-2: #ecb265;
    --amber-ink: #8f5a16;
    --amber-text: #b7792a;
    --ground: #f6f4ef;
    --card: #ffffff;
    --line: #ece8df;
    --text: #131b2e;
    --body: #4b5670;
    --muted: #64708a;
    --on-ink: #f1f3f8;
    --on-ink-muted: #c9d1e3;
    --on-ink-faint: #97a3bc;
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-text); text-decoration: none; }
a:hover { color: var(--amber-ink); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
svg { flex-shrink: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--amber-text); }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.3; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; border-radius: 14px; transition: background .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(var(--amber-rgb), .9); }
.btn-amber:hover { background: var(--amber-2); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; background: var(--ink-2); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--ground); }

/* ——— الهيرو ——— */
.hero {
    position: relative; overflow: hidden; color: var(--on-ink);
    background:
        radial-gradient(1100px 620px at 85% -10%, rgba(64, 82, 128, .35), transparent 60%),
        radial-gradient(900px 600px at 0% 0%, rgba(42, 55, 92, .45), transparent 65%),
        linear-gradient(165deg, var(--ink-hi) 0%, var(--ink) 45%, var(--ink-lo) 100%);
}
.hero-deco { position: absolute; pointer-events: none; }
.hero-lines { inset: 0; width: 100%; height: 100%; }
.hero-frame-a { left: -380px; top: -120px; }
.hero-frame-b { right: -260px; bottom: -320px; }

.topbar { position: relative; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 24px; font-weight: 700; }
.brand:hover { color: #fff; }
.brand .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.topnav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.topnav a { color: var(--on-ink-muted); }
.topnav a:hover { color: #fff; }
.topactions { display: flex; align-items: center; gap: 10px; }
.topactions .login { color: #fff; font-weight: 600; padding: 10px 16px; }
.topactions .btn { padding: 11px 20px; border-radius: 12px; }

.hero-body { position: relative; padding-block: 56px 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.chip-amber { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(var(--amber-rgb), .14); color: var(--amber-light); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.3; font-weight: 700; color: #fff; }
.hero h1 span { color: var(--amber); }
.lead { font-size: 17px; color: var(--on-ink-muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-ctas .btn { font-size: 16px; padding: 13px 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--on-ink-faint); }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }

/* مشهد المنتج */
.scene { flex: 1 1 480px; min-width: 0; position: relative; padding-block: 28px 64px; }
.scene-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-card { position: relative; background: #fff; color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.scene-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scene-head b { font-size: 17px; }
.scene-head small { display: block; font-size: 13px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-warning { background: var(--amber-soft); color: var(--amber-ink); }
.pill-success { background: #e3f6ed; color: #12804f; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.week-names { margin-top: 18px; font-size: 11px; text-align: center; color: var(--muted); }
.day { min-height: 96px; border-radius: 10px; background: var(--ground); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.day b { font-size: 12px; }
.day i { height: 18px; border-radius: 5px; border-right: 3px solid; }
.day-on { background: var(--ink); color: #fff; }
.day-on b { color: var(--amber); }
.day-on span { font-size: 10px; line-height: 1.3; }
.day-on i { border: 0; background: var(--amber); }
.day-on i + i { background: rgba(var(--amber-rgb), .45); }
.c-fb { background: #e9effc; border-color: #3b6fe0 !important; }
.c-ig { background: #fde7ef; border-color: #e1306c !important; }
.c-wa { background: #e3f6ed; border-color: #16a067 !important; }
.c-li { background: #efe9fb; border-color: #7c5ad6 !important; }
.slots { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.slot b { font-size: 13px; min-width: 56px; }
.slot span:not(.pill) { flex: 1; min-width: 0; font-size: 14px; }
.float { position: absolute; border-radius: 16px; box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7); }
.float-done { top: -6px; left: -18px; background: #fff; color: var(--text); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; }
.float-done .tick { width: 34px; height: 34px; border-radius: 10px; background: #e3f6ed; display: grid; place-items: center; }
.float-done small { color: var(--muted); font-size: 13px; }
.float-ready { bottom: -4px; right: -14px; width: 230px; background: var(--amber); color: var(--ink); padding: 14px 18px; font-size: 12px; }
.float-ready b { font-size: 13px; display: block; }
.bar { height: 6px; border-radius: 999px; background: rgba(var(--ink-rgb), .18); margin-top: 8px; overflow: hidden; }
.bar > div { height: 100%; background: var(--ink); border-radius: 999px; }

/* ——— المنصات ——— */
.platforms { background: #fff; border-bottom: 1px solid var(--line); }
.platforms .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.platforms strong { font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--ground); font-size: 14px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 999px; }
.p-facebook { background: #1877f2; } .p-instagram { background: #e1306c; } .p-x { background: #0f172a; }
.p-linkedin { background: #0a66c2; } .p-tiktok { background: #111827; } .p-youtube { background: #ff0000; }
.p-pinterest { background: #e60023; } .p-threads { background: #334155; } .p-telegram { background: #229ed9; }
.p-whatsapp { background: #25d366; } .p-snapchat { background: #f2d600; }

/* ——— المزايا ——— */
.section { padding-block: 80px 32px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; }
.card p { color: var(--body); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.i-amber { background: var(--amber-soft); color: var(--amber-text); }
.i-green { background: #e3f6ed; color: #16a067; }
.i-blue { background: #e9effc; color: #3b6fe0; }
.i-violet { background: #efe9fb; color: #7c5ad6; }
.i-pink { background: #fde7ef; color: #c2185b; }
.card-wide { grid-column: 1 / -1; background: var(--ink); color: var(--on-ink); border: 0; flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; padding: 30px; }
.card-wide > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-wide h3 { font-size: 22px; color: #fff; }
.card-wide p { color: var(--on-ink-muted); }
.card-wide .icon { background: rgba(var(--amber-rgb), .16); color: var(--amber); }
.date-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.date-row:last-child { background: rgba(var(--amber-rgb), .18); }
.date-row b { color: var(--amber); }

/* ——— المواسم ——— */
.seasons { padding-block: 56px 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.panel-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.panel-head .h2 { font-size: clamp(26px, 3vw, 38px); }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.season { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--ground); }
.season small { font-size: 13px; color: var(--muted); }
.season b { font-size: 18px; }
.season span { color: var(--amber-text); font-size: 16px; font-weight: 600; }
.season.on { background: var(--ink); color: #fff; }
.season.on small { color: var(--on-ink-faint); }
.season.on span { color: var(--amber); }
.panel-note { font-size: 14px; color: var(--muted); }

/* ——— الخطوات ——— */
.steps { padding-block: 64px; display: flex; flex-direction: column; gap: 36px; }
.steps .h2 { text-align: center; font-size: clamp(28px, 3.2vw, 40px); }
.step { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-top: 3px solid var(--amber); }
.step-n { font-size: 40px; font-weight: 700; color: var(--amber); line-height: 1; }
.step h3 { font-size: 20px; }
.step p { color: var(--body); }

/* ——— الوكالات ——— */
.teams { background: var(--ink); color: var(--on-ink); }
.teams .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.teams-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.teams-copy .eyebrow { color: var(--amber); }
.teams-copy .h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); }
.teams-copy p { color: var(--on-ink-muted); }
.teams-grid { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.teams-grid div { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.teams-grid b { color: #fff; display: block; }
.teams-grid span { color: var(--on-ink-faint); font-size: 14px; }

/* ——— الأسعار ——— */
.pricing { padding-block: 72px 32px; display: flex; flex-direction: column; gap: 36px; }
.pricing-head { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pricing-head .h2 { font-size: clamp(28px, 3.2vw, 40px); }
.pricing-head p { color: var(--body); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.plan-name .pill { background: var(--amber); color: var(--ink); }
.plan-desc { font-size: 14px; color: var(--muted); }
.plan-price b { font-size: 32px; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--body); font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { margin-top: 5px; color: var(--amber-text); }
.plan .btn { margin-top: auto; padding: 12px; }
.plan.featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 30px 60px -36px rgba(var(--ink-rgb), .9); }
.plan.featured .plan-price b, .plan.featured .plan-name { color: #fff; }
.plan.featured .plan-desc, .plan.featured .plan-price span { color: var(--on-ink-faint); }
.plan.featured ul { color: var(--on-ink-muted); }
.plan.featured li svg { color: var(--amber); }

/* ——— الأسئلة ——— */
.faq { max-width: 860px; padding-block: 56px 72px; display: flex; flex-direction: column; gap: 20px; }
.faq .h2 { text-align: center; font-size: clamp(26px, 3vw, 36px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 6px; color: var(--body); }

/* ——— الدعوة الأخيرة ——— */
.final { padding-bottom: 72px; }
.final-box { position: relative; overflow: hidden; background: var(--amber); color: var(--ink); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final-box svg.mark { position: absolute; left: -30px; bottom: -50px; width: 260px; height: 260px; opacity: .16; }
.final-box > div { position: relative; flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.final-box p { font-size: 18px; }
.final-box .btn { position: relative; font-size: 17px; padding: 16px 30px; }

/* ——— التذييل ——— */
.footer { border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.footer-cols { padding-block: 40px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-cols > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols b { color: var(--text); font-size: 15px; }
.footer-cols .name { font-size: 18px; }
.footer-cols a.muted { color: var(--muted); }
.footer-bottom { padding-block: 16px 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

@media (max-width: 640px) {
    .topnav { display: none; }
    .float-done { left: 0; }
    .float-ready { right: 0; }
    .hero-body { padding-block: 48px 72px; }
}

/* ——— الصفحات القانونية ——— */
.legal-top { background: var(--ink); }
.legal-top .wrap { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top .brand { font-size: 20px; }
.legal-top .brand .brand-mark { width: 36px; height: 36px; }
.legal-back { color: var(--on-ink-muted); font-size: 15px; }
.legal-back:hover { color: #fff; }
.legal { max-width: 820px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 40px); }
.legal h2 { font-size: 21px; margin-bottom: 8px; }
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal p, .legal li { color: var(--body); font-size: 16px; line-height: 1.9; }
.legal ul { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-lead { font-size: 18px !important; color: var(--text) !important; }
.legal-meta { font-size: 14px !important; color: var(--muted) !important; }
.legal-status { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 16px; padding: 18px 20px; }
.legal-status.is-done { background: #e3f6ed; border-color: #a9dfc4; }
.legal-status.is-bad { background: #fde8e8; border-color: #f3b7b9; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { color: var(--muted); }
