:root {
  --emerald: #0b5d4b;
  --emerald-dark: #063b30;
  --gold: #c8a24a;
  --ivory: #faf6ec;
  --ink: #14231f;
  --muted: #4d5c57;
  --card: #ffffff;
  --line: #e6dfcc;
  --link: #0b5d4b;
  --heading: #0b5d4b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ivory: #0e1a17;
    --ink: #eaf1ee;
    --muted: #a9b9b3;
    --card: #14231f;
    --line: #26413a;
    --gold: #d8b45c;
    --link: #d8b45c;
    --heading: #d8b45c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

/* ---- header ---- */
header.site {
  background: var(--emerald-dark);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
header.site .brand img { border-radius: 9px; border: 1px solid rgba(200, 162, 74, .7); }
header.site .right { display: flex; align-items: center; gap: 6px; }
header.site nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
  font-size: .95rem;
  opacity: .9;
}
header.site nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 520px) { header.site nav { display: none; } }

/* ---- hero ---- */
.hero {
  background: linear-gradient(145deg, var(--emerald-dark), var(--emerald));
  color: #fff;
  padding: 56px 16px 64px;
  text-align: center;
  border-radius: 0 0 32px 32px;
}
.hero .wrap { max-width: 720px; margin: 0 auto; }
.hero .arabic { color: var(--gold); font-size: 2.2rem; margin: 0 0 8px; font-family: "Amiri", "Noto Naskh Arabic", serif; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.hero .lead { font-size: 1.1rem; opacity: .92; margin: 0 auto 28px; max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--emerald-dark);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
}
.btn.small { padding: 6px 14px; font-size: .88rem; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
/* A store-badge look for the not-yet-published listing: icon, small line above, store name below. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 14px;
  background: #000;
  color: #fff;
  border: 1.5px solid #a6a6a6;
  border-radius: 12px;
  text-align: left;
  cursor: default;
}
.store-soon svg { flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: .65rem; letter-spacing: .08em; opacity: .85; }
.store-text strong { font-size: 1.35rem; font-weight: 600; }

/* ---- content ---- */
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 40px; }
main > section { margin-top: 48px; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 8px 0 4px; }
h2 { font-size: 1.5rem; margin: 0 0 16px; color: var(--heading); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p, li { color: var(--ink); }
ul, ol { padding-left: 1.25rem; }
li { margin: 4px 0; }
.updated { color: var(--muted); font-size: .9rem; margin-top: 0; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tile, .card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.card { margin: 16px 0; }
.panel { padding: 24px; }
.panel h2 { margin-top: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li {
  counter-increment: s;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 16px 60px;
  position: relative;
  margin: 0;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* policy pages */
main.doc { max-width: 760px; }
main.doc h2 { font-size: 1.2rem; margin: 32px 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; width: 34%; }
@media (max-width: 560px) {
  th, td { display: block; width: 100%; }
  th { border-bottom: 0; padding-bottom: 0; }
}

/* ---- footer ---- */
footer { max-width: 960px; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); font-size: .92rem; }
footer .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
footer .links a { display: block; margin-bottom: 6px; }
footer .copy { margin: 16px 0 0; }
footer > a { margin-right: 14px; }
