:root {

  --emerald: #14684A;
  --emerald-dark: #0C3D2C;
  --emerald-light: #2E9B75;
  --gold: #B98F33;
  --gold-light: #DCC079;

  --surface: #FAF7F0;
  --surface-elevated: #FFFFFF;
  --surface-tint: #F3EEE2;
  --ink: #1A1A17;
  --ink-muted: #5F5F57;

  --paper: #FBF8F1;
  --paper-2: #FFFFFF;
  --paper-ink: #20201B;
  --paper-muted: #6B6B61;
  --paper-line: rgba(107, 107, 97, 0.16);

  --primary: var(--emerald);
  --accent: var(--gold);
  --border: rgba(95, 95, 87, 0.20);
  --border-soft: rgba(95, 95, 87, 0.12);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;

  --section-y: clamp(64px, 8.5vw, 112px);
  --pad: clamp(20px, 4vw, 40px);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 34px;
  --measure: 64ch;

  --shadow-sm: 0 1px 2px rgba(12, 61, 44, 0.06), 0 2px 8px rgba(12, 61, 44, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 61, 44, 0.10), 0 2px 8px rgba(12, 61, 44, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(12, 61, 44, 0.35), 0 12px 24px -12px rgba(12, 61, 44, 0.20);

  --z-sticky: 100;
  --z-header: 200;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0E1512;
    --surface-elevated: #15201B;
    --surface-tint: #101a15;
    --ink: #ECE7DA;
    --ink-muted: #A7ADA3;

    --primary: #4FB48C;
    --accent: var(--gold-light);
    --border: rgba(167, 173, 163, 0.20);
    --border-soft: rgba(167, 173, 163, 0.12);

    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, 0.70);
  }
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/Amiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/Amiri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Amiri", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

