/* ─────────────────────────────────────────────────────────────
   Noor design system
   Forest green #3A5A40 · Cream #FEFAE0
   Editorial, calm, manuscript-inspired. Not a SaaS template.
   ───────────────────────────────────────────────────────────── */

:root {
  --noor-green: #3A5A40;
  --noor-green-hover: #2E4934;
  --noor-forest: #1E2D22;
  --noor-sage: #6E8A72;
  --noor-cream: #FEFAE0;
  --noor-parchment: #F3EDD2;
  --noor-ivory: #FFFEF6;
  --noor-ink: #1C1B17;
  --noor-muted: #5C5850;
  --noor-soft: #8A8478;
  --noor-gold: #A07C38;
  --noor-border: rgba(58, 90, 64, 0.16);
  --noor-line: rgba(28, 27, 23, 0.09);
  --noor-shadow: 0 18px 50px -24px rgba(30, 45, 34, 0.45);
  --font-sans: "Figtree", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "Newsreader", "IBM Plex Sans Arabic", Georgia, serif;
  --font-arabic: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif;
  --font-quran: "Amiri Quran", "Amiri", serif;
  --max: 1120px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--noor-ink);
  background: var(--noor-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[dir="rtl"] body,
html[dir="rtl"] {
  font-family: var(--font-arabic);
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

::selection {
  background: var(--noor-green);
  color: var(--noor-cream);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--noor-parchment); }
::-webkit-scrollbar-thumb { background: var(--noor-green); }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Typography */
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--noor-sage);
}

html[dir="rtl"] .kicker {
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.8rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--noor-ink);
}

html[dir="rtl"] .display {
  font-family: var(--font-arabic);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--noor-ink);
  margin: 0.4rem 0 1rem;
}

html[dir="rtl"] .section-title {
  font-family: var(--font-arabic);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
}

.hidden { display: none !important; }

.text-gradient {
  color: var(--noor-green);
  font-style: italic;
}

html[dir="rtl"] .text-gradient { font-style: normal; }

.band-forest .text-gradient,
.experience .text-gradient,
.band-forest .text-noor-gold {
  color: #d4bf86;
}

.text-noor-gold { color: var(--noor-gold); }
.text-noor-green { color: var(--noor-sage); }

.lede {
  font-size: 1.08rem;
  color: var(--noor-muted);
  max-width: 38rem;
  line-height: 1.75;
}

html[dir="rtl"] .lede { line-height: 1.9; }

.section-head {
  margin-bottom: 4rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head--center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.55rem;
  background: var(--noor-green);
  color: var(--noor-cream);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { background: var(--noor-forest); }

.btn-ghost {
  background: transparent;
  color: var(--noor-green);
  border: 1px solid var(--noor-border);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-ghost:hover {
  background: var(--noor-green);
  color: var(--noor-cream);
}

.btn-cream {
  background: var(--noor-cream);
  color: var(--noor-green);
}

.btn-cream:hover {
  background: var(--noor-ivory);
  color: var(--noor-forest);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--noor-cream);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 250, 224, 0.35);
  border-radius: 0;
  padding-bottom: 2px;
}

.btn-text:hover { border-bottom-color: var(--noor-cream); }

/* Navigation */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(254, 250, 224, 0.94);
  border-bottom-color: var(--noor-line);
  backdrop-filter: blur(12px);
}

.site-nav-inner {
  height: 100%;
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

html[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--noor-green);
  letter-spacing: -0.02em;
}

.brand-name .sep {
  color: var(--noor-green);
  opacity: 0.35;
  font-weight: 400;
  margin-inline: 0.15rem;
}

.nav-primary {
  display: none;
  align-items: center;
  gap: 1.85rem;
}

.nav-primary a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--noor-muted);
  text-decoration: none;
  position: relative;
}

.nav-primary a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--noor-green);
  transition: width 0.3s var(--ease);
}

.nav-primary a:hover { color: var(--noor-green); }
.nav-primary a:hover::after { width: 100%; }

.nav-secondary {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.nav-secondary .btn { padding: 0.62rem 1.05rem; font-size: 0.82rem; }

.nav-donate {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--noor-muted);
  text-decoration: none;
}

.nav-donate:hover { color: var(--noor-green); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--noor-ink);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-primary, .nav-secondary { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--noor-cream);
  padding: 1.25rem 1.5rem 2.5rem;
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}

.site-drawer.open { transform: translateY(0); }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drawer-links a,
.drawer-links button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--noor-line);
  padding: 1.05rem 0;
  font-size: 1.55rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--noor-ink);
  text-decoration: none;
  cursor: pointer;
}

