/* ============================================================
   Dhikr marketing site
   Deep emerald + gold, display serif, mobile-first.
   ============================================================ */

:root {
  --bg-top: #073D2F;
  --bg: #052F25;
  --bg-deep: #011B15;
  --panel: #06251D;
  --gold: #D9A441;
  --gold-2: #E8C476;
  --gold-3: #F5D58A;
  --cream: #F4EDDE;
  --text: #EFE8D8;
  --muted: #A9B4A3;
  --faint: rgba(244, 237, 222, 0.55);
  --card: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-gold: rgba(217, 164, 65, 0.22);
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;
  --maxw: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(16, 104, 78, 0.45), transparent 62%),
    radial-gradient(900px 500px at 90% 30%, rgba(217, 164, 65, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 30%, var(--bg-deep) 100%);
  background-color: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(217, 164, 65, 0.35); color: var(--cream); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Shared bits ---------- */

.goldtext {
  background: linear-gradient(120deg, var(--gold-3) 10%, var(--gold-2) 45%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 14px;
}

.sparkdiv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-2);
  font-size: 14px;
  margin: 22px auto;
}
.sparkdiv::before, .sparkdiv::after {
  content: "";
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.sparkdiv::after {
  background: linear-gradient(90deg, var(--gold-2), transparent);
}
.sparkdiv.left { justify-content: flex-start; margin-left: 0; }

/* ---------- Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(4, 26, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}
.brand img.appicon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(217, 164, 65, 0.35);
}
/* Legacy glyph brand (kept for any page still using it) */
.brand .glyph {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #0C5A43, #032018);
  border: 1px solid rgba(217, 164, 65, 0.4);
  font-family: var(--arabic); font-size: 18px;
  color: var(--gold-2);
}
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav a.link {
  color: var(--faint);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a.link:hover { color: var(--cream); background: rgba(255, 255, 255, 0.05); }
.nav .btn-nav {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #33240A;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 55%, var(--gold));
  box-shadow: 0 4px 18px rgba(217, 164, 65, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav .btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(217, 164, 65, 0.4); }

@media (max-width: 640px) {
  .nav a.link { display: none; }
  .nav a.link.keep { display: inline-block; }
}

/* ---------- Buttons / badges ---------- */

.badge-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.appstore-badge img {
  display: block;
  height: 54px;
  width: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.appstore-badge:hover img { transform: translateY(-2px); filter: brightness(1.08); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-gold {
  color: #33240A;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 55%, var(--gold));
  box-shadow: 0 6px 24px rgba(217, 164, 65, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(217, 164, 65, 0.42); }
.btn-ghost {
  color: var(--cream);
  border: 1px solid var(--stroke-gold);
}
.btn-ghost:hover { background: rgba(217, 164, 65, 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vh, 96px) 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--cream);
}
.hero p.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 34px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--faint);
}
.trust-row svg { color: var(--gold-2); flex: none; }

/* Phone stage */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px 0 0;
}
.phone-stage .watermark {
  position: absolute;
  inset: -8% 0 auto 0;
  text-align: center;
  font-family: var(--arabic);
  font-size: clamp(180px, 26vw, 320px);
  line-height: 1;
  color: rgba(217, 164, 65, 0.055);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  top: 4%;
  left: 0;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.2) 0%, rgba(16, 104, 78, 0.22) 40%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(348px, 82vw);
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(160deg, #17130a, #0a0906 60%);
  border: 1px solid rgba(217, 164, 65, 0.5);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 12px 34px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(217, 164, 65, 0.12);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 39 / 82;
  object-fit: cover;
  object-position: top;
  border-radius: 41px;
}
.phone.sm { width: min(300px, 76vw); border-radius: 46px; }
.phone.sm img { border-radius: 36px; }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cream);
  background: rgba(7, 46, 36, 0.82);
  border: 1px solid var(--stroke-gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip.a { top: 17%; left: -6%; }
.float-chip.b { bottom: 20%; right: -7%; animation-delay: -3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Ribbon ---------- */

.ribbon {
  margin-top: clamp(56px, 9vh, 100px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: center;
}
.ribbon-inner .dot { color: var(--gold-2); font-size: 11px; }

/* ---------- Showcase rows ---------- */

.showcase { padding: clamp(64px, 10vh, 120px) 0 0; }
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(36px, 6vh, 70px) 0;
}
.showcase-row .media {
  position: relative;
  display: flex;
  justify-content: center;
}
.showcase-row:nth-child(even) .media { order: 2; }
.showcase-row h2 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 18px;
}
.showcase-row p.body {
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 17px);
  max-width: 33em;
  margin: 0 0 26px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 13px;
}
.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.feature-list li .fmark {
  flex: none;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.14);
  color: var(--gold-2);
  font-size: 10px;
}
.feature-list li span.t { color: var(--faint); }
.feature-list li strong { color: var(--cream); font-weight: 600; }

