@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/plex-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e3e6ec;
  --brand: #14866d;
  --brand-ink: #ffffff;
  --brand-soft: #e7f5f1;
  --navy: #0f172a;
  --accent: #f5b301;
  --wa: #1fa855;
  --danger: #c2410c;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px rgb(15 23 42 / 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --card: #111a2e; --ink: #e8edf5; --muted: #9aa6ba; --line: #1f2a40;
    --brand: #22b496; --brand-ink: #06231c; --brand-soft: #10302a; --navy: #060b16; --danger: #fb923c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.75 "Plex Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
bdi { white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgb(20 134 109 / 0.28); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: none; gap: 22px; margin-inline-start: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 0.95rem; margin-inline-start: auto; }
@media (min-width: 900px) { .top nav { display: flex; } .top .btn { margin-inline-start: 0; } }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 48px; } .hero .wrap { grid-template-columns: 1fr 1.05fr; } }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 0.92rem; color: var(--muted); padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-inline-end: 6px; }

/* Phone mock with WhatsApp bubbles */
.stage { position: relative; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); overflow: hidden; }
.phone {
  position: absolute; inset-inline-start: -8px; bottom: -28px; width: min(52%, 250px);
  background: #0b141a; border-radius: 26px; padding: 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  border: 3px solid #1f2c34;
}
@media (max-width: 520px) { .phone { position: relative; inset: auto; width: 86%; margin: -40px auto 0; } }
.phone .bar { color: #e9edef; font-size: 0.8rem; font-weight: 600; padding: 6px 8px 10px; display: flex; gap: 8px; align-items: center; }
.phone .bar span { width: 26px; height: 26px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #0b141a; font-weight: 700; }
.bubble { background: #005c4b; color: #e9edef; border-radius: 10px 2px 10px 10px; padding: 8px 10px; font-size: 0.78rem; line-height: 1.6; margin: 0 0 8px auto; max-width: 92%; }
.bubble small { display: block; text-align: left; color: #8fb3ab; font-size: 0.68rem; margin-top: 2px; }
.bubble.in { background: #202c33; border-radius: 2px 10px 10px 10px; margin: 0 auto 8px 0; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 960px) { section { padding: 80px 0; } }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--card); border-block: 1px solid var(--line); }

/* Pain */
.pain { display: grid; gap: 14px; }
@media (min-width: 760px) { .pain { grid-template-columns: repeat(3, 1fr); } }
.pain div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pain b { display: block; font-size: 1.6rem; margin-bottom: 4px; }

/* Pillars */
.pillar { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.pillar:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .pillar { grid-template-columns: 1fr 1.25fr; gap: 56px; } .pillar.flip > :first-child { order: 2; } }
.pillar ul { padding: 0; margin: 16px 0 0; list-style: none; }
.pillar li { padding: 6px 0; padding-inline-start: 30px; position: relative; }
.pillar li::before { content: ""; position: absolute; inset-inline-start: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); box-shadow: inset 0 0 0 5px var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 0.95rem; margin-bottom: 8px; }

/* Feature grid */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Offline band */
.band { background: var(--navy); color: #e8edf5; border-radius: 22px; padding: 36px 24px; display: grid; gap: 24px; }
@media (min-width: 900px) { .band { grid-template-columns: 1.2fr 1fr; padding: 48px; align-items: center; } }
.band h2 { color: #fff; }
.band p, .band li { color: #b8c3d6; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.band li { background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 12px; padding: 14px 16px; }
.band li b { color: #fff; display: block; }

/* Pricing */
.prices { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.price.best { border-color: var(--brand); box-shadow: 0 10px 30px rgb(20 134 109 / 0.15); position: relative; }
.price.best::before { content: "الأكثر توفيرًا"; position: absolute; top: -13px; inset-inline-start: 22px; background: var(--brand); color: var(--brand-ink); font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price .amount { font-size: 2.3rem; font-weight: 700; margin: 8px 0 2px; }
.price.best .amount .num { color: var(--brand); }
.price .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price [data-price-box] .ask { display: inline; }
.price [data-price-box].has-price .ask { display: none; }
.price [data-price-box]:not(.has-price) .amount-wrap { display: none; }
.price .ask { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.price ul { padding: 0; margin: 16px 0 22px; list-style: none; flex: 1; }
.price li { padding: 5px 0; padding-inline-start: 24px; position: relative; color: var(--muted); }
.price li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }
.launch { font-size: 0.92rem; color: var(--danger); font-weight: 600; }
.launch s { color: var(--muted); font-weight: 400; }

/* Compare */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 0.98rem; }
.compare th, .compare td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--bg); font-size: 0.95rem; }
.compare td:last-child { color: var(--brand); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Trial form */
.trial { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .trial { grid-template-columns: 1fr 1fr; gap: 48px; } }
form.box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; padding: 0 14px;
}
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
form .btn { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--brand); font-weight: 600; }
.form-status.error { color: var(--danger); }
.small { font-size: 0.85rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }

/* Footer */
footer { background: var(--navy); color: #9aa6ba; padding: 40px 0 28px; font-size: 0.95rem; }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer a { color: #d6deeb; text-decoration: none; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 0.08); padding-top: 18px; font-size: 0.85rem; }

/* Sticky mobile CTA */
.mobile-cta { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 30; display: flex; gap: 8px; }
.mobile-cta .btn { flex: 1; min-height: 50px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* Text pages */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 820px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