html[dir="rtl"] .drawer-links a,
html[dir="rtl"] .drawer-links button {
  font-family: var(--font-arabic);
  font-weight: 600;
}

.drawer-cta { margin-top: 2rem; }

.site-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 34, 0.4);
  z-index: 55;
}

.site-overlay.hidden { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    min-height: calc(100vh - var(--nav-h) - 3rem);
  }
}

.hero-copy { position: relative; z-index: 2; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  color: var(--noor-sage);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[dir="rtl"] .hero-kicker {
  letter-spacing: 0.06em;
  text-transform: none;
}

.hero-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--noor-gold);
}

.hero h1 {
  margin: 0 0 1.4rem;
}

.hero-title-1 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.1rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--noor-ink);
}

html[dir="rtl"] .hero-title-1 {
  font-family: var(--font-arabic);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.hero-title-2 {
  display: block;
  margin-top: 0.15em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--noor-green);
}

html[dir="rtl"] .hero-title-2 {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-desc {
  max-width: 34rem;
  color: var(--noor-muted);
  font-size: 1.08rem;
  margin: 0 0 2rem;
}

html[dir="rtl"] .hero-desc { line-height: 1.9; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--noor-soft);
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone {
  position: relative;
  z-index: 2;
}

/* Phone device */
.phone-mockup {
  width: 280px;
  height: 572px;
  border-radius: 28px;
  border: 10px solid #161616;
  position: relative;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-mockup--lg {
  width: 300px;
  height: 612px;
}

@media (min-width: 640px) {
  .phone-mockup { width: 300px; height: 612px; }
  .phone-mockup--lg { width: 320px; height: 652px; }
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: #0a0a0a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #2e2e2e, 0 0 0 2px rgba(0,0,0,0.35);
  z-index: 10;
}

.phone-mockup::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  background: rgba(255,255,255,0.28);
  border-radius: 999px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f1f1eb;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Features — editorial rows */
.band {
  padding: 6.5rem 0;
}

.band-ivory { background: var(--noor-ivory); }
.band-cream { background: var(--noor-cream); }
.band-parchment { background: var(--noor-parchment); }
.band-forest {
  background: var(--noor-forest);
  color: var(--noor-cream);
}

.band-forest .section-title,
.band-forest .kicker { color: var(--noor-cream); }
.band-forest .lede { color: rgba(254, 250, 224, 0.72); }
.band-forest .kicker { color: #c9b27a; }

.feat-group { margin-top: 1rem; }

.feat-group-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 3.5rem 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--noor-line);
}

.feat-group-label span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--noor-green);
}

html[dir="rtl"] .feat-group-label span {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 600;
}

.feat-pair {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--noor-line);
}

@media (min-width: 800px) {
  .feat-pair { grid-template-columns: 1fr 1fr; }
}

.feat-row {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--noor-line);
}

.feat-pair .feat-row:last-child { border-bottom: 0; }

@media (min-width: 800px) {
  .feat-row {
    padding: 2.6rem 2.5rem 2.6rem 0;
    border-bottom: 0;
    border-inline-end: 1px solid var(--noor-line);
  }
  .feat-row:last-child {
    border-inline-end: 0;
    padding-inline-end: 0;
    padding-inline-start: 2.5rem;
  }
}

.feat-index {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--noor-gold);
  font-weight: 650;
  margin-bottom: 0.7rem;
}

.feat-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--noor-ink);
}

html[dir="rtl"] .feat-row h3 {
  font-family: var(--font-arabic);
  font-weight: 650;
  letter-spacing: 0;
}

.feat-row p {
  margin: 0;
  color: var(--noor-muted);
  max-width: 36rem;
}

html[dir="rtl"] .feat-row p { line-height: 1.9; }


.feat-tools {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--noor-line);
}

@media (min-width: 800px) {
  .feat-tools {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feat-tool {
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--noor-line);
}

@media (min-width: 800px) {
  .feat-tool {
    padding: 2.6rem 2rem 2.6rem 0;
    border-bottom: 0;
    border-inline-end: 1px solid var(--noor-line);
  }
  .feat-tool:first-child { padding-inline-start: 0; }
  .feat-tool:last-child {
    border-inline-end: 0;
    padding-inline-end: 0;
  }
}

.feat-tool h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 0.6rem;
}

.feat-tool p {
  margin: 0;
  color: var(--noor-muted);
  font-size: 0.98rem;
}

/* Experience / preview */
.experience {
  position: relative;
  padding: 7rem 0 6rem;
  background: var(--noor-forest);
  color: var(--noor-cream);
  overflow: hidden;
}

