/* مهارات المكتب — الألوان والخطوط من التصميم المعتمد */
:root {
  --cream: #F4EFE4;
  --paper: #FDFBF5;
  --white: #FFFFFF;
  --line: #E3DACA;
  --line-strong: #D2C8B6;
  --seg: #EFE8DA;
  --ink: #1F2623;
  --ink-2: #3D4440;
  --muted: #4A4F4B;
  --muted-2: #5E5A54;
  --green: #15634A;
  --green-dark: #0E4836;
  --green-tint: #E4EDE6;
  --green-tint-line: #C9DBCF;
  --on-green: #FDFBF5;
  --on-green-muted: #D9E6DE;
  --on-green-faint: #CFE0D6;
  --gold: #F3D58A;
  --gold-tint: #F6EBD2;
  --gold-ink: #8A6414;
  --red: #9A3E28;
  --red-2: #C7563C;
  --red-tint: #FBEDE8;
  --display: 'Katibeh', 'Alexandria', serif;
  --body: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --radius: 24px;
  --shadow: 0 24px 50px rgba(31, 38, 35, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
[hidden] { display: none !important; }
.skip { position: absolute; right: 16px; top: -60px; background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* placeholders لصاحب المشروع: تُعبّأ قبل الإطلاق */
mark.todo { background: #FFF1B8; color: #5A4500; padding: 0 4px; border-radius: 4px; }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 228, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--green); }
.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer; border: none; border-radius: 14px; font-weight: 800; min-height: 48px; padding: 12px 22px; transition: background-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-dark); color: var(--on-green); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: #EBC86B; color: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--green-dark); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-lg { font-size: 18px; padding: 16px 28px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 700; }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-logo img { height: 42px; }
}

/* ---------- عام للأقسام ---------- */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--green-dark); color: var(--on-green); }
.eyebrow { color: var(--green); font-weight: 700; font-size: 15px; }
.section-dark .eyebrow { color: var(--gold); }
.h-display { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; font-size: clamp(44px, 5.5vw, 72px); }
.lead { margin: 0; font-size: 18px; line-height: 1.9; color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-head { margin-bottom: 28px; } }

