/* مصاعدي — صفحة الهبوط. نفس ألوان التطبيق وخطه (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;
  --flip: 1; /* الحركة الأفقية مكتوبة للعربي؛ الإنجليزي يعكسها */
}
[dir="ltr"] { --flip: -1; }

*, *::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, .import-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-lift { gap: 10px; box-shadow: 0 8px 20px rgba(161, 98, 7, .28); }
.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); }
.btn-icon { width: 48px; padding: 0; border-color: var(--line); background: var(--white); color: var(--muted); } /* واتساب أيقونة بس، رصاصي جنب «جرّب» */
.btn-icon:hover { border-color: var(--muted); color: var(--navy); }
: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; }
.link-lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--muted);
}
.link-lang:hover { border-color: var(--gold); color: var(--gold-dark); }
.legal-note { padding: 10px 14px; border-radius: var(--radius); background: #fef9c3; font-size: .9rem; }

/* Hero */
.hero { padding-top: 32px; }
.hero-grid { display: grid; gap: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 1em; padding: 4px 12px;
  border: 1px solid #fde68a; border-radius: 999px; background: #fefce8; color: var(--gold-dark); font-weight: 700; font-size: .85rem;
}
.hero h1 .accent { color: var(--gold-dark); }
.lead { font-size: 1.05rem; color: var(--navy-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 14px;
  border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #166534; font-size: .9rem; font-weight: 700;
}
/* المكتب (لابتوب) والموبايل فوقه */
.hero-visual { position: relative; padding-bottom: 40px; }
.hero-visual .frame-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 30%; max-width: 150px; border-width: 3px; border-radius: 18px; }

/* المشاكل: كروت بأيقونة + شارة + ملخّص صغير (من غير لقطات) */
.problems { background: var(--white); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 40em; margin-inline: auto; }
.section-head .sub { color: var(--muted); margin: 0; }
.section-head .eyebrow { margin-inline: auto; }
.problem-list { display: grid; gap: 16px; margin-top: 32px; }
.problem {
  display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
}
.problem-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.problem-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.quote { font-size: 1.05rem; font-weight: 800; line-height: 1.6; margin-bottom: .4em; }
.problem-desc { color: var(--muted); font-size: .92rem; line-height: 1.8; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 8px; border: 1px solid; font-size: .78rem; font-weight: 700; white-space: nowrap; }
/* لون لكل مشكلة: الأيقونة والشارة */
.tone-red .problem-icon, .tag-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tone-amber .problem-icon, .tag-amber { background: #fefce8; color: var(--gold-dark); border-color: #fde68a; }
.tone-blue .problem-icon, .tag-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tone-green .problem-icon, .tag-green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
/* الملخّص: شكل صف من البرنامج، مكتوب HTML */
.mini { margin-top: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .85rem; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-row > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* السطر الطويل يتقص بـ«…» بدل ما يلفّ */
.mini-sub { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.mini-row > :last-child { flex: none; white-space: nowrap; }
.mini-money { color: var(--gold-dark); white-space: nowrap; }
.mini-blue { color: #1d4ed8; white-space: nowrap; }
.mini-ok { color: #15803d; font-weight: 700; white-space: nowrap; }
.mini-gold { color: var(--gold-dark); font-weight: 700; white-space: nowrap; }

/* كيف يعمل: كارت لكل دور (كلام من غير لقطات) */
.how { background: var(--white); border-block: 1px solid var(--line); }
.role-cards { display: grid; gap: 16px; margin-top: 40px; }
.role-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 16px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.role-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.role-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1px solid; }
.role-tag { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .78rem; font-weight: 700; }
.role-card h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 2px; }
.role-line { font-weight: 700; font-size: .9rem; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.checks-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; color: var(--navy-2); font-size: .92rem; }
.checks-list li { display: flex; align-items: flex-start; gap: 10px; }
.tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 1px solid; }
.role-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 700; }
.role-foot-text { display: inline-flex; align-items: center; gap: 6px; }
.role-badge { padding: 2px 8px; border-radius: 6px; border: 1px solid; font-size: .75rem; white-space: nowrap; }
/* لون لكل دور: الأيقونة والسطر والعلامات والشارة */
.role-card.tone-gold .role-icon, .tone-gold .tick, .tone-gold .role-badge { background: #fefce8; border-color: #fde68a; color: var(--gold-dark); }
.role-card.tone-green .role-icon, .tone-green .tick, .tone-green .role-badge { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.role-card.tone-blue .role-icon, .tone-blue .tick, .tone-blue .role-badge { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.tone-gold .role-line, .tone-gold .role-foot-text { color: var(--gold-dark); }
.tone-green .role-line, .tone-green .role-foot-text { color: #15803d; }
.tone-blue .role-line, .tone-blue .role-foot-text { color: #1d4ed8; }
/* كارت المدير مميّز: إطار دهبي + شريط فوق */
.role-card.is-featured { border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(161, 98, 7, .14); }
.role-ribbon {
  position: absolute; top: -13px; inset-inline-end: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px;
  border-radius: 999px; background: var(--gold-dark); color: var(--white); font-size: .78rem; font-weight: 700;
}
.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-count { font-size: .9rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.frame { position: relative; margin: 0; }
.frame img { display: block; width: 100%; height: auto; transition: opacity .15s; }
/* اللابتوب: إطار غامق حوالين اللقطة */
.frame-laptop { background: var(--navy); border-radius: 10px; padding: 4px; box-shadow: 0 16px 40px rgba(15, 23, 42, .18); }
.frame-screen { position: relative; border-radius: 7px; overflow: hidden; }
.frame-phone { border: 4px solid #1e293b; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 1px #334155, 0 12px 32px rgba(15, 23, 42, .22); }

/* اعرف ما أنجزه الفني: خطوات مرقّمة بخط واصل + إطار موبايل + زرارين */
.stepper { display: grid; gap: 16px; margin-top: 32px; }
/* موبايل: الإطار ← الخطوة الحالية ← الزرارين */
.stepper-steps { order: 1; }
.stepper-stage { display: grid; place-items: center; }
.stepper-frame { width: 100%; max-width: 200px; border: 4px solid #1e293b; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 0 1px #334155, 0 12px 32px rgba(15, 23, 42, .22); }
.stepper-frame .frame-screen { border-radius: 0; aspect-ratio: 390 / 844; container-type: inline-size; } /* نسبة اللقطة نفسها: الشريط السفلي يظهر كاملاً · cqw: تتبّع البلاغ يصغر مع الإطار */
.stepper-frame img { height: 100%; object-fit: cover; object-position: top; transition: opacity .25s ease, transform .35s cubic-bezier(.2, 0, 0, 1); }
.stepper-steps { list-style: none; margin: 0; padding: 0; }
.stepper-steps li { position: relative; }
.stepper-steps button {
  font: inherit; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0; text-align: start;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.stepper-steps .j-num { width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--muted); font-size: .8rem; }
.stepper-steps .j-title { font-size: .95rem; font-weight: 700; }
.stepper-steps button[aria-pressed="true"] { color: var(--navy); }
.stepper-steps button[aria-pressed="true"] .j-num { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.stepper-steps button[aria-pressed="true"] .j-title { color: var(--gold-dark); }
.stepper-nav { order: 2; display: flex; align-items: center; justify-content: center; gap: 16px; }
.stepper-nav button {
  font: inherit; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.stepper-nav button:hover { border-color: var(--gold); color: var(--gold-dark); }
[dir="ltr"] .stepper-nav svg { transform: scaleX(-1); } /* السهمان مرسومان للعربي */
.stepper-nav .j-count { min-width: 6.5em; text-align: center; font-size: .9rem; }

/* صفحة العميل: نفس الخطوات + شارات تحت العنوان، وخلفية دهبية خفيفة تميّزها */
.customer { background: linear-gradient(180deg, var(--white), #fffbeb); border-top: 1px solid var(--line); }
/* السطر الشارح والشارات: فوق الإطار على الموبايل، وفوق الخطوات على اللابتوب */
.stepper-intro { text-align: center; }
.stepper-intro .sub { color: var(--muted); margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips li { padding: 3px 12px; border: 1px solid #fde68a; border-radius: 999px; background: var(--white); color: var(--gold-dark); font-size: .85rem; font-weight: 700; }
.stepper-frame img.is-swapping { opacity: 0; transform: translateX(calc(-10px * var(--flip))); }

/* تتبّع البلاغ داخل إطار الموبايل: المقاسات بـem من عرض الإطار (cqw) فيصغر مع الإطار */
.track-demo {
  height: 100%; display: flex; flex-direction: column; gap: .9em; padding: 1em;
  background: var(--bg); font-size: 11px; font-size: 4.6cqw; line-height: 1.5; color: var(--navy);
}
.td-head { display: flex; align-items: center; gap: .7em; margin: -1em -1em 0; padding: 1em; background: var(--white); border-bottom: 1px solid var(--line); }
.td-logo { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .6em; background: #1e3a8a; color: var(--white); }
.td-logo svg { width: 1.5em; height: 1.5em; }
.td-company b { display: block; font-size: 1.05em; }
.td-company small, .td-repair span, .td-text small { display: block; color: var(--muted); font-size: .82em; }
.td-card { padding: 1em; background: var(--white); border: 1px solid var(--line); border-radius: 1em; }
.td-title { display: flex; align-items: center; gap: .4em; margin: 0 0 .6em; font-weight: 800; font-size: 1.1em; }
.td-title svg { width: 1.1em; height: 1.1em; color: var(--gold); }
.td-repair { margin: 0 0 1em; padding-bottom: .8em; border-bottom: 1px solid var(--line); }
.td-steps { list-style: none; margin: 0; padding: 0; }
.td-steps li { position: relative; display: flex; gap: .8em; padding-bottom: 1.1em; }
.td-steps li:last-child { padding-bottom: 0; }
/* الخط بين الدوائر: رمادي، ويمتلئ كحلياً عند الوصول إلى المرحلة التالية */
.td-steps li:not(:last-child)::before, .td-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.5em; bottom: .15em; inset-inline-start: 1.15em; width: 2px; border-radius: 2px; background: var(--line);
}
.td-steps li:not(:last-child)::after { background: var(--navy); transform: scaleY(0); transform-origin: top; transition: transform .6s ease; }
.td-steps li.is-done:not(:last-child)::after { transform: scaleY(1); }
.td-dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white); color: var(--muted);
  transition: background .3s, border-color .3s, color .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.td-dot svg { width: 1.1em; height: 1.1em; }
.td-text { padding-top: .25em; min-width: 0; }
.td-text b { display: flex; align-items: center; gap: .4em; color: var(--muted); transition: color .3s; }
.td-text i { display: none; padding: 0 .5em; border-radius: .4em; background: #fef3c7; color: var(--gold-dark); font-style: normal; font-size: .78em; }
.td-text small { opacity: 0; transform: translateY(-3px); transition: opacity .3s .1s, transform .3s .1s; }
.td-steps li.is-done .td-dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.td-steps li.is-done .td-text b { color: var(--navy); }
.td-steps li.is-now .td-dot { background: var(--gold); border-color: var(--gold); color: var(--white); transform: scale(1.12); }
.td-steps li.is-now .td-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); animation: td-pulse 1.4s ease-out infinite; }
.td-steps li.is-now .td-text b { color: var(--gold-dark); }
.td-steps li.is-now .td-text i { display: inline-block; }
.td-steps li:is(.is-done, .is-now) .td-text small { opacity: 1; transform: none; }
@keyframes td-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.td-done {
  display: flex; align-items: center; gap: .5em; margin: 0; padding: .7em .9em; border-radius: .8em;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-weight: 800;
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s, transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.td-done svg { flex: none; width: 1.3em; height: 1.3em; }
.track-demo.is-finished .td-done { opacity: 1; transform: none; }
.td-tabs { display: flex; margin: auto -1em -1em; background: var(--white); border-top: 1px solid var(--line); }
.td-tabs span { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2em; padding: .6em 0 .7em; color: var(--muted); font-size: .72em; font-weight: 700; white-space: nowrap; }
.td-tabs svg { width: 1.5em; height: 1.5em; }
.td-tabs .is-active { color: var(--gold-dark); }
.td-tabs .is-active::before { content: ""; position: absolute; top: 0; inset-inline: 18%; height: 2px; border-radius: 2px; background: var(--gold); }

/* الاستيراد من Excel */
.import-grid { display: grid; gap: 28px; align-items: center; }

/* صفحة الشروط */
.legal-main { max-width: 780px; padding-block: 48px 96px; }
.legal-main section { padding-block: 24px; }
.legal-main h1 { font-size: 1.8rem; }
.legal-main h3 { margin-top: 20px; }
.legal-main p, .legal-main li { line-height: 1.9; }
.legal-main ul, .legal-main ol { padding-inline-start: 22px; }
.legal-meta { color: var(--muted); font-size: .9rem; }

/* طلبات الشركات */
.custom { background: var(--white); border-block: 1px solid var(--line); }
.custom-box {
  display: grid; gap: 28px; padding: 28px 12px; border-radius: 20px;
  background: linear-gradient(135deg, #fffdf5, #fefce8); border: 1px solid #fde68a;
}
.custom-text p:not(.eyebrow) { color: var(--navy-2); }
.btn-wa-lift { gap: 10px; box-shadow: 0 8px 20px rgba(21, 128, 61, .25); }
/* الخطوات التلاتة: كروت بيضا مرقّمة */
.custom-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.custom-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.custom-steps .j-num { border-radius: 50%; background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.custom-steps strong { display: block; }
.custom-steps span:not(.j-num) { display: block; color: var(--muted); font-size: .9rem; }

/* الأسئلة */
.faq-wrap { max-width: 820px; }
.faq-wrap .section-head { margin-bottom: 28px; }
/* كل سؤال كارت أبيض؛ المفتوح بإطار دهبي */
details { margin-bottom: 10px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
details[open] { border-color: #fde68a; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-weight: 400; font-size: 1.2rem; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "−"; background: #fefce8; color: var(--gold-dark); }
details p { color: var(--navy-2); margin: 0 0 16px; }

/* الدعوة الأخيرة */
.final { background: radial-gradient(ellipse at top, #1e293b, var(--navy) 70%); color: var(--white); text-align: center; }
.final h2 { max-width: 20em; margin-inline: auto; }
.final-box { padding: 8px 0; }
.final-sub { color: #cbd5e1; margin: 0 0 4px; }
.center-row { justify-content: center; }

/* الفوتر */
.site-footer { padding: 40px 0; font-size: .95rem; text-align: center; } /* الموبايل: في النص؛ اللابتوب: أعمدة لليمين */
.footer-grid { display: grid; gap: 24px; }
.footer-logo { width: 150px; margin-inline: auto; }
.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-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .problem { padding: 26px; }
  /* لابتوب: الخطوات عمود على اليمين، والإطار وتحته الزرارين على الشمال */
  .stepper { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); column-gap: 56px; row-gap: 12px; align-items: center; }
  .stepper-steps { grid-column: 1; grid-row: 1 / 3; }
  .stepper-view { grid-column: 2; grid-row: 1; }
  .stepper-nav { grid-column: 2; grid-row: 2; }
  .watch { padding-block: 64px; }
  .stepper { margin-top: 24px; }
  .stepper-frame { max-width: 255px; }
  /* خط واصل بين الدواير */
  .customer { padding-block: 56px; }
  .customer .stepper { align-items: start; }
  .customer .stepper-intro { grid-column: 1; grid-row: 1; text-align: start; }
  .customer .stepper-intro .chips { justify-content: flex-start; }
  .customer .stepper-steps { grid-row: 2 / 4; }
  .customer .stepper-view { grid-row: 1 / 3; }
  .customer .stepper-nav { grid-row: 3; }
  .stepper-steps li + li::before { content: ""; position: absolute; top: -8px; inset-inline-start: 13px; width: 2px; height: 16px; background: var(--line); }
  .role-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .custom-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; }
  .import-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; text-align: start; }
  .footer-logo { margin-inline: 0; }
  .wa-float {
    display: grid; place-items: center; position: fixed; bottom: 24px; inset-inline-end: 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; }
  .problem .mini { display: none; } /* الموبايل: الكارت جملة وشرح بس — الأمثلة كانت كلام كتير (المالك 2026-10-21) */
  .problem-desc { margin: 0; }
  .hero .cta-row .btn-gold { flex: 1; }
  /* موبايل: الخطوة الحالية بس تحت الإطار */
  .stepper-steps li:has(button[aria-pressed="false"]) { display: none; }
  .stepper-steps button { justify-content: center; }
}

/* الحركة: مرة واحدة، وكلها تختفي مع «تقليل الحركة» */
@media (prefers-reduced-motion: no-preference) {
  /* الـhero عند الفتح: الكلام يصعد، واللابتوب والموبايل يدخلان من جهتين */
  .hero-text { animation: rise .7s cubic-bezier(.2, 0, 0, 1) both; }
  .hero-visual .frame-laptop { animation: from-start .8s .15s cubic-bezier(.2, 0, 0, 1) both; }
  .hero-visual .frame-phone { animation: from-end .8s .35s cubic-bezier(.3, 1.3, .5, 1) both; }
  /* الأقسام: main.js يضيف js-anim للـhtml و is-in لكل عنصر يصل إليه الزائر */
  .js-anim .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, 0, 0, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js-anim .reveal.is-in { opacity: 1; transform: none; }
  /* زر «جرّب»: لمعة واحدة تمرّ عليه */
  .btn-lift { position: relative; overflow: hidden; }
  .btn-lift::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(calc(120% * var(--flip)));
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  }
  .hero .btn-lift::after { animation: shine 1.1s .9s ease-out both; }
  .js-anim .is-in .btn-lift::after { animation: shine 1.1s .5s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track-demo *, .track-demo *::before, .track-demo *::after, .stepper-frame img { transition: none !important; animation: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes from-start { from { opacity: 0; transform: translateX(calc(24px * var(--flip))); } }
@keyframes from-end { from { opacity: 0; transform: translateX(calc(-24px * var(--flip))) translateY(12px); } }
@keyframes shine { from { transform: translateX(calc(120% * var(--flip))); } to { transform: translateX(calc(-120% * var(--flip))); } }