.experience .kicker { color: #c9b27a; }
.experience .section-title { color: var(--noor-cream); }
.experience .lede { color: rgba(254, 250, 224, 0.7); }

.experience-layout {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .experience-layout {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5rem;
  }
}

.experience-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.experience-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  margin: 0.4rem 0 1.4rem;
  color: var(--noor-cream);
}

html[dir="rtl"] .experience-copy h3 {
  font-family: var(--font-arabic);
  font-weight: 650;
}

.experience-copy p {
  color: rgba(254, 250, 224, 0.72);
  margin: 0 0 1.1rem;
  max-width: 34rem;
}

html[dir="rtl"] .experience-copy p { line-height: 1.9; }

.preview-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.experience-copy .preview-hint {
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: rgba(254, 250, 224, 0.5);
}

.store-gallery {
  margin-top: 5.5rem;
}

.store-gallery-head {
  margin-bottom: 1.75rem;
}

.store-gallery-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  margin: 0.35rem 0 0;
  color: var(--noor-cream);
}

html[dir="rtl"] .store-gallery-head h3 {
  font-family: var(--font-arabic);
  font-weight: 650;
}

.store-stage {
  position: relative;
}

.store-nav {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--noor-cream);
  color: var(--noor-forest);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-nav:hover {
  background: var(--noor-ivory);
}

.store-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.store-nav:disabled:hover {
  background: var(--noor-cream);
}

.store-nav--circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

#store-prev.store-nav--circle { left: 8px; }
#store-next.store-nav--circle { right: 8px; }

@media (min-width: 900px) {
  #store-prev.store-nav--circle { left: -12px; }
  #store-next.store-nav--circle { right: -12px; }
}

.store-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.1rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  cursor: grab;
  direction: ltr;
}

.store-track::-webkit-scrollbar { display: none; }
.store-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.store-shot {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(280px, 68vw);
  min-width: min(280px, 68vw);
  margin: 0;
  scroll-snap-align: start;
  background: rgba(254, 250, 224, 0.04);
  border: 1px solid rgba(254, 250, 224, 0.08);
}

.store-shot img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.store-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: rgba(254, 250, 224, 0.45);
}

@media (min-width: 700px) {
  .store-shot {
    width: 280px;
    min-width: 280px;
  }
}

@media (min-width: 1100px) {
  .store-shot {
    width: 300px;
    min-width: 300px;
  }
}

/* Mission */
.mission-statement {
  max-width: 52rem;
}

.mission-statement .display {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin: 0.6rem 0 2rem;
}

.mission-copy {
  max-width: 46rem;
  margin-top: 3rem;
}

.mission-copy p {
  color: var(--noor-muted);
  margin: 0 0 1.25rem;
}

html[dir="rtl"] .mission-copy p { line-height: 1.95; }

.mission-meta {
  padding-top: 0.2rem;
}

.mission-rule {
  width: 3rem;
  height: 1px;
  background: var(--noor-gold);
  margin-bottom: 1.5rem;
}

.mission-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mission-points li {
  padding: 1rem 0;
  border-top: 1px solid var(--noor-line);
  color: var(--noor-ink);
  font-size: 0.98rem;
}

.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--noor-line);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--noor-sage);
  font-weight: 600;
}

html[dir="rtl"] .mission-tags { letter-spacing: 0.02em; }

.mission-meta p[lang="ar"] {
  font-family: var(--font-quran);
  font-size: 1.15rem;
  line-height: 2;
  color: var(--noor-green);
  margin: 1.5rem 0 0;
}

/* Stats */
.stat-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(254, 250, 224, 0.16);
}

@media (min-width: 800px) {
  .stat-primary { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  padding: 2.2rem 1.25rem 2.2rem 0;
  border-bottom: 1px solid rgba(254, 250, 224, 0.16);
}

@media (min-width: 800px) {
  .stat {
    border-bottom: 0;
    border-inline-end: 1px solid rgba(254, 250, 224, 0.16);
    padding: 2.4rem 1.6rem 2.4rem 0;
  }
  .stat:nth-child(4n) { border-inline-end: 0; }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--noor-cream);
  font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .stat-value {
  font-family: var(--font-arabic);
  font-weight: 650;
  letter-spacing: 0;
}

.stat-label {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: rgba(254, 250, 224, 0.62);
}

.stat-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
}

@media (min-width: 800px) {
  .stat-secondary {
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(254, 250, 224, 0.12);
    padding-top: 2rem;
  }
}

.stat-s .stat-value {
  font-size: 1.65rem;
  color: #d4bf86;
}

