/* ==========================================================================
   Moqem — Public site (landing, emergency, scam check, auth, legal)
   Font: Cairo. Reuses tokens & components from style.css.
   ========================================================================== */

body.site { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; font-size: 16px; background: var(--bg); }
body.site h1, body.site h2, body.site h3 { font-family: "Cairo", sans-serif; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.site-header .brand { padding: 0; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-header .spacer { flex: 1; }
@media (max-width: 820px) { .site-nav { display: none; } .site-header .hide-sm { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-start: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.hero-ask { display: flex; gap: 8px; background: var(--surface); padding: 8px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 580px; }
.hero-ask .input { border: 0; box-shadow: none !important; font-family: inherit; font-size: 1rem; }
.hero-ask .btn { font-family: inherit; }
.hero .chips { margin-top: 14px; }
.hero .chip { font-family: inherit; }

.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(15, 91, 82, .25);
  max-width: 360px; margin-inline-start: auto; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .88rem;
}
.phone .p-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.phone .p-alert { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.phone .p-alert b { display: block; color: var(--ink); }
.phone .p-msg { background: var(--primary); color: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin: 12px 0 8px; width: 82%; }
.phone .p-bot { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 4px 14px; padding: 12px; }
.phone .p-bot .p-step { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: var(--ink-2); }
.phone .p-bot .p-step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.phone .p-bot .p-step.d i { background: var(--primary); border-color: var(--primary); }
.phone .p-cta { display: flex; gap: 6px; margin-top: 10px; }
.phone .p-cta span { flex: 1; text-align: center; border-radius: 9px; padding: 6px; font-weight: 700; font-size: .8rem; }
.phone .p-cta .a { background: var(--primary); color: #fff; }
.phone .p-cta .b { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .phone { margin: 0 auto; } .hero { padding-top: 40px; } }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: how; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.how-step::before { counter-increment: how; content: counter(how); position: absolute; top: 18px; inset-inline-end: 20px; font-size: 2.4rem; font-weight: 800; color: var(--primary-soft); line-height: 1; }
.how-step .ic-lg { color: var(--primary); margin-bottom: 8px; }
.how-step h3 { font-size: 1.05rem; }
.how-step p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; } }

.bridge { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bridge-card { border-radius: 20px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.bridge-card.eg { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.bridge-card.sa { background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.bridge-card h3 { font-size: 1.25rem; font-weight: 800; }
.bridge-card ul { margin: 12px 0 0; padding-inline-start: 20px; color: var(--ink-2); }
.bridge-card li { margin-bottom: 6px; }
@media (max-width: 800px) { .bridge { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.principle .ic-lg { color: var(--primary); }
.principle h3 { margin-top: 8px; }
.principle p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

.cta-band { background: var(--primary); color: #fff; border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.8); margin: 6px 0 0; }
.cta-band .btn { background: #fff; color: var(--primary); font-family: inherit; }

.site-main { min-height: 60vh; }
.page { padding: 36px 0 60px; }
.page .content-narrow { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.disclaimer { max-width: 620px; font-size: .82rem; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 720px; }
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: .92rem; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: .9rem; background: var(--surface); height: 100%; }
.choice label .ic { color: var(--muted); width: 24px; height: 24px; }
.choice input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice input:checked + label .ic { color: var(--primary); }
.choice input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.onb-step { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 18px 0 10px; }
.onb-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* Emergency */
.sos-hero { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 20px; padding: 22px; margin-bottom: 22px; }
.sos-hero h1 { color: var(--danger); }
.hotlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.hotline { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink); }
.hotline:hover { text-decoration: none; border-color: var(--danger); }
.hotline .n { font-size: 1.6rem; font-weight: 800; color: var(--danger); direction: ltr; text-align: right; line-height: 1.3; }
.hotline .l { font-size: .85rem; font-weight: 600; }
.hotline .note { font-size: .74rem; color: var(--muted); }
.guide { scroll-margin-top: 90px; }
.guide h3 { display: flex; align-items: center; gap: 8px; }
.guide .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide .col h4 { font-size: .85rem; margin-bottom: 6px; }
.guide .col.now h4 { color: var(--danger); }
.guide .col.avoid h4 { color: var(--warn); }
.guide .col.later h4 { color: var(--primary); }
.guide ul { margin: 0; padding-inline-start: 18px; font-size: .93rem; }
@media (max-width: 800px) { .guide .cols { grid-template-columns: 1fr; } }

.risk-meter { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; margin-bottom: 14px; }
.risk-high { background: var(--danger-soft); color: var(--danger); }
.risk-medium { background: var(--warn-soft); color: var(--warn); }
.risk-low { background: var(--ok-soft); color: var(--ok); }
.risk-meter strong { font-size: 1.15rem; }
