/* Master landing page (index.php → includes/landing_home.php). White + ink + Barq yellow; Alexandria headings,
   IBM Plex Sans Arabic text. Logical properties everywhere so the English (LTR) view mirrors cleanly. */
:root {
  --ink: #0E0E0C;
  --ink2: #3A3A35;
  --muted: #55554F;
  --paper: #F6F5F1;
  --line: #ECEAE4;
  --line2: #E2DFD7;
  --yellow: #FFD800;
  --yellow-soft: #FFF6BF;
  --green: #1E7A46;
  --head: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
html[lang="en"] body.lp { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html[lang="ar"] .lang-en, html[lang="en"] .lang-ar { display: none !important; }
.lp img { max-width: 100%; }
.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3 { font-family: var(--head); margin: 0; }
.lp-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lp-sec { padding: clamp(56px, 7vw, 88px) 0; }
main [id] { scroll-margin-top: 72px; }
.lp-sec.paper { background: var(--paper); }
.lp-sec.dark { background: var(--ink); color: #F5F5F0; }
.lp-eye { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.dark .lp-eye { color: #B5B5AD; }
.lp-bolt { width: 14px; height: 14px; flex: none; }
.lp-h2 { font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.2; text-wrap: balance; }
.dark .lp-h2 { color: #fff; }
.lp-lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--muted); }
.dark .lp-lead { color: #B5B5AD; }
.lp-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.lp-head.center { align-items: center; text-align: center; margin: 0 auto; }
.lp-flip { transform: none; }
html[dir="ltr"] .lp-flip { transform: scaleX(-1); }

/* buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-size: 16.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn.ink { background: var(--ink); color: #fff; }
.lp-btn.ghost { background: #fff; color: var(--ink); border-color: #D6D3CB; }
.lp-btn.yellow { background: var(--yellow); color: var(--ink); font-weight: 800; }
.lp-btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 700; }
.lp-btn.sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.lp-btn svg { width: 18px; height: 18px; flex: none; }

/* announce + header */
.lp-announce { display: block; text-align: center; padding: 9px var(--gut); font-size: 14px; font-weight: 600; text-decoration: none; }
.lp-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.lp-bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.lp-brand b { font-family: var(--head); font-weight: 800; font-size: 22px; }
.lp-nav { flex: 1; display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.lp-nav a { padding: 10px 12px; color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 10px; }
.lp-nav a:hover { background: var(--paper); }
.lp-actions { display: flex; align-items: center; gap: 6px; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 10px; }
.lp-link:hover { background: var(--paper); }
.lp-menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.lp-mobile { display: none; border-top: 1px solid var(--line); padding: 10px var(--gut) 16px; }
.lp-mobile a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.lp-mobile a:last-child { border-bottom: 0; }
.lp-header.open .lp-mobile { display: block; }
@media (max-width: 900px) {
  .lp-nav, .lp-actions .hide-sm { display: none; }
  .lp-menu { display: inline-flex; }
  .lp-bar { justify-content: space-between; }
}

/* hero */
.lp-hero { padding: clamp(36px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.lp-hero-in { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 56px); }
.lp-hero-text { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; max-width: 820px; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.lp-h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.15; text-wrap: balance; }
.lp-mark { background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 6px; }
.lp-hero-sub { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; color: var(--muted); max-width: 36em; }
.lp-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14.5px; color: var(--ink2); }
.lp-checks:not(:has(> span:not([hidden]))) { display: none; }
.lp-checks span { display: inline-flex; align-items: center; gap: 6px; }
.lp-checks svg { width: 16px; height: 16px; flex: none; }
.lp-shot { position: relative; width: 100%; max-width: 920px; padding-bottom: clamp(24px, 4vw, 48px); }
.lp-browser { background: #fff; border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(14,14,12,.45); }
.lp-browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #EEECE6; background: #FAF9F6; }
.lp-dots { display: flex; gap: 6px; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D6D3CB; display: block; }
.lp-url { flex: 1; max-width: 300px; margin: 0 auto; background: #F0EEE8; border-radius: 7px; padding: 4px 12px; font-size: 12px; color: var(--muted); text-align: center; direction: ltr; }
.lp-browser > img { display: block; width: 100%; height: auto; }
.lp-hero-phone { position: absolute; inset-inline-end: -8px; bottom: 0; width: clamp(110px, 20vw, 220px); height: auto;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }

/* payment gateways */
.lp-pay { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.lp-pay-in { display: flex; justify-content: center; margin-bottom: 22px; }
.lp-pay-t { font-size: 15px; font-weight: 600; color: var(--ink2); text-align: center; }
/* moving strip: two equal lists side by side; the page script slides both by one list width (+ the gap) and starts over */
.lp-marquee { --gap: 12px; display: flex; gap: var(--gap); overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.lp-pay-list { flex: none; min-width: 100%; display: flex; justify-content: space-around; align-items: center; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.lp-pay-list li { flex: none; height: 60px; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
[dir="rtl"] .lp-pay-list li { direction: rtl; }
.lp-pay-list img { height: 28px; width: auto; }
.lp-pay-list img.s { height: 22px; }
.lp-pay-list img.l { height: 32px; }
.lp-pay-list svg { width: 20px; height: 20px; }

/* features */
.lp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.lp-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lp-card-pic { height: 250px; background: var(--paper); overflow: hidden; }
.lp-card-pic.yellow { background: var(--yellow-soft); }
.lp-card-pic.mint { background: #E9F9EF; }
.lp-card-pic.phone { display: flex; justify-content: center; }
.lp-card-pic.phone img { width: 210px; height: auto; margin-top: 30px; align-self: flex-start; }
.lp-card-pic.crop { padding: 26px 26px 0; }
.lp-card-pic.crop img { display: block; width: 135%; max-width: none; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 10px 30px -12px rgba(14,14,12,.3); }
.lp-card-pic.crop img.wide { width: 185%; }
.lp-card-pic.custom img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
html[dir="ltr"] .lp-card-pic.crop img { margin-inline-start: auto; }
.lp-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.lp-card-body h3 { font-weight: 700; font-size: 21px; }
.lp-card-body p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.lp-more { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.lp-more h3 { font-weight: 700; font-size: 20px; }
.lp-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.lp-mini { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--paper); }
.lp-mini i { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.lp-mini svg { width: 19px; height: 19px; }
.lp-mini b { display: block; font-size: 15.5px; }
.lp-mini span { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* panel tabs */
.lp-panel-in { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid #D6D3CB; }
.lp-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-panel-in .lp-browser { width: 100%; max-width: 920px; }
.lp-panel-in .lp-browser > img { aspect-ratio: 16 / 10; }

/* app */
.lp-app-in { display: flex; flex-direction: column; align-items: center; gap: 44px; }
.lp-phones { width: 100%; display: flex; gap: clamp(16px, 3vw, 40px); overflow-x: auto; justify-content: safe center; padding: 4px 4px 12px; scrollbar-width: none; }
.lp-phones figure { margin: 0; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-phones img { width: 240px; height: 400px; object-fit: cover; object-position: top;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 99%); mask-image: linear-gradient(#000 78%, transparent 99%); }
.lp-phones figcaption { font-size: 14.5px; color: #B5B5AD; }

/* storefront */
.lp-split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.lp-split > .txt { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.lp-split > .pic { flex: 1.4 1 480px; min-width: 0; }
.lp-split .lp-url { max-width: 220px; font-size: 11.5px; }

/* generic CMS sections (services / custom) */
.lp-cms { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.lp-cms.center { margin: 0 auto; text-align: center; align-items: center; }
.lp-cms > img { width: 100%; max-width: 480px; border-radius: 22px; }
.lp-prose { font-size: 16.5px; line-height: 1.85; color: var(--ink2); }
.lp-prose a { color: var(--ink); font-weight: 700; }
.lp-cms .lp-btns { justify-content: flex-start; }
.lp-cms.center .lp-btns { justify-content: center; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 36px; }
.lp-step { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.lp-step.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-step em { font-style: normal; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lp-step h3 { margin-top: 6px; font-weight: 700; font-size: 20px; }
.lp-step p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.lp-step.dark p { color: #C9C9C1; }

/* tutorials */
.lp-tuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 36px; }
.lp-tut { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; text-decoration: none; }
.lp-tut .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.lp-tut .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-tut .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.lp-tut .play svg { width: 22px; height: 22px; }
.lp-tut .t { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.lp-tut .t > b { font-size: 16.5px; color: var(--ink); }
.lp-tut .t > span { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* pricing */
.lp-plans { flex: 1 1 380px; display: grid; gap: 18px; }
.lp-plan { max-width: 480px; width: 100%; background: var(--ink); color: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.lp-plan.light { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.lp-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-plan-top h3 { font-weight: 700; font-size: 24px; }
.lp-tag { background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.lp-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lp-price b { font-family: var(--head); font-size: 56px; line-height: 1; }
.lp-price span { font-size: 18px; color: #C9C9C1; }
.lp-plan.light .lp-price span { color: var(--muted); }
.lp-plan ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid #2E2E2A; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.lp-plan.light ul { border-top-color: var(--line); }
.lp-plan li { display: flex; gap: 10px; align-items: center; }
.lp-plan li svg { width: 18px; height: 18px; flex: none; }

/* faq */
.lp-faq { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.lp-faq > .side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.lp-faq > .list { flex: 2 1 520px; min-width: 0; border-top: 1px solid var(--line2); }
.lp-faq details { border-bottom: 1px solid var(--line2); }
.lp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; cursor: pointer; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: background .15s; }
.lp-faq summary svg { width: 16px; height: 16px; }
.lp-faq details[open] summary i { background: var(--yellow); }
.lp-faq details[open] summary .v { display: none; }
.lp-faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 40em; }

/* cta */
.lp-cta-sec { padding: clamp(40px, 5vw, 64px) 0; }
.lp-cta { background: var(--yellow); border-radius: 30px; padding: clamp(32px, 5vw, 60px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; position: relative; overflow: hidden; }
.lp-cta > svg { position: absolute; width: 240px; height: 240px; inset-inline-end: -40px; top: -46px; opacity: .13; }
.lp-cta .txt { display: flex; flex-direction: column; gap: 8px; position: relative; flex: 1 1 340px; }
.lp-cta h2 { font-weight: 800; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.2; }
.lp-cta p { margin: 0; font-size: 17px; color: #2B2B25; }
.lp-cta .lp-btns { position: relative; }

/* footer */
.lp-foot { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.lp-foot-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.lp-foot-grid > div { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.lp-foot-grid > .brand { flex: 2 1 280px; gap: 12px; }
.lp-foot-grid a { color: var(--muted); text-decoration: none; }
.lp-foot-grid a:hover { color: var(--ink); }
.lp-foot-grid p { margin: 0; color: var(--muted); line-height: 1.8; max-width: 30em; }
.lp-social { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-social a { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.lp-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; font-size: 14px; color: var(--muted); }

/* store login window */
.lp-modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(14,14,12,.55); }
.lp-modal.open { display: flex; }
.lp-modal-box { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.lp-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.lp-modal-head h2 { font-weight: 800; font-size: 22px; }
.lp-modal-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.lp-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.lp-modal form { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 24px; }
.lp-modal label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lp-modal input { height: 50px; border: 1px solid #D6D3CB; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.lp-modal input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.lp-modal .err { border-radius: 12px; background: #FDECEC; color: #9B1C1C; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.lp-modal .reg { text-align: center; font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* whatsapp */
.lp-wa { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); }
html[dir="rtl"] .lp-wa { inset-inline-start: auto; inset-inline-end: 18px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .lp-btn { transition: none; }
  .lp-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 16px; direction: inherit; }
  .lp-pay-list { min-width: 0; flex: 1; flex-wrap: wrap; justify-content: center; }
  .lp-pay-list[aria-hidden] { display: none; }
}

/* a part or a piece switched off (the panel's live preview draws them hidden) */
.lp [hidden] { display: none !important; }
.lp-preview .lp-flash { outline: 3px solid var(--yellow); outline-offset: -3px; transition: outline-color .8s; }
