/* WellVersed site, 2026 redesign.
   Built from the app's own design: night emerald, lamp gold, the qandeel.
   One idea runs through the page: noor. It starts at night and fills with light. */

@font-face {
  font-family: 'PDMS Saleem';
  src: url('/fonts/PDMS_Saleem_QuranFont.ttf') format('truetype');
  font-display: swap;
}

:root {
  --night: #0A2F29;
  --night-2: #0D3B33;
  --emerald: #0E5245;
  --emerald-2: #13695A;
  --gold: #E9C46A;
  --gold-deep: #B88A2A;
  --gold-ink: #7A5418;
  --flame: #F29E1F;
  --white: #FFFFFF;
  --mist: #EEF5F1;
  --sand: #F7F3EA;
  --ink: #13302B;
  --ink-2: #3D5A54;
  --muted: #6B7F7A;
  --line: #DCE7E2;

  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --ar: 'PDMS Saleem', 'Amiri', serif;
  --ur: 'Noto Nastaliq Urdu', serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.ar { font-family: var(--ar); direction: rtl; font-weight: normal; }
.ur { font-family: var(--ur); direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 16px var(--head); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 10px 30px -10px rgba(233,196,106,.7); }
.btn-gold:hover { background: #F0D184; }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: var(--emerald-2); }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
  color: #fff;
}
.nav.solid { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px var(--head); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav.solid .btn-gold { box-shadow: none; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); color: var(--ink); padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 40px -20px rgba(10,47,41,.35); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links .btn { margin-top: 14px; border-bottom: 0; }
}

/* ---------- loader: the lamp lights the page ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--night);
  display: grid; place-items: center; transition: opacity .7s ease, visibility .7s;
}
.loader.out { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; text-align: center; color: #fff; }
.loader-lamp { width: 120px; overflow: visible; transform-origin: 50% 0; animation: drop 1s cubic-bezier(.2,.9,.25,1.3) both; }
.loader-lamp .halo { opacity: 0; transform-origin: 60px 98px; animation: ignite 1.6s ease .9s both; }
.loader-lamp .flame { opacity: .25; animation: flame-on .6s ease 1s both; }
.loader-word { font: 800 26px var(--head); letter-spacing: -0.02em; opacity: 0; animation: rise .7s ease 1.4s both; }
.loader-tag { font-size: 15px; color: rgba(255,255,255,.65); opacity: 0; animation: rise .7s ease 1.6s both; }
.loader-skip {
  position: absolute; right: 22px; bottom: 22px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer;
}
@keyframes drop { from { transform: translateY(-60vh) rotate(8deg); } to { transform: none; } }
@keyframes ignite { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: .9; transform: scale(1.1); } }
@keyframes flame-on { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- hero (night) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(233,196,106,.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #10473E 100%);
  padding: 140px 0 0;
}
.hero::before { /* stars */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 46% 26%, #FFF3CC, transparent), radial-gradient(1px 1px at 8% 64%, #fff, transparent),
    radial-gradient(1px 1px at 58% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 40%, #FFF3CC, transparent),
    radial-gradient(1px 1px at 22% 44%, #fff, transparent), radial-gradient(1px 1px at 70% 6%, #fff, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 120px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 .glow { color: var(--gold); text-shadow: 0 0 40px rgba(233,196,106,.45); }
.hero .lede { color: rgba(255,255,255,.78); margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }
.hero-ur { margin-top: 26px; font-size: 20px; color: rgba(255,243,204,.8); line-height: 2.2; }

.hero-stage { position: relative; height: 640px; }
.hero-lamp { position: absolute; top: -140px; left: 2%; width: 130px; transform-origin: 50% 0; overflow: visible; }
.hero-lamp .chain { stroke: #8A6A1E; }
.swing { animation: swing 7s ease-in-out infinite; }
@keyframes swing { 0%,100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }
.hero .phone { position: absolute; right: 6%; bottom: -60px; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); font-size: 13px; line-height: 1.4;
}
.float-word { left: -4%; top: 210px; width: 210px; }
.float-word .ar { font-size: 34px; color: var(--emerald); line-height: 1.6; }
.float-word b { font: 700 15px var(--head); display: block; }
.float-word span { color: var(--muted); }
.float-alert { left: 8%; bottom: 70px; width: 250px; z-index: 2; display: flex; gap: 10px; align-items: flex-start; }
.float-alert img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.float-alert b { display: block; font-size: 13px; }
.float-alert small { color: var(--muted); font-size: 11px; }
@media (max-width: 980px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-stage { height: 560px; margin-top: 30px; }
  .hero .phone { right: 50%; transform: translateX(50%) scale(.92); transform-origin: 50% 100%; bottom: -70px; }
  .hero-lamp { left: auto; right: 6%; top: -150px; width: 96px; }
  .float-word { left: 0; top: 70px; width: 180px; }
  .float-alert { left: 0; bottom: 60px; width: 220px; }
}
@media (max-width: 520px) {
  .float-word { display: none; }
  .float-alert { display: none; }
  .hero-lamp { display: none; }
}

/* ---------- phone mockups ---------- */
.phone {
  width: 300px; height: 620px; border-radius: 46px; padding: 10px;
  background: #0b1714; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), inset 0 0 0 2px #24322f;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--sand); }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0b1714; z-index: 5; }
.app { font-family: var(--body); color: var(--ink); font-size: 12px; }

/* home screen */
.s-home { padding: 50px 14px 0; display: flex; flex-direction: column; gap: 11px; height: 100%; }
.s-top { display: flex; align-items: center; gap: 7px; }
.s-top img { width: 30px; height: 30px; border-radius: 9px; }
.s-top .hi { flex: 1; line-height: 1.1; }
.s-top .hi small { display: block; font-size: 9.5px; color: #5C7E78; }
.s-top .hi b { font: 800 14px var(--head); }
.pill { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #E7E0D0; border-radius: 99px; padding: 4px 7px; font: 700 10px var(--head); }
.pill .coin { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F7DE8C, #C9962F); }
.lang { display: inline-flex; background: #fff; border: 1px solid #E7E0D0; border-radius: 99px; padding: 2px; font: 700 9px var(--head); }
.lang span { padding: 3px 6px; border-radius: 99px; }
.lang span:first-child { background: var(--emerald); color: #fff; }
.lang .ur { font-size: 8px; line-height: 1; padding-top: 4px; }
.light-card { background: var(--emerald); color: #fff; border-radius: 18px; padding: 12px; position: relative; overflow: hidden; }
.light-row { display: flex; gap: 10px; align-items: center; }
.light-row svg { width: 52px; flex: none; }
.light-card small { font: 700 8.5px var(--head); color: var(--gold); letter-spacing: .04em; }
.light-card .pct { font: 800 30px var(--head); line-height: 1; margin: 2px 0; }
.light-card p { font-size: 10px; color: rgba(255,255,255,.8); }
.chips { display: flex; gap: 5px; margin: 10px 0 9px; }
.chips span { flex: 1; text-align: center; font-size: 9px; padding: 5px 0; border-radius: 99px; background: rgba(255,255,255,.1); }
.chips span.todo { background: none; box-shadow: inset 0 0 0 1px rgba(233,196,106,.6); border-radius: 99px; }
.cta-mini { background: var(--gold); color: var(--night); text-align: center; font: 800 12px var(--head); padding: 9px; border-radius: 99px; }
.verse-mini { background: #fff; border: 1px solid #E7E0D0; border-radius: 14px; padding: 10px 12px; }
.verse-mini small { font: 700 8px var(--head); color: var(--gold-deep); letter-spacing: .03em; }
.verse-mini p { font: 600 13px/1.35 'EB Garamond', Georgia, serif; margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tiles div { background: #fff; border: 1px solid #E7E0D0; border-radius: 13px; padding: 9px 4px 7px; text-align: center; font: 700 10px var(--head); }
.tiles i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 5px; border-radius: 10px; font-style: normal; font-size: 14px; }
.tabbar { margin: auto -14px 0; background: #fff; border-top: 1px solid #ECE6D8; display: flex; justify-content: space-around; align-items: center; padding: 8px 0 18px; font-size: 8.5px; color: #8BA19C; }
.tabbar span { display: grid; justify-items: center; gap: 2px; }
.tabbar .on { color: var(--emerald); font-weight: 700; }
.tabbar .dhikr { width: 40px; height: 40px; margin-top: -22px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 15px; }

/* word card screen */
.s-word { padding: 54px 18px 18px; display: flex; flex-direction: column; height: 100%; }
.s-word .bar { height: 5px; border-radius: 9px; background: #E7E0D0; overflow: hidden; }
.s-word .bar i { display: block; height: 100%; width: 38%; background: var(--emerald); }
.s-word .meta { display: flex; justify-content: space-between; margin: 8px 0 18px; font-size: 10px; color: var(--muted); }
.wcard { background: #fff; border: 1px solid #E7E0D0; border-radius: 22px; padding: 22px 16px; text-align: center; }
.wcard .ar { font-size: 50px; line-height: 1.5; color: var(--emerald); }
.wcard .tr { font-style: italic; color: var(--muted); }
.wcard .en { font: 800 19px var(--head); margin-top: 4px; }
.wcard .ur { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 2; }
.wcard .play { margin: 12px auto 0; width: 38px; height: 38px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--emerald); }
.wverse { margin-top: 12px; background: var(--emerald); color: #fff; border-radius: 18px; padding: 14px; }
.wverse .ar { font-size: 19px; line-height: 2; text-align: right; }
.wverse mark { background: rgba(233,196,106,.28); color: var(--gold); border-radius: 6px; padding: 0 3px; }
.wverse p { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 6px; }
.s-word .next { margin-top: auto; background: var(--emerald); color: #fff; text-align: center; padding: 12px; border-radius: 99px; font: 800 13px var(--head); }

/* listen screen */
.s-listen { padding: 50px 14px 0; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.s-listen h4 { margin: 0; font: 800 22px var(--head); display: flex; align-items: center; justify-content: space-between; }
.s-listen h4 .pill { font-size: 9.5px; }
.cont { position: relative; height: 120px; border-radius: 18px; overflow: hidden; color: #fff; background-size: cover; background-position: center; }
.cont::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,38,32,0) 10%, rgba(7,38,32,.92)); }
.cont div { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; }
.cont small { font: 700 8.5px var(--head); color: var(--gold); }
.cont b { display: block; font: 800 15px var(--head); }
.cont .prog { height: 3px; background: rgba(255,255,255,.3); border-radius: 3px; margin-top: 7px; }
.cont .prog i { display: block; width: 22%; height: 100%; background: var(--gold); border-radius: 3px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cgrid div { position: relative; aspect-ratio: 1 / 1.05; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; color: #fff; }
.cgrid div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,38,32,0) 35%, rgba(7,38,32,.9)); }
.cgrid span { position: absolute; z-index: 1; left: 9px; bottom: 8px; font: 700 11px var(--head); line-height: 1.2; }
.cgrid span small { display: block; font: 400 9px var(--body); opacity: .75; }
.cgrid em { position: absolute; z-index: 1; right: 9px; top: 6px; font: normal 16px var(--ar); }
.mini-player { margin: auto -14px 0; background: var(--night); color: #fff; padding: 10px 14px 20px; display: flex; align-items: center; gap: 9px; }
.mini-player img { width: 34px; height: 34px; border-radius: 9px; }
.mini-player div { flex: 1; line-height: 1.2; }
.mini-player b { font: 700 11px var(--head); display: block; }
.mini-player small { font-size: 9.5px; opacity: .7; }
.mini-player .sp { font: 700 9.5px var(--head); background: rgba(255,255,255,.12); border-radius: 99px; padding: 3px 7px; }
.mini-player .pp { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-size: 11px; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 10vw, 130px) 0; }
.sec-head { max-width: 660px; margin-bottom: 52px; }
.sec-head .lede { margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.kicker { font: 700 15px var(--head); color: var(--gold-deep); margin-bottom: 14px; display: block; }
.on-dark .kicker { color: var(--gold); }


/* ---------- word by word ---------- */
.wbw { display: flex; flex-wrap: wrap; flex-direction: row-reverse; justify-content: center; gap: 10px; }
.wbw button {
  display: grid; justify-items: center; gap: 4px; min-width: 96px; padding: 18px 14px 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.wbw button:hover { border-color: var(--emerald); transform: translateY(-2px); }
.wbw button[aria-pressed="true"] { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.wbw .ar { font-size: 38px; line-height: 1.5; color: var(--emerald); }
.wbw button[aria-pressed="true"] .ar { color: var(--gold); }
.wbw .t { font-size: 13px; color: var(--muted); font-style: italic; }
.wbw button[aria-pressed="true"] .t { color: rgba(255,255,255,.7); }
.wbw .e { font: 700 14px var(--head); }
.wbw-panel {
  max-width: 720px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--mist); border-radius: 22px; padding: 22px 26px;
}
.wbw-panel .ur { font-size: 22px; line-height: 2.1; color: var(--emerald); text-align: right; }
.wbw-panel .en { font: 700 18px var(--head); }
.wbw-panel small { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.wbw-verse { text-align: center; margin-top: 34px; }
.wbw-verse p { color: var(--ink-2); font-size: 18px; max-width: 60ch; margin-inline: auto; }
.wbw-verse cite { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: 14px; }
.lang-switch { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-bottom: 28px; }
.lang-switch button { border: 0; background: none; padding: 8px 18px; border-radius: 99px; cursor: pointer; font: 700 14px var(--head); }
.lang-switch button[aria-pressed="true"] { background: var(--emerald); color: #fff; }
@media (max-width: 600px) {
  .wbw button { min-width: 74px; padding: 12px 8px 10px; }
  .wbw .ar { font-size: 28px; }
  .wbw-panel { grid-template-columns: 1fr; }
  .wbw-panel .ur { text-align: left; }
}

/* ---------- quiz ---------- */
.quiz { background: var(--mist); }
.quiz-box { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(10,47,41,.4); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.quiz-bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin: 10px 0 24px; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--emerald); border-radius: 9px; transition: width .3s ease; }
.quiz-ar { font-size: 64px; line-height: 1.5; text-align: center; color: var(--emerald); }
.quiz-tr { text-align: center; color: var(--muted); font-style: italic; margin-bottom: 20px; }
.quiz-q { text-align: center; font: 700 17px var(--head); margin-bottom: 14px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opts button {
  min-height: 58px; padding: 10px 14px; text-align: left; border-radius: 16px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); font-weight: 500; font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-opts button:hover:not(:disabled) { border-color: var(--emerald); }
.quiz-opts button.right { background: #E3F2EA; border-color: #4F9B6E; color: #24543A; }
.quiz-opts button.wrong { background: #FBEAE5; border-color: #D9684F; color: #8A3B2A; }
.quiz-verse { margin-top: 18px; background: var(--emerald); color: #fff; border-radius: 18px; padding: 16px 18px; display: none; }
.quiz-verse.show { display: block; }
.quiz-verse .ar { font-size: 24px; line-height: 2; text-align: right; }
.quiz-verse mark { background: rgba(233,196,106,.28); color: var(--gold); border-radius: 6px; padding: 0 4px; }
.quiz-verse p { font-size: 14px; color: rgba(255,255,255,.8); }
.quiz-next { margin-top: 16px; width: 100%; display: none; }
.quiz-next.show { display: inline-flex; }
.quiz-done { text-align: center; display: none; }
.quiz-done.show { display: block; }
.quiz-done svg { width: 90px; margin: 0 auto 10px; overflow: visible; }
.quiz-done h3 { font-size: 26px; }
.quiz-done p { color: var(--ink-2); margin: 10px auto 22px; max-width: 42ch; }
.quiz-done .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 520px) { .quiz-opts { grid-template-columns: 1fr; } .quiz-ar { font-size: 52px; } }

/* ---------- feature rows ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.feat.flip .feat-media { order: -1; }
.feat-media { display: grid; place-items: center; position: relative; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.points .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--emerald); }
.points .ic svg { width: 18px; height: 18px; }
.points b { font: 700 16px var(--head); display: block; }
.points span { color: var(--ink-2); font-size: 15px; }
.on-dark .points .ic { background: rgba(255,255,255,.08); color: var(--gold); }
.on-dark .points span { color: rgba(255,255,255,.72); }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-media { order: 0; }
}

/* ---------- listen: wall of covers ---------- */
.listen { background: var(--night); color: #fff; overflow: hidden; }
.listen .lede { color: rgba(255,255,255,.75); }
.cover-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 14px; opacity: .22; transform: rotate(-8deg) scale(1.25); pointer-events: none; }
.cover-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.listen::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(10,47,41,.55), var(--night) 85%); pointer-events: none; }
.listen .wrap { position: relative; z-index: 1; }
.cover-strip { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.cover-strip figure { margin: 0; width: 86px; }
.cover-strip img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); }
.cover-strip figcaption { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 6px; }

/* ---------- dhikr lamp (interactive) ---------- */
.dhikr { background: linear-gradient(180deg, var(--white), var(--mist)); }
.lamp-box { display: grid; justify-items: center; gap: 12px; }
.lamp-hang { width: 190px; transform-origin: 50% 0; overflow: visible; }
.lamp-hang .halo { transition: opacity .3s ease, transform .3s ease; transform-origin: 60px 98px; }
.lamp-hang.nudge { animation: nudge .7s ease; }
@keyframes nudge { 0% { transform: rotate(0); } 30% { transform: rotate(6deg); } 65% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.counter {
  width: 220px; height: 220px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: var(--emerald); color: #fff; display: grid; place-items: center; align-content: center; gap: 2px;
  box-shadow: 0 0 0 10px rgba(14,82,69,.1), 0 30px 60px -25px rgba(10,47,41,.7);
  transition: transform .1s ease;
}
.counter:active { transform: scale(.97); }
.counter .ar { font-size: 30px; color: var(--gold); line-height: 1.7; }
.counter b { font: 800 52px var(--head); line-height: 1; }
.counter small { font-size: 13px; color: rgba(255,255,255,.7); }
.light-meter { width: 240px; text-align: center; }
.light-meter .track { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; }
.light-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--flame)); transition: width .3s ease; }
.light-meter p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.dhikr-done { min-height: 26px; font: 700 16px var(--head); color: var(--emerald); text-align: center; }

/* ---------- alerts + widgets ---------- */
.alerts { display: grid; gap: 12px; width: min(380px, 100%); }
.note {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start;
  background: var(--white); border-radius: 20px; padding: 14px 16px; box-shadow: 0 18px 40px -24px rgba(10,47,41,.55);
  border: 1px solid var(--line);
}
.note img { width: 38px; height: 38px; border-radius: 11px; }
.note b { font: 700 15px var(--head); display: block; }
.note span { font-size: 14px; color: var(--ink-2); }
.note small { font-size: 12px; color: var(--muted); }
.note:nth-child(2) { margin-left: 28px; }
.note:nth-child(3) { margin-left: 56px; }
@media (max-width: 520px) { .note:nth-child(2), .note:nth-child(3) { margin-left: 0; } }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(420px, 100%); }
.wg { border-radius: 26px; padding: 18px; min-height: 170px; position: relative; overflow: hidden; }
.wg-light { background: var(--emerald); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.wg-light svg { width: 46px; }
.wg-light b { font: 800 34px var(--head); line-height: 1; display: block; }
.wg-light small { color: rgba(255,255,255,.7); }
.wg-verse { color: #fff; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.wg-verse::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,38,32,.15), rgba(7,38,32,.9)); }
.wg-verse * { position: relative; }
.wg-verse p { font-size: 13px; line-height: 1.4; }
.wg-verse .ar { font-size: 22px; line-height: 1.8; text-align: right; color: var(--gold); }
.wg-verse small { font-size: 11px; opacity: .75; }
.wg-tag { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- WiseBuddy ---------- */
.chat { width: min(420px, 100%); background: var(--white); border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(10,47,41,.5); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 700 15px var(--head); }
.chat-head img { width: 32px; height: 32px; border-radius: 50%; }
.chat-head small { display: block; font: 400 12px var(--body); color: var(--muted); }
.chat-body { padding: 18px 16px; display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--emerald); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { background: var(--mist); border-bottom-left-radius: 6px; }
.msg.bot .ar { font-size: 20px; color: var(--emerald); }
.msg.bot cite { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Founding Member ---------- */
.member { background: var(--night); color: #fff; overflow: hidden; }
.member::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 25% 50%, rgba(233,196,106,.16), transparent 70%); }
.member .wrap { position: relative; }
.member .lede { color: rgba(255,255,255,.75); }
.medal { width: min(320px, 70vw); filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.medal .rim { transform-origin: 100px 100px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.perks div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.perks b { font: 700 16px var(--head); display: block; }
.perks span { font-size: 14px; color: rgba(255,255,255,.68); }
.free-line { margin-top: 22px; color: var(--gold); font-weight: 500; }
@media (max-width: 600px) { .perks { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.review { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--gold-deep); letter-spacing: 2px; }
.review p { font-size: 16px; flex: 1; }
.review footer { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.review .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--head); }
.review footer small { display: block; color: var(--muted); font-size: 12px; }
.rating { display: inline-flex; align-items: center; gap: 10px; font: 700 16px var(--head); }
.rating span { color: var(--gold-deep); letter-spacing: 2px; }

/* ---------- final call ---------- */
.final { background: radial-gradient(60% 70% at 50% 0%, rgba(233,196,106,.22), transparent 70%), var(--night); color: #fff; text-align: center; overflow: hidden; }
.final h2 { font-size: clamp(36px, 5.5vw, 68px); }
.final .lede { color: rgba(255,255,255,.75); margin: 18px auto 0; }
.final .hero-cta { justify-content: center; }
.final svg.lamp { width: 110px; margin: 0 auto 26px; overflow: visible; transform-origin: 50% 0; }

.featured { padding: 50px 0 60px; text-align: center; background: var(--night); color: rgba(255,255,255,.6); font-size: 14px; }
.featured-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; margin-top: 18px; }
.featured-row img { height: 50px; width: auto; background: #fff; border-radius: 12px; padding: 4px; }

/* ---------- footer ---------- */
.foot { background: #072520; color: rgba(255,255,255,.72); padding: 64px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.foot .brand { color: #fff; }
.foot p { margin-top: 12px; max-width: 34ch; }
.foot h4 { margin: 0 0 12px; font: 700 15px var(--head); color: #fff; }
.foot-col a { display: block; text-decoration: none; padding: 5px 0; }
.foot-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--gold); color: var(--night); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- inner pages (support, privacy, terms) ---------- */
.page-hero { background: var(--night); color: #fff; padding: 140px 0 70px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { color: rgba(255,255,255,.72); margin-top: 14px; max-width: 60ch; }
.prose { max-width: 760px; margin: 0 auto; padding: 64px 0 100px; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: 26px; color: var(--ink); margin: 44px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--emerald); font-weight: 500; }
.prose strong { color: var(--ink); }
.prose .card-note { background: var(--mist); border-radius: 18px; padding: 18px 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* FAQ (support) */
.prose details { border-bottom: 1px solid var(--line); }
.prose summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font: 700 17px var(--head); color: var(--ink);
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 400 24px var(--head); color: var(--emerald); transition: transform .2s ease; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details p { padding-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-family: var(--head); }

/* ---------- motion ---------- */
/* Rising specks of light (hero + final call). Positions/timings set in JS. */
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.motes i {
  position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #FFF3CC 0%, #E9C46A 45%, rgba(233,196,106,0) 70%);
  opacity: 0; animation: mote var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: var(--o, .8); }
  85% { opacity: var(--o, .8); }
  100% { transform: translate(var(--dx, 20px), calc(-1 * var(--rise, 700px))); opacity: 0; }
}
.hero-grid, .final .wrap { z-index: 1; }

/* hero lamp breathes, cards bob */
.hero-lamp .halo-h { transform-origin: 60px 98px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
.float-word { animation: bob 6s ease-in-out infinite; }
.float-alert { animation: bob 7s ease-in-out 1.2s infinite; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* home phone: light fills as the page opens */
.light-card .lamp-s .halo-s { transform-origin: 60px 98px; transform: scale(.5); opacity: .2; transition: transform 1.6s ease, opacity 1.6s ease; }
.light-card.lit .lamp-s .halo-s { transform: scale(1.05); opacity: 1; }
.chips span { transition: background .4s ease, color .4s ease; }

/* listen: covers drift slowly */
.cover-wall { animation: drift 60s linear infinite alternate; }
@keyframes drift { from { transform: rotate(-8deg) scale(1.25) translate(0, 0); } to { transform: rotate(-8deg) scale(1.25) translate(-6%, -8%); } }

/* word by word: auto-walk highlight */
.wbw button { transition: border-color .25s ease, background .25s ease, color .25s ease, transform .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
}
.final .wrap { position: relative; }
