/* =========================================================
   Iqra Quran — marketing site
   Palette mirrors the app (lib/core/theme/app_colors.dart):
   deep green #0F4C3A, soft gold #C8A96A, paper #F3F2F2.
   ========================================================= */

:root {
  --primary: #0f4c3a;
  --primary-600: #0b3b2d;
  --primary-700: #082c22;
  --primary-soft: #e6ede9;
  --accent: #c8a96a;
  --accent-600: #b08e4c;
  --accent-soft: #f2ebde;

  --bg: #f3f2f2;
  --bg-alt: #ebe9e6;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6a6a6a;
  --divider: #e2e1e1;

  --pattern-stroke: rgba(15, 76, 58, 0.07);
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.06), 0 1px 3px rgba(16, 24, 20, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(15, 76, 58, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(8, 44, 34, 0.45);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-arabic: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #5fb193;
    --primary-600: #4a9a7d;
    --primary-700: #0f4c3a;
    --primary-soft: #16261f;
    --accent: #d6ba7f;
    --accent-600: #c8a96a;
    --accent-soft: #2a2317;
    --bg: #121212;
    --bg-alt: #171717;
    --surface: #1b1b1b;
    --text: #edeae3;
    --muted: #a6a29a;
    --divider: #2c2c2c;
    --pattern-stroke: rgba(200, 169, 106, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #5fb193;
  --primary-600: #4a9a7d;
  --primary-700: #0f4c3a;
  --primary-soft: #16261f;
  --accent: #d6ba7f;
  --accent-600: #c8a96a;
  --accent-soft: #2a2317;
  --bg: #121212;
  --bg-alt: #171717;
  --surface: #1b1b1b;
  --text: #edeae3;
  --muted: #a6a29a;
  --divider: #2c2c2c;
  --pattern-stroke: rgba(200, 169, 106, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }

.arabic { font-family: var(--font-arabic); direction: rtl; line-height: 2; }

/* Islamic star pattern — same motif as the app's IslamicPatternBackground */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230F4C3A' stroke-width='1'%3E%3Cpath d='M40 8 L48 32 L72 40 L48 48 L40 72 L32 48 L8 40 L32 32 Z'/%3E%3Cpath d='M17 17 L40 26 L63 17 L54 40 L63 63 L40 54 L17 63 L26 40 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
:root[data-theme="dark"] .pattern { opacity: 0.1; filter: invert(0.7) sepia(1) hue-rotate(5deg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pattern { opacity: 0.1; filter: invert(0.7) sepia(1) hue-rotate(5deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 16px 40px -14px rgba(15, 76, 58, 0.55); }
.btn-ghost { border-color: var(--divider); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 22px 11px 18px; border-radius: 14px;
  background: #0b0b0b; color: #fff; border: 1px solid #0b0b0b;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 11px; opacity: 0.8; letter-spacing: 0.02em; }
.store-badge strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.is-soon { background: transparent; color: var(--text); border-color: var(--divider); cursor: default; }
.store-badge.is-soon:hover { transform: none; box-shadow: none; }
.store-badge.is-soon svg path { fill: currentColor; }
.soon-tag {
  position: absolute; top: -9px; right: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #2a2317; padding: 3px 8px; border-radius: 999px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--divider);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 42px; height: 42px; }
.brand em { font-style: normal; color: var(--accent-600); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); position: relative; transition: color 0.2s; display: inline-block; padding: 12px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  bottom: 6px;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--divider); background: var(--surface); color: var(--text);
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: rotate(-12deg); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-toggle { display: none; }
.nav .btn { padding: 12px 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -250px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -350px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--divider);
  font-size: 13px; font-weight: 600; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-ayah { margin: 26px 0 10px; font-size: clamp(26px, 3.2vw, 36px); color: var(--primary); text-align: left; line-height: 1.8; }
.hero-ayah-ref { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.6vw, 70px); letter-spacing: -0.025em; line-height: 1.04;
}
.hero h1 .gold {
  background: linear-gradient(100deg, var(--accent-600), var(--accent) 45%, #e6d3a3 60%, var(--accent-600));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  font-style: italic;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.hero-lead { margin: 22px 0 34px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--primary); }

.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; }
.hero-visual { --main-x: -30%; --back-x: -105%; }
.hero-visual .phone-main { left: 50%; top: 10px; transform: translateX(var(--main-x)); z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-visual .phone-back { left: 50%; top: 70px; transform: translateX(var(--back-x)) rotate(-7deg) scale(0.88); z-index: 1; opacity: 0.95; animation: float-back 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateX(var(--main-x)) translateY(0); } 50% { transform: translateX(var(--main-x)) translateY(-16px); } }
@keyframes float-back { 0%, 100% { transform: translateX(var(--back-x)) rotate(-7deg) scale(0.88) translateY(0); } 50% { transform: translateX(var(--back-x)) rotate(-7deg) scale(0.88) translateY(12px); } }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--divider); box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.35;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); }
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.float-card .fc-icon.gold { background: var(--accent-soft); color: var(--accent-600); }
.float-card .fc-icon svg { width: 20px; height: 20px; }
.fc-player { right: 0; top: 120px; animation: bob 6s ease-in-out infinite; }
.fc-prayer { left: 0; bottom: 110px; animation: bob 7s ease-in-out 1s infinite; }
.fc-hifz { right: 18px; bottom: 30px; animation: bob 6.5s ease-in-out 0.5s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; background: var(--primary); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.2s; } .eq i:nth-child(3) { animation-delay: 0.4s; } .eq i:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* ---------- Phone mockup ---------- */
.phone {
  --w: 280px;
  width: var(--w); aspect-ratio: 9 / 19.5;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(145deg, #2b2b2b, #0c0c0c 45%, #222);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a3a3a, inset 0 0 0 4px #111;
  position: relative;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%;
  border-radius: 0 3px 3px 0; background: #1b1b1b;
}
.phone::after { /* camera punch-hole */
  content: ""; position: absolute; left: 50%; top: calc(var(--w) * 0.055);
  width: calc(var(--w) * 0.05); height: calc(var(--w) * 0.05);
  transform: translateX(-50%); border-radius: 50%; background: #050505;
  box-shadow: inset 0 0 0 2px #1a1a1a; z-index: 2;
}
.phone .screen { width: 100%; height: 100%; border-radius: calc(var(--w) * 0.13); overflow: hidden; background: #f3f2f2; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-sm { --w: 230px; }
.phone-lg { --w: 300px; }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 1; margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 26px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--divider); }
.stat-num { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; color: var(--primary); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--divider); background: var(--bg-alt); overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; color: var(--muted); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--accent-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-600);
  margin-bottom: 16px;
}
.kicker::before, .kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .kicker::after { display: none; }
.section-title { font-family: var(--font-display); font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.02em; line-height: 1.08; }
.section-title em { font-style: italic; color: var(--primary); }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* ---------- Feature grid (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 30px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 50%, var(--divider)); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 22px;
  transition: transform 0.45s var(--ease);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); }
