/* =====================================================================
   Masroofi — landing page and privacy page styles.
   Same colours and font as the app. Logical properties = works in RTL & LTR.
   ===================================================================== */

:root {
  --bg: #f3f4f0;
  --card: #ffffff;
  --ink: #17201c;
  --muted: #5f6b66;
  --line: #e3e6e1;
  --accent: #0e5e46;
  --accent-dark: #0e3b2e;
  --accent-soft: #dde8e2;
  --mint: #7fd4ae;
  --on-dark-muted: #bfd8cc;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 244, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav .link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav .link:hover { background: var(--card); }
.nav .hide-sm { display: none; }

@media (min-width: 760px) {
  .nav .hide-sm { display: inline-block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 56px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
  margin-top: 18px;
  max-width: 540px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero .facts span::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  margin-inline-end: 6px;
}

/* Phone mockup (pure HTML/CSS) */
.phone {
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  background: #10201a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(14, 59, 46, 0.25);
}

.screen {
  background: var(--bg);
  border-radius: 34px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.screen .hello { font-weight: 700; font-size: 17px; }
.screen .muted { color: var(--muted); font-size: 12px; }

.mini-hero {
  background: var(--accent-dark);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-hero .label { color: var(--on-dark-muted); font-size: 12px; }
.mini-hero .big { font-size: 26px; font-weight: 700; direction: ltr; text-align: start; }
.mini-hero .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.mini-hero .bar span { display: block; height: 100%; width: 43%; background: var(--mint); }

.mini-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-row .ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-row .t { flex: 1; font-weight: 600; }
.mini-row .a { font-weight: 600; direction: ltr; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section.white { background: #fff; }

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

.features {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature {
  background: var(--bg);
  border-radius: 20px;
  padding: 22px;
}

.section:not(.white) .feature { background: #fff; }

.feature .ic {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin-top: 6px; }

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.step {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin-top: 6px; }

.install {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) { .install { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.install .box {
  background: var(--bg);
  border-radius: 20px;
  padding: 22px;
}

.install ol {
  margin: 10px 0 0;
  padding-inline-start: 20px;
  color: var(--muted);
}

.install li { margin-top: 4px; }

.cta {
  background: var(--accent-dark);
  color: #fff;
  border-radius: 28px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta h2 { font-size: clamp(26px, 4vw, 34px); }
.cta p { color: var(--on-dark-muted); max-width: 520px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------- Privacy page ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.doc article {
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px;
}

.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: #2c3632; }
.doc ul { padding-inline-start: 22px; }
.doc .updated { color: var(--muted); font-size: 14px; }
