:root {
  --green: #0b6b4a;
  --green-dark: #06281c;
  --amber: #f5b224;
  --ink: #14221c;
  --muted: #5b6b64;
  --line: #d7e3dc;
  --card: #fff;
  --wash: #f4f7f5;
  --note: #eef6f1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.6;
}
a { color: var(--green); }
.wrap { max-width: 720px; margin: 0 auto; }
header {
  background: var(--green);
  color: #fff;
  padding: 16px 20px 20px;
}
    .top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .top-start { display: flex; align-items: center; gap: 10px; }
    .back {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 999px;
      background: #fff;
      color: var(--green-dark);
      text-decoration: none;
      font-weight: 800;
      font-size: 0.9rem;
      line-height: 1;
    }
    .back::before { content: "›"; font-size: 1.25rem; line-height: 1; }
    html[dir="ltr"] .back::before { content: "‹"; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.langs { display: flex; gap: 6px; }
.langs button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.langs button[aria-pressed="true"] { background: var(--amber); color: var(--green-dark); }
header h1 {
  margin: 16px 0 6px;
  font-size: 1.55rem;
  line-height: 1.3;
}
header p { margin: 0; color: rgba(255, 255, 255, 0.92); }
nav.toc {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(244, 247, 245, 0.95);
  border-bottom: 1px solid var(--line);
}
nav.toc .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
}
nav.toc a {
  flex: 0 0 auto;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-dark);
}
main { padding: 8px 20px 28px; }
.roles { display: grid; gap: 12px; margin-top: 18px; }
.role {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--ink);
}
.role strong { display: block; font-size: 1.15rem; color: var(--green-dark); }
.role span { display: block; margin-top: 4px; color: var(--muted); }
.role:active { transform: scale(0.99); }
section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 8px;
  margin: 14px 0;
  scroll-margin-top: 64px;
}
section h2 { margin: 0 0 8px; font-size: 1.22rem; color: var(--green-dark); }
.kicker { margin: 0 0 12px; color: var(--muted); }
ol.steps { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}
html[dir="rtl"] ol.steps > li::before { content: counter(step, arabic-indic); }
ol.steps > li::before {
  content: counter(step);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
ol.steps h3 { margin: 0 0 2px; font-size: 1rem; }
ol.steps p { margin: 0; }
.tap {
  display: inline-block;
  margin: 1px 2px 0;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--note);
  color: var(--green-dark);
  font-weight: 800;
}
.note {
  background: var(--note);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: start;
}
figure { margin: 0 0 12px; }
.phone {
  width: min(210px, 100%);
  margin: 0 auto;
  padding: 8px 7px 12px;
  background: #101816;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(6, 40, 28, 0.16);
}
.phone img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  background: #fff;
}
.shots {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.shots .phone { width: 156px; }
figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 20px 36px;
}
.more a {
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--green-dark);
}
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; }
  .split figure { order: -1; }
}
