/* © PlanB SPC. All rights reserved. manager.planb.om */
:root {
  --pri: #0d8437; --pri-d: #0a6a2c; --pri-l: #e4f4e9; --on-pri: #fff; --accent: #76b94f;
  --bg: #f5f7f6; --card: #fff; --ink: #141816; --ink-2: #3a423d; --muted: #5d6a63; --line: #e2e8e4;
  --red: #b3261e; --red-l: #fbe9e7; --amber: #8a5a00; --amber-l: #fff4d6;
  --r: 16px; --shadow: 0 10px 30px rgba(20, 24, 22, .07);
  --font: "Dubai", -apple-system, "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d0c; --card: #141816; --ink: #eef2ef; --ink-2: #cfd8d2; --muted: #9aa7a0; --line: #26302a; --pri-l: #12301c; --red-l: #3a1d1b; --amber-l: #33290f; --red: #ff8a80; --amber: #ffcc66; --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { color: var(--pri); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-inline-end: auto; min-width: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand b { font-size: 17px; white-space: nowrap; }
.brand small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.links { display: flex; gap: 18px; }
.links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .links { display: none; } }
.lang { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 46px; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.btn.primary:hover { background: var(--pri-d); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }

main { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 54px 0 30px; }
.eyebrow { color: var(--pri); font-weight: 700; margin: 0 0 6px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
.hero h1 { font-size: clamp(30px, 5vw, 50px); }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 250px; border-radius: 34px; padding: 8px; background: #121614; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.phone img { display: block; width: 100%; border-radius: 27px; background: #f4f5f7; }
.phone.front { inset-inline-start: 0; top: 0; z-index: 2; }
.phone.back { inset-inline-start: 150px; top: 60px; transform: rotate(5deg); opacity: .96; }
[dir=ltr] .phone.back { transform: rotate(-5deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .phones { height: 470px; max-width: 380px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; }
  .phone.back { inset-inline-start: 120px; }
}
@media (max-width: 380px) { .phone { width: 180px; } .phone.back { inset-inline-start: 100px; } .phones { height: 410px; } }

.section { padding: 46px 0 10px; }
.section > h2 { font-size: clamp(24px, 3.4vw, 32px); text-align: center; margin-bottom: 24px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.features .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pri-l); font-size: 22px; margin-bottom: 10px; }
.features h3 { font-size: 17px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.strip figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; text-align: center; }
.strip img { display: block; width: 100%; border-radius: 22px; border: 6px solid #121614; background: #f4f5f7; }
.strip figcaption { margin-top: 8px; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; max-width: 980px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; counter-increment: s; position: relative; min-width: 0; }
.steps li::before { content: counter(s); position: absolute; top: 16px; inset-inline-end: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; padding-inline-end: 38px; }
.steps span { color: var(--muted); font-size: 14.5px; }
#price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { #price { grid-template-columns: minmax(0, 1fr); } }
.price { text-align: center; border: 2px solid var(--pri); }
.price h2 { font-size: 22px; }
.amount { font-size: 54px; font-weight: 800; margin: 0; color: var(--pri); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .amount { color: var(--accent); } }
.amount span:last-child { font-size: 22px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 20px; text-align: start; }
.ticks li { padding: 6px 0; padding-inline-start: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 4px; color: var(--pri); font-weight: 800; }
.req ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); }
.req li { margin-bottom: 8px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.planb-footer { margin-top: 40px; border-top: 1px solid var(--line); }
.planb-footer a { color: inherit; }

/* لوحة الطلب بعد الدفع */
.order { margin: 10px auto 0; max-width: 720px; text-align: center; }
.order h2 { font-size: 24px; }
.order .key { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.order .key code { font: 700 clamp(18px, 4.6vw, 26px)/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; background: var(--pri-l); padding: 10px 16px; border-radius: 12px; direction: ltr; user-select: all; }
.order ol { text-align: start; max-width: 520px; margin: 16px auto; padding-inline-start: 22px; }
.order ol li { margin-bottom: 8px; }
.alert { border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.alert.warn { background: var(--amber-l); color: var(--amber); }
.alert.bad { background: var(--red-l); color: var(--red); }
.spin { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--pri); border-radius: 50%; animation: rot .8s linear infinite; margin: 18px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* نافذة الشراء */
dialog#buy { border: 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); width: min(460px, 100%); max-width: 100%; border-radius: 22px 22px 0 0; margin: auto auto 0; background: var(--card); color: var(--ink); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { dialog#buy { border-radius: 22px; margin: auto; } }
dialog#buy::backdrop { background: rgba(10, 13, 12, .55); }
dialog#buy h3 { margin: 0 0 4px; padding-inline-end: 36px; font-size: 19px; }
dialog .x { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
dialog .x button { border: 0; background: var(--bg); color: var(--ink); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
label.f { display: block; margin: 12px 0; }
label.f > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
input { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 16px; min-height: 46px; outline: none; }
input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-l); }
.check { display: flex; gap: 10px; align-items: center; margin: 14px 0; font-size: 14.5px; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--pri); }
.err { color: var(--red); font-weight: 600; margin: 6px 0 10px; }
