/* ==========================================================================
   MuslimAi — Modern, Luxury & Trustworthy Design System
   ========================================================================== */

:root {
  /* Color Palette — Luxury Emerald, Champagne Gold & Warm Pearl Ivory */
  --ivory: #FBF9F4;
  --ivory-2: #F4EFE6;
  --ivory-3: #ECE4D6;
  --paper: #FFFFFF;
  
  --ink: #111A15;
  --ink-2: #24332B;
  --ink-3: #3B4D43;
  --muted: #5E7266;
  --muted-light: #8E9F95;
  --line: #E8E1D3;
  --line-strong: #D6CAB3;
  
  --emerald-950: #041610;
  --emerald-900: #07221A;
  --emerald-850: #0B2E23;
  --emerald: #0E3B2E;
  --emerald-2: #145A43;
  --emerald-3: #1D6B51;
  --emerald-4: #288466;
  --emerald-light: #EBF5F0;
  --emerald-glow: rgba(20, 90, 67, 0.35);
  
  --gold-300: #FCE8B3;
  --gold-soft: #F6EDD9;
  --gold-2: #E2C37A;
  --gold: #C99C3B;
  --gold-dark: #9F7622;
  --gold-glow: rgba(201, 156, 59, 0.28);
  
  /* Typography */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-quran: "Amiri", "Noto Naskh Arabic", Georgia, serif;
  
  /* Dimensions & Spacing */
  --wrap: 1180px;
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  
  /* Elevation & Shadows */
  --shadow-xs: 0 1px 3px rgba(17, 26, 21, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(17, 26, 21, 0.06), 0 2px 4px rgba(17, 26, 21, 0.04);
  --shadow: 0 16px 38px -12px rgba(17, 26, 21, 0.12), 0 3px 8px rgba(17, 26, 21, 0.04);
  --shadow-lg: 0 24px 60px -16px rgba(17, 26, 21, 0.18), 0 8px 18px rgba(17, 26, 21, 0.06);
  --shadow-hero: 0 32px 80px -20px rgba(0, 0, 0, 0.45);
}

/* Language specific font adjustments */
:lang(ar) { --f-display: "Noto Kufi Arabic", sans-serif; --f-body: "Noto Naskh Arabic", "Noto Kufi Arabic", serif; }
:lang(fa) { --f-display: "Vazirmatn", sans-serif; --f-body: "Vazirmatn", sans-serif; }
:lang(ur) { --f-display: "Noto Nastaliq Urdu", serif; --f-body: "Noto Nastaliq Urdu", serif; }
:lang(hi) { --f-display: "Noto Serif Devanagari", serif; --f-body: "Noto Sans Devanagari", sans-serif; }
:lang(bn) { --f-display: "Noto Serif Bengali", serif; --f-body: "Noto Sans Bengali", sans-serif; }

/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(ur) body, body:lang(ur) { line-height: 2.1; }

::selection {
  background: rgba(201, 156, 59, 0.28);
  color: var(--emerald-950);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}
:lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { line-height: 1.9; letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
:lang(fa) h1, :lang(fa) h2, :lang(fa) h3,
:lang(hi) h1, :lang(hi) h2,
:lang(bn) h1, :lang(bn) h2 { letter-spacing: 0; line-height: 1.45; }

p { margin: 0; }

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

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: 12px;
  background: var(--paper);
  color: var(--emerald);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease;
}
.brand:hover { transform: scale(1.02); }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline-start: auto;
}
.nav a {
  color: rgba(251, 249, 244, 0.85);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav a:hover {
  color: #FFFFFF;
}
.nav a:hover::after {
  width: 100%;
}

/* Language selector */
.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.lang summary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(226, 195, 122, 0.45);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg {
  width: 16px;
  height: 16px;
  color: var(--gold-2);
}
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  list-style: none;
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 60;
  backdrop-filter: blur(20px);
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 14.5px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang li a:hover, .lang li a[aria-current] {
  background: var(--ivory-2);
  color: var(--emerald-850);
}
.lang li a[aria-current] {
  font-weight: 700;
}
.lang li a small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ivory-3);
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FCE8B3 0%, var(--gold-2) 100%);
  color: var(--emerald-950);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(201, 156, 59, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 156, 59, 0.45);
  filter: brightness(1.05);
}
.btn-dl:active { transform: translateY(0); }

