/* The public website (landing, pricing, legal pages). Colours come from the brand (src/brand.js). */
:root { --brand: #3b4cca; --brand-hover: #2f3da6; --teal: #14a38b; --text: #16192b; --muted: #5f6678; --line: #e3e7ef; --bg: #ffffff; --soft: #f5f7fb; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.6 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 'Noto Sans Arabic', sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.nav .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.nav .links { margin-inline-start: auto; display: flex; gap: 20px; align-items: center; }
.nav .links a { color: var(--text); text-decoration: none; font-weight: 500; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: #fff; cursor: pointer; font-size: 15px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.hero { padding: 76px 0 56px; background: linear-gradient(180deg, var(--soft), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero small { display: block; margin-top: 12px; color: var(--muted); }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px rgba(20, 30, 70, .12); padding: 14px; }
.mock .row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; }
.mock .row + .row { border-top: 1px solid var(--line); }
.mock .av { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--brand); flex: none; }
.mock .nm { font-weight: 600; } .mock .tx { color: var(--muted); font-size: 14px; }
.mock .tag { margin-inline-start: auto; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #e9ecfb; color: var(--brand); white-space: nowrap; }
.mock .num { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
section.block { padding: 64px 0; }
section.block.soft { background: var(--soft); }
section.block h2 { font-size: 32px; margin: 0 0 10px; text-align: center; }
section.block p.sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 720px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.steps { counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; margin-inline-end: 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan .badge { position: absolute; top: -11px; inset-inline-end: 16px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.plan .price { font-size: 38px; font-weight: 700; margin: 6px 0 2px; }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { padding-inline-start: 20px; margin: 14px 0 20px; flex: 1; }
.plan li { margin: 5px 0; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 auto 26px; }
.toggle button { border: 0; background: #fff; padding: 9px 18px; font: inherit; cursor: pointer; }
.toggle button.on { background: var(--brand); color: #fff; }
.center { text-align: center; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.legal { max-width: 820px; padding: 40px 22px 70px; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal h2 { font-size: 21px; margin-top: 34px; }
.legal .draft { background: #fff7e0; border: 1px solid #f3d27a; color: #7a5a00; border-radius: 10px; padding: 12px 16px; margin: 16px 0 24px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
footer a { color: var(--muted); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } .grid3 { grid-template-columns: 1fr; }
  .nav .links a:not(.btn) { display: none; }
}
.nav .links a.btn.primary { color: #fff; }
/* Arabic pages (public/site/ar/): right-to-left, Arabic letters in a clear system font */
[dir=rtl] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
