:root {
  --emerald: #1e8a5f;
  --emerald-dark: #11563a;
  --emerald-soft: #2fa574;
  --gold: #c2922f;
  --bg: #f5f8f5;
  --surface: #ffffff;
  --ink: #171c22;
  --ink-soft: #667079;
  --mist: #e6ebe7;
  --radius: 20px;
  --max: 1120px;
  --shadow: 0 20px 60px rgba(17, 86, 58, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { opacity: .85; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 248, 245, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--mist);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(30,138,95,.14), transparent 60%),
    radial-gradient(700px 380px at 100% 20%, rgba(194,146,47,.10), transparent 55%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(30,138,95,.12); color: var(--emerald-dark); font-weight: 700; font-size: 13px; padding: 8px 15px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 22px 0 16px; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }

/* ---------- Store buttons ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px;
  position: relative; transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,28,34,.22); opacity: 1; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .txt small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-btn .txt b { font-size: 17px; font-weight: 600; }
.store-btn .soon {
  position: absolute; top: -9px; right: -8px; background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px;
}

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 616px;
  background: #0d1512; border-radius: 46px; padding: 12px;
  box-shadow: 0 30px 80px rgba(17,86,58,.28), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone::before { /* notch */
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 128px; height: 26px; background: #0d1512; border-radius: 0 0 16px 16px; z-index: 5;
}
.screen-area {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden; background: var(--bg);
}
.screen {
  position: absolute; inset: 0; padding: 44px 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; animation: screenCycle 12s infinite;
}
.screen:nth-child(1) { animation-delay: 0s; }
.screen:nth-child(2) { animation-delay: 4s; }
.screen:nth-child(3) { animation-delay: 8s; }
@keyframes screenCycle {
  0%   { opacity: 0; transform: translateY(14px) scale(.98); }
  4%   { opacity: 1; transform: translateY(0) scale(1); }
  30%  { opacity: 1; transform: translateY(0) scale(1); }
  34%  { opacity: 0; transform: translateY(-14px) scale(.98); }
  100% { opacity: 0; }
}
.s-title { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.s-h { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.s-next {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff; border-radius: 16px; padding: 16px;
}
.s-next .lbl { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .6px; }
.s-next .row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.s-next .row b { font-size: 26px; font-weight: 800; }
.s-next .cd { font-size: 12px; opacity: .9; }
.s-chips { display: flex; gap: 6px; }
.s-chip { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--mist); border-radius: 11px; padding: 8px 2px; font-size: 10px; color: var(--ink-soft); }
.s-chip.on { background: rgba(30,138,95,.12); color: var(--emerald-dark); border-color: transparent; font-weight: 700; }
.s-chip b { display: block; font-size: 12px; color: var(--ink); margin-top: 2px; }
.s-card { background: var(--surface); border: 1px solid var(--mist); border-radius: 14px; padding: 14px; }
.s-rings { display: flex; gap: 14px; align-items: center; }
.ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--emerald-dark);
  background: conic-gradient(var(--emerald) var(--p,70%), #e5ece7 0); }
.ring span { width: 34px; height: 34px; background: var(--surface); border-radius: 50%; display: grid; place-items: center; }
.s-ayah { direction: rtl; font-size: 24px; line-height: 2; text-align: center; color: var(--ink); font-family: "Geeza Pro", "Amiri", serif; }
.s-tr { font-size: 12px; color: var(--ink-soft); text-align: center; }
.s-audio { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--mist); border-radius: 12px; padding: 10px 12px; }
.s-audio .play { width: 30px; height: 30px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; font-size: 12px; }
.s-bar { flex: 1; height: 4px; background: #e5ece7; border-radius: 4px; position: relative; }
.s-bar::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 40%; background: var(--emerald); border-radius: 4px; }
.s-streak { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--gold), #a87a22); color: #fff; border-radius: 16px; padding: 16px; }
.s-streak .big { font-size: 26px; font-weight: 800; }
.s-week { display: flex; gap: 6px; justify-content: space-between; }
.s-day { flex: 1; aspect-ratio: 1; border-radius: 8px; background: #e5ece7; }
.s-day.f { background: var(--emerald); }
.s-hrow { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--mist); border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.s-check { width: 22px; height: 22px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* ---------- Sections ---------- */
section { padding: 66px 0; }
.section-title { text-align: center; font-size: clamp(27px, 4vw, 37px); letter-spacing: -.02em; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 600px; margin: 0 auto 46px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius); padding: 28px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(30,138,95,.12); display: grid; place-items: center; margin-bottom: 16px; font-size: 26px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.band-wrap { padding: 20px 0 76px; }
.band { background: linear-gradient(135deg, var(--emerald), var(--emerald-dark)); color: #fff; border-radius: 28px; padding: 60px 34px; text-align: center; box-shadow: var(--shadow); }
.band h2 { font-size: clamp(25px, 4vw, 35px); margin-bottom: 14px; }
.band p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto 26px; font-size: 17px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--mist); padding: 38px 0; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
footer .foot-links { display: flex; gap: 22px; }
footer .foot-links a { color: var(--ink-soft); font-weight: 600; }

/* ---------- Doc / support pages ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 52px 22px 84px; }
.doc h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc p, .doc li { color: #2c333b; }
.doc ul { margin: 10px 0 10px 22px; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--mist); padding: 8px 12px; text-align: left; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.support-card { background: var(--surface); border: 1px solid var(--mist); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); margin-top: 20px; }
.support-card .ico { font-size: 40px; }
.support-card .email { display: inline-block; margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--emerald-dark); background: rgba(30,138,95,.1); padding: 12px 22px; border-radius: 14px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .pill { }
  .phone-wrap { margin-top: 20px; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  section { padding: 50px 0; }
}
