:root {
  --ink: #0c1f1c;
  --muted: #5b6b67;
  --line: #e1e7e4;
  --bg: #f6f7f4;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-deep: #0b3f3a;
  --brand-soft: #e2f3ef;
  --ok: #15803d;
  --ok-soft: #e4f6ea;
  --warn: #b45309;
  --warn-soft: #fdf0dc;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); line-height: 1.35; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; line-height: 1.5; }
section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 70px; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.in.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sub { color: var(--muted); max-width: 620px; margin: 12px auto 0; }
.fine { color: var(--muted); font-size: .95rem; max-width: 640px; margin: 28px auto 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .98rem;
  background: var(--brand); color: #fff; border: 1.5px solid var(--brand);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #0c635c; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-deep); border-color: var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.big { padding: 15px 26px; font-size: 1.06rem; border-radius: 14px; }
.btn.light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn.light:hover { background: #eafaf6; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }

/* الهيدر */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 244, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.3rem; }
.logo .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; }
.logo .mark svg { width: 19px; height: 19px; stroke-width: 2.6; }
.logo.small { font-size: 1.05rem; }
.links { display: flex; gap: 26px; font-size: .96rem; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

/* الهيرو */
.hero { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; font-size: .88rem; margin-bottom: 18px; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 700; }
.hl { color: var(--brand); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #33443f; margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.6; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; padding-bottom: 30px; }
.hero-visual::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, #c9ece5 0%, rgba(201, 236, 229, 0) 70%); }
.phone { position: relative; width: 272px; height: 548px; border-radius: 44px; background: #0c1f1c; padding: 11px; box-shadow: 0 40px 80px -30px rgba(11, 63, 58, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset; transform: rotate(3deg); }
.notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #0c1f1c; z-index: 2; }
.screen { height: 100%; border-radius: 34px; background: #f4f6f5; padding: 58px 18px 18px; text-align: center; overflow: hidden; }
.s-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--muted); margin-bottom: 30px; }
.s-head strong { color: var(--ink); font-size: .95rem; }
.s-check { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: pop .5s 2.1s both cubic-bezier(.2, 1.4, .4, 1); }
.s-check svg { width: 44px; height: 44px; stroke-width: 2.8; }
.s-title { font-weight: 700; font-size: 1.15rem; }
.s-time { color: var(--ok); font-weight: 600; font-size: .95rem; margin-top: 2px; }
.s-steps { list-style: none; padding: 0; margin: 28px 0 0; text-align: right; display: grid; gap: 9px; }
.s-steps li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px; font-size: .86rem; font-weight: 500; animation: rise .45s var(--d) both ease-out; }
.s-steps i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.s-steps i svg { width: 13px; height: 13px; stroke-width: 3.4; }

.float-card { position: absolute; bottom: -18px; inset-inline-end: 0; width: 218px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 50px -24px rgba(12, 31, 28, .4); transform: rotate(-3deg); font-size: .86rem; animation: rise .5s 2.5s both ease-out; }
.fc-title { font-weight: 700; margin-bottom: 8px; font-size: .9rem; }
.fc-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); }
.fc-row b { font-weight: 600; font-size: .76rem; padding: 1px 9px; border-radius: 999px; }
.fc-row .ok { background: var(--ok-soft); color: var(--ok); }
.fc-row .warn { background: var(--warn-soft); color: var(--warn); }
.fc-row .wait { background: #eef1f0; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.float-card { animation-name: riseTilt; }
@keyframes riseTilt { from { opacity: 0; transform: translateY(12px) rotate(-3deg); } }

/* المشكلة */
.pain { background: var(--brand-deep); color: #e8f5f2; }
.pain-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pain h2 { color: #fff; }
.pain p { margin-top: 14px; color: #b9d6d0; }
.pain-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs-col { border-radius: var(--radius); padding: 20px; }
.vs-col h3 { margin-bottom: 10px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.vs-col li { padding-inline-start: 22px; position: relative; }
.vs-col li::before { position: absolute; inset-inline-start: 0; font-weight: 700; }
.vs-col.old { background: rgba(255, 255, 255, .06); color: #a9c7c1; }
.vs-col.old li::before { content: "×"; color: #f0a5a5; }
.vs-col.new { background: #fff; color: var(--ink); }
.vs-col.new h3 { color: var(--brand); }
.vs-col.new li::before { content: "✓"; color: var(--brand); }

/* الخطوات */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.how-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.how-col.accent { background: var(--brand-soft); border-color: #c5e6df; }
.how-col h3 { color: var(--brand-deep); margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s, arabic-indic); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { font-weight: 600; }
.steps span { color: var(--muted); font-size: .95rem; }

/* الكروت */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .96rem; margin-top: 6px; }
.trust { background: #fff; border-block: 1px solid var(--line); }
.trust .card { background: var(--bg); }

/* الأسئلة */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
.faq h2 { margin-bottom: 30px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1.2; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* الختام */
.final { background: var(--brand); color: #fff; }
.final p { margin: 12px 0 28px; color: #d3efe9; }
.foot { padding: 26px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.foot .in { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.foot-links { margin-inline-start: auto; display: flex; gap: 18px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .links { display: none; }
  .hero-grid, .pain-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; margin-top: 10px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .float-card { inset-inline-end: 6%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* على الموبايل "دخول" هو المهم في الهيدر (الموظفين بيدخلوا من هنا)، وزرار التسجيل موجود في الهيرو */
  .nav-cta .btn:not(.ghost) { display: none; }
  .nav .btn { padding: 8px 16px; font-size: .92rem; }
  .cards, .pain-vs { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .phone { transform: rotate(2deg) scale(.92); }
  .hero-visual::before { width: 340px; height: 340px; }
  /* على الموبايل الكارت بينزل تحت رسمة الموبايل في التدفق العادي بدل ما يتحط فوقها */
  .hero-visual { min-height: 0; padding-bottom: 0; }
  .float-card { position: relative; inset: auto; z-index: 2; margin-top: -44px; justify-self: start; }
  .how-col { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
