/* ============================================================
 *  🏠 الصفحة الرئيسة — مِرسال
 *  ⚠ كل نقطة انكسارٍ `@media screen and (...)`: بدونها تنطبق
 *    عند الطباعة أيضاً لأن عرض الورقة يُقاس بالبكسل.
 * ========================================================== */

body.home {
  background: var(--surface);
  overflow-x: hidden;   /* ⚠ الأشكال المطلقة تُخرج شريط تمرير أفقياً */
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- الشريط العلوي ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-block: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo img { width: 2.3rem; height: 2.3rem; }
.logo-name { font-size: 1.32rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.logo-sub { font-size: .72rem; color: var(--ink-3); }
.site-head .spacer { flex: 1; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: .92rem;
  padding: 7px 12px; border-radius: var(--r-sm);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- البطل ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(1100px 420px at 78% -12%, rgba(20, 131, 123, .16), transparent 62%),
    radial-gradient(760px 340px at 12% 8%, rgba(245, 158, 11, .10), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 5px 14px;
  font-size: .82rem; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: 2.6rem; line-height: 1.25; margin-bottom: 14px; }
.hero h1 .accent {
  color: var(--brand);
  /* خطٌّ تحت الكلمة المفتاح — يلفت بلا صراخ */
  box-shadow: inset 0 -.32em 0 rgba(245, 158, 11, .28);
}
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 24px; max-width: 46ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lg { padding: 12px 26px; font-size: 1.02rem; }

.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.hero-point { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-2); }
.hero-point b { color: var(--brand); }

/* ---------- جوالٌ مرسوم ---------- */
.phone {
  justify-self: center;
  width: 244px; height: 480px;
  border-radius: 34px; background: #10262b;
  padding: 11px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ''; position: absolute; inset-block-start: 20px;
  inset-inline: 0; margin: auto; width: 76px; height: 5px;
  border-radius: 999px; background: #33474c;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 25px;
  background: linear-gradient(170deg, #e8f3f2, #fbfcfc);
  padding: 34px 13px 13px; overflow: hidden;
}
.chat { display: flex; flex-direction: column; gap: 9px; }
.msg {
  background: #fff; border-radius: 14px 14px 14px 4px;
  padding: 9px 12px; font-size: .78rem; line-height: 1.6;
  box-shadow: 0 1px 3px rgba(20, 38, 43, .1);
  opacity: 0; transform: translateY(8px);
  animation: pop .5s ease forwards;
}
.msg.out {
  background: var(--brand); color: #fff;
  border-radius: 14px 14px 4px 14px; align-self: flex-start;
}
.msg:nth-child(1) { animation-delay: .15s; }
.msg:nth-child(2) { animation-delay: .55s; }
.msg:nth-child(3) { animation-delay: .95s; }
.msg:nth-child(4) { animation-delay: 1.35s; }
.msg-meta { font-size: .64rem; opacity: .7; margin-top: 3px; }

@keyframes pop { to { opacity: 1; transform: none; } }
/* ⚠ من طلب تقليل الحركة لا تُعرض عليه */
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; opacity: 1; transform: none; }
}

/* ---------- الأقسام ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 34px; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; position: relative;
}
.step-n {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .92rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px;
}
.feature-ic { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: .9rem; margin: 0; line-height: 1.7; }

/* ---------- شريط الوعد ---------- */
.promise {
  background: linear-gradient(135deg, var(--brand), #0b4f55);
  color: #fff; padding: 52px 0;
}
.promise .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.promise h2 { font-size: 1.75rem; margin-bottom: 12px; }
.promise p { opacity: .92; margin: 0 0 8px; line-height: 1.8; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promise-list li { display: flex; gap: 10px; align-items: flex-start; }
.promise-list .tick {
  flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: rgba(255, 255, 255, .18); display: grid; place-items: center;
  font-size: .8rem;
}

/* ---------- الختام ---------- */
.site-foot {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 28px 0; color: var(--ink-3); font-size: .86rem;
}
.site-foot .wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-foot .spacer { flex: 1; }

.legal {
  background: var(--warn-bg); color: var(--warn);
  border-radius: var(--r-sm); padding: 12px 16px;
  font-size: .86rem; line-height: 1.75; margin-top: 22px;
}

/* ---------- الجوال ---------- */
@media screen and (max-width: 900px) {
  .hero .wrap, .promise .wrap { grid-template-columns: 1fr; }
  .phone { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
}
