:root {
  --bg: #FBFAF8;
  --surface: #F5F3F0;
  --card: #FFFFFF;
  --hero: #4A4443;
  --hero-deep: #383230;
  --accent: #F4A47E;
  --accent-ink: #C46B45;
  --text: #352B26;
  --muted: rgba(53, 43, 38, 0.68);
  --faint: rgba(53, 43, 38, 0.52);
  --border: rgba(53, 43, 38, 0.08);
  --cream: #FFFBF7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1614;
    --surface: #221D1B;
    --card: #2B2624;
    --hero: #3B3533;
    --hero-deep: #2B2624;
    --accent-ink: #F4A47E;
    --text: #F2EAE5;
    --muted: rgba(242, 234, 229, 0.7);
    --faint: rgba(242, 234, 229, 0.5);
    --border: rgba(242, 234, 229, 0.09);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

/* Bilingual pages: only the active language shows. */
html[lang='ar'] [data-l='en'],
html[lang='en'] [data-l='ar'] { display: none !important; }

a { color: var(--accent-ink); }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { font-family: 'Amiri', serif; font-size: 24px; }
.lang {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.hero {
  background: radial-gradient(120% 90% at 50% 0%, #615857 0%, var(--hero) 45%, var(--hero-deep) 100%);
  color: var(--cream);
  border-radius: 32px;
  padding: 64px 24px 56px;
  text-align: center;
}
.hero img { width: 128px; height: 128px; border-radius: 30px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.hero h1 { font-family: 'Amiri', serif; font-size: clamp(48px, 9vw, 76px); line-height: 1.4; margin: 18px 0 0; font-weight: 700; }
.hero p { font-size: clamp(16px, 2.4vw, 19px); color: rgba(255, 251, 247, 0.78); max-width: 560px; margin: 8px auto 0; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
  padding: 10px 22px;
  border-radius: 16px;
  background: var(--cream);
  color: #2B2624;
  text-decoration: none;
  line-height: 1.35;
}
.store small { font-size: 12px; opacity: 0.65; }
.store strong { font-size: 17px; }
.store[aria-disabled='true'] { opacity: 0.85; cursor: default; }

section { padding: 56px 0 8px; }
section > h2 { font-family: 'Amiri', serif; font-size: clamp(30px, 5vw, 40px); text-align: center; margin: 0 0 6px; }
section > p.lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}
.card .dot {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 20px;
}
.card h3 { margin: 12px 0 4px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.promise { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.promise div {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 600;
}
.promise div span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Privacy page */
.doc { max-width: 720px; margin: 24px auto 0; }
.doc h1 { font-family: 'Amiri', serif; font-size: clamp(34px, 6vw, 46px); margin: 0; }
.doc .date { color: var(--faint); margin-top: 0; }
.doc h2 { font-size: 19px; margin: 30px 0 4px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-inline-start: 22px; }
.doc .box { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 6px 24px 18px; }
