/* موقع خبير */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.soft { color: var(--muted); }

/* الشريط العلوي */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.links a:hover { background: var(--surface); }
.nav-cta { display: flex; gap: 6px; }

/* البداية */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.g1 { width: 520px; height: 520px; background: var(--glow-a); inset-inline-end: -120px; top: 40px; }
.g2 { width: 460px; height: 460px; background: var(--glow-b); inset-inline-end: 260px; top: 260px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 1.08; margin: 22px 0 22px; letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.85; color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.works { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.works .muted { margin-inline-end: 6px; }
.chip { font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 4px 10px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
.chip.ghosted { background: transparent; }

/* شاشة المنتج */
.device { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-3); overflow: hidden;
  transform: perspective(1600px) rotateY(6deg) rotateX(2deg); transform-origin: left center; }
.dev-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.lights { display: flex; gap: 6px; } .lights i { width: 10px; height: 10px; border-radius: 50%; background: #ef6a5e; }
.lights i:nth-child(2) { background: #f4bf4f; } .lights i:nth-child(3) { background: #61c454; }
.dev-title { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.mark.xs { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; } .mark.xs::after { top: 4px; inset-inline-start: 4px; width: 5px; height: 5px; }
.dev-body { display: grid; grid-template-columns: 1fr 170px; min-height: 430px; direction: ltr; }
.dev-body > * { direction: rtl; }
.dev-side { order: 2; border-inline-start: 1px solid var(--line); padding: 14px 10px; font-size: 13px; background: var(--surface); }
.side-h { font-size: 11px; color: var(--faint); margin: 8px 8px 6px; font-weight: 600; }
.side-h:not(:first-child) { margin-top: 22px; }
.side-i { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.side-i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.side-i.on { background: var(--raised); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 600; }
.side-i b { margin-inline-start: auto; font-size: 11px; background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side-i .ok { margin-inline-start: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dev-main { order: 1; padding: 16px 18px; background: var(--raised); display: flex; flex-direction: column; }
.dev-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tiny { font-size: 11px; } .num { font-weight: 700; font-size: 14px; }
.script { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.row { display: flex; gap: 10px; align-items: flex-start; }
.row p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.who { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.av { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.results { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-inline-start: 36px; }
.res { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res .n { font-size: 10px; color: var(--faint); font-weight: 600; width: 14px; }
.res div { flex: 1; } .res b { display: block; font-size: 13px; } .res small { color: var(--muted); font-size: 11.5px; }
.st.ok { color: var(--info); font-weight: 800; } .st.wait { filter: grayscale(.3); }
.typing { display: flex; gap: 4px; padding: 10px 14px; margin-inline-start: 36px; width: max-content; border-radius: 12px; background: var(--surface); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* الحركة: الخطوات بتظهر واحدة ورا التانية (site.js) */
.js [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.js [data-step].show { opacity: 1; transform: none; }
.results[data-step] { opacity: 1 !important; transform: none !important; }
.results .res { opacity: 0; } .results .res.show { opacity: 1; }

/* أرقام */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
.stats > div { padding: 26px 24px; display: flex; gap: 14px; align-items: center; }
.stats > div + div { border-inline-start: 1px solid var(--line); }
.stats b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* أقسام */
.sec { padding: 110px 0 0; }
.sec-h { max-width: 640px; margin-bottom: 44px; }
.sec-h h2, .sec-split h2, .final h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 12px; }
.sec-h p { font-size: 16px; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.step-n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0 0 20px; flex: 1; }
.snip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); text-align: start; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card.big { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: linear-gradient(160deg, var(--raised), var(--surface)); }
.phones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; align-items: center; font-size: 13px; }
.phones .chip { direction: ltr; }
.card h3 { font-size: 19px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.card p { color: var(--muted); margin: 0; }
.ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.mini-chat .b { padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.7; max-width: 88%; }
.mini-chat .in { align-self: flex-start; background: var(--ink); color: var(--on-ink); border-start-start-radius: 4px; }
.mini-chat .out { align-self: flex-end; background: var(--raised); border: 1px solid var(--line); border-start-end-radius: 4px; }
.confirm-demo { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; background: var(--surface); }
.confirm-demo > div { display: flex; justify-content: space-between; padding: 4px 0; }
.confirm-demo .t { border-top: 1px dashed var(--line-2); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.confirm-demo .bt { justify-content: flex-start; gap: 6px; margin-top: 8px; }
.learn { margin-top: 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); }
.arrow { color: var(--faint); }
.morning { margin-top: 18px; font-size: 13px; line-height: 1.9; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; color: var(--ink-2); }

.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big { font-size: 17px; line-height: 1.8; }
.sec-points { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 34px; }
.sec-points h4 { font-size: 16px; margin-bottom: 4px; }
.sec-points p { margin: 0; font-size: 14px; }
.ctrl { background: #15171c; color: #f2f1ed; border-radius: var(--r-lg); padding: 10px 22px; box-shadow: var(--shadow-3); }
.ctrl-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 13px; color: #b9bac0; }
.ctrl .tag { background: transparent; border-color: #3a3d45; color: #d9d8d3; }
.ctrl-r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #2a2d34; }
.ctrl-r b { display: block; font-size: 14.5px; } .ctrl-r small { color: #9a9ba1; font-size: 12.5px; }
.ctrl-r .tag.green { background: rgba(31, 191, 117, .14); color: #6ee7b0; border-color: transparent; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan h3 { font-size: 18px; }
.plan .q { font-size: 14px; color: var(--muted); } .plan .q b { font-family: var(--font-display); font-size: 34px; color: var(--ink); margin-inline-end: 4px; }
.plan p { margin: 0 0 12px; flex: 1; font-size: 14px; }
.plan.hot { border-color: var(--ink); box-shadow: var(--shadow-2); }
.plan.hot .tag { position: absolute; top: -12px; inset-inline-start: 22px; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; line-height: 1.8; }

.final { margin-top: 120px; background: #111317; color: #f2f1ed; padding: 90px 0; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(31, 191, 117, .12); filter: blur(90px); inset-inline-start: -150px; top: -200px; }
.final-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.final p { color: #b9bac0; font-size: 17px; max-width: 32em; }
.eyebrow.light { color: #9a9ba1; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: #d9d8d3; }
.checks li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-inline-end: 10px; }
.final-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 320px; justify-self: end; width: 100%; }
.btn.light { background: #f2f1ed; color: #111317; border-color: #f2f1ed; }
.btn.outline-light { background: transparent; color: #f2f1ed; border-color: #3a3d45; }

.foot { padding: 30px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot a.muted { text-decoration: none; }

@media (max-width: 980px) {
  .links { display: none; }
  .nav-cta { margin-inline-start: auto; }
  .hero { padding-top: 40px; }
  .hero-in, .sec-split, .final-in { grid-template-columns: 1fr; }
  .device { transform: none; }
  .bento, .steps { grid-template-columns: 1fr 1fr; }
  .card.big { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-inline-start: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .final-cta { justify-self: start; }
}
@media (max-width: 620px) {
  .dev-body { grid-template-columns: 1fr; }
  .dev-side { display: none; }
  .bento, .steps, .plans, .sec-points { grid-template-columns: 1fr; }
  .card.big { grid-template-columns: 1fr; }
  .stats b { font-size: 32px; }
  .stats > div { padding: 18px 16px; }
  .sec { padding-top: 80px; }
  .lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .js [data-step] { transition: none; } .typing i { animation: none; } }
