@font-face { font-family: Inter; src: url(fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7fafd;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --text: #0f1f33;
  --muted: #4d5f75;
  --line: #dbe5ef;
  --brand: #0b6bcb;
  --brand-strong: #08529c;
  --brand-soft: #e3effb;
  --accent: #19a7ce;
  --wa: #1f9d55;
  --wa-strong: #17803f;
  --shadow: 0 1px 2px rgb(15 31 51 / .06), 0 8px 24px rgb(15 31 51 / .06);
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1420; --surface: #111d2c; --surface-2: #16263a; --text: #e6eef7; --muted: #9db0c6;
    --line: #22364d; --brand: #5aa9f0; --brand-strong: #86c1f5; --brand-soft: #15304d; --accent: #4cc6e6;
    --wa: #2bb36a; --wa-strong: #3fcb7e; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1420; --surface: #111d2c; --surface-2: #16263a; --text: #e6eef7; --muted: #9db0c6;
  --line: #22364d; --brand: #5aa9f0; --brand-strong: #86c1f5; --brand-soft: #15304d; --accent: #4cc6e6;
  --wa: #2bb36a; --wa-strong: #3fcb7e; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.08rem; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: inline-grid; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-strong); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 44px 0 28px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 36px; } }
.hero h1 { max-width: 16em; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 8px 14px;
  font-size: .9rem; font-weight: 600; color: var(--brand-strong);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: 999px;
}
.hero-note svg { width: 16px; height: 16px; flex: none; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: 12px; }
.card .result { color: var(--text); font-weight: 600; font-size: .95rem; }
.card ul { color: var(--muted); margin: 10px 0 0; padding-left: 1.1em; }
.card li { margin: 4px 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.card-icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 72px; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
:root[data-theme="dark"] .steps li::before { color: #0b1420; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #0b1420; } }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Areas */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.muted { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* About / licence */
.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.licence { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: .95rem; }
.licence dt { color: var(--muted); }
.licence dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ar { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", sans-serif; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; border-radius: 20px; padding: 40px 28px; display: grid; gap: 18px; align-items: center; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; opacity: .92; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px; } }
:root[data-theme="dark"] .cta-band { color: #071423; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { color: #071423; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; font-size: .9rem; color: var(--muted); margin-top: 64px; }
.footer-grid { display: grid; gap: 26px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: .95rem; color: var(--text); margin-bottom: 10px; }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-base.solo { border-top: 0; margin-top: 0; padding-top: 0; }

/* Floating WhatsApp button (phones) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / .25);
}
.wa-float:hover { background: var(--wa-strong); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Legal pages */
.legal { padding: 48px 0 0; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin: 6px 0; }
.legal .reviewed { font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.hero + section { padding-top: 48px; }