/* ---------- Feature grid ---------- */

.gridsec { padding: clamp(72px, 11vh, 130px) 0 0; text-align: center; }
.gridsec .lede-center {
  color: var(--muted);
  max-width: 44em;
  margin: 0 auto 52px;
  font-size: clamp(15.5px, 1.4vw, 17px);
}
h2.section-title {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  text-align: center;
  color: var(--cream);
  margin: 0 0 16px;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.feature:hover::before { opacity: 1; }
.feature .ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(217, 164, 65, 0.1);
  border: 1px solid rgba(217, 164, 65, 0.22);
  color: var(--gold-2);
  margin-bottom: 16px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18.5px;
  margin: 0 0 7px;
  color: var(--cream);
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Ayah band ---------- */

.ayah {
  margin-top: clamp(80px, 12vh, 140px);
  padding: clamp(56px, 9vh, 96px) 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(217, 164, 65, 0.07), transparent 70%),
    rgba(255, 255, 255, 0.015);
}
.ayah .arabic {
  font-family: var(--arabic);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.9;
  margin: 0 0 10px;
  direction: rtl;
}
.ayah .translation {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--cream);
  max-width: 34em;
  margin: 0 auto 10px;
}
.ayah .source {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- CTA ---------- */

.cta { padding: clamp(72px, 11vh, 130px) 0 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--stroke-gold);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(16, 104, 78, 0.5), transparent 65%),
    radial-gradient(700px 400px at 85% 110%, rgba(217, 164, 65, 0.12), transparent 60%),
    linear-gradient(170deg, #0A3A2C, #041F18 70%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px) 0;
}
.cta-copy { padding-bottom: clamp(40px, 6vw, 72px); }
.cta-card h2 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  color: var(--cream);
  margin: 0 0 16px;
}
.cta-card p {
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 17px);
  max-width: 30em;
  margin: 0 0 30px;
}
.cta-note { font-size: 13px; color: var(--faint); margin-top: 16px; }
.cta-media {
  align-self: end;
  display: flex;
  justify-content: center;
}
.cta-media .phone {
  margin-bottom: -34%;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.45), 0 0 70px rgba(217, 164, 65, 0.1);
}

/* ---------- Footer ---------- */

footer.site {
  margin-top: clamp(72px, 10vh, 110px);
  padding: 46px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--cream);
  text-decoration: none;
  margin-bottom: 14px;
}
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
footer.site .foot-tag { margin: 0 0 18px; color: var(--faint); }
footer.site a { color: var(--faint); text-decoration: none; margin: 0 10px; transition: color 0.2s ease; }
footer.site a:hover { color: var(--cream); }
footer.site .copyright { margin-top: 18px; opacity: 0.7; font-size: 13px; }

/* ---------- Reveal on scroll ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip { animation: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav .btn-nav, .feature, .appstore-badge img { transition: none; }
}

/* ---------- Legal / content pages ---------- */

.content { padding: 48px 0 20px; max-width: 800px; }
.content h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 6px;
  color: var(--cream);
}
.content .updated { color: var(--faint); font-size: 14px; margin: 0 0 30px; }
.content h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 10px;
  color: var(--cream);
}
.content h3 { font-size: 16.5px; margin: 24px 0 6px; color: var(--gold-2); }
.content p, .content li { color: #D8D2C2; font-size: 16px; }
.content a { color: var(--gold-2); }
.content ul { padding-left: 22px; }
.content li { margin: 6px 0; }
.callout {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 10px 0;
  transition: border-color 0.2s ease;
}
.faq details:hover { border-color: var(--stroke-gold); }
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .badge-row { justify-content: center; }
  .trust-row { justify-content: center; }
  .sparkdiv.left { justify-content: center; margin-left: auto; }
  .phone-stage { padding-top: 10px; }
  .float-chip.a { left: 2%; }
  .float-chip.b { right: 2%; }
  .showcase-row { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .showcase-row:nth-child(even) .media { order: 0; }
  .showcase-row .media { order: 0; }
  .showcase-row p.body { margin-left: auto; margin-right: auto; }
  .feature-list { max-width: 420px; margin: 0 auto; text-align: left; }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding-bottom: 0; }
  .cta-copy { padding-bottom: 0; }
  .cta-card p { margin-left: auto; margin-right: auto; }
  .cta-card .badge-row { justify-content: center; }
  .cta-media { margin-top: 8px; }
  .cta-media .phone { margin-bottom: -42%; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .appstore-badge img { height: 50px; }
  .float-chip { font-size: 12.5px; padding: 8px 13px; }
  .float-chip.a { left: -2%; top: 12%; }
  .float-chip.b { right: -2%; }
  .ribbon-inner { font-size: 14px; }
}