/* ---------- الواجهة ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-tint-line); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 9vw, 120px); line-height: 1.05; }
.hero h1 span { color: var(--green); }
.hero-lead { margin: 0; font-size: 20px; line-height: 1.9; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-ctas .btn-primary .tag { border-right: 1px solid rgba(253, 251, 245, .35); padding-right: 14px; font-weight: 500; font-size: 15px; }
.link-strong { color: var(--ink); font-weight: 700; font-size: 16px; padding: 12px 6px; text-decoration: none; }
.link-strong:hover { color: var(--green); text-decoration: underline; }
.works-with { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: var(--muted-2); font-size: 14px; }
.works-with b { color: var(--ink); font-size: 16px; }
.works-with .sep { width: 1px; height: 18px; background: var(--line-strong); }

.hero-media { flex: 1 1 360px; min-width: 0; position: relative; display: flex; justify-content: center; padding: 16px 0; }
.video-frame { position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 32px; overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 30px 60px rgba(31, 38, 35, .18); background: var(--green-dark); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 999px; border: none; cursor: pointer; background: rgba(14, 72, 54, .82); color: var(--on-green); display: flex; align-items: center; justify-content: center; }
.video-toggle:hover { background: var(--green-dark); }
.float-card { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(31, 38, 35, .12); }
.float-card .ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.float-card b { display: block; font-size: 15px; }
.float-card small { display: block; font-size: 13px; color: var(--muted-2); }
.float-1 { top: 56px; right: 0; }
.float-1 .ico { background: var(--green-tint); }
.float-2 { bottom: 64px; left: 0; }
.float-2 .ico { background: var(--gold-tint); }
@media (min-width: 1100px) { .float-1 { right: 10px; } .float-2 { left: 10px; } }
@media (max-width: 600px) {
  .hero { padding-top: 36px; gap: 36px; }
  .hero-lead { font-size: 18px; }
  .video-frame { max-width: 300px; }
  .float-card { padding: 10px 12px; }
  .float-1 { top: 28px; }
  .float-2 { bottom: 36px; }
}

/* ---------- بدون / مع ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.compare-card { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.compare-card h3 { margin: 0; font-size: 20px; }
.compare-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.8; }
.compare-card li > span:first-child { font-weight: 800; flex: 0 0 auto; }
.compare-without { background: var(--cream); border: 1px solid var(--line); }
.compare-without h3 { color: var(--red); }
.compare-without li > span:first-child { color: var(--red-2); }
.compare-with { background: var(--green); color: var(--on-green); }
.compare-with h3, .compare-with li > span:first-child { color: var(--gold); }
@media (max-width: 600px) { .compare-card { padding: 24px; } }

/* ---------- المهارات (تبويبات) ---------- */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 24px; }
.tab { font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-align: right; padding: 18px 22px; border-radius: 18px; min-height: 64px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.tab:hover { border-color: var(--green); }
.tab[aria-selected="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.tab-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px 40px; }
.tab-ask { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tag-chip { align-self: flex-start; font-size: 13px; color: var(--muted-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.ask-label { font-size: 14px; color: var(--muted-2); }
.ask-bubble { margin: 0; font-size: 21px; line-height: 1.8; font-weight: 600; background: var(--cream); border-radius: 18px; padding: 20px 22px; }
.motto { margin: 0; font-family: var(--display); font-size: 40px; color: var(--green); line-height: 1.3; }
.tab-steps { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tab-steps li { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--white); }
.step-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tab-steps b { display: block; font-size: 17px; }
.tab-steps small { display: block; font-size: 14px; color: var(--muted-2); }
.tab-foot { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted-2); }

/* ---------- خطوات التركيب ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.how-card { background: var(--green); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.how-n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--gold); }
.how-card h3 { margin: 0; font-size: 21px; }
.how-card p { margin: 0; line-height: 1.8; color: var(--on-green-muted); }
.how-note { margin: 28px 0 0; color: var(--on-green-muted); }
.how-note a { color: var(--gold); }

/* ---------- الأسعار ---------- */
.pricing { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.pricing-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pricing-copy h2 { font-size: clamp(48px, 6vw, 84px); line-height: 1.05; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }

.price-card { flex: 1 1 420px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--seg); padding: 6px; border-radius: 14px; }
.seg button { font: inherit; cursor: pointer; border: none; padding: 12px 8px; min-height: 44px; border-radius: 10px; font-weight: 700; font-size: 15px; background: transparent; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--green-dark); box-shadow: 0 2px 6px rgba(31, 38, 35, .08); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiers button { font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; text-align: right; color: var(--ink); background: var(--white); border: 2px solid var(--line); }
.tiers button[aria-pressed="true"] { background: var(--green-tint); border-color: var(--green); }
.tiers b { font-size: 16px; }
.tiers span { font-size: 13px; color: var(--muted-2); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-num { font-size: clamp(56px, 8vw, 72px); font-weight: 800; color: var(--green-dark); line-height: 1; }
.price-unit { font-size: 18px; color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted-2); margin-top: -10px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 16px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--green-tint-line); border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: var(--red-2); }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted-2); }
.ltr-input { direction: ltr; text-align: right; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-actions { display: flex; flex-direction: column; gap: 10px; }
.fineprint { font-size: 13px; color: var(--muted-2); text-align: center; margin: 0; }
.alert { border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.8; }
.alert-error { background: var(--red-tint); color: var(--red); border: 1px solid #F1CBBF; }
.alert-ok { background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-tint-line); }
.alert-warn { background: var(--gold-tint); color: #5A4500; border: 1px solid #EAD7A4; }

.soon { display: flex; flex-direction: column; gap: 12px; background: var(--green-tint); border: 1px solid var(--green-tint-line); border-radius: 18px; padding: 20px; }
.soon b { font-size: 20px; color: var(--green-dark); }
.soon p { margin: 0; line-height: 1.8; color: var(--ink-2); }
.soon .fineprint { text-align: right; }
.soon-links { display: flex; flex-wrap: wrap; gap: 10px; }
.soon-links .btn { flex: 1 1 140px; }
.pay-step { display: flex; flex-direction: column; gap: 16px; }
.pay-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.pay-summary b { font-size: 18px; color: var(--green-dark); }
.link-btn { font: inherit; background: none; border: none; color: var(--green); cursor: pointer; padding: 8px 0; text-decoration: underline; align-self: flex-start; min-height: 44px; }
.mysr-form { width: 100%; }
/* زر الدفع في نموذج ميسّر بلون الهوية بدل البنفسجي الافتراضي */
/* ميسّر يكتب قواعده تحت div#mysr فنحتاج نفس النطاق ليغلب لوننا */
.mysr-form div#mysr .bg-primary { background-color: var(--green) !important; }
.mysr-form div#mysr .bg-primary:hover { background-color: var(--green-dark) !important; }

/* ---------- الأسئلة ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--green); font-weight: 400; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.9; color: var(--muted); }

/* ---------- الخاتمة والفوتر ---------- */
.final { background: var(--green); color: var(--on-green); }
.final-inner { padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final-inner img { height: 110px; width: auto; }
.final-inner h2 { font-size: clamp(48px, 6vw, 80px); }
.site-footer { background: var(--green); border-top: 1px solid rgba(253, 251, 245, .15); color: var(--on-green-faint); font-size: 13px; }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-inner a { color: var(--on-green); }

/* ---------- الصفحات الداخلية (الشروط، الخصوصية، التواصل، الدفع) ---------- */
.page { padding: 56px 0 96px; }
.page-card { max-width: 820px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 5vw, 56px); box-shadow: var(--shadow); }
.page-card h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 64px); line-height: 1.15; color: var(--green-dark); }
.page-card .updated { color: var(--muted-2); font-size: 14px; margin: 0 0 28px; }
.prose h2 { font-size: 21px; margin: 32px 0 10px; color: var(--green-dark); }
.prose p, .prose li { font-size: 16px; line-height: 2; color: var(--ink-2); }
.prose ul, .prose ol { padding-right: 22px; }
.notice { background: var(--gold-tint); border: 1px solid #EAD7A4; border-radius: 16px; padding: 16px 18px; color: #4A3A08; line-height: 1.9; }
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.facts th, .facts td { padding: 10px 0; text-align: right; border-top: 1px solid var(--line); }
.facts tr:first-child th, .facts tr:first-child td { border-top: none; }
.facts th { color: var(--muted-2); font-weight: 400; width: 30%; }
.facts td { font-weight: 700; }
#renew .mysr-form { margin-top: 16px; }
#renew .fineprint { margin-top: 12px; text-align: right; }
.status-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.status-ok { background: var(--green-tint); color: var(--green); }
.status-bad { background: var(--red-tint); color: var(--red-2); }
.status-wait { background: var(--gold-tint); color: var(--gold-ink); }
.spinner { width: 28px; height: 28px; border: 3px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0 0 28px; }
.contact-ways a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; color: var(--ink); }
.contact-ways a:hover { border-color: var(--green); }
.contact-ways small { color: var(--muted-2); }
.demo-banner { background: #FFF1B8; color: #5A4500; text-align: center; font-size: 14px; padding: 8px 16px; }
.provider { margin: 24px 0 0; font-size: 12px; color: var(--muted-2); }