/* Header variant for legal pages */
.top.light {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top.light .brand { color: var(--emerald); }
.top.light .brand img { box-shadow: 0 4px 12px rgba(14, 59, 46, 0.15); }
.top.light .lang summary {
  color: var(--ink);
  background: var(--ivory-2);
  border-color: var(--line);
}
.top.light .lang summary svg { color: var(--gold-dark); }
.back {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back:hover {
  color: var(--emerald);
  transform: translateX(-3px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 85% 15%, rgba(226, 195, 122, 0.18), transparent 60%),
    radial-gradient(800px 500px at 15% 85%, rgba(40, 132, 102, 0.2), transparent 70%),
    linear-gradient(175deg, #07221A 0%, var(--emerald) 45%, #0B2E23 100%);
  color: var(--ivory);
  padding: 165px 0 130px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pattern.svg");
  background-size: 130px 130px;
  opacity: 0.1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: url("skyline.svg") no-repeat center bottom / 100% 120px;
  opacity: 0.45;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(246, 237, 217, 0.1);
  border: 1px solid rgba(226, 195, 122, 0.35);
  color: var(--gold-300);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(226, 195, 122, 0.2);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero h1 {
  font-size: clamp(44px, 5.8vw, 74px);
  margin: 24px 0 20px;
  color: #FFFFFF;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #FFF6DD 0%, var(--gold-2) 60%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
:lang(ar) .hero h1 em, :lang(fa) .hero h1 em, :lang(ur) .hero h1 em, :lang(hi) .hero h1 em, :lang(bn) .hero h1 em {
  font-style: normal;
}

.hero .lead {
  font-size: clamp(17.5px, 1.6vw, 20px);
  color: rgba(251, 249, 244, 0.86);
  max-width: 580px;
  line-height: 1.65;
  font-weight: 400;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--ink);
  min-width: 185px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.store::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.store:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
}
.store:hover::after { left: 150%; }

.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.18; }
.store small { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.store b { font-size: 18px; font-weight: 700; font-family: system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; color: var(--ink); }

.store.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(251, 249, 244, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.25);
}
.store.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(251, 249, 244, 0.6);
}
.store.ghost small { color: rgba(251, 249, 244, 0.72); }
.store.ghost b { color: #FFFFFF; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  color: rgba(251, 249, 244, 0.82);
  font-size: 14.5px;
  font-weight: 500;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--gold-2);
  flex: none;
}

/* ==========================================================================
   Elevated Phone Mockup & Surrounding Elements
   ========================================================================== */
.phone {
  position: relative;
  justify-self: center;
  width: 320px;
  aspect-ratio: 9 / 18.8;
  border-radius: 48px;
  background: #0D1612;
  padding: 12px;
  box-shadow:
    0 45px 100px -25px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 80px -20px rgba(226, 195, 122, 0.22);
  transform: rotate(-2.5deg);
  transition: transform 0.4s ease;
}
[dir=rtl] .phone { transform: rotate(2.5deg); }
.phone:hover { transform: rotate(0deg) scale(1.02); }

/* Dynamic island */
.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 20px;
  background: #000000;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #F9F5EC 0%, #FFFFFF 40%, #F5EFE3 100%);
  overflow: hidden;
  padding: 56px 14px 70px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}
.screen::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  border-top-left-radius: 38px;
  border-top-right-radius: 38px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.app-head img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.app-head b {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--emerald-850);
}
.app-head .chip {
  margin-inline-start: auto;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}

/* Prayer Banner in Phone */
.prayer {
  border-radius: 20px;
  padding: 14px 14px 12px;
  background: linear-gradient(145deg, #135841 0%, #0B3326 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -6px rgba(11, 51, 38, 0.45);
}
.prayer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pattern.svg");
  background-size: 65px;
  opacity: 0.12;
  pointer-events: none;
}
.prayer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}
.prayer .next {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  color: #FFFFFF;
}
.prayer .time {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, sans-serif;
  color: #FFFFFF;
}
.prayer .left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(246, 237, 217, 0.22);
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.times {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 11px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.times div {
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.72);
  padding: 5px 2px;
  border-radius: 8px;
  white-space: nowrap;
}
.times div b {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  font-family: system-ui, -apple-system, sans-serif;
}
.times div.on {
  background: rgba(226, 195, 122, 0.28);
  border: 1px solid rgba(226, 195, 122, 0.45);
}

.mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.card-s {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: var(--shadow-xs);
}
.card-s small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  display: block;
}
.card-s b {
  font-size: 16px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--emerald-850);
}
.ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 68%, var(--ivory-3) 0);
  display: grid;
  place-items: center;
  margin-top: 4px;
}
.ring::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
}

.voice-s {
  margin-top: 10px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 13px;
  box-shadow: var(--shadow-xs);
}
.voice-s .t {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--emerald-850);
}
.voice-s small {
  color: var(--muted);
  font-size: 10px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 24px;
  margin-top: 6px;
}
.wave i {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  animation: waveBar 1.6s ease-in-out infinite alternate;
}
.wave i:nth-child(even) { animation-duration: 1.1s; }
.wave i:nth-child(3n) { animation-duration: 1.9s; }
@keyframes waveBar {
  0% { transform: scaleY(0.5); opacity: 0.6; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

.verse-s {
  margin-top: 10px;
  border-radius: 16px;
  padding: 10px 12px;
  background: linear-gradient(145deg, #F7EED9 0%, #EFE1C2 100%);
  border: 1px solid rgba(201, 156, 59, 0.25);
  color: #4B3B18;
}
.verse-s .ar {
  font-family: var(--f-quran);
  font-size: 15px;
  direction: rtl;
  text-align: center;
  line-height: 1.8;
  font-weight: 600;
}

.tabbar {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 48px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
}
.tabbar i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--ivory-2);
}
.tabbar i.on {
  background: var(--emerald);
  box-shadow: 0 2px 6px rgba(14, 59, 46, 0.35);
}

/* Floating Compass Orbiting Phone */
.compass {
  position: absolute;
  inset-inline-end: -46px;
  top: -20px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(226, 195, 122, 0.3);
  display: grid;
  place-items: center;
  animation: floatSlow 5s ease-in-out infinite alternate;
  z-index: 12;
}
.compass svg, .compass img {
  width: 78px;
  height: 78px;
}
@keyframes floatSlow {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(3deg); }
}

/* ==========================================================================
   Trust Strip Section (Social Proof / Credibility)
   ========================================================================== */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  position: relative;
  z-index: 10;
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--emerald-light);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(20, 90, 67, 0.15);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item div { line-height: 1.35; }
.trust-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--f-body);
}
.trust-item span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
section {
  padding: 110px 0;
  position: relative;
}
.sec-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(34px, 3.8vw, 48px);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sec-head p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 156, 59, 0.2);
}
:lang(ar) .kicker, :lang(fa) .kicker, :lang(ur) .kicker {
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   Features Section (Modern Bento / Card Layout)
   ========================================================================== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.feat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #F6EED9 0%, #EBDAB2 100%);
  color: #7A5816;
  margin-bottom: 22px;
  border: 1px solid rgba(201, 156, 59, 0.2);
  transition: transform 0.25s ease;
}
.feat:hover .ico {
  transform: scale(1.08);
}
.ico svg { width: 26px; height: 26px; }

