/* ============================================================
   Wasilah - site.css
   Homepage design system. The legal pages keep styles.css.
   ============================================================ */

:root {
  --emerald-950: #00211f;
  --emerald-900: #002e2c;
  --emerald-800: #003c39;
  --emerald-700: #004b49;
  --emerald-600: #005f5b;
  --emerald-500: #00746d;

  --gold: #f1d592;
  --gold-bright: #f9e9bf;
  --gold-deep: #d8b974;

  --ink: #eef1ea;
  --ink-dim: rgba(238, 241, 234, 0.66);
  --ink-faint: rgba(238, 241, 234, 0.4);

  --line: rgba(241, 213, 146, 0.14);
  --line-soft: rgba(241, 213, 146, 0.09);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.055);
  --card-border: rgba(241, 213, 146, 0.16);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
  --shadow-device: 0 50px 90px -30px rgba(0, 0, 0, 0.7), 0 12px 28px -12px rgba(0, 0, 0, 0.55);

  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Amiri", serif;
  --font-bn: "Noto Sans Bengali", var(--font);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #00161a; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  /* one continuous emerald gradient down the whole page - no banding, no patches */
  min-height: 100vh;
  background: linear-gradient(180deg,
    #00161a 0%,
    #001f20 26%,
    #002a28 56%,
    #013733 82%,
    #013f39 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
:lang(bn), .hero-bn, .tour-bn, .reason-bn { font-family: var(--font-bn); }
::selection { background: var(--gold); color: var(--emerald-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--emerald-900);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- Layout primitives ------------------------------------ */
.section { padding: clamp(72px, 9vw, 132px) clamp(24px, 4vw, 56px); }
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 68px);
  text-align: center;
}
.section-label,
.panel-kicker,
.hero-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head h2,
.section-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: #fff;
}
.section-sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-dim);
}
.section-copy {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-copy.narrow { max-width: 680px; }
.section-copy p { margin-top: 14px; color: var(--ink-dim); }

/* ---- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 40px);
  background: rgba(0, 36, 34, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(0, 33, 31, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 38px; height: 38px; }
.brand-logotype { height: 30px; width: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.header-nav { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.2s var(--ease);
}
.header-nav a:hover { color: var(--gold); }
.language-switch {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: var(--r-pill);
  padding: 3px;
  background: rgba(0, 0, 0, 0.18);
}
.lang-option {
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-dim);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-option.is-active { background: var(--gold); color: var(--emerald-900); }
.header-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald-900);
  background: var(--gold);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.header-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(241, 213, 146, 0.5);
}

/* ---- Hero -------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px) clamp(64px, 8vw, 120px); }
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--card-border);
  border-radius: var(--r-pill);
  background: rgba(241, 213, 146, 0.06);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e0a0;
  box-shadow: 0 0 0 0 rgba(84, 224, 160, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(84, 224, 160, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(84, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(84, 224, 160, 0); }
}
#hero-title {
  margin: 26px 0 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
.hero-lede {
  margin-top: 22px;
  font-size: 1.16rem;
  color: var(--ink-dim);
  max-width: 33ch;
}
.hero-bn {
  margin-top: 12px;
  font-size: 1.02rem;
  color: var(--gold-deep);
  max-width: 40ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.store-button {
  display: inline-flex;
  position: relative;
  border-radius: 13px;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.store-button .store-badge { height: 56px; width: auto; }
.store-button:not(.store-button--soon):hover { transform: translateY(-2px); filter: brightness(1.07); }
.store-button.is-muted,
.store-button--soon { cursor: default; }
.store-button--soon { filter: grayscale(0.35) brightness(0.78); }
.soon-tag {
  position: absolute;
  top: -9px;
  right: -8px;
  background: var(--gold);
  color: var(--emerald-900);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
}
.trust-strip li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-dim);
}
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.3 3 8.1l1.1-1.1 2.1 2.1 5.6-5.6L13 4.6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.3 3 8.1l1.1-1.1 2.1 2.1 5.6-5.6L13 4.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}


/* ---- Showcase / tour -------------------------------------- */
.showcase { border-top: 1px solid var(--line-soft); }
.tour {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 116px);
}
.tour-row {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}
.tour-row:nth-child(even) .tour-text { order: 2; }
.tour-row:nth-child(even) .tour-device { order: 1; }
.tour-num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.tour-text h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}
.tour-text p { color: var(--ink-dim); font-size: 1.06rem; max-width: 42ch; }
.tour-bn { margin-top: 10px; color: var(--gold-deep); font-size: 0.98rem; }
.tour-device { display: flex; justify-content: center; }
.tour-device .device { max-width: 256px; }

