/* صفحة سَهل التعريفية: ألوان المتجر نفسها، الحركة الكبيرة في البداية فقط */
:root {
  --bg: #eceef0; --card: #fff; --soft: #f3f4f5; --line: #e2e4e7;
  --ink: #0f1012; --ink2: #1e1f23; --ink3: #2c2d32;
  --muted: #5d6068; --mutedInk: #9a9ca3;
  --lime: #d7f24b; --green: #1a9a66; --greenBg: #e5f6ee; --red: #d93f3f; --redBg: #fdeeee; --orange: #c96f0d; --orangeBg: #fdf1e3;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Readex Pro", system-ui, sans-serif; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { padding-block: 110px; }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin: 0 0 16px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
@media (max-width: 620px) { section { padding-block: 80px; } }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 18px; font: 600 17px/1 "Readex Pro", sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s var(--ease), background-color .2s; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #cbe63e; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink3); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* الشريط العلوي */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.nav .logo img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav ul a:hover { color: var(--ink); }
.nav .login { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: 15px; border-radius: 14px; }
@media (max-width: 860px) { .nav ul, .nav .login { display: none; } .nav .wrap { justify-content: space-between; } }

/* ============ البداية ============ */
.hero { padding-block: 40px 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); line-height: 1.12; margin: 0 0 22px; font-weight: 700; }
.hero h1 span { display: block; }
.hero .lead { margin-bottom: 34px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.stage { position: relative; height: 680px; display: grid; place-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .stage { height: 640px; } .hero { text-align: center; } .hero .lead { margin-inline: auto; } .hero .ctas { justify-content: center; } }

/* الأسئلة تظهر حول الهاتف ثم تُسحب إليه */
.q { position: absolute; z-index: 3; background: var(--card); border-radius: 22px 22px 6px 22px; padding: 12px 20px; font-weight: 600; font-size: 18px; white-space: nowrap; box-shadow: 0 10px 30px rgba(15, 16, 18, .08); opacity: 0; animation: q-in .5s var(--spring) forwards, q-out .6s var(--ease) forwards; }
.q small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.q.r { border-radius: 22px 22px 22px 6px; background: var(--ink3); color: #fff; }
.q.r small { color: var(--mutedInk); }
.q:nth-child(1) { top: 40px; right: 0; animation-delay: .3s, 2.8s; --tx: -120px; --ty: 220px; }
.q:nth-child(2) { top: 150px; left: -10px; animation-delay: .65s, 2.9s; --tx: 140px; --ty: 120px; }
.q:nth-child(3) { top: 330px; right: -20px; animation-delay: 1s, 3s; --tx: -140px; --ty: 0px; }
.q:nth-child(4) { top: 470px; left: 0; animation-delay: 1.35s, 3.1s; --tx: 140px; --ty: -100px; }
.q:nth-child(5) { bottom: 40px; right: 30px; animation-delay: 1.7s, 3.2s; --tx: -100px; --ty: -230px; }
@keyframes q-in { from { opacity: 0; transform: scale(.6) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes q-out { to { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.25); } }
@media (max-width: 960px) { .q { font-size: 15px; padding: 9px 16px; } .q:nth-child(2), .q:nth-child(4) { left: 4px; } .q:nth-child(1), .q:nth-child(3) { right: 4px; } }

/* ============ إطار الهاتف ============ */
.phone { position: relative; z-index: 2; width: 300px; aspect-ratio: 300 / 620; background: var(--ink); border-radius: 50px; padding: 12px; box-shadow: 0 0 0 2px #2c2d32, 0 40px 80px rgba(15, 16, 18, .25); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: var(--ink); border-radius: 20px; z-index: 5; }
.phone::after { content: ""; position: absolute; inset-inline-end: -3px; top: 150px; width: 3px; height: 60px; background: #2c2d32; border-radius: 3px; }
.screen { width: 100%; height: 100%; background: var(--bg); border-radius: 39px; overflow: hidden; position: relative; font-size: 11px; line-height: 1.5; }
.hero .phone { animation: phone-in .9s var(--ease) .1s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }

/* شاشة التطبيق المصغرة */
.app { padding: 52px 14px 14px; display: grid; gap: 9px; }
.app .top { display: flex; align-items: center; justify-content: space-between; }
.app .top b { font-size: 14px; font-weight: 600; }
.app .top img { height: 18px; }
.mini-hero { background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 10px 10px; text-align: center; }
.mini-hero .l { color: var(--mutedInk); font-size: 10px; }
.mini-hero .v { font-size: 25px; font-weight: 600; line-height: 1.3; }
.mini-hero .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--ink2); border-radius: 14px; padding: 9px 4px 7px; margin-top: 10px; }
.mini-hero .acts span { display: grid; justify-items: center; gap: 4px; font-size: 9px; color: var(--mutedInk); }
.mini-hero .acts i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink3); display: grid; place-items: center; font-style: normal; color: #fff; font-size: 14px; }
.mini-hero .acts span:last-child { color: #fff; }
.mini-hero .acts span:last-child i { background: var(--lime); color: var(--ink); }
.mini-card { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.mini-card .h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.mini-card .h small { color: var(--muted); font-weight: 400; font-size: 10px; }
.vrow { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: 10px; padding: 6px 9px; margin-top: 5px; font-weight: 500; }
.vrow .q2 { min-width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; }
.vrow .out { background: var(--redBg); color: var(--red); border-radius: 99px; padding: 1px 9px; font-size: 10px; font-weight: 600; }
.answer .vrow { opacity: 0; animation: row-in .45s var(--spring) forwards; }
.answer .vrow:nth-child(2) { animation-delay: 3.25s; }
.answer .vrow:nth-child(3) { animation-delay: 3.4s; }
.answer .vrow:nth-child(4) { animation-delay: 3.55s; }
.answer .vrow.hit { animation: row-in .45s var(--spring) 3.4s forwards, ring 1.2s var(--ease) 4s 2; }
@keyframes row-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--red); } }
.mini-nav { position: absolute; bottom: 0; left: 0; right: 0; height: 58px; background: #fff; border-radius: 20px 20px 0 0; display: flex; justify-content: space-around; align-items: center; padding-bottom: 6px; }
.mini-nav i { width: 18px; height: 3px; background: #d8dade; border-radius: 3px; display: block; }
.mini-nav b { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); margin-top: -26px; border: 4px solid var(--bg); color: var(--lime); display: grid; place-items: center; font-size: 18px; }
.chip { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 10.5px; font-weight: 600; }
.chip.p { background: var(--orangeBg); color: var(--orange); }
.chip.r { background: #e9effc; color: #3d6fe0; }
.chip.d { background: var(--greenBg); color: var(--green); }

/* ============ قبل / بعد ============ */
.contrast .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.panel { border-radius: 32px; padding: 34px; }
.panel h3 { margin: 0 0 22px; font-size: 22px; font-weight: 600; }
.panel.before { background: #dcdee1; }
.panel.after { background: var(--ink); color: #fff; }
.chat { display: grid; gap: 10px; }
.bub { max-width: 82%; padding: 10px 18px; border-radius: 20px; font-weight: 500; }
.bub.cc { justify-self: start; background: var(--ink3); color: #fff; border-start-start-radius: 6px; }
.bub.m { justify-self: end; background: #fff; border-start-end-radius: 6px; }
.bub.bad { background: var(--red); color: #fff; font-size: 22px; font-weight: 700; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.ticks li::before { content: ""; flex-shrink: 0; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
@media (max-width: 860px) { .contrast .grid { grid-template-columns: 1fr; } .panel { padding: 26px; } }

/* ============ الأجهزة ============ */
.devices { overflow: hidden; }
.devices .head { text-align: center; }
.devices .lead { margin-inline: auto; }
.showcase { position: relative; margin-top: 60px; display: grid; justify-items: center; perspective: 2200px; padding-bottom: 30px; }
.mac { width: min(900px, 100%); }
.lid { background: var(--ink); border-radius: 22px 22px 0 0; padding: 16px 16px 22px; box-shadow: 0 0 0 2px #2c2d32; transform-origin: 50% 100%; transform: rotateX(-88deg); transition: transform 1.4s var(--ease); }
.showcase.in .lid { transform: none; }
.lid .cam { width: 70px; height: 12px; margin: -4px auto 8px; background: var(--ink2); border-radius: 0 0 8px 8px; }
.desk { aspect-ratio: 16 / 10; background: var(--bg); border-radius: 6px; overflow: hidden; font-size: 12px; line-height: 1.5; }
.base { height: 18px; width: 112%; margin-inline: -6%; background: linear-gradient(#cfd2d6, #a9adb3); border-radius: 0 0 16px 16px; position: relative; }
.base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 7px; background: #b8bcc1; border-radius: 0 0 8px 8px; }
.showcase .phone { position: absolute; inset-inline-start: max(0px, calc(50% - 540px)); bottom: 0; width: 220px; border-radius: 40px; padding: 9px; transform: translateY(60px); opacity: 0; transition: transform 1s var(--ease) .7s, opacity .6s .7s; }
.showcase .phone::before { top: 16px; width: 66px; height: 20px; }
.showcase .phone .screen { border-radius: 32px; }
.showcase.in .phone { transform: none; opacity: 1; }
@media (max-width: 860px) { .showcase .phone { position: relative; inset: auto; margin-top: -40px; width: 180px; padding: 8px; border-radius: 34px; } .showcase .phone .screen { border-radius: 27px; } .showcase .phone .app { padding-top: 40px; } }

/* لوحة الكمبيوتر */
.dash { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; padding: 18px; height: 100%; }
.dash .col { display: grid; gap: 12px; align-content: start; }
.dash .ink { background: var(--ink); color: #fff; border-radius: 16px; padding: 16px; }
.dash .ink small { color: var(--mutedInk); }
.dash .big { font-size: 28px; font-weight: 600; line-height: 1.3; }
.dash .delta { display: inline-block; background: #34353b; color: var(--lime); border-radius: 99px; padding: 1px 10px; font-size: 11px; font-weight: 600; }
.dash .w { background: #fff; border-radius: 16px; padding: 14px; }
.dash .w h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.dash .row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.dash .row:first-of-type { border-top: 0; }
.dash .row b { font-weight: 600; }
.chart path.line { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s var(--ease) 1.1s; }
.showcase.in .chart path.line { stroke-dashoffset: 0; }
@media (max-width: 640px) {
  .desk { font-size: 8px; } .dash { padding: 8px; gap: 6px; } .dash .big { font-size: 15px; } .dash .col { gap: 6px; }
  .dash .ink, .dash .w { padding: 7px; border-radius: 9px; } .dash .w h4 { font-size: 8.5px; margin-bottom: 2px; } .dash .row { font-size: 7px; padding: 2px 0; }
  .dash .delta { font-size: 6.5px; } .chip { font-size: 6.5px; padding: 0 5px; } .lid { padding: 8px 8px 12px; border-radius: 14px 14px 0 0; } .lid .cam { width: 40px; height: 7px; margin-bottom: 4px; } .base { height: 10px; }
}

/* ============ المميزات ============ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 50px; }
.f { background: var(--card); border-radius: 30px; padding: 30px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; overflow: hidden; }
.f h3 { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.4; }
.f p { margin: 0; color: var(--muted); font-size: 16px; }
.f.dark { background: var(--ink); color: #fff; }
.f.dark p { color: var(--mutedInk); }
.f.limecard { background: var(--lime); }
.f.limecard p { color: #3a3f1d; }
.f.s3 { grid-column: span 3; } .f.s2 { grid-column: span 2; } .f.s4 { grid-column: span 4; }
.f .demo { margin-top: auto; padding-top: 16px; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .f.s3, .f.s2, .f.s4 { grid-column: span 1; } .f.wide { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .f.wide { grid-column: span 1; } .f { min-height: 0; padding: 26px; } }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors span { background: var(--soft); border-radius: 99px; padding: 6px 14px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.colors span b { background: #fff; border-radius: 99px; padding: 0 9px; font-weight: 700; }
.colors span.no { color: var(--red); background: var(--redBg); }
.steps { display: grid; gap: 8px; }
.steps div { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; }
.steps .on i { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.steps .off { color: var(--mutedInk); }
.report { background: var(--soft); border-radius: 18px; padding: 6px 16px; }
.report div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.report div:first-child { border-top: 0; }
.report .net { font-weight: 700; font-size: 17px; }
.bignum { font-size: 46px; font-weight: 700; line-height: 1.1; text-align: right; }
.people { display: flex; }
.people i { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-style: normal; font-weight: 600; border: 3px solid #fff; margin-inline-start: -10px; }
.people i:first-child { margin-inline-start: 0; }

/* ============ الخطوات ============ */
.how ol { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how li { counter-increment: s; background: var(--card); border-radius: 28px; padding: 28px; }
.how li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.how li b { display: block; font-size: 20px; margin-bottom: 6px; }
.how li span { color: var(--muted); }
@media (max-width: 860px) { .how ol { grid-template-columns: 1fr; } }

/* ============ الأسعار ============ */
.pricing .head { text-align: center; }
.pricing .lead { margin-inline: auto; }
.trial { margin: 40px auto 0; max-width: 760px; border-radius: 30px; overflow: hidden; background: var(--lime); }
.trial .strip { display: flex; justify-content: space-between; padding: 10px 26px; font-weight: 500; font-size: 15px; }
.trial .body { background: var(--ink); color: #fff; border-radius: 26px 26px 0 0; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.trial .body strong { font-size: 44px; color: var(--lime); line-height: 1.2; }
.trial .body span { color: var(--mutedInk); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.plan { background: var(--card); border-radius: 30px; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.plan .name { font-size: 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.plan .price { font-size: 46px; font-weight: 700; line-height: 1.15; margin-top: 10px; text-align: right; }
.plan .cur { color: var(--muted); }
.plan .save { align-self: flex-start; background: var(--greenBg); color: var(--green); border-radius: 99px; padding: 4px 14px; font-weight: 600; font-size: 14px; margin: 6px 0 18px; }
.plan .save.ghost { background: none; color: var(--muted); padding-inline: 0; font-weight: 400; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.best { background: var(--ink); color: #fff; }
.plan.best .price { color: var(--lime); }
.plan.best .cur { color: var(--mutedInk); }
.plan.best .save { background: var(--lime); color: var(--ink); }
.plan .tag { background: var(--lime); color: var(--ink); border-radius: 99px; padding: 2px 12px; font-size: 13px; font-weight: 600; }
@media (min-width: 961px) { .plan.best.in { transform: translateY(-10px); } }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ============ التواصل ============ */
.cta { padding-block: 40px 110px; }
.cta .box { background: var(--ink); color: #fff; border-radius: 44px; padding: clamp(36px, 6vw, 80px) clamp(20px, 6vw, 80px); text-align: center; position: relative; overflow: hidden; }
.cta .box::after { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 22px, rgba(255, 255, 255, .05) 22px 24px); pointer-events: none; }
.cta h2 { color: #fff; }
.cta .lead { color: var(--mutedInk); margin: 0 auto 34px; }
.wa { display: inline-flex; align-items: center; gap: 16px; background: var(--lime); color: var(--ink); text-decoration: none; border-radius: 26px; padding: 18px 30px; position: relative; z-index: 1; transition: transform .15s var(--ease); max-width: 100%; }
.wa:hover { transform: translateY(-2px); }
.wa:active { transform: scale(.98); }
.wa svg { width: 46px; height: 46px; flex-shrink: 0; }
.wa span { display: grid; text-align: start; line-height: 1.3; }
.wa small { font-size: 15px; font-weight: 500; }
.wa strong { font-size: clamp(28px, 5vw, 46px); font-weight: 700; }

footer { padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 30px; width: auto; }
footer a { text-decoration: none; }

/* ظهور الأقسام عند الوصول إليها، مرة واحدة */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .q { display: none; }
  .answer .vrow { opacity: 1; }
  html { scroll-behavior: auto; }
}