a {
  color: var(--primary);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3 { font-size: clamp(20px, 2.6vw, 25px); line-height: 1.35; }
h4 { font-size: 18px; line-height: 1.4; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-muted); line-height: 1.75; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.narrow { max-width: 780px; }

.home > section { padding-block: var(--section-y); }

.band-base { background: var(--surface); }
.band-tint { background: var(--surface-tint); }
.band-emerald {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(185, 143, 51, 0.16), transparent 55%),
    linear-gradient(160deg, var(--emerald-dark), #0a3325 70%);
  color: #F1ECDD;
}
.band-emerald h2, .band-emerald h3 { color: #FFFFFF; }
.band-emerald .lead { color: rgba(241, 236, 221, 0.82); }

.sec-head { max-width: 760px; margin-bottom: clamp(var(--s-6), 5vw, var(--s-8)); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-bottom: var(--s-4); }
.sec-head .lead { margin: 0; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  z-index: var(--z-header);
}
.skip-link:focus { inset-inline-start: 0; }

.rule {
  height: 2px;
  border: 0;
  margin: var(--s-6) auto;
  max-width: 200px;
  background: linear-gradient(to left, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
}

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-block: var(--s-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--primary); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

.nav {
  display: flex;
  gap: clamp(var(--s-3), 2.4vw, var(--s-5));
  font-size: 15.5px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a { text-decoration: none; color: var(--ink-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav .nav-cta {
  color: #fff;
  background: var(--emerald);
  padding: var(--s-2) var(--s-4);
  border-radius: 999px;
}
.nav .nav-cta:hover { color: #fff; background: var(--emerald-dark); }
@media (prefers-color-scheme: dark) {
  .nav .nav-cta { background: var(--emerald); color: #051810; }
  .nav .nav-cta:hover { background: var(--emerald-light); }
}

.hero {
  position: relative;
  overflow: hidden;
  color: #F1ECDD;
  background:
    radial-gradient(130% 90% at 78% -8%, rgba(220, 192, 121, 0.20), transparent 52%),
    radial-gradient(120% 120% at 10% 110%, rgba(46, 155, 117, 0.28), transparent 55%),
    linear-gradient(155deg, #0d4432, var(--emerald-dark) 72%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 76% 40%, rgba(220, 192, 121, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(var(--s-6), 5vw, 64px);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy { max-width: 34ch; }
.hero h1 { color: #fff; margin-bottom: var(--s-4); }
.hero .app-name { color: var(--gold-light); }
.hero .tagline {
  font-size: clamp(18px, 2.4vw, 23px);
  color: #F1ECDD;
  margin-bottom: var(--s-3);
  line-height: 1.55;
}
.hero .sub {
  color: rgba(241, 236, 221, 0.78);
  font-size: 16.5px;
  margin-bottom: var(--s-6);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-6);
  list-style: none;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  color: rgba(241, 236, 221, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 192, 121, 0.28);
  padding: 5px var(--s-3);
  border-radius: 999px;
}
.hero-trust svg { width: 15px; height: 15px; color: var(--gold-light); flex: none; }

.hero-visual { justify-self: center; position: relative; }

.stores { display: flex; 
/*flex-wrap: wrap;*/
gap: var(--s-3); }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  border-radius: 14px;
  padding: var(--s-3) var(--s-5);
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-btn .fa-brands { font-size: 22px; }
.store-btn small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.2; }
.store-btn b { font-weight: 700; }
.store-btn span { text-align: start; }
.store-primary { background: var(--gold); color: #241a06; box-shadow: var(--shadow-md); }
.store-primary:hover { color: #241a06; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.store-secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.stores-light .store-secondary { color: var(--ink); border-color: var(--border); background: var(--surface-elevated); }
.stores-light .store-secondary:hover { color: var(--ink); border-color: var(--primary); }

.showcase { display: flex; flex-direction: column; gap: clamp(var(--s-8), 9vw, 104px); }
.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(var(--s-6), 5vw, 72px);
}
.show-row:nth-child(even) .show-visual { order: 2; }
.show-text { max-width: 46ch; }
.show-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.show-eyebrow svg { width: 20px; height: 20px; }
.show-text h3 { margin-bottom: var(--s-3); }
.show-text p { color: var(--ink-muted); margin-bottom: var(--s-4); }
.show-visual { display: flex; justify-content: center; }

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 15.5px;
  color: var(--ink);
}
.benefit-list svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 4px; }

.device {
  --dw: 268px;
  width: var(--dw);
  max-width: 78vw;
  aspect-ratio: 9 / 19;
  background: linear-gradient(150deg, #14231c, #05130d);
  border-radius: 40px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(220, 192, 121, 0.18);
  position: relative;
}
.device::after {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  top: 128px;
  width: 3px;
  height: 46px;
  border-radius: 3px;
  background: rgba(220, 192, 121, 0.4);
}
.screen {
  height: 100%;
  border-radius: 32px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--paper-ink);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

.shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
}
.tile-shot {
  height: auto;
  max-width: 210px;
  margin-inline: auto;
  border-radius: 22px;
  border: 6px solid #14231c;
  box-shadow: var(--shadow-md);
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--paper-ink);
  flex: none;
}
.statusbar .dots { display: inline-flex; gap: 3px; align-items: center; }
.statusbar .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.statusbar .batt { width: 18px; height: 9px; border: 1.4px solid currentColor; border-radius: 2px; opacity: 0.7; position: relative; }
.statusbar .batt::after { content: ""; position: absolute; inset: 1.4px; width: 60%; background: currentColor; border-radius: 1px; }

.app-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 10px;
  flex: none;
}
.app-bar .title { font-weight: 700; font-size: 14px; }
.app-bar .spacer { flex: 1; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 104, 74, 0.10);
  color: var(--emerald);
  border: 1px solid rgba(20, 104, 74, 0.18);
}
.pill svg { width: 12px; height: 12px; }
.pill.gold { background: rgba(185, 143, 51, 0.14); color: #8a6a1f; border-color: rgba(185, 143, 51, 0.3); }

.screen-body { flex: 1; overflow: hidden; padding: 4px 14px 14px; }

.mushaf-page {
  height: 100%;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background:
    linear-gradient(#fffdf7, #fbf6ea);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mushaf-page::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(185, 143, 51, 0.5);
  border-radius: 10px;
  pointer-events: none;
}
.surah-band {
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 5px 8px;
  background: linear-gradient(#f6ecd2, #efe0be);
  position: relative;
  z-index: 1;
}
.surah-band .name { font-weight: 700; font-size: 14px; color: #6b4e12; }
.surah-band .meta { font-size: 9.5px; color: #8a6a1f; }
.basmala { text-align: center; font-size: 15px; color: #4a3a12; position: relative; z-index: 1; margin: 2px 0; }
.ayah-lines { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px; flex: 1; }
.ayah-lines .ln { height: 6px; border-radius: 4px; background: rgba(74, 58, 18, 0.20); }
.ayah-lines .ln.hl { background: rgba(20, 104, 74, 0.28); box-shadow: 0 0 0 4px rgba(20, 104, 74, 0.08); }
.ayah-lines .ln.w1 { width: 100%; } .ayah-lines .ln.w2 { width: 86%; } .ayah-lines .ln.w3 { width: 94%; }
.ayah-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; font-size: 8px; color: #8a6a1f;
  background: radial-gradient(circle, #f6ecd2, #e6d4a6);
  border: 1px solid var(--gold); border-radius: 50%;
  vertical-align: middle;
}
.audio-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--emerald); color: #eafff6;
  border-radius: 10px; padding: 7px 10px; font-size: 11px;
  position: relative; z-index: 1;
}
.audio-bar .play { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; flex: none; }
.audio-bar .play svg { width: 11px; height: 11px; color: #fff; }
.audio-bar .track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.25); position: relative; }
.audio-bar .track::after { content:""; position:absolute; inset-block:0; inset-inline-start:0; width: 42%; background: var(--gold-light); border-radius: 3px; }

.rowlist { display: flex; flex-direction: column; gap: 7px; }
.rowitem {
  display: flex; align-items: center; gap: 9px;
  background: var(--paper-2); border: 1px solid var(--paper-line);
  border-radius: 11px; padding: 8px 10px;
}
.rowitem.sel { border-color: var(--emerald); background: rgba(20, 104, 74, 0.06); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  color: #fff; background: linear-gradient(150deg, var(--emerald-light), var(--emerald));
}
.rowitem .rtitle { font-weight: 700; font-size: 12.5px; }
.rowitem .rsub { font-size: 10px; color: var(--paper-muted); }
.rowitem .grow { flex: 1; }
.check { width: 18px; height: 18px; color: var(--emerald); flex: none; }
.searchbar {
  display: flex; align-items: center; gap: 7px;
  background: var(--paper-2); border: 1px solid var(--paper-line);
  border-radius: 999px; padding: 7px 12px; margin-bottom: 9px; font-size: 11.5px;
  color: var(--paper-muted);
}
.searchbar svg { width: 13px; height: 13px; flex: none; }

.next-card {
  background: linear-gradient(150deg, var(--emerald), var(--emerald-dark));
  color: #eafff6; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(12,61,44,0.22);
}
.next-card .lbl { font-size: 11px; opacity: 0.85; }
.next-card .nm { font-weight: 700; font-size: 17px; }
.next-card .cd { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; color: var(--gold-light); direction: ltr; }
.pray-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px solid var(--paper-line); font-size: 12.5px;
}
.pray-row:last-child { border-bottom: 0; }
.pray-row .pname { font-weight: 700; flex: 1; }
.pray-row .ptime { direction: ltr; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.pray-row.now { background: rgba(20,104,74,0.08); border-radius: 9px; border-bottom-color: transparent; padding-inline: 8px; }
.pray-row .bell { width: 15px; height: 15px; color: var(--paper-muted); }
.pray-row.on .bell { color: var(--gold); }
.badge-now { font-size: 9px; font-weight: 700; color: var(--emerald); background: rgba(20,104,74,0.12); padding: 2px 6px; border-radius: 999px; }

.ring-wrap { display: grid; place-items: center; margin: 6px 0 10px; }
.ring-wrap .rtext { position: absolute; text-align: center; }
.ring-wrap .rbig { font-size: 26px; font-weight: 700; color: var(--emerald); line-height: 1; }
.ring-wrap .rlbl { font-size: 10px; color: var(--paper-muted); }
.mini-cards { display: flex; gap: 8px; }
.mini-card { flex: 1; background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 11px; padding: 8px; text-align: center; }
.mini-card .mv { font-weight: 700; font-size: 15px; color: var(--emerald); }
.mini-card .ml { font-size: 9.5px; color: var(--paper-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--paper-line); color: var(--paper-muted); background: var(--paper-2);
}
.chip.active { background: var(--emerald); color: #fff; border-color: var(--emerald); font-weight: 700; }
.btn-ghost {
  display: block; text-align: center; margin-top: 10px;
  background: var(--emerald); color: #fff; border-radius: 10px; padding: 9px; font-size: 12px; font-weight: 700;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
}
.tile {
  grid-column: span 3;
  background: var(--surface-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
.tile.span2 { grid-column: span 2; }
.tile.span4 { grid-column: span 4; }
.tile.span6 { grid-column: span 6; }
.tile-head { display: flex; align-items: center; gap: var(--s-3); }
.tile-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(20,104,74,0.14), rgba(20,104,74,0.06));
  color: var(--primary);
}
.tile-ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 20px; }
.tile p { color: var(--ink-muted); font-size: 15px; margin: 0; }
.tile-visual { margin-top: auto; }

.panel {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r);
  padding: var(--s-4);
  color: var(--paper-ink);
  box-shadow: var(--shadow-sm);
}

.tasbeeh-mini { display: flex; align-items: center; gap: var(--s-4); }
.tasbeeh-mini .num { font-size: 40px; font-weight: 700; color: var(--emerald); line-height: 1; direction: ltr; }
.tasbeeh-mini .side { font-size: 12px; color: var(--paper-muted); }
.tasbeeh-mini .side b { color: var(--paper-ink); font-size: 14px; display: block; }

.dhikr-card { display: flex; align-items: center; gap: 10px; }
.dhikr-card + .dhikr-card { margin-top: 8px; }
.dhikr-card .dtitle { flex: 1; font-weight: 700; font-size: 13px; }
.count-badge { font-size: 11px; font-weight: 700; color: var(--emerald); background: rgba(20,104,74,0.10); border: 1px solid rgba(20,104,74,0.2); border-radius: 999px; padding: 3px 8px; direction: ltr; }
.count-badge.done { color: #fff; background: var(--emerald); }
.play-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--emerald); display: grid; place-items: center; flex: none; }
.play-sm svg { width: 12px; height: 12px; color: #fff; }

.cal-mini .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--paper-ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .wd { font-size: 9px; color: var(--paper-muted); text-align: center; }
.cal-cell { aspect-ratio: 1; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--paper-ink); background: rgba(0,0,0,0.02); position: relative; }
.cal-cell .g { font-size: 7px; font-weight: 400; color: var(--paper-muted); }
.cal-cell.today { background: var(--emerald); color: #fff; }
.cal-cell.today .g { color: rgba(255,255,255,0.8); }
.cal-cell.fri { background: rgba(20,104,74,0.10); }
.cal-cell .ev { position: absolute; bottom: 3px; display: flex; gap: 2px; }
.cal-cell .ev i { width: 4px; height: 4px; border-radius: 50%; }

.qibla-mini { display: grid; place-items: center; text-align: center; }
.qibla-mini .deg { direction: ltr; font-weight: 700; color: var(--emerald); font-size: 15px; margin-top: 6px; }
.qibla-mini .msg { font-size: 11px; color: var(--paper-muted); }

.toggle-row { display: flex; align-items: center; gap: 10px; }
.toggle-row .tlabel { flex: 1; font-weight: 700; font-size: 13px; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: var(--emerald); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.counter-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.counter-row .cbtn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--emerald); color: var(--emerald); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.counter-row .cval { font-size: 30px; font-weight: 700; color: var(--paper-ink); direction: ltr; min-width: 30px; text-align: center; }
.hint-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #8a6a1f; background: rgba(185,143,51,0.12); border: 1px solid rgba(185,143,51,0.28); border-radius: 999px; padding: 3px 8px; margin-top: 8px; }
.hint-badge svg { width: 12px; height: 12px; }

.sadaqah-card { text-align: center; padding: var(--s-5) var(--s-4); }
.sadaqah-card .for { font-size: 11px; color: var(--paper-muted); }
.sadaqah-card .nm { font-weight: 700; font-size: 16px; color: var(--paper-ink); margin: 2px 0 8px; }
.sadaqah-card .dua { font-size: 13px; color: #4a3a12; line-height: 1.7; }
.sadaqah-card .ameen { font-size: 20px; font-weight: 700; color: var(--gold); margin-top: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--emerald); background: rgba(20,104,74,0.10); border: 1px solid rgba(20,104,74,0.22); border-radius: 999px; padding: 3px 9px; margin-top: 10px; }
.status-chip svg { width: 12px; height: 12px; }

.homescreen {
  background: linear-gradient(160deg, #0e4634, #072318);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.widget {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(220,192,121,0.28);
  border-radius: 16px;
  padding: 12px;
  color: #f1ecdd;
  backdrop-filter: blur(2px);
}
.widget.wide { grid-column: span 2; display: flex; align-items: center; gap: 14px; }
.widget .wl { font-size: 10px; opacity: 0.8; }
.widget .wv { font-weight: 700; font-size: 15px; color: #fff; }
.widget .wbig { font-size: 22px; font-weight: 700; color: var(--gold-light); direction: ltr; }
.widget .wgrow { flex: 1; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.persona {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(220,192,121,0.24);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.persona-ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--gold-light);
  background: rgba(220,192,121,0.12);
  border: 1px solid rgba(220,192,121,0.3);
}
.persona-ic svg { width: 26px; height: 26px; }
.persona h3 { color: #fff; font-size: 21px; }
.persona p { color: rgba(241,236,221,0.8); font-size: 15px; margin: 0; }
.persona-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.persona-links span {
  font-size: 12.5px;
  color: #F1ECDD;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 4px 10px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-5);
  margin-bottom: clamp(var(--s-6), 5vw, var(--s-8));
}
.why-item { display: flex; gap: var(--s-3); }
.why-item .why-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(20,104,74,0.10); color: var(--primary); }
.why-item .why-ic svg { width: 21px; height: 21px; }
.why-item h4 { margin-bottom: 2px; }
.why-item p { font-size: 14.5px; color: var(--ink-muted); margin: 0; }

.figures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  border-top: 1px solid var(--border);
  padding-top: clamp(var(--s-6), 4vw, var(--s-7));
}
.figures .fig { text-align: center; }
.figures .fig b { display: block; font-size: clamp(24px, 3.5vw, 32px); color: var(--primary); direction: ltr; line-height: 1.1; }
.figures .fig span { font-size: 13.5px; color: var(--ink-muted); }

.download-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.download-inner .stores { justify-content: center; margin-top: var(--s-6); }
.download-note { margin-top: var(--s-5); font-size: 14.5px; color: rgba(241,236,221,0.72); }
.band-emerald .download-note { color: rgba(241,236,221,0.72); }

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface-elevated);
  padding-block: var(--s-7);
  font-size: 15px;
  color: var(--ink-muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.footer-nav { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }

.h-icon { color: var(--accent); font-size: 0.8em; margin-inline-end: var(--s-2); }

.page-head {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(185,143,51,0.16), transparent 55%),
    linear-gradient(160deg, var(--emerald-dark), #0a3325 70%);
  color: #F1ECDD;
  text-align: center;
  padding-block: clamp(48px, 7vw, 84px) clamp(40px, 6vw, 68px);
  overflow: hidden;
}
.page-head h1 { color: #FFFFFF; margin-bottom: var(--s-2); }
.page-head .rule { margin-block: var(--s-5); }
.updated { color: rgba(241, 236, 221, 0.78); font-size: 15px; margin: 0; }

.prose { max-width: var(--measure); }

.note {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 13%, var(--surface-elevated)),
    color-mix(in srgb, var(--primary) 5%, var(--surface-elevated)));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: var(--r);
  padding: clamp(var(--s-5), 3.4vw, var(--s-7));
  margin: 0 0 var(--s-6);
}
.note-icon { display: block; font-size: 30px; color: var(--primary); margin-bottom: var(--s-3); }
.note-title { font-weight: 700; font-size: 20px; color: var(--primary); margin: 0 0 var(--s-2); }
.note > p:not(.note-title) { font-size: 18px; line-height: 1.85; max-width: 56ch; margin-inline: auto; margin-bottom: 0; }

.policy { max-width: 880px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: var(--section-y); }
.policy-lead { text-align: center; font-size: 18px; color: var(--ink-muted); max-width: 62ch; margin: 0 auto var(--s-7); }
.policy-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(var(--s-5), 3.2vw, var(--s-6));
  margin-bottom: var(--s-5);
}
.policy-card:last-child { margin-bottom: 0; }
.policy-card h2 {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--primary); font-size: clamp(21px, 3vw, 26px); margin: 0 0 var(--s-4);
}
.policy-card h2 .h-icon { margin-inline-end: 0; font-size: 0.9em; }
.policy-card ul { padding-inline-start: 1.3em; margin: 0 0 var(--s-4); }
.policy-card li { margin-bottom: var(--s-2); }
.policy-card li:last-child { margin-bottom: 0; }
.policy-card p:last-child, .policy-card ul:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: var(--s-5); }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15px; background: var(--surface-elevated); }
caption { text-align: start; padding: var(--s-4) var(--s-5) 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
th, td { text-align: start; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.8; }
th { color: var(--primary); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-block: clamp(40px, 8vw, 64px); }
  .hero-copy { max-width: 46ch; margin-inline: auto; }
  .hero-trust { justify-content: center; }
  .hero .stores { justify-content: center; }
  .hero-visual { order: -1; }

  .show-row { grid-template-columns: 1fr; gap: var(--s-6); }
  .show-row:nth-child(even) .show-visual { order: 0; }
  .show-visual { order: -1; }
  .show-text { max-width: 52ch; margin-inline: auto; text-align: center; }
  .show-eyebrow { justify-content: center; }
  .benefit-list { max-width: 34ch; margin-inline: auto; text-align: start; }

  .tile.span2, .tile.span4, .tile { grid-column: span 3; }
}

@media (max-width: 620px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile, .tile.span2, .tile.span4 { grid-column: auto; }
  .figures { gap: var(--s-4) var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