.card-icon.gold { background: var(--accent-soft); color: var(--accent-600); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.card-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; padding-bottom: 0; background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.card-feature .card-copy { padding-bottom: 30px; }
.card-feature .mini-phone { align-self: end; justify-self: center; width: 200px; height: 250px; overflow: hidden; border-radius: 26px 26px 0 0; border: 8px solid #111; border-bottom: 0; box-shadow: var(--shadow-md); }
.card-feature .mini-phone img { width: 100%; object-fit: cover; object-position: top; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--divider); color: var(--text); }

/* Waveform in the recitations card */
.card-audio { display: flex; flex-direction: column; }
.wave { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 4px; height: 70px; }
.wave i { flex: 1; min-width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--primary)); opacity: 0.75; height: var(--h, 40%); transform-origin: center; animation: wave 1.6s ease-in-out infinite; animation-delay: var(--wd, 0s); }
@keyframes wave { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
.now-playing { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--muted); }
.now-playing strong { color: var(--text); font-weight: 600; }

/* ---------- Showcase rows ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.showcase > *, .hero-grid > *, .bento > * { min-width: 0; }
.showcase + .showcase { margin-top: 140px; }
.showcase.reverse .showcase-visual { order: 2; }
.showcase-visual { position: relative; display: flex; justify-content: center; min-height: 560px; align-items: center; }
.showcase-visual .blob {
  position: absolute; width: min(440px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--primary) 18%, transparent) 60%, transparent 70%);
  filter: blur(10px);
}
.showcase-visual .ring {
  position: absolute; width: min(520px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.showcase-visual .phone { z-index: 1; }
.showcase-visual .phone + .phone { margin-left: -70px; margin-top: 90px; z-index: 0; transform: rotate(6deg); }
.showcase-copy h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; margin-bottom: 18px; }
.showcase-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-top: 1px; }
.checklist .tick svg { width: 14px; height: 14px; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 15px; }
.reciters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.reciters .chip { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.srs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.srs span { padding: 9px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; border: 1px solid var(--divider); background: var(--surface); }
.srs span:nth-child(1) { color: #b3261e; }
.srs span:nth-child(2) { color: var(--accent-600); }
.srs span:nth-child(3) { color: var(--primary); }
.srs span:nth-child(4) { background: var(--primary-700); color: #fff; border-color: var(--primary-700); }

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 34px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 30px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 60px;
  scrollbar-width: none; cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex-shrink: 0; text-align: center; }
.gallery .phone { --w: 250px; transition: transform 0.5s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-10px); }
.gallery figcaption { margin-top: 22px; font-weight: 600; }
.gallery figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.gallery-controls { display: flex; justify-content: center; gap: 12px; }
.gallery-controls .icon-btn:hover { transform: none; }

/* ---------- Values band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 32px;
  background: radial-gradient(circle at 85% 10%, rgba(200, 169, 106, 0.25), transparent 40%), linear-gradient(140deg, #0f4c3a, #082c22 70%);
  color: #edeae3; padding: 80px 64px;
}
.band .pattern { opacity: 0.12; filter: invert(1) sepia(1) saturate(0.5); -webkit-mask-image: none; mask-image: none; }
.band .section-title { color: #fff; }
.band .section-title em { color: var(--accent); }
.band .kicker { color: var(--accent); }
.band .section-sub { color: rgba(237, 234, 227, 0.75); }
.values { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.value { padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background-color 0.3s, transform 0.4s var(--ease); }
.value:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-4px); }
.value svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }
.value h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.value p { font-size: 14.5px; color: rgba(237, 234, 227, 0.72); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); opacity: 0.6; }
.step { text-align: center; position: relative; padding: 0 12px; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--primary);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; max-width: 320px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 60%, var(--divider)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: 110px 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--divider); }
.cta::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 180deg at 50% 50%, transparent, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%); animation: spin 30s linear infinite; }
.cta > * { position: relative; }
.cta-logo { width: 110px; height: 110px; margin: 0 auto 26px; filter: drop-shadow(0 16px 30px rgba(15, 76, 58, 0.25)); }
.cta .store-badges { justify-content: center; margin-top: 36px; }
.cta .arabic { font-size: 26px; color: var(--primary); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); margin-top: 120px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text); opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-grid ul a:hover { color: var(--primary); opacity: 1; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--divider); background: var(--surface);
  font-weight: 600; font-size: 14.5px; color: var(--text); transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.footer-mail:hover { border-color: var(--accent); color: var(--primary); transform: translateY(-2px); }
.footer-mail svg { width: 18px; height: 18px; color: var(--accent-600); }
.text-link { color: var(--primary); font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); }
.text-link:hover { border-bottom-color: var(--primary); }
.footer-about p { color: var(--muted); margin-top: 16px; max-width: 340px; font-size: 15px; }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.dev-credit { display: inline-flex; align-items: center; gap: 8px; }
.dev-credit a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 1px; transition: color 0.2s; }
.dev-credit a:hover { color: var(--primary); }
.dev-credit .heart { color: #c0392b; }

.to-top {
  position: fixed; right: calc(22px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--primary-700); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transform: scaleX(0); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero intro */
