/* مصاعدي — صفحة الهبوط. نفس ألوان التطبيق وخطه (apps/web/src/index.css). */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --muted: #64748b;
  --gold: #ca8a04;
  --gold-dark: #a16207;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  --wa: #15803d;
  --radius: 12px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
section { padding-block: 56px; }
.center { text-align: center; margin-top: 32px; }
/* عمود واحد على الموبايل؛ minmax(0, …) يمنع صورة عريضة من توسيع الصفحة */
.hero-grid, .problem-list, .problem, .watch-steps, .import-grid, .sticker-grid, .role-grid, .docs-grid, .footer-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* الزراير */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-gold { background: var(--gold-dark); color: var(--white); }  /* #a16207 بدل #ca8a04: الأبيض عليه مقروء (تباين 4.9) */
.btn-gold:hover { background: #854d0e; }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* الهيدر */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 250, 252, .96);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 40px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-login { font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-login:hover { text-decoration: underline; }

/* Hero */
.hero { padding-top: 32px; }
.hero-grid { display: grid; gap: 32px; }
.eyebrow { color: var(--gold-dark); font-weight: 700; font-size: .95rem; margin-bottom: .75em; }
.lead { font-size: 1.05rem; color: var(--navy-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.reassure { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero-phone { max-width: 280px; }

/* المشاكل */
.problems { background: var(--white); border-block: 1px solid var(--line); }
.problem-list { display: grid; gap: 40px; margin-top: 28px; }
.problem { display: grid; gap: 16px; align-items: center; }
.quote { font-size: 1.1rem; font-weight: 700; line-height: 1.6; margin-bottom: .4em; }
.problem-text p:not(.quote) { color: var(--navy-2); }
.shot {
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  background: var(--white);
}
.shot-mobile { max-width: 260px; margin-inline: auto; border-radius: 22px; border: 6px solid var(--navy); }

/* كيف يعمل: رحلة لكل دور (المدير فاتح، المبيعات أبيض، الفني كحلي) — كروت الخطوات + إطار اللقطة */
.sub { color: var(--navy-2); }
.how-intro { padding-bottom: 0; }
.journey-sales { background: var(--white); border-block: 1px solid var(--line); }
.journey-tech { background: var(--navy); color: var(--white); }
.journey-tech .sub { color: #cbd5e1; }
.journey-head { margin-bottom: 24px; }
.journey-head h2 { margin-bottom: 6px; }
.journey-head .sub { margin: 0; max-width: 46em; }
.journey-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 12px 4px 6px;
  border: 1px solid #fde68a; border-radius: 999px; background: #fefce8; color: var(--gold-dark); font-size: .85rem; font-weight: 700;
}
.journey-chip img { width: 24px; height: 24px; border-radius: 50%; background: var(--white); }
.accent { color: var(--gold-dark); }
.journey-tech .accent { color: var(--gold); }
.journey-tech .journey-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fde68a; }
.journey-body { display: grid; gap: 20px; }
.journey-view { order: -1; } /* موبايل: اللقطة فوق والكروت تحتها */
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.journey-steps button {
  font: inherit; width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 14px; text-align: start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy);
}
.journey-steps button:hover { border-color: #cbd5e1; }
.j-num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.j-body { display: block; }
.j-title { display: block; font-weight: 700; margin-bottom: 2px; }
.j-text { display: block; font-size: .9rem; line-height: 1.65; color: var(--muted); }
.j-text strong { color: var(--navy-2); font-weight: 600; }
.journey-steps button[aria-pressed="true"] { background: #fefce8; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.journey-steps button[aria-pressed="true"] .j-num { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.journey-tech .journey-steps button { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.journey-tech .j-num { background: transparent; border-color: rgba(255, 255, 255, .25); }
.journey-tech .j-text { color: #94a3b8; }
.journey-tech .j-text strong { color: #e2e8f0; }
.journey-tech .journey-steps button[aria-pressed="true"] { background: rgba(202, 138, 4, .12); border-color: var(--gold); }
.journey-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.journey-nav button {
  font: inherit; font-size: 1.2rem; line-height: 1; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
}
.j-count { font-size: .9rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.journey-nav .btn { margin-inline-start: auto; }
.journey-tech .journey-nav { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); }
.journey-tech .j-count { color: #94a3b8; }
.frame { position: relative; margin: 0; }
.frame img { display: block; width: 100%; height: auto; transition: opacity .15s; }
/* اللابتوب: إطار غامق حوالين اللقطة */
.frame-laptop { background: var(--navy); border-radius: 14px; padding: 10px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); }
.frame-screen { position: relative; border-radius: 6px; overflow: hidden; }
.frame-phone { max-width: 300px; margin-inline: auto; border: 10px solid #1e293b; border-radius: 38px; overflow: hidden;
  box-shadow: 0 0 0 2px #334155, 0 16px 40px rgba(0, 0, 0, .35); }
/* دايرة دهبي «بخط اليد» حوالين الزرار اللي الخطوة بتتكلم عنه؛ مركزها من shots.json (% من اللقطة) */
.arrow { position: absolute; width: 14%; aspect-ratio: 120 / 46; transform: translate(-50%, -50%); color: var(--gold);
  pointer-events: none; filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .25)); }

/* اعرف ما أنجزه الفني: 3 موبايلات، والمكتب (لابتوب) تحتهم */
.watch-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 40px; }
.watch-steps .frame-phone { max-width: 230px; margin-bottom: 16px; }
.watch-steps h3 { display: flex; align-items: center; gap: 10px; }
.watch-steps .j-num { color: var(--gold-dark); }
.watch-steps p { color: var(--navy-2); }
.watch-office .frame-laptop { max-width: 720px; margin-inline: auto; margin-bottom: 16px; }

/* الاستيراد من Excel */
.import { background: var(--white); border-block: 1px solid var(--line); }
.import-grid { display: grid; gap: 28px; align-items: center; }
.checks { margin: 0; padding-inline-start: 1.2em; color: var(--navy-2); }
.checks li { margin-bottom: 6px; }

/* الملصق */
.sticker { background: var(--navy); color: var(--white); }
.sticker-grid { display: grid; gap: 28px; align-items: center; }
.sticker img { border-radius: var(--radius); }
.sticker p { color: #cbd5e1; }

/* الأدوار */
.role-grid { display: grid; gap: 28px; margin-top: 28px; }
.role img { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top right; }
.role p { color: var(--navy-2); }

/* المستندات */
.docs { background: var(--white); border-block: 1px solid var(--line); }
.docs-grid { display: grid; gap: 24px; align-items: center; }
.docs img { border-radius: var(--radius); }

/* صفحة الشروط */
.legal-main { max-width: 780px; padding-block: 48px 96px; }
.legal-main section { padding-block: 24px; }
.legal-main h1 { font-size: 1.8rem; }

/* طلبات الشركات */
.custom-box { max-width: 720px; }
.custom p { color: var(--navy-2); }

/* الأسئلة */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-wrap { max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1rem;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { color: var(--navy-2); margin: 0 0 16px; }

/* الدعوة الأخيرة */
.final { background: var(--navy); color: var(--white); text-align: center; }
.final h2 { max-width: 20em; margin-inline: auto; }
.center-row { justify-content: center; }

/* الفوتر */
.site-footer { padding: 40px 0 112px; font-size: .95rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-logo { width: 150px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.wa-float { display: none; }
[hidden] { display: none !important; }

/* لابتوب */
@media (min-width: 860px) {
  section { padding-block: 88px; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; }
  .problem { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px; }
  .problem:nth-child(even) .problem-text { order: 2; }
  .problem-list { gap: 64px; }
  /* لابتوب: الكروت عمود على اليمين، واللقطة جنبها */
  .journey-body { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 40px; align-items: center; }
  .journey-nav { flex-wrap: nowrap; gap: 8px; }
  .journey-view { order: 0; }
  .watch-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .watch-office { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .import-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
  .sticker-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .docs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer { padding-bottom: 48px; }
  .mobile-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; bottom: 24px; left: 24px; z-index: 30;
    width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
  }
}
@media (max-width: 859px) {
  .hide-mobile { display: none; }
}
