:root {
  --bg: #F5F6F4; --panel: #FFFFFF; --soft: #ECEFEC; --line: #E1E5E1; --text: #16201B; --muted: #56625C;
  --accent: #0A7350; --accent-ink: #FFFFFF; --accent-soft: #E2F1E9; --warn: #8F4D00; --warn-soft: #FBEBD5;
  --shadow: 0 1px 2px rgba(22,32,27,.06), 0 12px 32px -12px rgba(22,32,27,.18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111312; --panel: #191C1B; --soft: #1E2321; --line: #2A2F2D; --text: #E8EDEA; --muted: #A0AAA5;
  --accent: #3CC48F; --accent-ink: #062016; --accent-soft: #15382A; --warn: #F2AA4C; --warn-soft: #3A2A13;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Geist, "Helvetica Neue", Helvetica, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); padding: 0 12px; }
.btn-ghost:hover { color: var(--accent); }
.btn svg { flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.theme-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.theme-btn:hover { color: var(--text); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } .nav .cta-nav { margin-left: auto; } }
@media (max-width: 380px) { .nav .cta-nav span { display: none; } }

/* sections */
section { padding: 128px 0; }
@media (max-width: 760px) { section { padding: 80px 0; } }
.eyebrow { font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 650; max-width: 20ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; margin: 18px 0 0; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* faq */
.faq { margin: 48px auto 0; border-top: 1px solid var(--line); max-width: 760px; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* final */
.final { padding: 128px 0; }
.final .btn { margin-top: 36px; }
.final .num { margin-top: 14px; font-size: 14px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* guide pages */
.narrow { max-width: 780px; }
.doc { padding: 48px 0 96px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 680; letter-spacing: -.03em; line-height: 1.06; }
.doc .answer { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; margin: 24px 0 0; }
.doc .meta { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.doc .meta a { text-decoration: none; color: var(--accent); }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 650; max-width: none; margin: 56px 0 16px; letter-spacing: -.02em; line-height: 1.2; }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 0 0 16px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); }
.doc .muted, .muted { color: var(--muted); }
.doc .small { font-size: 14px; }
.doc .faq { margin: 8px 0 0; max-width: none; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 60px; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 "Geist Mono", monospace; background: var(--accent-soft); color: var(--accent); }
[dir="rtl"] .steps li { padding: 16px 60px 16px 18px; }
[dir="rtl"] .steps li::before { left: auto; right: 18px; }
.tbl { overflow-x: auto; margin: 32px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 13px; font-weight: 600; color: var(--muted); }
.cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 40px !important; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .15s; }
.cards a:hover { border-color: var(--accent); }
.cards b { display: block; font-size: 17px; margin-bottom: 6px; }
.cards span { color: var(--muted); font-size: 15px; }
.final h2 { margin: 0 auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; margin-bottom: 8px; }
[dir="rtl"] body, [lang="ar"] body { font-family: "IBM Plex Sans Arabic", Geist, sans-serif; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { text-align: right; }
[dir="rtl"] .eyebrow { font-family: inherit; letter-spacing: 0; font-size: 13.5px; }
