/* LocalReach — موقع الباقات
   الهوية: أزرق البرنامج (#2F6BFF) مع بنفسجي العلامة (#7C3AED)، كحلي عميق للأجزاء القوية،
   ولمسة رملية ذهبية (#F2B84B) لشريط الستوري. الشريط نفسه علامة تتكرر: فوق كل عنوان،
   وكشريط تقدّم للصفحة في الهيدر. الحركة الأساسية في مكان واحد: عرض التشغيل الحي أول الصفحة. */

:root {
  --ink: #0f1a33;
  --ink-soft: #3a4254;
  --muted: #5b6478;
  --faint: #9aa3b5;
  --line: #e3e7ef;
  --line-strong: #cfd6e4;
  --ground: #f4f6fa;
  --surface: #ffffff;
  --subtle: #f1f3f8;
  --track: #e8ecf4;
  --tint: #eef3ff;
  --tint-strong: #d6e2ff;
  --primary: #2f6bff;
  --primary-deep: #1f4fcc;
  --violet: #7c3aed;
  --navy: #0b1b3b;
  --navy-2: #12264f;
  --sand: #f2b84b;
  --green: #15803d;
  --green-soft: #e8f7ee;
  --amber-soft: #fff4e5;
  --whatsapp: #1fa855;
  --pinterest: #e60023;
  --tiktok: #111111;
  --instagram: #c13584;
  --web: #1e88e5;
  --upload: #16a34a;
  --leads: #7c3aed;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(11, 27, 59, 0.35), 0 2px 6px rgba(11, 27, 59, 0.06);
  --shadow-soft: 0 10px 30px -18px rgba(11, 27, 59, 0.28), 0 1px 3px rgba(11, 27, 59, 0.05);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: "Alexandria", "Tajawal", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(47, 107, 255, 0.45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.22; }
h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 84px; }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.lede { color: var(--muted); font-size: 18px; max-width: 58ch; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* شريط الستوري: ثلاث شرطات مثل شريط التقدم في البرنامج، تسبق كل عنوان قسم */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 600; font-size: 13px; margin-bottom: 12px; letter-spacing: 0.01em; }
.bars { display: inline-flex; gap: 3px; }
.bars i { display: block; width: 18px; height: 4px; border-radius: 4px; background: var(--primary); }
.bars i:last-child { background: var(--sand); width: 10px; }
.on-dark .eyebrow { color: var(--sand); }
.on-dark .bars i { background: rgba(255, 255, 255, 0.55); }
.on-dark .bars i:last-child { background: var(--sand); }

