:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efebe0;
  --ink: #17221c;
  --ink-2: #4a5850;
  --ink-3: #7b867f;
  --line: #e0dacb;
  --brand: #0f3d2e;
  --brand-2: #17573f;
  --gold: #c99a2e;
  --gold-2: #e9c46a;
  --ok: #1f7a4d;
  --warn: #9a6200;
  --danger: #b3261e;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --surface: #161d19; --surface-2: #1c2520; --ink: #e9ede9; --ink-2: #b5bfb9; --ink-3: #87938c;
    --line: #28332d; --brand: #0d3427; --brand-2: #2f8a63; --ok: #5cc791; --warn: #e9b44c; --danger: #f2867e;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --surface: #161d19; --surface-2: #1c2520; --ink: #e9ede9; --ink-2: #b5bfb9; --ink-3: #87938c;
  --line: #28332d; --brand: #0d3427; --brand-2: #2f8a63; --ok: #5cc791; --warn: #e9b44c; --danger: #f2867e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
section { padding: 64px 0; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; }
.section-lead { color: var(--ink-2); max-width: 680px; font-size: 1.05rem; }

.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-2); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; }
.mark.sm { width: 24px; height: 24px; border-radius: 7px; font-size: .85rem; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn.gold { background: var(--gold-2); color: #1f1700; }
.btn.gold:hover { background: #f1d27f; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* الرأس */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.top-links { display: none; gap: 20px; margin-inline-start: auto; font-size: .95rem; color: var(--ink-2); }
.top-links a { text-decoration: none; }
.top-links a:hover { color: var(--ink); }
.top .btn { margin-inline-start: auto; }
@media (min-width: 760px) { .top-links { display: flex; } .top .btn { margin-inline-start: 0; } }

/* البطل */
.hero { padding: 48px 0 72px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--gold-2) 22%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 70%); }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.15fr .85fr; } .hero { padding: 80px 0 96px; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, transparent); padding: 4px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 700; letter-spacing: 0; margin: 14px 0 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.fine-print { color: var(--ink-3); font-size: .85rem; margin-top: 14px; }

.phone {
  width: min(340px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(15, 61, 46, .35), 0 8px 20px rgba(0,0,0,.06);
  transform: rotate(-2deg);
}
.phone-bar { background: var(--brand); color: #fff; border-radius: 24px 24px 10px 10px; padding: 14px 16px; font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.phone-body { padding: 12px 6px 6px; }
.p-sub { font-size: .78rem; color: var(--ink-3); margin-bottom: 8px; }
.p-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; display: grid; }
.p-label { font-size: .75rem; color: var(--ink-2); }
.p-val { font-size: 1.5rem; font-weight: 700; }
.p-val.ok { color: var(--ok); } .p-val.danger { color: var(--danger); }
.p-note { font-size: .7rem; color: var(--ink-3); }
.p-list { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.p-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; font-size: .82rem; border-bottom: 1px solid var(--line); }
.p-row:last-child { border-bottom: 0; }
.p-row span:nth-child(2) { flex: 1; }
.p-row b { font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.danger { background: var(--danger); } .dot.warn { background: var(--gold); }

/* المشكلة */
.problem { background: var(--brand); color: #f1f4f2; }
.problem .section-lead { color: #c5d3cb; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 32px 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px; }
.stat .n { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat .u { font-size: .9rem; margin-inline-start: 6px; color: #e3eae6; }
.stat p { margin: 8px 0 0; font-size: .9rem; color: #dfe7e2; }
.stat small { color: #9fb3a7; font-size: .75rem; }
.problem-gap { font-size: 1.15rem; max-width: 720px; color: #e7ede9; }
.problem-gap strong { color: var(--gold-2); }

/* الخطوات */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--gold-2); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; }

/* المزايا */
.features { background: var(--surface-2); }
.grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--gold-2) 30%, transparent); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.feat p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* الأسئلة */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--ink-2); padding-bottom: 6px; }

/* الختام */
.final { padding: 40px 0 72px; }
.final-in { background: var(--brand); color: #fff; border-radius: 28px; padding: clamp(28px, 6vw, 56px); text-align: center; }
.final-in p { color: #c5d3cb; margin-bottom: 22px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-in { display: grid; gap: 10px; }
.foot p { color: var(--ink-3); font-size: .82rem; max-width: 760px; margin: 0; }
.foot-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.parent { font-size: .9rem; color: var(--ink-2); padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.parent a, .foot .contact a, details p a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.parent a:hover, .foot .contact a:hover, details p a:hover { text-decoration: underline; }
.foot .contact { color: var(--ink-2); font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }
.foot-bottom { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.foot .legal-links a { color: var(--ink-2); text-decoration: none; }
.foot .legal-links a:hover { color: var(--brand-2); text-decoration: underline; }

/* الصفحات النظامية */
.legal { padding: 40px 0 56px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 4px; }
.legal .updated { color: var(--ink-3); font-size: .88rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; margin: 0 0 .8em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-2); font-weight: 600; }

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

/* الشعار: العين اليقظة */
.mark, .mark.sm { background: none; padding: 0; overflow: hidden; }
.mark svg { width: 100%; height: 100%; display: block; }
.logo { font-family: 'Reem Kufi', var(--font); font-size: 1.45rem; letter-spacing: 0; }
.phone-bar .mark { box-shadow: 0 0 0 1px rgba(255,255,255,.18); border-radius: 7px; }

/* الأسعار */
.founders { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 26px 0 18px; padding: 16px 18px; border-radius: 18px;
  background: var(--brand); color: #eef3f0; }
.founders p { margin: 0; flex: 1 1 260px; }
.founders strong { color: var(--gold-2); }
.founders-tag { background: var(--gold-2); color: #1f1700; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 99px; }
.plans { display: grid; gap: 14px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.plan.featured { border: 2px solid var(--brand-2); box-shadow: 0 18px 40px -22px rgba(15, 61, 46, .45); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--brand-2); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-for { color: var(--ink-3); font-size: .88rem; margin: 2px 0 12px; }
.price { margin: 0 0 14px; }
.price .num { font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.price small { color: var(--ink-2); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan li { position: relative; padding: 6px 26px 6px 0; color: var(--ink-2); font-size: .94rem; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 700; }
.btn.block { display: flex; width: 100%; }
.pricing-notes { color: var(--ink-3); font-size: .85rem; text-align: center; margin-top: 18px; }
.pricing-notes a { color: var(--brand-2); }