/* ---- Feature grid ----------------------------------------- */
.feature-section { border-top: 1px solid var(--line-soft); }
.feature-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border);
  background: var(--card-2);
}
.feature-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(241, 213, 146, 0.1);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-mark svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.97rem; color: var(--ink-dim); }

/* ---- Worship tools ---------------------------------------- */
.worship-section { border-top: 1px solid var(--line-soft); }
.segment-nav {
  max-width: var(--wrap);
  margin: 0 auto clamp(28px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.segment-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-dim);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: color 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.segment-nav a:hover { color: var(--gold); border-color: var(--card-border); background: rgba(241, 213, 146, 0.06); }
.worship-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.worship-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
}
.worship-panel.guide-panel { grid-column: 1 / -1; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-head .feature-mark { margin: 0; flex: 0 0 auto; }
.panel-kicker { display: block; }
.panel-head h3 { font-size: 1.32rem; font-weight: 700; color: #fff; margin-top: 3px; }

.salah-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.salah-controls label { font-size: 0.85rem; font-weight: 600; color: var(--ink-dim); }
select,
.panel-search {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 10px 14px;
}
select { cursor: pointer; }
.panel-search { width: 100%; margin-bottom: 16px; }
.utility-button {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-900);
  background: var(--gold);
  border: 0;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s;
}
.utility-button:hover { background: var(--gold-bright); transform: translateY(-1px); }

.next-prayer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 16px 18px;
  background: rgba(241, 213, 146, 0.08);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.next-prayer span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.next-prayer strong { font-size: 1.3rem; font-weight: 700; color: #fff; }
.next-prayer time { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-left: auto; font-variant-numeric: tabular-nums; }

.salah-times {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
}
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.time-row:last-child { border-bottom: 0; }
.time-row.is-active { color: var(--gold); font-weight: 700; }
.time-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-dim); }
.time-row.is-active span:last-child { color: var(--gold); }

.reader-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.language-pills { display: flex; gap: 6px; }
.language-pills span {
  font-size: 0.78rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 11px;
}
.quran-reader, .dua-reader {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 392px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Silent scrollers - thin, quiet gold scrollbar for the worship panels */
.salah-times,
.quran-reader,
.dua-reader,
.names-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 213, 146, 0.3) transparent;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.salah-times::-webkit-scrollbar,
.quran-reader::-webkit-scrollbar,
.dua-reader::-webkit-scrollbar,
.names-list::-webkit-scrollbar { width: 6px; }
.salah-times::-webkit-scrollbar-thumb,
.quran-reader::-webkit-scrollbar-thumb,
.dua-reader::-webkit-scrollbar-thumb,
.names-list::-webkit-scrollbar-thumb {
  background: rgba(241, 213, 146, 0.24);
  border-radius: 999px;
}
.salah-times:hover::-webkit-scrollbar-thumb,
.quran-reader:hover::-webkit-scrollbar-thumb,
.dua-reader:hover::-webkit-scrollbar-thumb,
.names-list:hover::-webkit-scrollbar-thumb { background: rgba(241, 213, 146, 0.42); }
.salah-times::-webkit-scrollbar-track,
.quran-reader::-webkit-scrollbar-track,
.dua-reader::-webkit-scrollbar-track,
.names-list::-webkit-scrollbar-track { background: transparent; }
.verse, .dua-block {
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.verse-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  margin-bottom: 10px;
}
.verse-arabic, .dua-arabic {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  font-size: 1.55rem;
  line-height: 2;
  color: var(--gold-bright);
  margin-bottom: 10px;
}
.verse-text, .verse-translation { color: var(--ink-dim); font-size: 0.98rem; margin-top: 4px; }
.dua-meaning { color: var(--ink-dim); font-size: 0.98rem; margin-top: 6px; }