/* ---------- الهيدر + شريط تقدّم الصفحة على شكل ستوري ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.topbar.scrolled { box-shadow: 0 10px 28px -20px rgba(11, 27, 59, 0.5); }
.topbar .container { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 19px; transition: color 0.3s; }
.brand:hover { text-decoration: none; }
.mark { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: transparent; box-shadow: 0 6px 18px -6px rgba(47, 107, 255, 0.6); transition: transform 0.25s var(--ease), box-shadow 0.25s; flex-shrink: 0; }
.brand:hover .mark { transform: translateY(-1.5px) scale(1.04); box-shadow: 0 10px 24px -6px rgba(124, 58, 237, 0.7); }
.mark img, .mark svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-soft); padding: 8px 12px; border-radius: 9px; font-weight: 500; font-size: 15px; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--ground); text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--tint); font-weight: 600; }
.menu-btn { display: none; margin-inline-start: auto; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; }
.story-progress { position: absolute; inset-inline: 0; bottom: -1px; display: flex; gap: 4px; height: 3px; pointer-events: none; }
.story-progress i { flex: 1; position: relative; overflow: hidden; background: rgba(47, 107, 255, 0.1); }
.story-progress i::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(var(--fill, 0)); transform-origin: right; }
.story-progress i:last-child::after { background: var(--sand); }
/* في الرئيسية يبدأ الهيدر كحليًا مع الهيرو، ويتحول أبيض مع أول تمرير */
.dark-top .topbar:not(.scrolled) { background: var(--navy); border-color: rgba(255, 255, 255, 0.08); }
.dark-top .topbar:not(.scrolled) .brand { color: #fff; }
.dark-top .topbar:not(.scrolled) .nav a { color: rgba(255, 255, 255, 0.78); }
.dark-top .topbar:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dark-top .topbar:not(.scrolled) .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dark-top .topbar:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.dark-top .topbar:not(.scrolled) .menu-btn span { background: #fff; }
.dark-top .topbar:not(.scrolled) .story-progress i { background: rgba(255, 255, 255, 0.1); }

/* ---------- الأزرار ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: var(--body); transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s; overflow: hidden; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #3e78ff, #2a62f2); box-shadow: 0 10px 24px -12px rgba(47, 107, 255, 0.9); }
.btn-primary:hover { background: linear-gradient(180deg, #3370ff, #2157e0); box-shadow: 0 16px 30px -14px rgba(47, 107, 255, 0.95); }
/* لمعة تمر على الزر الأساسي عند المرور بالماوس */
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ground); }
.on-dark .btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-wa { color: #fff; background: var(--whatsapp); box-shadow: 0 10px 24px -12px rgba(31, 168, 85, 0.9); }
.btn-wa:hover { background: #178f47; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn .ic { width: 18px; height: 18px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- الهيرو ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

.hero { position: relative; background: radial-gradient(900px 520px at 88% -12%, rgba(47, 107, 255, 0.5), transparent 60%), radial-gradient(620px 420px at 0% 105%, rgba(124, 58, 237, 0.32), transparent 60%), var(--navy); color: #fff; padding-block: 64px 132px; overflow: hidden; }
/* شبكة خفيفة في الخلفية تعطي عمقًا بدون صور */
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 80%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero .lede { color: rgba(255, 255, 255, 0.78); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { width: 17px; height: 17px; color: var(--sand); }

/* عرض التشغيل الحي: نسخة مصغرة من لوحة "التشغيل الحالي" في البرنامج */
.demo { position: relative; animation: rise 1s 0.28s var(--ease) both; }
.demo-window { position: relative; z-index: 1; background: var(--surface); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 10px rgba(255, 255, 255, 0.04); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #f7f8fb; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-bar .app { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-soft); font-family: var(--display); }
.demo-bar .app .mark { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; box-shadow: none; }
.demo-bar .source { display: inline-flex; align-items: center; gap: 6px; }
.demo-bar .source i { width: 18px; height: 18px; border-radius: 5px; background: var(--pinterest); display: grid; place-items: center; color: #fff; }
.demo-bar .source .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.state-chip { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--primary); transition: background 0.3s, color 0.3s; }
.state-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.3s ease-in-out infinite; }
.state-chip.done { background: var(--green-soft); color: var(--green); }
.state-chip.done::before { animation: none; }
.demo-body { padding: 18px; display: grid; gap: 14px; }
.demo-head { display: flex; align-items: center; gap: 14px; }
.ring { --p: 65; width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--track) 0); }
.ring::before { content: ""; grid-area: 1 / 1; width: 54px; height: 54px; border-radius: 50%; background: var(--surface); }
.ring b { grid-area: 1 / 1; font-family: var(--display); font-size: 14px; font-variant-numeric: tabular-nums; }
.demo-head .meta { flex: 1; min-width: 0; }
.demo-head .meta small { color: var(--muted); font-size: 12px; }
.demo-head .kw { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segs { display: flex; gap: 4px; margin-top: 8px; }
.segs i { flex: 1; height: 5px; border-radius: 5px; background: var(--track); position: relative; overflow: hidden; transition: background 0.3s; }
.segs i.active { background: var(--tint-strong); }
.segs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform: scaleX(var(--f, 0)); transform-origin: right; transition: transform 0.2s linear; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dt { border-radius: 12px; padding: 10px 12px; background: var(--subtle); }
.dt.done { background: var(--tint); }
.dt.left { background: var(--amber-soft); }
.dt b { font-family: var(--display); font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.dt span { color: var(--muted); font-size: 12px; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.dt small { display: block; color: var(--muted); font-size: 11.5px; }
.demo-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; height: 196px; overflow: hidden; }
.demo-files li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #f9fafc; font-size: 12.5px; animation: row-in 0.4s var(--ease) both; }
.demo-files .ftype { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: #eef1f6; color: var(--muted); }
.demo-files .ftype .ic { width: 14px; height: 14px; }
.demo-files .name { flex: 1; min-width: 0; direction: ltr; text-align: right; unicode-bidi: plaintext; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.pill { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--tint); color: var(--primary); }
.pill.skip { background: var(--subtle); color: var(--muted); }
.pill.up { background: var(--green-soft); color: var(--green); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; animation: float 6s ease-in-out infinite; }
.float-card b { display: block; font-family: var(--display); font-size: 14px; }
.float-card small { color: var(--muted); direction: ltr; unicode-bidi: plaintext; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-card .ico .ic { width: 18px; height: 18px; stroke-width: 2; }
.float-card.a { inset-inline-end: -34px; top: 22%; }
.float-card.a .ico { background: var(--upload); }
.float-card.b { inset-inline-start: -30px; bottom: 9%; animation-delay: -3s; }
.float-card.b .ico { background: var(--leads); }

/* ---------- شريط الأرقام: يرتفع فوق نهاية الهيرو ---------- */
.stats-wrap { position: relative; z-index: 3; margin-top: -76px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 24px 22px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b .unit { color: var(--primary); font-size: 0.6em; margin-inline-start: 3px; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- كروت ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--tint-strong); }
.tile p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.tile-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; transition: transform 0.35s var(--ease); }
.tile:hover .tile-icon { transform: rotate(-8deg) scale(1.08); }
.tile-icon .ic { width: 24px; height: 24px; stroke-width: 2; }
.tile-icon.pinterest { background: var(--pinterest); box-shadow: 0 8px 18px -10px var(--pinterest); }
.tile-icon.tiktok { background: var(--tiktok); box-shadow: 0 8px 18px -10px var(--tiktok); }
.tile-icon.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); box-shadow: 0 8px 18px -10px var(--instagram); }
.tile-icon.web { background: var(--web); box-shadow: 0 8px 18px -10px var(--web); }
.tile-icon.upload { background: var(--upload); }
.tile-icon.leads { background: var(--leads); }
.tile-icon.soft { background: var(--tint); color: var(--primary); }
.tile .note { display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); background: var(--ground); border-radius: 8px; padding: 3px 10px; }

/* ---------- جولة داخل البرنامج (تبويبات) ---------- */
.tour-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--track); border-radius: 13px; }
.tour-tabs button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.tour-tabs button:hover { color: var(--ink); }
.tour-tabs button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 4px 12px -6px rgba(11, 27, 59, 0.35); }
.tour-tabs .ic { width: 18px; height: 18px; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 44px; align-items: center; margin-top: 34px; }
.tour-panel.show { animation: fade-in 0.45s var(--ease) both; }
.tour-panel h3 { font-size: 24px; }
.tour-panel .lede { font-size: 16.5px; margin-top: 10px; }
.tour-media { position: relative; }
.tour-media::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 24px; background: linear-gradient(135deg, rgba(47, 107, 255, 0.18), rgba(124, 58, 237, 0.16)); filter: blur(24px); }
.tour-media img { position: relative; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- عرض بصورة ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-row.flip .feature-media { order: -1; }
.feature-media img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.5s var(--ease); }
.feature-media:hover img { transform: translateY(-4px) scale(1.01); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.3em; width: 22px; height: 22px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l3.6 3.6L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { color: var(--ink); }

/* ---------- خطوات العمل: خط زمني يُرسم عند الوصول إليه ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.timeline::before { content: ""; position: absolute; top: 23px; inset-inline: calc(12.5% - 9px); height: 2px; background: linear-gradient(to left, var(--primary), var(--violet)); border-radius: 2px; transform-origin: right; }
.timeline.in::before { animation: draw 1.4s var(--ease) both; }
.timeline li { position: relative; }
.timeline .dot { position: relative; z-index: 1; width: 48px; height: 48px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--primary); color: var(--primary); font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: 0 0 0 8px var(--ground); }
.timeline.in .dot { animation: pop 0.55s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 0.28s); }
.timeline li:last-child .dot { background: var(--primary); color: #fff; }
.timeline h3 { margin-top: 18px; font-size: 18px; }
.timeline p { color: var(--muted); font-size: 14.5px; margin: 8px auto 0; max-width: 30ch; }
.timeline.three { grid-template-columns: repeat(3, 1fr); }
.timeline.three::before { inset-inline: calc(16.666% - 9px); }

/* ---------- الباقات ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { background: radial-gradient(420px 260px at 90% 0%, rgba(47, 107, 255, 0.35), transparent 70%), var(--navy); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
/* إطار متدرج حول الباقة المميزة */
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1.5px; background: linear-gradient(135deg, var(--primary), var(--violet), var(--sand)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 26px; background: var(--sand); color: var(--navy); font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(242, 184, 75, 0.9); }
.plan h3 { font-size: 20px; }
.plan .desc { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 46px; }
.plan.featured .desc { color: rgba(255, 255, 255, 0.72); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price b { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.plan.featured .price span { color: rgba(255, 255, 255, 0.72); }
.price-note { font-size: 13px; color: var(--green); margin-top: 8px; font-weight: 600; min-height: 22px; }
.plan.featured .price-note { color: var(--sand); }
.plan .checks { margin-top: 22px; margin-bottom: 28px; flex: 1; }
.plan.featured .checks li { color: rgba(255, 255, 255, 0.9); }
.plan.featured .checks li::before { background-color: rgba(255, 255, 255, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b84b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l3.6 3.6L18 8'/%3E%3C/svg%3E"); }
.plan.featured .checks b { color: #fff; }
.plan .btn { width: 100%; }
.plan.featured .btn-ghost { color: var(--navy); background: #fff; border-color: #fff; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* جدول المقارنة */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare thead th { background: var(--ground); color: var(--muted); font-weight: 600; font-size: 13px; position: sticky; top: 0; }
table.compare tbody tr { transition: background 0.2s; }
table.compare tbody tr:hover { background: #fafbfd; }
table.compare tbody th { font-weight: 500; color: var(--ink); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
table.compare td { color: var(--ink-soft); }
table.compare .yes { color: var(--green); font-weight: 700; }
table.compare .no { color: var(--faint); }
table.compare .group th { background: var(--tint); color: var(--primary); font-size: 13px; font-weight: 700; }

/* ---------- الأسئلة ---------- */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color 0.25s, box-shadow 0.25s; }
.faq details:hover { border-color: var(--tint-strong); }
.faq details[open] { border-color: var(--tint-strong); box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; color: var(--primary); font-family: var(--display); font-size: 22px; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin-top: -4px; }
.faq details[open] p { animation: fade-in 0.35s var(--ease) both; }

/* ---------- شريط الدعوة ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 26px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; top: -220px; inset-inline-end: -140px; background: radial-gradient(circle, rgba(47, 107, 255, 0.5), transparent 62%); animation: drift 14s ease-in-out infinite alternate; }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; bottom: -200px; inset-inline-start: 10%; background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 62%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-top: 8px; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- صفحات داخلية ---------- */
.page-hero { position: relative; padding-block: 60px 24px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -300px; inset-inline-start: -160px; background: radial-gradient(circle, rgba(47, 107, 255, 0.16), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero .container > * { animation: rise 0.7s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 44px); }
.page-hero .lede { margin-top: 12px; }

/* ---------- التواصل ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .tile-icon { width: 42px; height: 42px; margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a, .contact-list span.value { font-weight: 600; direction: ltr; unicode-bidi: embed; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ground); color: var(--ink); width: 100%; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14); }
.form textarea { min-height: 110px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { color: var(--muted); font-size: 13px; }
.form .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- التحميل والتجربة ---------- */
.download-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.download-card h3, .trial-card h3 { font-size: 22px; }
.download-meta { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.download-btn { width: 100%; justify-content: center; }
.trial-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.trial-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--tint); border: 1px solid var(--tint-strong); border-radius: 16px; padding: 16px 22px; margin-bottom: 28px; }
.trial-strip b { display: block; font-family: var(--display); font-size: 17px; color: var(--ink); }
.trial-strip span { color: var(--muted); font-size: 14px; }

/* ---------- الفوتر ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding-block: 48px 28px; margin-top: 48px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer .brand { color: #fff; }
.footer p { font-size: 14px; margin-top: 10px; max-width: 40ch; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: #fff; }
.footer .ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.5); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1080px) {
  .float-card.a { inset-inline-end: -8px; }
  .float-card.b { inset-inline-start: -8px; }
}
@media (max-width: 960px) {
  .hero { padding-block: 48px 120px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-inline-start: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .feature-row, .tour-panel { grid-template-columns: 1fr; gap: 26px; }
  .feature-row.flip .feature-media { order: 0; }
  .timeline, .timeline.three { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .download-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 70px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 14px; flex-direction: column; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .dark-top .topbar:not(.scrolled) .nav a { color: var(--ink-soft); }
  .dark-top .topbar:not(.scrolled) .nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
  .menu-btn { display: block; }
  .topbar .cta { display: none; }
  .section { padding-block: 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(n) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-inline-start: 0; }
  .grid-4, .grid-2, .timeline, .timeline.three, .footer .container { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .demo-files { height: 160px; }
  .cta-band { padding: 28px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