.stat-s .stat-label { font-size: 0.8rem; }

/* Why */
.why-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--noor-line);
}

@media (min-width: 840px) {
  .why-grid { grid-template-columns: 1fr auto 1fr; }
}

.why-col { padding: 2.5rem 0; }

@media (min-width: 840px) {
  .why-col { padding: 2.75rem 2.5rem; }
  .why-col--trad { padding-inline-start: 0; }
  .why-col--noor { padding-inline-end: 0; }
}

.why-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--noor-gold);
  font-weight: 650;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--noor-line);
}

@media (min-width: 840px) {
  .why-vs {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border-bottom: 0;
    border-inline: 1px solid var(--noor-line);
    padding: 2rem 1.1rem;
  }
}

html[dir="rtl"] .why-vs {
  letter-spacing: 0.06em;
  text-transform: none;
}

.why-col h3 {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.why-col--trad h3 { color: var(--noor-soft); }

.why-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-col li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--noor-line);
  font-size: 0.98rem;
}

.why-col--trad li { color: var(--noor-soft); }
.why-col--noor {
  background: var(--noor-green);
  color: var(--noor-cream);
  padding-inline: 1.75rem;
}

@media (min-width: 840px) {
  .why-col--noor { padding: 2.75rem; }
}

.why-col--noor h3 { color: var(--noor-cream); }
.why-col--noor li {
  border-top-color: rgba(254, 250, 224, 0.14);
  color: rgba(254, 250, 224, 0.92);
}

.why-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.why-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* Testimonials */
.testimonial {
  max-width: 44rem;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--noor-ink);
}

html[dir="rtl"] .testimonial blockquote {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}

.testi-item { display: none; }
.testi-item.is-active { display: block; }

.testi-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--noor-line);
}

.testi-person {
  font-size: 0.95rem;
}

.testi-person strong { font-weight: 650; }
.testi-person span {
  color: var(--noor-soft);
  font-weight: 400;
}

.testi-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testi-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--noor-border);
  background: transparent;
  color: var(--noor-green);
  cursor: pointer;
  border-radius: 2px;
}

.testi-nav button:hover {
  background: var(--noor-green);
  color: var(--noor-cream);
}

.testi-count {
  font-size: 0.8rem;
  color: var(--noor-soft);
  font-variant-numeric: tabular-nums;
}

/* FAQ */
.faq-list { border-top: 1px solid var(--noor-line); }

.faq-item { border-bottom: 1px solid var(--noor-line); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: start;
  color: var(--noor-ink);
}

.faq-q {
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
}

.faq-num {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--noor-gold);
  font-weight: 650;
  flex-shrink: 0;
}

.faq-q span:last-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
}

html[dir="rtl"] .faq-q span:last-child {
  font-family: var(--font-arabic);
  font-weight: 600;
}

.faq-icon {
  flex-shrink: 0;
  margin-top: 0.35rem;
  transition: transform 0.3s var(--ease);
}

.faq-icon.open { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}

.faq-answer.open {
  max-height: 420px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 0 1.6rem;
  padding-inline-start: 2.6rem;
  color: var(--noor-muted);
  max-width: 42rem;
}

html[dir="rtl"] .faq-answer p { line-height: 1.9; }

/* Donate */
.support-paths { border-top: 1px solid rgba(254, 250, 224, 0.16); }

.support-path {
  display: grid;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(254, 250, 224, 0.16);
}

@media (min-width: 760px) {
  .support-path {
    grid-template-columns: 0.9fr 1.4fr auto;
    align-items: center;
    gap: 2rem;
  }
}

.support-path h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--noor-cream);
}

html[dir="rtl"] .support-path h3 {
  font-family: var(--font-arabic);
  font-weight: 650;
}

.support-path p {
  margin: 0;
  color: rgba(254, 250, 224, 0.68);
  font-size: 0.98rem;
}

.donate-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: rgba(254, 250, 224, 0.5);
  max-width: 40rem;
}

/* Support form */
.support-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 880px) {
  .support-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: start;
  }
}

.form-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 560px) {
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--noor-sage);
  margin-bottom: 0.45rem;
}

html[dir="rtl"] .field label {
  text-transform: none;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--noor-border);
  background: transparent;
  color: var(--noor-ink);
  font-size: 1rem;
  border-radius: 0;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--noor-green);
}

.field textarea { resize: vertical; min-height: 8rem; }

.form-grid .btn { width: 100%; }

