@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/IBMPlexSansArabic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* The app's own palette (packages/core/lib/src/theme/theme.dart). */
:root {
  --primary: #0a7a55;
  --primary-deep: #05583d;
  --primary-soft: #d5f1e3;
  --on-primary-soft: #033b28;
  --accent: #c97508;
  --accent-soft: #fceacb;
  --surface: #f7f5ef;
  --card: #ffffff;
  --line: #e2ded3;
  --text: #14201a;
  --muted: #55635b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5cd3a3;
    --primary-deep: #0b8a60;
    --primary-soft: #0f3b2b;
    --on-primary-soft: #c9f2df;
    --accent: #f2b45c;
    --accent-soft: #3d2a0c;
    --surface: #0f1512;
    --card: #17201b;
    --line: #2a352f;
    --text: #e8eee9;
    --muted: #a6b3ab;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}
a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
nav.site { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); padding: 6px 2px; }
nav.site a[aria-current="page"] { color: var(--primary); font-weight: 600; }
nav.site a.lang { color: var(--primary); }

.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.3; margin: 0 0 12px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }

section { padding: 28px 0; }
h2 { font-size: 26px; margin: 0 0 16px; line-height: 1.4; }
h3 { font-size: 19px; margin: 0 0 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.step { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; margin-bottom: 10px; }

.price { background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 18px; padding: 20px; }
.price strong { font-size: 22px; }

article.doc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 32px 0; }
article.doc h1 { font-size: 30px; margin: 0 0 4px; }
article.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
article.doc h2 { font-size: 21px; margin: 28px 0 8px; }
article.doc ul { padding-inline-start: 22px; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
dl.contact dt { color: var(--muted); }
dl.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ltr { direction: ltr; unicode-bidi: isolate; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  dl.contact { grid-template-columns: 1fr; gap: 2px; }
  dl.contact dd { margin-bottom: 12px; }
  article.doc { padding: 18px; }
}
