/* الصفحة الرسمية لمدار: هادئة ومرتبة، متجاوبة من الجوال الصغير إلى الشاشات الكبيرة */
/* ألوان الموقع للصفحة وللنوافذ أيضًا (النوافذ تُضاف خارج .st) */
.st, dialog.st-dlg { --ink: #16244A; --acc: #0B7A75; --acc2: #E8A33D; --soft: #F4F7FA; --line: #E4E9F0; --muted: #5A6478; }
.st { background: #fff; color: var(--ink); overflow-x: clip; }
.st a { color: inherit; }
.st .in { max-width: 1120px; margin: 0 auto; }

/* الشريط العلوي */
.st-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.st-nav .in { padding: 10px 20px; display: flex; align-items: center; gap: 28px; }
.st-nav .brand { display: flex; align-items: center; flex: none; }
.st-nav .brand img, .st-nav .brand svg { height: 32px; }
.st-nav .links { display: flex; gap: 26px; flex: 1; font-size: 15px; }
.st-nav .links a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color .15s; }
.st-nav .links a:hover { color: var(--acc); }
.st-nav .install-ic { margin-inline-start: auto; }

/* الأزرار */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s; }
.st-btn:active { transform: scale(.98); }
.st-btn.pri { background: var(--acc); color: #fff; } .st-btn.pri:hover { background: #096862; }
.st-btn.gold { background: var(--acc2); color: #1E1503; } .st-btn.gold:hover { background: #F0B254; }
.st-btn.out { border-color: #CBD3DF; background: #fff; color: var(--ink); } .st-btn.out:hover { border-color: var(--ink); }
.st-btn.ghost { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; } .st-btn.ghost:hover { background: rgba(255,255,255,.1); }
.st-btn.wide { width: 100%; }

/* الواجهة */
.st-hero { color: #fff; padding: 88px 20px 96px; text-align: center;
  background: linear-gradient(160deg, #16244A 0%, #132C4C 60%, #0F3F45 100%); }
.st-hero .txt { max-width: 720px; margin: 0 auto; }
.st-hero h1 { text-wrap: balance; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.3; margin: 0 0 16px; letter-spacing: -.3px; }
.st-hero .lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.9; color: #D5DEEC; margin: 0 auto 32px; max-width: 600px; }
.st-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.st-hero .note { margin: 18px 0 0; font-size: 14px; color: #A9B8CF; }

/* الأقسام */
.st-sec { padding: 84px 20px; }
.st-sec.soft { background: var(--soft); }
.st-sec h2 { text-wrap: balance; text-align: center; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; margin: 0 0 10px; }
.st-sec .sub-h { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 560px; line-height: 1.8; font-size: 16px; }

/* المميزات: عنوان لكل فئة ثم بطاقات المميزات */
.st-cat + .st-cat { margin-top: 34px; }
.st-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; color: var(--ink); }
.st-cat h3 .ic { width: 34px; height: 34px; border-radius: 10px; background: #E6F4F3; color: var(--acc); display: grid; place-items: center; flex: none; }
.st-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; transition: border-color .15s; }
.st-feat:hover { border-color: #BFD9D7; }
.st-feat b { display: block; font-size: 15px; margin-bottom: 4px; }
.st-feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* العرض التجريبي */
.st-demo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-demo-card { font: inherit; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: center; cursor: pointer; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.st-demo-card:hover { border-color: var(--acc); box-shadow: 0 12px 28px rgba(11,122,117,.12); transform: translateY(-2px); }
.st-demo-card .ic { width: 42px; height: 42px; border-radius: 12px; background: #E6F4F3; color: var(--acc); display: grid; place-items: center; }
.st-demo-card b { font-size: 17px; }
.st-demo-card small { grid-column: 1 / -1; color: var(--muted); line-height: 1.8; font-size: 14px; }
.st-demo-card.busy { opacity: .6; cursor: progress; }

/* الباقات */
.st-toggle { display: flex; justify-content: center; margin: -14px 0 34px; }
.st-toggle .box { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.st-toggle button { font: inherit; border: 0; background: none; padding: 9px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.st-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22,36,74,.12); }
.st-toggle .save { font-size: 12px; color: var(--acc); font-weight: 700; margin-inline-start: 6px; }
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.st-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 22px; display: flex; flex-direction: column; }
.st-plan.hi { border: 2px solid var(--acc); box-shadow: 0 20px 44px rgba(11,122,117,.14); }
.st-plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.st-plan .promo { background: #FFF4E0; color: #9A5B00; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.st-plan h3 { margin: 0; font-size: 20px; }
.st-plan .tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.st-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.st-price .n { font-size: 40px; font-weight: 800; line-height: 1.1; }
.st-price .u { color: var(--muted); font-size: 14px; }
.st-price del { color: #9AA3B2; font-size: 16px; }
.st-price .off { background: #E6F4F2; color: var(--acc); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.st-plan .contact { font-size: 22px; font-weight: 800; margin-top: 16px; }
.st-plan .fee { font-size: 13px; color: var(--muted); margin-top: 4px; }
.st-plan .lim { font-size: 14px; color: #3B4658; margin-top: 14px; padding: 10px 12px; background: var(--soft); border-radius: 10px; }
.st-plan .inc { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }
.st-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; }
.st-plan li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.st-plan li svg { color: var(--acc); flex: none; margin-top: 3px; }
.st-plan li.more button { font: inherit; background: none; border: 0; padding: 0; color: var(--acc); font-weight: 700; cursor: pointer; }
.st-plan .same { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.st-plan .acts { display: grid; gap: 4px; margin-top: auto; }
.st-plan .try { font: inherit; font-size: 14px; background: none; border: 0; color: var(--acc); font-weight: 700; cursor: pointer; padding: 8px; }

/* الخاتمة: التجربة والتواصل */
.st-end { max-width: 1120px; margin: 0 auto; border-radius: 26px; padding: 44px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(46,196,182,.25), transparent 70%), linear-gradient(135deg, #16244A, #0E3B4A); }
.st-end h2 { text-align: start; color: #fff; }
.st-end .txt p { color: #C9D4E5; line-height: 1.9; margin: 0 0 24px; }
.st-end .ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-end .way { font: inherit; text-align: start; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; transition: background .15s; min-width: 0; }
.st-end .way:hover { background: rgba(255,255,255,.14); }
.st-end .way svg { flex: none; color: #7FD6CF; }
.st-end .way span { min-width: 0; } .st-end .way b { display: block; font-size: 15px; }
.st-end .way small { display: block; color: #B7C4D8; font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* الأسئلة الشائعة */
.st .in.narrow { max-width: 780px; }
.st-faq { display: grid; gap: 10px; margin-top: 26px; }
.st-faq details, .seo .faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.st-faq summary, .seo .faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::-webkit-details-marker, .seo .faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after, .seo .faq summary::after { content: "+"; color: var(--acc); font-size: 20px; line-height: 1; flex: none; }
.st-faq details[open] summary::after, .seo .faq details[open] summary::after { content: "−"; }
.st-faq p, .seo .faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.9; }

/* التذييل */
.st-foot { border-top: 1px solid var(--line); padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.st-foot .in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.st-foot .in > :first-child { height: 28px; }
.st-foot .legal { display: flex; gap: 8px 20px; flex: 1; flex-wrap: wrap; }
.st-foot .legal a { text-decoration: none; } .st-foot .legal a:hover { color: var(--acc); }

/* النماذج والنوافذ */
.st-form .row { display: flex; gap: 10px; } .st-form .row > * { flex: 1; min-width: 0; }
.st-form label.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0 10px; cursor: pointer; }
.st-form label.chk input { width: 18px; height: 18px; flex: none; }
.st-form .addons { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-bottom: 8px; }
.st-consent { font-size: 13px; color: var(--muted); margin: 2px 0 10px; line-height: 1.8; }
.st-consent a { color: var(--acc); }
dialog.st-dlg { width: min(560px, 96vw); }
dialog.st-dlg .d-in > .row.spaced:last-child .st-btn.wide { width: auto; flex: 1; }
.st-dlg-note { display: flex; align-items: center; gap: 8px; color: #9A5B00; background: #FFF4E0; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.st-ok { text-align: center; padding: 10px; } .st-ok svg { color: var(--acc); }

/* الصفحة الفاضية (الشعار فقط) */
.blank-legal { display: flex; justify-content: center; gap: 18px; font-size: 14px; margin: 8px 0; }
.blank-legal a { color: #5A6478; text-decoration: none; }

/* تابلت */
@media (max-width: 1000px) {
  .st-feats { grid-template-columns: repeat(2, 1fr); }
  .st-demo { grid-template-columns: repeat(2, 1fr); }
  .st-end { grid-template-columns: 1fr; text-align: center; } .st-end h2 { text-align: center; }
}
@media (max-width: 760px) { .st-nav .links { display: none; } }
/* جوال */
@media (max-width: 560px) {
  .st-nav .in { padding: 8px 16px; }
  .st-hero { padding: 52px 16px 60px; }
  .st-hero .cta .st-btn { flex: 1 1 100%; }
  .st-sec { padding: 56px 16px; }
  .st-sec .sub-h { margin-bottom: 28px; font-size: 15px; }
  .st-feats { grid-template-columns: 1fr; gap: 10px; }
  .st-feat { padding: 14px 16px; }
  .st-demo { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-demo-card { padding: 14px; grid-template-columns: 1fr; justify-items: start; }
  .st-demo-card small { display: none; }
  .st-plans { grid-template-columns: 1fr; }
  .st-end { padding: 30px 18px; border-radius: 20px; }
  .st-end .ways { gap: 10px; }
  .st-end .way { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .st-end .st-btn { width: 100%; }
  .st-form .row { flex-direction: column; gap: 0; }
  .st-form .addons { grid-template-columns: 1fr; }
  .st-foot .in { flex-direction: column; text-align: center; gap: 12px; } .st-foot .legal { justify-content: center; }
}
