:root {
  --green: #1d5541;
  --green-2: #2e7a58;
  --sage: #6e9c7b;
  --gold: #e3a63b;
  --cream: #f6f1e4;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --text: #17231d;
  --muted: #5b6b62;
  --line: #e2ebe5;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(29, 85, 65, 0.1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a15;
    --bg-soft: #14231c;
    --text: #e8f0eb;
    --muted: #a3b5ab;
    --line: #22362c;
    --card: #17271f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a15;
  --bg-soft: #14231c;
  --text: #e8f0eb;
  --muted: #a3b5ab;
  --line: #22362c;
  --card: #17271f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-2); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: var(--green); }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1b2a23; box-shadow: 0 8px 20px rgba(227, 166, 59, .35); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn svg { width: 22px; height: 22px; }
.soon { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.18); color: #fff; padding: 3px 8px; border-radius: 999px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(227,166,59,.25), transparent 60%),
              linear-gradient(135deg, #2a6b52 0%, var(--green) 55%, #143d2f 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("pattern.svg"); background-size: 140px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 72px 0 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin: 0 0 14px; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.88); margin: 0 0 10px; max-width: 34em; }
.hero p.tag { font-size: 16px; color: rgba(255,255,255,.75); margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 26px; padding-bottom: 60px; }
.hero .stats b { display: block; font-size: 24px; color: var(--gold); }
.hero .stats span { font-size: 13px; color: rgba(255,255,255,.75); }
.phones { position: relative; height: 560px; align-self: end; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; overflow: hidden;
  border: 8px solid #0d1f18; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: #0d1f18;
}
.phone img { border-radius: 26px; }
.phone.a { left: 8%; bottom: -40px; transform: rotate(-6deg); }
.phone.b { right: 4%; bottom: 10px; transform: rotate(5deg); z-index: 2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero .stats { padding-bottom: 8px; }
  .phones { height: 330px; }
  .phone { width: 180px; }
}

/* Sections */
section { padding: 84px 0; }
.soft { background: var(--bg-soft); }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; margin: 6px 0 12px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 70px; box-shadow: var(--shadow);
}
/* Faint mosque skyline in the corner of every card, like the app's home header. */
.feature::after {
  content: ""; position: absolute; right: -14px; bottom: -6px; width: 190px; height: 95px; z-index: -1;
  background: url("mosque.svg") no-repeat bottom right / contain; opacity: .09;
}
:root[data-theme="dark"] .feature::after { filter: brightness(2.2); opacity: .12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature::after { filter: brightness(2.2); opacity: .12; } }
/* Icon tile: the app's category tile, green with a gold icon and a pattern in the corner. */
.feature .ic {
  position: relative; overflow: hidden; width: 62px; height: 62px; border-radius: 18px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3f7f66 0%, var(--green) 55%, #143d2f 100%);
  box-shadow: 0 8px 18px rgba(29, 85, 65, .3);
}
.feature .ic::after {
  content: ""; position: absolute; right: -12px; bottom: -12px; width: 40px; height: 40px;
  background: url("pattern.svg") no-repeat center / contain; opacity: .18;
}
.feature .ic img { width: 34px; height: 34px; position: relative; z-index: 1; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Screenshot rail */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 24px; scroll-snap-type: x mandatory; }
.shot { flex: 0 0 220px; scroll-snap-align: start; }
.shot .frame { border-radius: 26px; overflow: hidden; border: 6px solid #0d1f18; background: #0d1f18; box-shadow: var(--shadow); }
.shot .frame img { border-radius: 20px; }
.shot p { text-align: center; font-weight: 600; margin: 10px 0 0; font-size: 15px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split ul { padding-left: 0; list-style: none; margin: 0; }
.split li { padding-left: 32px; position: relative; margin: 10px 0; color: var(--muted); }
.split li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(227,166,59,.2); color: var(--gold); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.split li b { color: var(--text); }
.duo { display: flex; gap: 16px; justify-content: center; }
.duo .frame { width: 200px; border-radius: 26px; overflow: hidden; border: 6px solid #0d1f18; box-shadow: var(--shadow); }
.duo .frame:nth-child(2) { margin-top: 40px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } .duo .frame { width: 44%; } }

/* Download */
.cta {
  background: linear-gradient(135deg, var(--green-2), var(--green)); color: #fff; border-radius: 28px;
  padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; padding: 32px 22px; } }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.legal .date { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal li { margin: 6px 0; }
.legal .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 18px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 44px; margin: 14px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ar { font-family: "Noto Naskh Arabic", serif; }
