:root {
  --green: #1e6b52;
  --green-dark: #154d3b;
  --green-soft: #e7f2ee;
  --blue: #2f5d8a;
  --ink: #1d2523;
  --muted: #5b6764;
  --line: #dde5e2;
  --paper: #ffffff;
  --page: #f6f8f7;
  --warn-soft: #fff6e0;
  --warn-line: #f0d38a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #5cc39d;
    --green-dark: #8fd9bd;
    --green-soft: #17302a;
    --blue: #8cb6e0;
    --ink: #e8eeec;
    --muted: #a5b2ae;
    --line: #2c3633;
    --paper: #161c1b;
    --page: #0f1413;
    --warn-soft: #2e2615;
    --warn-line: #6b5524;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  header.hero { background: linear-gradient(160deg, #1e6b52 0%, #0f3a2c 100%); }
}

.logo {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center;
}

.logo svg { width: 44px; height: 44px; }

h1 { margin: 0; font-size: 38px; line-height: 1.3; }

.latin { font-size: 16px; letter-spacing: 1px; opacity: 0.8; margin-top: 4px; direction: ltr; }

.tagline { font-size: 20px; margin: 18px auto 0; max-width: 560px; opacity: 0.95; }

.downloads {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 600px; margin: 32px auto 0;
}

@media (max-width: 560px) { .downloads { grid-template-columns: 1fr; } }

.btn {
  display: block; text-decoration: none; text-align: center;
  background: #fff; color: var(--green-dark);
  border-radius: 16px; padding: 16px 18px;
  font-weight: 700; font-size: 19px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn small { display: block; font-weight: 400; font-size: 14px; color: #5b6764; margin-top: 2px; }

.btn:active { transform: translateY(1px); }

.version { margin-top: 18px; font-size: 14px; opacity: 0.8; }

section { padding: 44px 0 8px; }

h2 { font-size: 26px; margin: 0 0 18px; }

.steps { counter-reset: step; display: grid; gap: 14px; }

.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 18px 20px; position: relative; padding-inline-start: 68px;
}

.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 18px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-weight: 700;
}

.step strong { display: block; font-size: 18px; }

.step p { margin: 4px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
}

.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--green); }

.card p { margin: 0; color: var(--muted); font-size: 16px; }

.promise {
  background: var(--green-soft); border-radius: 18px; padding: 22px 24px;
}

.promise ul { margin: 0; padding-inline-start: 22px; }

.promise li { margin: 6px 0; }

.note {
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  border-radius: 16px; padding: 18px 22px;
}

.note ol { margin: 8px 0 0; padding-inline-start: 22px; }

.note li { margin: 6px 0; }

footer {
  margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px; text-align: center;
}

footer a, .doc a { color: var(--blue); }

.ltr { direction: ltr; unicode-bidi: isolate; }

.lang {
  position: absolute; top: 16px; inset-inline-end: 20px;
  color: #fff; text-decoration: none; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 3px 14px;
}

header.hero { position: relative; }

.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; }

.top-bar .lang-small { font-weight: 400; font-size: 15px; }

html[dir="ltr"] body { font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* The privacy policy page. */
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 8px 26px 20px; margin-top: 28px; }

.doc h2 { font-size: 22px; margin: 28px 0 10px; }

.doc ul { padding-inline-start: 22px; }

.doc li { margin: 6px 0; }

.top-bar { background: var(--green); color: #fff; padding: 18px 0; }

.top-bar a { color: #fff; text-decoration: none; font-weight: 700; }
