/* Components — Mobile-first UI */
.header{
  position: sticky; top:0; z-index: 60;
  background: rgba(248,250,252,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.75);
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  display:flex; align-items:center; gap: 10px;
  font-weight: 900;
}
.logo{
  width: 34px; height: 34px; border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, var(--softTeal), var(--softBlue));
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
}

/* Desktop nav is hidden on mobile; drawer used instead */
.nav{ display:none; gap: 10px; flex-wrap:wrap; align-items:center; font-weight: 800; }
.nav a{ padding: 8px 10px; border-radius: 12px; }
.nav a:hover{ background:#fff; border:1px solid var(--line); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  font-weight: 900;
}
.btn.primary{
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color:#fff;
  border: none;
}
.btn.ghost{ background: transparent; box-shadow:none; border-color: transparent; }

.cta-row{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.cta-row .btn{ width:100%; }

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(14,165,169,.10);
  border: 1px solid rgba(14,165,169,.18);
  font-weight: 900;
  margin-bottom: 14px;
}

.hero-grid{ display:grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.hero-lead{ font-size: 1rem; }
.disclaimer{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(100,116,139,.35);
  color: var(--muted);
  font-size: .95rem;
}

.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 16px;
}

.media, .hero-media, .wide{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.wide{ margin-top: 16px; }

.grid-3{ display:grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.split{ display:grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }

/* Trust strip */
.trust-strip{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trust-chip{
  display:flex; gap: 10px; align-items:flex-start;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: var(--shadow2);
}
.trust-chip svg{ width: 18px; height: 18px; color: var(--teal); flex: 0 0 auto; margin-top: 2px; }

/* Screens */
.screens{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}
.screen{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  padding: 14px;
  text-align:center;
}
.screen img{ border-radius: 18px; }
.screen figcaption{ color: var(--muted); font-weight: 800; }

.footer{
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Mobile menu */
.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
}
.menu-btn span{
  width: 18px; height: 2px; background: var(--ink);
  position: relative; display:block; border-radius: 2px;
}
.menu-btn span::before, .menu-btn span::after{
  content:"";
  position:absolute; left:0;
  width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px;
}
.menu-btn span::before{ top:-6px; }
.menu-btn span::after{ top:6px; }

.drawer-overlay{
  position: fixed; inset: 0;
  background: rgba(2,8,23,.45);
  display:none;
  z-index: 80;
}
.drawer{
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background:#fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 90;
  transform: translateX(110%);
  transition: transform .22s ease;
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
html[dir="rtl"] .drawer{
  right: 0;
  border-left: none;
  border-right: 1px solid var(--line);
  transform: translateX(-110%);
}
.drawer a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.drawer a:hover{ background: var(--bg); }
.drawer .drawer-top{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.drawer .close{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  font-weight: 900;
}

.drawer-open .drawer-overlay{ display:block; }
html[dir="ltr"].drawer-open .drawer{ transform: translateX(0); right:0; }
html[dir="rtl"].drawer-open .drawer{ transform: translateX(0); right:0; }

.drawer-open body{ overflow:hidden; }

/* Sticky CTA (mobile) */
.sticky-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 0;
  z-index: 75;
}
.sticky-cta .bar{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
}
.sticky-cta .bar .btn{ flex: 1 1 auto; justify-content:center; }

body{ padding-bottom: 72px; }
@media (min-width: 1024px){
  body{ padding-bottom: 0; }
  .sticky-cta{ display:none; }
}

/* Segmentation cards */
.paths{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.path-card{
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow2);
  padding: 16px;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,169,.22);
  background: rgba(14,165,169,.10);
  font-weight: 900;
}

/* Social proof */
.testimonials{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.quote{
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:#fff;
  box-shadow: var(--shadow2);
  padding: 16px;
}
.quote .by{ color: var(--muted); font-weight: 800; margin-top: 8px; }
.logo-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.logo-box{
  width: 92px;
  height: 40px;
  border-radius: 12px;
  border: 1px dashed rgba(100,116,139,.40);
  background: rgba(248,250,252,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-weight: 900;
  font-size: .85rem;
}

/* Email capture */
.form{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  font-size: 1rem;
}
.helper{ color: var(--muted); font-size: .92rem; }

/* Modal */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,.55);
  z-index: 95;
  display:none;
}
.modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(92vw, 520px);
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 16px;
  display:none;
}
.modal .top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.modal .close{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  font-weight: 900;
}
body.modal-open{ overflow:hidden; }

/* === Refinement pass: spacing, typography, hierarchy === */

/* Typography */
body {
  font-family: "Noto Kufi Arabic","Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height: 1.75;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; }
.small { font-size: .9rem; }

/* Vertical rhythm */
.section { padding: 64px 0; }
.section.white { padding: 72px 0; }
.hero { padding: 72px 0 64px; }

/* Visual hierarchy helpers */
.kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand, #0ea5a9);
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Card spacing */
.card, .path-card, .quote {
  padding: 18px;
}

/* CTA emphasis */
.cta-row {
  margin-top: 20px;
  gap: 12px;
}
.btn.primary {
  font-size: 1rem;
  padding: 14px 18px;
}

/* Safety net: language overlays never block UI */
.language-panel,
.lang-drawer,
.menu-panel {
  display: none !important;
  pointer-events: none !important;
}

/* === Disable mobile drawer + show inline nav (launch-safe) === */
.nav{ display:flex !important; gap:10px; flex-wrap:wrap; align-items:center; }
.menu-btn{ display:none !important; }
.drawer, .drawer-overlay{ display:none !important; pointer-events:none !important; }
@media (max-width: 820px){
  .header-inner{ gap: 12px; }
  .nav a{ padding: 10px 10px; }
  .nav .btn.ghost{ padding: 10px 12px; }
}

/* Safety: avoid text-in-image issues */
.figure figcaption,
.image-caption,
.overlay-text {
  display: none !important;
}

/* Mobile header compact fix */
@media (max-width: 768px) {
  header, .site-header {
    padding: 6px 0 !important;
  }
  .header-inner {
    min-height: auto !important;
  }
}
