/* ============================================================
   Zad — Landing Page Stylesheet (zadwater.com root)
   Shares the brand tokens used by /policy/style.css so the
   landing page and the legal pages read as one site.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --brand:        #0099CC;
  --brand-dark:   #007AA3;
  --brand-deep:   #005E8E;
  --surface:      #1A1F24;
  --bg:           #F4F7FA;
  --white:        #FFFFFF;
  --text:         #1F2937;
  --text-muted:   #6B7280;
  --border:       #E5E9EF;
  --radius:       14px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 6px 24px rgba(0,94,142,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* The language switcher toggles [hidden]; make it beat display:flex/grid */
[hidden] { display: none !important; }

img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOP BAR ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.3px;
  text-decoration: none;
  color: var(--text);
}

.brand img { width: 34px; height: 34px; }
.brand .ar-mark { font-weight: 400; font-size: .95rem; color: var(--text-muted); }

.topnav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.topnav a {
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.topnav a:hover { color: var(--brand); background: #EAF7FD; }

.lang-toggle {
  flex-shrink: 0;
  padding: 7px 15px;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--brand);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.lang-toggle:hover { background: var(--brand); color: #fff; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 20px 96px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 46px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.hero-logo {
  width: 88px; height: 88px;
  margin-bottom: 18px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.5px;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.02rem;
  opacity: .9;
}

.hero-note {
  margin-top: 18px;
  font-size: .84rem;
  opacity: .78;
}

/* ── STORE BUTTONS ────────────────────────────────────────── */
.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px;
  min-width: 200px;
  background: #111417;
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  text-decoration: none;
  text-align: start;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s, background .15s;
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 8px 22px rgba(0,0,0,.26);
}

.store-btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }

.store-txt { display: flex; flex-direction: column; line-height: 1.25; }
.store-txt small { font-size: .68rem; opacity: .75; letter-spacing: .4px; }
.store-txt strong { font-size: 1.02rem; font-weight: 700; }

/* iOS button while the App Store listing is not live yet */
.store-btn.soon {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  opacity: .85;
}

.cta .store-btn.soon {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.16);
  color: var(--text);
}

.cta .store-btn.soon svg { fill: var(--text); }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.alt { background: var(--white); border-block: 1px solid var(--border); }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 34px;
  letter-spacing: -.4px;
}

.section-title.light { color: #fff; }

/* ── FEATURES ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.section.alt .feature { background: var(--bg); }

.feature:hover {
  transform: translateY(-3px);
  border-color: #BEE6F5;
  box-shadow: var(--shadow-md);
}

.f-icon { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }

.feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 5px; }
.feature p  { font-size: .9rem; color: var(--text-muted); }

/* ── STEPS ────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}

.step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.step p  { font-size: .9rem; color: var(--text-muted); }

/* ── SCREENSHOTS ──────────────────────────────────────────── */
.shots {
  background: var(--surface);
  padding: 56px 0 60px;
}

.shot-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.shot-row::-webkit-scrollbar { display: none; }

.shot-row img {
  width: 300px;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  padding: 56px 0 64px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.cta h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.4px; }
.cta p  { margin-top: 8px; color: var(--text-muted); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  color: #9CA3AF;
  padding: 34px 20px 40px;
  text-align: center;
  font-size: .84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--brand); }

.footer-contact { margin-bottom: 6px; }
.footer-contact a { color: var(--brand); text-decoration: none; }
.footer-copy { font-size: .78rem; opacity: .65; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
  .hero { padding: 44px 20px 76px; }
  .store-btn { min-width: 0; flex: 1 1 210px; justify-content: center; }
  .shot-row img { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature:hover, .store-btn:hover { transform: none; }
}
