:root {
  --brand: #303e51;
  --brand-dark: #222d3c;
  --brand-soft: #e7ecf3;
  --accent: #89a2c4;
  --ink: #1d2532;
  --muted: #5f6b7a;
  --line: #e3e7ec;
  --bg: #fffff7;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #89a2c4;
    --brand-dark: #6f8bb3;
    --brand-soft: #1c2532;
    --ink: #e9edf3;
    --muted: #9aa7b8;
    --line: #273241;
    --bg: #10151c;
    --card: #18202a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* الشريط العلوي */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--brand); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* الواجهة */
.hero { padding: 72px 0 56px; background: linear-gradient(160deg, var(--brand-soft), var(--bg) 70%); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.3; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 15px;
}
.store small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; line-height: 1.2; }
.store span { line-height: 1.25; }
.soon { font-size: 14px; color: var(--muted); }

section { padding: 56px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.cta { display: inline-block; background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.cta:hover { background: var(--brand-dark); }

/* الصفحات القانونية */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; }
.doc .date { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.note { background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; margin: 20px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; margin-bottom: 16px; min-height: 32px; }
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

/* نموذج اتصل بنا */
.cform { position: relative; display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.cform label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.cform label b { color: #c62828; font-weight: 700; }
.cform input, .cform select, .cform textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--accent); border-color: var(--brand); }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input[dir="ltr"] { text-align: right; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cform .row2 { grid-template-columns: 1fr; } }
.cform button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; justify-self: start; min-width: 140px; }
.cform button:disabled { opacity: .6; cursor: wait; }
.cform .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.fmsg { margin: 0; font-weight: 700; }
.fmsg:empty { display: none; }
.fmsg.ok { color: #2e7d32; }
.fmsg.err { color: #c62828; }