.names-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.name-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  text-align: center;
}
.name-row b {
  font-size: 0.72rem;
  color: var(--gold-deep);
  font-weight: 700;
}
.name-arabic { font-family: var(--font-ar); font-size: 1.4rem; color: var(--gold-bright); }
.name-row strong { color: #fff; font-size: 0.95rem; }
.name-row span:last-child { color: var(--ink-faint); font-size: 0.82rem; }
.name-empty { color: var(--ink-faint); padding: 20px; text-align: center; }

.guide-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.guide-tab {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.guide-tab.is-active { background: var(--gold); color: var(--emerald-900); border-color: var(--gold); }
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: guide;
}
.guide-list li {
  counter-increment: guide;
  position: relative;
  padding: 20px 20px 20px 58px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  color: var(--ink-dim);
}
.guide-list li::before {
  content: counter(guide, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.guide-list li strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 5px; }
.panel-status { margin-top: 12px; font-size: 0.88rem; color: var(--gold-deep); }
.panel-status.is-loading { color: var(--ink-faint); }

/* ---- Reasons / why ---------------------------------------- */
.reasons { border-top: 1px solid var(--line-soft); }
.reason-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.reason-card {
  padding: 32px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.reason-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
.reason-card p { color: var(--ink-dim); }
.reason-card--amaanah {
  background: linear-gradient(150deg, rgba(241, 213, 146, 0.13), rgba(241, 213, 146, 0.03));
  border-color: var(--card-border);
}
.reason-bn { margin-top: 10px; color: var(--gold-deep); }

/* ---- Spiritual band --------------------------------------- */
.spiritual-band {
  padding: clamp(72px, 9vw, 130px) clamp(24px, 4vw, 56px);
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(241, 213, 146, 0.09), transparent 70%);
}
.spiritual-inner { max-width: 720px; margin: 0 auto; }
.spiritual-inner h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 14px 0 18px;
}
.spiritual-inner p { color: var(--ink-dim); font-size: 1.08rem; }

/* ---- FAQ --------------------------------------------------- */
.faq-section { border-top: 1px solid var(--line-soft); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease), background 0.25s var(--ease);
}
.faq-list details:hover { border-color: var(--card-border); }
.faq-list details[open] { border-color: var(--card-border); background: var(--card-2); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--emerald-900);
}
.faq-list details p { padding: 0 22px 20px; color: var(--ink-dim); max-width: 64ch; font-size: 0.97rem; }

/* ---- Trust / privacy -------------------------------------- */
.trust-section { border-top: 1px solid var(--line-soft); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.trust-grid { max-width: 720px; margin: 0 auto; }
.footer-card {
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.footer-card-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: rgba(241, 213, 146, 0.1);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-card-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-card .section-label { display: block; }
.footer-card h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 6px 0 10px; }
.footer-card > p { color: var(--ink-dim); font-size: 0.92rem; }
.privacy-list { margin: 14px 0; display: flex; flex-direction: column; gap: 7px; }
.privacy-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.contact-link {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--card-border);
  transition: border-color 0.2s var(--ease);
}
.contact-link:hover { border-color: var(--gold); }
.contact-link--inline { display: inline-block; margin: 3px 14px 3px 0; font-size: 0.85rem; }