.feat h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--ink);
}
:lang(ar) .feat h3, :lang(fa) .feat h3, :lang(ur) .feat h3 { font-size: 20px; }
.feat p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* Star highlight card */
.feat.star {
  background: linear-gradient(155deg, #165D46 0%, var(--emerald) 55%, #0A2F23 100%);
  color: #FFFFFF;
  border: 1px solid rgba(226, 195, 122, 0.35);
  box-shadow: 0 16px 40px -10px rgba(14, 59, 46, 0.4);
}
.feat.star h3 { color: #FFFFFF; }
.feat.star p { color: rgba(251, 249, 244, 0.85); }
.feat.star .ico {
  background: rgba(246, 237, 217, 0.16);
  color: var(--gold-2);
  border-color: rgba(226, 195, 122, 0.35);
}

/* ==========================================================================
   Voice Showcase Section
   ========================================================================== */
.voice {
  background: var(--ivory-2);
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.voice::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pattern.svg");
  background-size: 140px;
  opacity: 0.05;
  pointer-events: none;
}
.voice .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.voice h2 {
  font-size: clamp(34px, 3.8vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.voice .sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 18px;
  counter-reset: stepCount;
}
.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  counter-increment: stepCount;
}
.steps li::before {
  content: counter(stepCount);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--f-display);
  font-size: 19px;
  box-shadow: var(--shadow-xs);
}
.steps b {
  display: block;
  font-size: 17.5px;
  margin-bottom: 4px;
  color: var(--ink);
}
.steps span {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.note {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px;
  box-shadow: var(--shadow-xs);
  line-height: 1.55;
}
.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--emerald-3);
  margin-top: 1px;
}

/* Voice Showcase Player Card */
.player {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.player::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, rgba(226, 195, 122, 0.4), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.player .top-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-2) 0%, var(--gold-dark) 100%);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(201, 156, 59, 0.4);
}
.avatar svg { width: 28px; height: 28px; }
.player h3 {
  font-size: 21px;
  color: var(--emerald-850);
}
.player .meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
}

.big-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 94px;
  margin: 30px 0 22px;
  padding: 0 4px;
}
.big-wave i {
  flex: 1;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
  transition: transform 0.2s ease;
}
.big-wave i.dim {
  background: var(--ivory-3);
  opacity: 0.6;
}

.ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
}
.play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--emerald-2) 0%, var(--emerald) 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px -8px rgba(14, 59, 46, 0.55);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.play:hover {
  transform: scale(1.06);
  box-shadow: 0 20px 40px -8px rgba(14, 59, 46, 0.65);
}
.play svg {
  width: 24px;
  height: 24px;
  margin-inline-start: 3px;
}
[dir=rtl] .play svg {
  transform: scaleX(-1);
  margin-inline-start: 0;
  margin-inline-end: 3px;
}

.ayah {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-quran);
  font-size: 28px;
  text-align: center;
  direction: rtl;
  color: var(--emerald-850);
  line-height: 2;
  font-weight: 500;
}

/* ==========================================================================
   Languages Section
   ========================================================================== */
.langs { text-align: center; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.chips a {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
  font-family: system-ui, -apple-system, sans-serif;
}
.chips a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--emerald-850);
}

/* ==========================================================================
   Privacy & Security Section
   ========================================================================== */
.privacy-band {
  background: linear-gradient(155deg, #07221A 0%, var(--emerald) 50%, #0B2F24 100%);
  color: var(--ivory);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(226, 195, 122, 0.25);
}
.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pattern.svg");
  background-size: 120px;
  opacity: 0.08;
  pointer-events: none;
}
.privacy-band > * { position: relative; z-index: 2; }
.privacy-band h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  color: #FFFFFF;
  margin-top: 10px;
}
.privacy-band p {
  color: rgba(251, 249, 244, 0.82);
  margin-top: 16px;
  font-size: 17.5px;
  line-height: 1.6;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16.5px;
  line-height: 1.5;
}
.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold-2);
  margin-top: 2px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}
