:root {
  --brand: #2e7d32;
  --accent: #f57c00;
  --canvas: #f2f4f3;
  --card: #fff;
  --text: #16201a;
  --muted: #5d6b62;
  --hairline: #e4e8e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 760px;
  margin: 0 auto;
}

header.site {
  max-width: 760px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header.site .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

header.site h1 {
  font-size: 20px;
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
}

h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

p, li { color: var(--text); }

.muted { color: var(--muted); font-size: 14px; }

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

a { color: var(--brand); }

.langs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.langs button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}

.langs button[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--card);
}

section[lang] { display: none; }
section[lang].active { display: block; }
section[lang="ar"] { direction: rtl; text-align: right; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 40px;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.12);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.contact {
  background: rgba(46, 125, 50, 0.07);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 16px;
  padding: 16px;
}

footer {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0e1210;
    --card: #181d1a;
    --text: #eef2ef;
    --muted: #9baba1;
    --hairline: #2a302c;
  }
  .langs button[aria-selected="true"] { background: #eef2ef; color: #0e1210; border-color: #eef2ef; }
  a { color: #7fc784; }
}