/* ---- Footer ------------------------------------------------ */
.site-footer {
  padding: clamp(56px, 7vw, 90px) clamp(24px, 4vw, 56px) 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { height: 34px; width: auto; }
.footer-tagline { margin-top: 16px; color: var(--ink-dim); max-width: 36ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-nav a { color: var(--ink-dim); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.footer-social {
  max-width: var(--wrap);
  margin: 40px auto 0;
  display: flex;
  gap: 12px;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s var(--ease), background 0.2s, transform 0.2s;
}
.footer-social-link:hover { border-color: var(--card-border); background: rgba(241, 213, 146, 0.08); transform: translateY(-2px); }
.footer-social-link svg { width: 17px; height: 17px; fill: var(--gold); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---- Back to top ------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top svg { width: 19px; height: 19px; fill: none; stroke: var(--emerald-900); stroke-width: 2.4; }

/* ---- Scroll reveal ---------------------------------------- */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-lede, .hero-bn { max-width: 46ch; }
  .hero-device { order: -1; }
  .tour-row { grid-template-columns: 1fr; gap: 26px; }
  .tour-row .tour-text { order: 2 !important; text-align: center; }
  .tour-row .tour-device { order: 1 !important; }
  .tour-text p { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-nav { display: none; }
  .worship-grid { grid-template-columns: 1fr; }
  .worship-panel.guide-panel { grid-column: auto; }
  .reason-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .trust-strip { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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

/* ============================================================
   Website 3.0 - Apple-style cinematic layer
   Centered massive hero, sticky in-page subnav, full-bleed
   per-feature cinematic sections. Layered on top of the v2
   foundation. The legal pages and worship tools are unaffected.
   ============================================================ */

/* ---- Hero (cinematic, centered) --------------------------- */
.hero.hero--cinematic {
  padding: clamp(56px, 8vw, 130px) clamp(24px, 4vw, 56px) clamp(40px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero-stage {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-stage .hero-status { margin: 0; }
.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--ink-dim);
  font-weight: 400;
  max-width: 48ch;
  line-height: 1.5;
}
.hero--cinematic .hero-bn {
  margin: 12px 0 0;
  max-width: 50ch;
  font-size: 1.05rem;
}
.hero--cinematic .hero-cta-row {
  margin-top: 36px;
  justify-content: center;
}
.hero--cinematic .trust-strip {
  margin-top: 28px;
  justify-content: center;
  gap: 10px 26px;
}
.hero-device-cinematic {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-device-cinematic .device--hero {
  width: 340px;
  max-width: 100%;
  animation: none;
}
.hero-device-cinematic::after {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(ellipse at center, rgba(241, 213, 146, 0.18), transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

/* ---- Sticky in-page subnav -------------------------------- */
.subnav {
  position: sticky;
  top: 67px; /* sits just under the global site header */
  z-index: 60;
  background: rgba(0, 30, 28, 0.78);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
}
.subnav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 28px);
  padding: 12px clamp(20px, 4vw, 56px);
}
.subnav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.subnav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  margin-left: auto;
  margin-right: clamp(8px, 2vw, 22px);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-dim);
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.subnav-links a:hover { color: var(--gold); }
.subnav-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-900);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 0.2s var(--ease), transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.subnav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(241, 213, 146, 0.4);
}

/* ---- Cinematic per-feature sections ----------------------- */
.cinema {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: clamp(80px, 11vw, 150px) clamp(24px, 4vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}
.cinema:first-of-type { border-top: 0; }
.cinema--flip .cinema-text { order: 2; }
.cinema--flip .cinema-device { order: 1; }
.cinema-text { max-width: 540px; }
.cinema-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.cinema-h {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #fff;
}
.cinema-body {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-dim);
  font-weight: 400;
  max-width: 44ch;
  line-height: 1.55;
}
.cinema-bn { margin-top: 14px; color: var(--gold-deep); font-size: 1.02rem; max-width: 44ch; }
.cinema-device { display: flex; justify-content: center; position: relative; }
.cinema-device .app-shot {
  width: min(360px, 86%);
  height: auto;
  display: block;
  border-radius: 30px;
  border: 1px solid rgba(241, 213, 146, 0.16);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.7), 0 12px 28px -12px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.cinema-device::after {
  content: "";
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(ellipse at center, rgba(241, 213, 146, 0.12), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Cinematic reveal: a touch bigger movement than the v2 reveal */
.motion-ready .cinema-text.reveal,
.motion-ready .cinema-device.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .cinema-text.reveal.is-visible,
.motion-ready .cinema-device.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 980px) {
  .hero-device-cinematic .device--hero { max-width: 300px; }
  .cinema {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 44px;
    padding: clamp(60px, 10vw, 110px) clamp(24px, 4vw, 56px);
  }
  .cinema--flip .cinema-text { order: 2 !important; }
  .cinema--flip .cinema-device { order: 1 !important; }
  .cinema-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .cinema-body, .cinema-bn { max-width: 50ch; }
}
@media (max-width: 540px) {
  .subnav { top: 64px; }
  .subnav-brand { display: none; }
  .subnav-links { margin-left: 0; gap: 18px; }
  .subnav-cta { padding: 6px 12px; font-size: 0.78rem; }
  .hero-device-cinematic .device--hero { max-width: 260px; }
}

/* When the BN toggle is active, the inline Bangla accent lines under
   English copy become redundant (data-i18n already translates the
   main copy into Bangla). Hide them to avoid duplication. */
html[lang="bn"] .hero-bn,
html[lang="bn"] .cinema-bn,
html[lang="bn"] .tour-bn,
html[lang="bn"] .reason-bn,
html[lang="bn"] .ethos-bn,
html[lang="bn"] .share-bn { display: none; }

/* ---- Share Wasilah section (sadaqah jariyah viral loop) -------- */
.share-section {
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(70% 60% at 50% 0%, rgba(241, 213, 146, 0.1), transparent 70%);
}
.share-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.share-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 14px 0 22px;
}
.share-lede {
  color: var(--ink-dim);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 50ch;
  margin: 0 auto;
}
.share-bn {
  margin: 14px auto 0;
  color: var(--gold-deep);
  font-size: 1.02rem;
  max-width: 50ch;
}
.share-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(241, 213, 146, 0.07);
  color: var(--ink);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
.share-btn:hover { background: rgba(241, 213, 146, 0.15); transform: translateY(-1px); border-color: var(--gold-deep); }
.share-btn--whatsapp { color: #fff; }
.share-btn--whatsapp:hover { background: #1ea64a; border-color: #1ea64a; color: #fff; }
.share-btn--facebook { color: #fff; }
.share-btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.is-copied { background: var(--gold); color: var(--emerald-900); border-color: var(--gold); }

/* ============================================================
   Lit Niche hero + restructured sections (2026-06-03)
   ============================================================ */

/* ---- Hero: a procedural girih light field behind the calling words ---- */
.hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero-webgl.is-live { opacity: 1; }

.hero.hero--niche {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: clamp(104px, 15vh, 172px) clamp(24px, 4vw, 56px) clamp(72px, 12vh, 120px);
}
.hero-bismillah {
  font-family: var(--font-ar);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--gold);
  direction: rtl;
  margin-bottom: clamp(14px, 3vw, 22px);
  opacity: 0.92;
}
.hero--niche .hero-display {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero--niche .hero-tagline {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 50ch;
  line-height: 1.55;
}
.hero--niche .hero-bn { margin-top: 10px; max-width: 50ch; }
.hero--niche .hero-cta-row { margin-top: 32px; justify-content: center; }
.hero--niche .trust-strip { margin-top: 26px; justify-content: center; gap: 10px 26px; }
@media (min-width: 761px) {
  .hero--niche .store-button .store-badge { height: 70px; }
}

/* scroll cue (its styling previously lived in the engine stylesheet) */
.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  text-decoration: none;
}
.hero-scroll-cue .cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: heroCue 3s var(--ease) infinite;
}
@keyframes heroCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  42%  { transform: scaleY(1); transform-origin: top; }
  62%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Trust / social-proof bar ---- */
.trust-bar { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 40px;
  padding: 20px clamp(24px, 4vw, 56px);
  text-align: center;
}
.trust-bar-item { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 0.98rem; }
.trust-bar a.trust-bar-item { font-weight: 700; text-decoration: none; transition: color 0.2s var(--ease); }
.trust-bar a.trust-bar-item:hover { color: var(--gold); }
.tb-star { color: var(--gold); font-size: 1.05rem; }
.trust-bar-promise { color: var(--ink-dim); font-weight: 400; max-width: 62ch; flex-wrap: wrap; justify-content: center; }
.trust-bar-promise strong { color: var(--gold-bright); font-weight: 700; }

/* ---- Screenshot gallery (full-bleed app screens, no phone frame) ---- */
.gallery-grid {
  max-width: var(--wrap);
  margin: clamp(34px, 5vw, 54px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.gallery-shot { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery-shot .app-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.gallery-shot figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.gallery-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.gallery-shot em { font-style: normal; color: #fff; font-weight: 600; font-size: 1.0rem; line-height: 1.25; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; max-width: 320px; } }

/* ---- Post-demo CTA ---- */
.demo-cta {
  text-align: center;
  padding: clamp(40px, 6vw, 76px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.demo-cta-text { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; color: #fff; max-width: 32ch; line-height: 1.35; }

/* ---- Sadaqah / ethos + share (merged) ---- */
.ethos-section { text-align: center; }
.ethos-inner { max-width: 680px; margin: 0 auto; }
.ethos-text { margin-top: 18px; color: var(--ink-dim); font-size: 1.08rem; line-height: 1.6; }
.ethos-bn { margin-top: 10px; color: var(--gold-deep); }
.ethos-section .share-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---- Learn spotlight: the two flagship guides (Salah + Wudu) ---- */
.learn-grid {
  max-width: 760px;
  margin: clamp(34px, 5vw, 54px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: clamp(20px, 4vw, 44px);
  justify-content: center;
}
.learn-shot { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.learn-shot .app-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(241, 213, 146, 0.14);
  box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.72), 0 12px 26px -12px rgba(0, 0, 0, 0.5);
}
.learn-shot figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.learn-shot em { font-style: normal; color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
@media (max-width: 560px) { .learn-grid { grid-template-columns: 1fr; max-width: 320px; gap: 36px; } }

/* App Store screenshot strip (added 2026-06-07) */
.appstore-section { overflow: hidden; }
.appstore-strip {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0.5rem clamp(1rem, 6vw, 5rem) 1.5rem;
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.appstore-strip::-webkit-scrollbar { display: none; }
.appstore-strip li { flex: 0 0 auto; scroll-snap-align: center; margin: 0; }
.appstore-strip img {
  height: clamp(380px, 56vh, 560px);
  width: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}