.js .hero [data-intro] { opacity: 0; transform: translateY(24px); animation: intro 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes intro { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ayah { text-align: center; }
  .hero .store-badges, .hero-meta { justify-content: center; }
  .hero-visual { height: 600px; max-width: 560px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
  .bento > :last-child { grid-column: span 2; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .showcase { gap: 50px; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 76px 16px auto 16px; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--surface); border: 1px solid var(--divider); border-radius: 20px; padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(0.98); pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; color: var(--text); }
  .nav-links a:hover { background: var(--bg); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: grid; }
  .nav .btn { display: none; }
  .showcase, .showcase.reverse { grid-template-columns: minmax(0, 1fr); }
  .showcase.reverse .showcase-visual { order: 0; }
  .showcase-visual { min-height: 500px; }
  .showcase + .showcase { margin-top: 100px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--divider); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-visual { height: 520px; }
  .hero-visual { --main-x: -20%; --back-x: -86%; }
  .hero-visual .phone-main { --w: 220px; }
  .hero-visual .phone-back { --w: 200px; }
  .fc-player { right: -4px; top: 60px; }
  .fc-prayer { left: -4px; bottom: 80px; }
  .fc-hifz { display: none; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento > :last-child { grid-column: span 1; }
  .card-feature { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .band { padding: 56px 22px; border-radius: 24px; }
  .showcase-visual { min-height: 440px; }
  .showcase-visual .phone { --w: 220px; }
  .showcase-visual .phone + .phone { --w: 190px; margin-left: -80px; }
  .gallery .phone { --w: 220px; }
  .cta { padding: 80px 20px; border-radius: 24px; }
  .store-badge { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 11px 14px; }
  .store-badge strong { font-size: 16px; white-space: nowrap; }
  .store-badge small { white-space: nowrap; font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand span { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-intro] { opacity: 1; transform: none; }
}

/* Extra-small phones (≤ 380px: iPhone SE / mini, small Androids) */
@media (max-width: 380px) {
  .eyebrow .dot { display: none; }
  .eyebrow { padding: 7px 14px; font-size: 12px; }
  .hero h1 { font-size: 36px; }
  .hero-ayah { font-size: 24px; }
  .hero-visual { height: 460px; --main-x: -18%; --back-x: -84%; }
  .hero-visual .phone-main { --w: 190px; }
  .hero-visual .phone-back { --w: 170px; }
  .float-card { padding: 10px 12px; font-size: 12px; }
  .float-card strong { font-size: 13px; }
  .float-card .fc-icon { width: 32px; height: 32px; }
  .showcase-visual { min-height: 380px; }
  .showcase-visual .phone { --w: 185px; }
  .showcase-visual .phone + .phone { --w: 150px; margin-left: -60px; margin-top: 70px; }
  .gallery .phone { --w: 200px; }
  .stat { padding: 20px 10px; }
  .stat-label { font-size: 13px; }
  .band { padding: 48px 18px; }
  .card { padding: 24px; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq .answer { padding: 0 20px 20px; }
}
