/* DAN pos — الصفحة التعريفية. الهوية: كحلي #11284f، أزرق #4a8fe7 */
:root {
  --navy: #11284f;
  --navy-2: #1a3563;
  --blue: #4a8fe7;
  --blue-hover: #3479d6;
  --blue-soft: #eaf2fd;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --border: #e3e7ef;
  --text: #13213b;
  --muted: #6b7385;
  --ok: #1f9d61;
  --ok-soft: #e6f6ee;
  --warn: #c9781a;
  --warn-soft: #fdf3e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 40, 79, .05), 0 8px 24px rgba(17, 40, 79, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; color: var(--navy); }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* الشعار */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.wm { font-family: Montserrat, sans-serif; font-size: 1.35rem; letter-spacing: .3px; direction: ltr; }
.wm b { font-weight: 800; }
.wm i { font-style: normal; font-weight: 500; color: var(--blue); margin-inline-start: 4px; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 16px; font-size: .95rem; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border-color: var(--border); color: var(--navy); background: var(--surface); }
.btn-outline:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); }

/* الترويسة */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--navy); }

/* الواجهة */
.hero { background: linear-gradient(180deg, var(--bg), var(--surface)); padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px;
  background: var(--blue-soft); color: var(--navy); font-size: .9rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero h1 { font-size: 2.6rem; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-inline-end: 6px; }

/* شاشة نقطة البيع التوضيحية */
.hero-visual { position: relative; padding: 24px 0; }
.screen {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(17, 40, 79, .16); overflow: hidden; font-size: .78rem;
}
.scr-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--navy); color: #fff; }
.scr-title { font-weight: 600; }
.scr-ok { color: #8fe0b6; font-size: .72rem; }
.scr-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; padding: 12px; background: var(--bg); }
.scr-search { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; color: var(--muted); margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.tile b { color: var(--navy); font-weight: 600; }
.tile span { font-weight: 700; direction: ltr; text-align: end; }
.scr-cart { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.scr-cart .line, .scr-cart .sum, .scr-cart .total { display: flex; justify-content: space-between; }
.scr-cart .line { border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.scr-cart .sum { color: var(--muted); margin-top: auto; }
.scr-cart .total { font-size: .9rem; color: var(--navy); }
.pay { background: var(--blue); color: #fff; text-align: center; border-radius: 8px; padding: 8px; font-weight: 700; }
.toast {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .85rem;
}
.toast b { display: block; color: var(--navy); }
.toast small { color: var(--muted); }
.t1 { bottom: -6px; inset-inline-start: -18px; }
.t2 { top: -4px; inset-inline-end: -14px; }
.ic { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; }
.ic-ok { background: var(--ok-soft); color: var(--ok); }
.ic-ok::before { content: "✓"; }
.ic-warn { background: var(--warn-soft); color: var(--warn); }
.ic-warn::before { content: "!"; }

/* الأقسام */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: 1.9rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow); border-color: #cfd9ea; }
.f-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 14px; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .96rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.section.cta { padding: 0 0 84px; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe5f7;
  border-radius: 20px; padding: 40px 44px; margin-top: 84px;
}
.cta-box h2 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; background: var(--surface); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 16px; }

/* التذييل */
.site-footer { background: var(--navy); color: #b9c6dd; padding: 36px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer .brand { color: #fff; }
.links { display: flex; gap: 20px; }
.links a { color: #dbe5f7; }
.copy { font-size: .9rem; }

/* الشاشات الصغيرة */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .bar { justify-content: space-between; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 1.85rem; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .cta-box { padding: 30px 24px; margin-top: 60px; }
  .scr-body { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .t1 { inset-inline-start: 0; }
  .t2 { inset-inline-end: 0; }
  .foot { flex-direction: column; text-align: center; }
}
