/* صفحات الهبوط (ن٣) — ملف واحد للصفحات الأربع بدل نسخة في كل صفحة.
   الألوان ألوان صفحة الخصوصية نفسها (الثيم الورقي)، والداكن يتبع المتصفح
   أو `data-theme` (يضبطه حارس اللقطات). الخطوط نسخنا المحلية: سياسة المحتوى
   تحجب أي خط من خارج الموقع. */

@font-face {
  font-family: "Cairo";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cairo-arabic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cairo";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/cairo-arabic-700.woff2") format("woff2");
}
@font-face {
  font-family: "Jakarta";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Jakarta";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
}

:root {
  --bg: #faf9f6;
  --surface: #f2f1ed;
  --primary: #4a5d4e;
  --on-primary: #faf9f6;
  --text: #1e1c1a;
  --muted: #5f5a4f;
  --border: rgba(30, 28, 26, 0.14);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="olive"]) {
    --bg: #1e1c1a;
    --surface: #2b2825;
    --primary: #d9785f;
    --on-primary: #1e1c1a;
    --text: #faf9f6;
    --muted: #b4ada1;
    --border: rgba(250, 249, 246, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: #1e1c1a;
  --surface: #2b2825;
  --primary: #d9785f;
  --on-primary: #1e1c1a;
  --text: #faf9f6;
  --muted: #b4ada1;
  --border: rgba(250, 249, 246, 0.14);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jakarta", "Cairo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
html[lang="ar"] body {
  font-family: "Cairo", "Jakarta", system-ui, sans-serif;
}
a {
  color: var(--primary);
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 720px;
}

/* الرأس */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.lang:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* البطل */
.hero {
  /* أعلى وأسفل فقط: الاختصار `padding` كان يمسح هامش `.wrap` الجانبي
     فتلتصق اللقطة بحافة الجوال. */
  padding-top: 56px;
  padding-bottom: 32px;
  text-align: center;
}
h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.25;
  margin: 0 auto 16px;
  max-width: 820px;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 640px;
  text-wrap: pretty;
}
.cta {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 18px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
}
.cta:hover {
  filter: brightness(1.08);
}
.cta:focus-visible,
.lang:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.note {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* الأقسام */
/* `section.wrap` لا `section`: `.wrap` أعلى أولوية من وسم مجرّد فكان يمسح
   الفراغ الرأسي كلّه. وبلا خطوط فاصلة: الأقسام بعرضين (٩٦٠ و٧٢٠) فتتفاوت. */
section.wrap {
  padding-top: 40px;
  padding-bottom: 40px;
}
h2 {
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 18px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.list {
  padding-inline-start: 22px;
  margin: 0;
}
.list li {
  margin-bottom: 8px;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  margin: 8px 0 0;
  color: var(--muted);
}
.closing {
  text-align: center;
}

/* الذيل */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
footer a {
  color: var(--muted);
}