.links a {
  color: var(--gold-300);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid rgba(246, 237, 217, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.links a:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
  max-width: 840px;
  margin: 0 auto;
}
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details:hover {
  border-color: var(--line-strong);
}
.faq details[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--ink);
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-inline-end: 2.2px solid var(--gold-dark);
  border-bottom: 2.2px solid var(--gold-dark);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -3px;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq details p {
  padding: 0 28px 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  text-align: center;
  padding: 60px 0 120px;
}
.cta img {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(201, 156, 59, 0.2);
}
.cta h2 {
  font-size: clamp(36px, 4.2vw, 54px);
  color: var(--ink);
}
.cta p {
  color: var(--muted);
  font-size: 19px;
  margin-top: 14px;
}
.cta .stores {
  justify-content: center;
  margin-top: 36px;
}
.cta .store {
  background: var(--ink);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cta .store b { color: #FFFFFF; }
.cta .store small { color: rgba(255, 255, 255, 0.65); }
.cta .store:hover {
  background: var(--emerald-950);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--emerald-950);
  color: rgba(251, 249, 244, 0.75);
  padding: 70px 0 38px;
  font-size: 15px;
  border-top: 1px solid rgba(226, 195, 122, 0.15);
  position: relative;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
footer .brand {
  color: #FFFFFF;
  margin-bottom: 14px;
}
footer .cols p {
  line-height: 1.6;
  max-width: 320px;
}
footer h4 {
  color: #FFFFFF;
  font-size: 14px;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:lang(ar) footer h4, :lang(fa) footer h4, :lang(ur) footer h4 { letter-spacing: 0; }
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
footer a {
  text-decoration: none;
  color: rgba(251, 249, 244, 0.75);
  transition: color 0.2s ease;
}
footer a:hover { color: #FFFFFF; }
footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid rgba(251, 249, 244, 0.12);
  margin-top: 48px;
  padding-top: 28px;
  font-size: 14px;
}

/* ==========================================================================
   Legal Pages (Privacy, Terms, KVKK)
   ========================================================================== */
.legal {
  padding: 60px 0 100px;
}
.legal .wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 30px;
  font-size: 14px;
  background: var(--paper);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.toc b {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 700;
}
:lang(ar) .toc b, :lang(fa) .toc b, :lang(ur) .toc b { letter-spacing: 0; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  border-inline-start: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  transition: all 0.2s ease;
}
.toc a:hover {
  color: var(--emerald-850);
  border-color: var(--gold);
  font-weight: 600;
}

.doc {
  max-width: 800px;
  min-width: 0;
}
.doc h1 {
  font-size: clamp(38px, 4.2vw, 54px);
  color: var(--ink);
}
.doc .upd {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
}
.doc .intro {
  font-size: 18.5px;
  color: var(--ink-2);
  margin: 30px 0 12px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  line-height: 1.65;
  box-shadow: var(--shadow-xs);
}
.doc h2 {
  font-size: 26px;
  margin: 52px 0 18px;
  scroll-margin-top: 30px;
  color: var(--emerald-850);
}
.doc p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.7;
}
.doc ul {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}
.doc li {
  margin-bottom: 10px;
  color: var(--ink-2);
  line-height: 1.65;
}
.doc li::marker { color: var(--gold); }
.doc a {
  color: var(--emerald-3);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 107, 81, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.doc a:hover { color: var(--emerald); }
.doc strong { color: var(--ink); }

.tbl {
  overflow-x: auto;
  margin: 10px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.tbl th, .tbl td {
  text-align: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  background: var(--ivory-2);
  font-weight: 700;
  color: var(--ink);
}
.tbl tr:last-child td { border-bottom: 0; }

.other {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.other a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.other a:hover { color: var(--gold-dark); }

/* Reveal */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .hero { padding: 130px 0 90px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 70px; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .voice .wrap { grid-template-columns: 1fr; gap: 48px; }
  .privacy-band { grid-template-columns: 1fr; padding: 44px 32px; gap: 32px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
  .legal .wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .wrap { padding: 0 20px; }
  .top .wrap { height: 76px; gap: 14px; }
  .btn-dl { display: none; }
  .brand { font-size: 20px; }
  .hero h1 { font-size: 38px; }
  .trust-strip .wrap { grid-template-columns: 1fr; gap: 16px; }
  .grid3 { grid-template-columns: 1fr; }
  .feat {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 4px 18px;
    padding: 24px 22px;
  }
  .feat .ico { grid-row: span 2; margin: 0; width: 46px; height: 46px; }
  .feat h3 { font-size: 19px; margin: 0 0 4px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .phone { width: 280px; }
  .compass { display: none; }
  .back { display: none; }
  .top.light .lang { margin-inline-start: auto; }
  .times div { font-size: 7.5px; }
  .times div b { font-size: 9.5px; }
  .sec-head { margin-bottom: 44px; }
  footer .cols { grid-template-columns: 1fr; }
  .player { padding: 26px 20px; }
  .ayah { font-size: 22px; }
}