.text-red-600 { color: #B42318; }
.text-gray-600 { color: var(--noor-muted); }

.form-note {
  font-size: 0.9rem;
  color: var(--noor-muted);
  margin: 0 0 1.5rem;
}

.contact-aside h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}

html[dir="rtl"] .contact-aside h3 {
  font-family: var(--font-arabic);
  font-weight: 650;
}

.contact-row {
  padding: 1.15rem 0;
  border-top: 1px solid var(--noor-line);
}

.contact-row strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.contact-row a { color: var(--noor-green); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--noor-ink);
  color: var(--noor-cream);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(254, 250, 224, 0.1);
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.4fr 2fr;
    gap: 5rem;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0.85rem 0 1rem;
}

html[dir="rtl"] .footer-brand-name {
  font-family: var(--font-arabic);
  font-weight: 650;
  letter-spacing: 0;
}

.footer-desc {
  color: rgba(254, 250, 224, 0.58);
  max-width: 26rem;
  margin: 0;
  font-size: 0.98rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

.footer-cols h4 {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(254, 250, 224, 0.45);
}

html[dir="rtl"] .footer-cols h4 {
  text-transform: none;
  letter-spacing: 0.04em;
}

.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a {
  color: rgba(254, 250, 224, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.28rem 0;
}

.footer-cols a:hover { color: var(--noor-cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(254, 250, 224, 0.4);
}

.footer-bottom .heart { color: var(--noor-sage); }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.active {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .demo-swipe-anim { animation: none; }
}

/* Subpages */
.subpage-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--noor-cream);
  border-bottom: 1px solid var(--noor-line);
}

.subpage-nav .nav-secondary {
  display: flex !important;
}

.subpage-nav .site-nav-inner { width: min(720px, calc(100% - 2rem)); }

.subpage-main {
  padding: calc(var(--nav-h) + 3rem) 1.25rem 5rem;
}

.subpage-main .wrap { width: min(720px, 100%); }

.legal-panel {
  background: var(--noor-ivory);
  border: 1px solid var(--noor-border);
  padding: 2rem 1.5rem 2.5rem;
}

@media (min-width: 640px) {
  .legal-panel { padding: 2.75rem 3rem; }
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--noor-ink);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}

html[dir="rtl"] .legal-content h2 {
  font-family: var(--font-arabic);
  font-weight: 650;
}

.legal-content h3 {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--noor-green);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--noor-muted);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
  margin: 0.75rem 0;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content a { color: var(--noor-green); text-decoration: underline; }

[hidden] { display: none !important; }

.legal-panel p { color: var(--noor-muted); line-height: 1.8; }
.legal-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.legal-links a { color: var(--noor-green); text-decoration: none; font-size: 0.92rem; }
.legal-links a:hover { text-decoration: underline; }

/* Demo — mirrors the real Noor app. Keep intact. */
#demo-app {
  height: 100%;
  background: #f1f1eb;
  font-family: Figtree, "IBM Plex Sans Arabic", system-ui, sans-serif;
  overflow: hidden;
  position: relative;
  color: #1E1E1E;
}

#demo-feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

#demo-feed::-webkit-scrollbar { display: none; }

.demo-page {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #f1f1eb;
  position: relative;
  overflow: hidden;
}

.demo-quran { font-family: "Amiri Quran", Amiri, "IBM Plex Sans Arabic", serif; }

.demo-shadow { box-shadow: 0 4px 16px -6px rgba(58, 90, 64, 0.12); }

@keyframes demo-swipe-hint {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.demo-swipe-anim { animation: demo-swipe-hint 1.6s ease-in-out infinite; }

.demo-browse-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 16px -6px rgba(58, 90, 64, 0.1);
  text-align: start;
  width: 100%;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.demo-browse-btn:hover { background: #fafaf7; }

.demo-discover-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px -6px rgba(58, 90, 64, 0.12);
  cursor: pointer;
  border: 0;
  padding: 0;
}

.demo-discover-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.demo-discover-tile:hover img { transform: scale(1.05); }

.demo-cat-pill {
  display: inline-block;
  background: #3A5A40;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.demo-feed-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 4px;
}

.demo-feed-body::-webkit-scrollbar { display: none; }

/* RTL refinements */
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .nav-secondary,
html[dir="rtl"] .nav-primary {
  flex-direction: row;
}

html[dir="rtl"] .faq-trigger { text-align: right; }

section[id] { scroll-margin-top: 88px; }

@media (max-width: 640px) {
  .wrap, .wrap-wide { width: calc(100% - 2rem); }
  .band { padding: 4.5rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .section-head { margin-bottom: 2.5rem; }
  .faq-answer p { padding-inline-start: 0; }
}
