/* Tasneem landing page */
:root {
  --night: #04130D;
  --night-2: #071C14;
  --jade: #2BD48F;
  --lagoon: #3CC7D9;
  --gold: #F7C873;
  --ink: #EFFAF7;
  --soft: #ACD2CB;
  --mute: #7FA69E;
  --line: rgba(172, 210, 203, .14);
  --card: rgba(172, 210, 203, .045);
  --grad: linear-gradient(100deg, var(--lagoon), var(--jade));
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --quran: "Amiri Quran", "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --sec: clamp(64px, 7.5vw, 112px);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%232BD48F' stroke-width='1'%3E%3Cpath d='M48 14 82 48 48 82 14 48Z'/%3E%3Cpath d='M24 24h48v48H24Z'/%3E%3Cpath d='M48 0v14M48 82v14M0 48h14M82 48h14M0 0l24 24M96 0 72 24M0 96l24-24M96 96 72 72'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } main { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(43, 212, 143, .35); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--night);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.sec { position: relative; padding: var(--sec) 0; }

/* ── type ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 22px;
}
.eyebrow--gold { color: var(--gold); }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.display--s { font-size: clamp(2rem, 4vw, 3.2rem); }
.display--m { font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
.display--m em { display: block; }
.display em, .hero__title em { font-style: italic; font-weight: 500; }
.grad {
  background: linear-gradient(100deg, var(--lagoon) 0%, var(--jade) 55%, #9BE8B9 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .08em; /* italic overhang */
  animation: sheen 9s ease-in-out infinite alternate;
}
.gold { color: var(--gold); }
@keyframes sheen { to { background-position: 100% 0; } }
.lede {
  color: var(--soft);
  font-size: clamp(1.18rem, 1.6vw, 1.38rem);
  line-height: 1.65;
  max-width: 40em;
  margin-top: 28px;
}
.sec__head { max-width: 860px; margin-bottom: clamp(56px, 8vw, 104px); }
.sec__head--c { margin-inline: auto; text-align: center; }
.sec__head--c .lede { margin-inline: auto; }

/* ── pattern ── */
.pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--pattern);
  background-size: 96px 96px;
  opacity: .08;
}
.pattern--hero { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); }
.pattern--side { -webkit-mask-image: radial-gradient(ellipse 45% 50% at 0% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 45% 50% at 0% 50%, #000, transparent 75%); opacity: .1; }
.pattern--free { background-image: var(--pattern); filter: hue-rotate(-110deg) saturate(.8); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000, transparent 75%); opacity: .1; }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 19, 13, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__in {
  max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 26%; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.brand__ar { font-family: var(--quran); color: var(--gold); font-size: 1.05rem; line-height: 1; padding-bottom: 6px; }
.nav__links { display: none; gap: 30px; margin-inline-start: auto; font-size: .92rem; color: var(--soft); }
.nav__links a { padding: 8px 0; transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  margin-inline-start: auto;
  font-size: .85rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(43, 212, 143, .4); color: var(--jade);
  transition: background .4s var(--ease), color .4s var(--ease);
  white-space: nowrap;
}
.nav__cta:hover { background: var(--jade); color: var(--night); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { margin-inline-start: 0; }
}
/* the language picker: a globe and this page's language; the list opens below it */
.langpick { position: relative; margin-inline-start: auto; }
@media (min-width: 900px) { .langpick { margin-inline-start: 0; } }
.langpick summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 999px; color: var(--soft); font-size: .88rem; transition: color .3s, background .3s;
}
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary:hover, .langpick[open] summary { color: var(--ink); background: rgba(172, 210, 203, .07); }
.langpick__list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 200px;
  padding: 8px; border-radius: 18px; display: grid;
  background: rgba(7, 28, 20, .96); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.langpick__list a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--soft); font-family: system-ui, sans-serif; font-size: .95rem; }
.langpick__list a:hover { background: rgba(172, 210, 203, .08); color: var(--ink); }
.langpick__list a[aria-current] { color: var(--jade); }
@media (max-width: 520px) { .langpick__cur { display: none; } }

/* ── hero ── */
.hero {
  position: relative;
  padding-top: clamp(104px, 14vw, 150px);
  overflow: hidden;
  isolation: isolate;
}
.hero__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 0% 0%, rgba(43, 212, 143, .30), transparent 70%),
    radial-gradient(55% 44% at 100% 6%, rgba(60, 199, 217, .24), transparent 70%);
}
/* the light in the middle, behind the book: it comes up with the book (main.js) */
.hero__spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 30% at 50% 28%, rgba(43, 212, 143, .10), transparent 70%);
}
.hero__in { text-align: center; display: flex; flex-direction: column; align-items: center; }

.book { position: relative; width: clamp(150px, 22vw, 250px); margin-bottom: clamp(18px, 3vw, 34px); }
.book__svg { width: 100%; height: auto; overflow: visible; display: block; }
/* As the app's welcome screen has it: behind the book a jade and lagoon light breathes; once the book is open, a glow
   of the book itself (a blurred copy) fades in, and the book hovers, the glow brightest just after each rise. */
.book__glow {
  position: absolute; inset: -60% -45%; pointer-events: none; z-index: -1;
  --glow:
    radial-gradient(closest-side at 42% 42%, rgba(43, 212, 143, .30), transparent),
    radial-gradient(closest-side at 60% 58%, rgba(60, 199, 217, .22), transparent);
}
.book__glow::before { content: ""; position: absolute; inset: 0; background: var(--glow); animation: book-breathe 2.8s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
@keyframes book-breathe { from { opacity: .6; } to { opacity: 1; } }
.book__float { position: relative; }
.book__halo { position: absolute; inset: 0; pointer-events: none; filter: blur(clamp(9px, 1.15vw, 15px)); opacity: 0; transition: opacity 1.4s var(--ease); }
.book__halo svg { width: 100%; height: auto; display: block; overflow: visible; }
.book.is-open .book__halo { opacity: 1; }
.book.is-open .book__halo svg { animation: book-halo 6s linear infinite; }
.book.is-open .book__float { animation: book-hover 6s linear infinite; }
@keyframes book-hover {
  0% { transform: translateY(0); } 12.5% { transform: translateY(2.1%); } 25% { transform: translateY(3%); } 37.5% { transform: translateY(2.1%); }
  50% { transform: translateY(0); } 62.5% { transform: translateY(-2.1%); } 75% { transform: translateY(-3%); } 87.5% { transform: translateY(-2.1%); } 100% { transform: translateY(0); }
}
@keyframes book-halo { 0% { opacity: .61; } 36% { opacity: .8; } 61% { opacity: .69; } 86% { opacity: .45; } 100% { opacity: .61; } }
@media (prefers-reduced-motion: reduce) {
  .book__glow::before { animation: none; opacity: .8; }
  .book.is-open .book__float, .book.is-open .book__halo svg { animation: none; }
  .book.is-open .book__halo { opacity: .6; }
}
.book__side--l .pg, .book__side--l .cover, .book__side--l .edge { transform-origin: 31.37px 35.55px; }
.book__side--r .pg, .book__side--r .cover, .book__side--r .edge { transform-origin: 32.63px 35.55px; }
.book .pg, .book .cover, .book .edge { transform-box: view-box; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(43, 212, 143, .6); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(43, 212, 143, 0); } }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.55rem, 8.2vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-variation-settings: "opsz" 144;
}
.line { display: block; overflow: hidden; padding: .06em .1em .16em; margin: -.06em -.1em -.16em; }
.line__in { display: inline-block; will-change: transform; }
.hero__sub {
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 35em;
  color: var(--soft);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__cta { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px 13px 20px; border-radius: 999px;
  background: var(--grad); color: var(--night);
  font-weight: 700; font-size: 1.08rem; line-height: 1.15; text-align: start;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 50px -12px rgba(43, 212, 143, .55);
}
.store small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ghost { color: var(--ink); font-weight: 600; font-size: .98rem; padding: 10px 4px; border-bottom: 1px solid var(--line); transition: border-color .4s, color .4s; }
.ghost:hover { border-color: var(--jade); color: var(--jade); }
.hero__note { margin-top: 20px; color: var(--mute); font-size: 1rem; }

/* phones */
.phone {
  --w: 280px;
  width: var(--w);
  padding: calc(var(--w) * .028);
  border-radius: calc(var(--w) * .135);
  background: linear-gradient(160deg, #22352f, #0a1713 38%, #050d0a);
  box-shadow:
    0 0 0 1px rgba(239, 250, 247, .09) inset,
    0 0 0 1px rgba(0, 0, 0, .6),
    0 50px 100px -30px rgba(0, 0, 0, .85),
    0 30px 60px -40px rgba(43, 212, 143, .25);
  position: relative;
}
.phone img { width: 100%; border-radius: calc(var(--w) * .108); background: #06110d; aspect-ratio: 600 / 1333; object-fit: cover; }
.phone--lit { box-shadow: 0 0 0 1px rgba(239, 250, 247, .12) inset, 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(43, 212, 143, .32); }

.reel {
  --pw: clamp(220px, 25vw, 330px);
  position: relative;
  margin-top: clamp(48px, 7vw, 90px);
  outline: none;
}
.reel__track {
  position: relative;
  height: calc(var(--pw) * 1.62);
  -webkit-mask-image: linear-gradient(#000 64%, transparent 98%);
  mask-image: linear-gradient(#000 64%, transparent 98%);
  touch-action: pan-y;
  cursor: grab;
}
.reel__track:active { cursor: grabbing; }
.reel__item {
  position: absolute; top: 0; left: 50%; margin: 0 0 0 calc(var(--pw) / -2);
  width: var(--pw);
  transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.reel__item:first-child { opacity: 1; } /* before the script places them */
.reel__item .phone { --w: var(--pw); }
.reel__item.is-side { pointer-events: auto; cursor: pointer; }
.reel__bar { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(20px, 3vw, 36px); padding: 0 var(--gutter); position: relative; z-index: 3; }
.reel__btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); cursor: pointer;
  background: rgba(239, 250, 247, .04);
  border: 1px solid rgba(239, 250, 247, .16);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.reel__btn:hover { background: rgba(247, 200, 115, .12); border-color: rgba(247, 200, 115, .5); color: var(--gold); }
.reel__cap { text-align: center; color: var(--soft); font-size: 1.1rem; line-height: 1.45; width: min(28em, 100%); height: 2.9em; overflow: hidden; display: grid; place-items: center; }
/* a fixed height (the longest caption's lines), so changing screens never moves what's below */
@media (max-width: 640px) { .reel__cap { font-size: 1rem; height: 4.35em; } }
.reel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.reel__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(239, 250, 247, .22); transition: background .5s var(--ease), width .5s var(--ease); }
.reel__dots i.is-on { width: 20px; border-radius: 3px; background: var(--gold); }

/* ── pain / verse ── */
.pain { text-align: center; }
.pain .display { max-width: 16em; margin-inline: auto; }
.verse { margin: clamp(56px, 9vw, 120px) auto 0; max-width: 980px; }
.verse__words {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(18px, 3vw, 40px) clamp(20px, 4vw, 56px);
}
@media (max-width: 560px) { .verse__words { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; } }
.w {
  font-family: var(--quran);
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 2.1;
  padding-bottom: .1em;
  color: var(--ink);
  transition: color 1.2s var(--ease), text-shadow 1.2s var(--ease), opacity 1.2s var(--ease);
}
.verse.is-armed .w { color: var(--soft); opacity: .28; }
.verse.is-armed .w.is-lit { color: var(--ink); opacity: 1; text-shadow: 0 0 34px rgba(247, 200, 115, .45), 0 0 80px rgba(43, 212, 143, .25); }
.verse.is-armed .w.is-now { color: var(--gold); }
.verse__ref { font-style: normal; font-family: var(--sans); font-size: .82em; color: var(--mute); margin-inline-start: 4px; }
.verse__tr { margin-top: clamp(20px, 2.8vw, 34px); color: var(--mute); font-size: clamp(.95rem, 1.4vw, 1.08rem); font-style: italic; font-family: var(--serif); }

/* the tafsir, as the narrator says it */
.tafsir {
  max-width: 760px; margin: clamp(40px, 6vw, 72px) auto 0;
  text-align: start; display: grid; gap: clamp(18px, 2.4vw, 26px);
  padding-inline-start: clamp(20px, 3vw, 32px);
  border-inline-start: 1px solid rgba(247, 200, 115, .35);
}
.t { font-size: clamp(1.08rem, 1.7vw, 1.32rem); line-height: 1.7; color: var(--ink); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.t b { font-weight: 600; color: var(--gold); }
.t .ar { font-family: var(--quran); font-size: 1.3em; line-height: 1; color: var(--gold); }
.verse.is-armed .t { opacity: 0; transform: translateY(12px); }
.verse.is-armed .t.is-on { opacity: 1; transform: none; }
.verse.is-armed .t.is-past { opacity: .5; }
.verse.is-armed .t .tw { color: var(--mute); transition: color .35s var(--ease); }
.verse.is-armed .t .tw.is-said { color: var(--ink); }
.verse.is-armed .t b.tw.is-said, .verse.is-armed .t .ar.tw.is-said { color: var(--gold); }
.verse.is-armed .t .tw.is-now { color: var(--gold); }
.verse figcaption {
  margin-top: 30px; color: var(--mute); font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center;
}
.replay {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: .8rem; color: var(--soft); cursor: pointer;
  transition: border-color .3s, color .3s;
}
.replay:hover { border-color: var(--gold); color: var(--gold); }

.pain__grid {
  margin-top: clamp(80px, 11vw, 140px);
  display: grid; gap: clamp(56px, 8vw, 112px);
  text-align: start;
}
/* each point: a full-width title with its text beneath; the points sit left, right, left down the page */
.pcard { max-width: 980px; }
.pcard h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.pcard h3::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); opacity: .8; margin-bottom: clamp(18px, 2.2vw, 26px); }
.pcard p { color: var(--soft); font-size: clamp(1.15rem, 1.5vw, 1.28rem); line-height: 1.75; margin-top: clamp(16px, 2vw, 22px); max-width: 36em; }
@media (min-width: 860px) {
  .pcard:nth-child(even) { margin-inline-start: auto; text-align: end; }
  .pcard:nth-child(even) h3::before, .pcard:nth-child(even) p { margin-inline-start: auto; }
}
.bridge {
  margin-top: clamp(96px, 13vw, 180px);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem); line-height: 1.04; letter-spacing: -.028em;
  font-variation-settings: "opsz" 144;
  color: var(--ink); text-wrap: balance;
}
.bridge em { font-style: italic; }

/* ── lesson ── */
.lesson { background: linear-gradient(180deg, transparent, rgba(43, 212, 143, .035) 30%, rgba(60, 199, 217, .03) 70%, transparent); }
.lesson__grid { display: grid; gap: clamp(48px, 7vw, 110px); align-items: start; }
.lesson__phone { display: flex; justify-content: center; }
.lesson__sticky { position: relative; }
.lesson__sticky .phone { --w: clamp(230px, 62vw, 300px); }
.halo {
  position: absolute; inset: -18% -40%;
  background: radial-gradient(closest-side, rgba(43, 212, 143, .22), rgba(60, 199, 217, .08) 55%, transparent 75%);
  filter: blur(10px); pointer-events: none;
}
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(20px, 3vw, 40px);
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  transition: opacity 1s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step > :not(.step__n) { grid-column: 2; }
.anim .step { opacity: .38; }
.anim .step.is-on { opacity: 1; }
.step__n {
  grid-row: 1 / span 6; grid-column: 1;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: .95;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(247, 200, 115, .55);
  transition: color 1s var(--ease), -webkit-text-stroke-color 1s var(--ease);
}
.step.is-on .step__n, .step:not(.anim *) .step__n { color: var(--gold); -webkit-text-stroke-color: transparent; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; margin: 2px 0 14px; }
.step p { color: var(--soft); max-width: 34em; line-height: 1.75; }
.step .fine { margin-top: 18px; padding-inline-start: 16px; border-inline-start: 1px solid var(--gold); color: var(--ink); font-size: 1.05rem; }
.wave { display: flex; align-items: center; gap: 4px; height: 34px; margin-top: 24px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--grad); transform: scaleY(.25); animation: wave 1.6s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.4s; }
.wave i:nth-child(3n+1) { animation-delay: -.9s; }
.wave i:nth-child(4n) { animation-delay: -1.2s; }
.wave i:nth-child(5n) { animation-duration: 2.1s; }
@keyframes wave { 50% { transform: scaleY(1); } }
.depth { margin-top: 28px; }
.depth__label { font-size: .72rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--mute) !important; font-weight: 600; margin-bottom: 12px; }
.depth__opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.depth__opt {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-align: start;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease);
}
.depth__opt + .depth__opt { border-inline-start: 1px solid var(--line); }
.depth__opt strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; transition: color .5s var(--ease); }
.depth__opt span { color: var(--mute); font-size: .95rem; line-height: 1.45; }
.depth__opt:hover { background: rgba(172, 210, 203, .04); }
.depth__opt[aria-pressed="true"] { background: linear-gradient(180deg, rgba(247, 200, 115, .1), rgba(247, 200, 115, .02)); }
.depth__opt[aria-pressed="true"] strong { color: var(--gold); }
.depth__opt:focus-visible { outline-offset: -3px; }
@media (max-width: 520px) { .depth__opts { grid-template-columns: 1fr; } .depth__opt + .depth__opt { border-inline-start: 0; border-top: 1px solid var(--line); } }
/* the questions as the app shows what you asked: its own bubble (soft gold, a faint gold edge), on the right */
.quotes { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 34em; }
.quotes li {
  max-width: 86%; padding: 12px 18px; border-radius: 20px;
  background: rgba(247, 200, 115, .16); border: 1px solid rgba(247, 200, 115, .25);
  color: var(--ink); font-size: 1.02rem; line-height: 1.5;
}
/* the three steps side by side on wide screens (the lesson screen itself is in the hero's reel) */
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
  .step { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); align-content: start; }
  .step > :not(.step__n) { grid-column: 1; }
  .step__n { grid-row: auto; margin-bottom: 18px; }
  .anim .step { opacity: 1; }
  .step .step__n { color: var(--gold); -webkit-text-stroke-color: transparent; }
  .depth__opts { grid-template-columns: 1fr; }
  .depth__opt + .depth__opt { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ── sources ── */
.pillars { display: grid; gap: 0 clamp(40px, 6vw, 96px); }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 22px; padding: clamp(30px, 3.4vw, 44px) 0; border-top: 1px solid var(--line); }
.pillar > :not(.ico) { grid-column: 2; }
.ico {
  grid-row: 1 / span 2;
  width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  border: 1px solid rgba(247, 200, 115, .3);
  fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -.012em; margin: 4px 0 10px; }
.pillar p { color: var(--soft); font-size: 1.15rem; line-height: 1.75; max-width: 30em; }
.shelf {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid; gap: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .shelf { grid-template-columns: 1.2fr 1fr; } }
.shelf__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--mute); margin-bottom: 18px; }
.names li {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.22; letter-spacing: -.02em;
  color: var(--ink);
}
.names small { font-family: var(--sans); font-size: .82rem; letter-spacing: 0; color: var(--mute); font-weight: 500; margin-inline-start: 8px; white-space: nowrap; }
.names--deep li { color: var(--gold); }

/* ── ask ── */
.ask { overflow: hidden; }
.ask__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 85% 45%, rgba(247, 200, 115, .09), transparent 70%), radial-gradient(45% 40% at 100% 55%, rgba(60, 199, 217, .10), transparent 70%); }
.ask__grid { display: grid; gap: clamp(48px, 7vw, 100px); align-items: center; }
@media (min-width: 940px) { .ask__grid { grid-template-columns: 1.08fr .92fr; } }
.ask__stage { display: flex; justify-content: center; }
.ask__phone { --w: clamp(240px, 26vw, 320px); }
/* feelings as a loose cloud: different sizes, faces and heights, each drifting slowly on its own */
.feel {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: clamp(18px, 2.4vw, 30px); row-gap: 18px;
  margin-top: clamp(34px, 4vw, 48px); padding: 10px 0 18px;
  max-width: 34rem;
}
.feel li { line-height: 1.1; white-space: nowrap; animation: feel-drift var(--t, 9s) ease-in-out var(--d, 0s) infinite alternate; }
.feel .f1 { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--ink); --t: 10s; }
.feel .f2 { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 1.9rem); --t: 8s; --d: -3s;
  background: linear-gradient(100deg, var(--gold), #f3dfae); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(-14px); }
.feel .f3 { font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); --t: 11s; --d: -5s; transform: translateY(10px); }
.feel .f4 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); color: var(--soft); --t: 9s; --d: -2s;
  padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; transform: translateY(6px); }
.feel .f5 { font-family: var(--serif); font-size: clamp(1.7rem, 2.9vw, 2.3rem); color: var(--ink); --t: 12s; --d: -7s; transform: translateY(-6px); }
.feel .f6 { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.75rem); --t: 9.5s; --d: -4s;
  background: linear-gradient(100deg, #2bd48f, #3cc7d9); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(12px); }
.feel .f7 { font-size: 1rem; color: var(--soft); --t: 10.5s; --d: -1s; transform: translateY(2px); }
.feel .f8 { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: var(--mute); --t: 8.5s; --d: -6s; transform: translateY(4px); }
@keyframes feel-drift { to { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .feel li { animation: none; } }
.notes { margin-top: 38px; display: grid; gap: 22px; max-width: 34em; }
.notes dt { font-weight: 600; margin-bottom: 4px; }
.notes dd { color: var(--soft); font-size: 1.1rem; }

.chat {
  width: 100%; max-width: 420px; margin-inline: auto;
  padding: 20px 20px 22px;
  border-radius: 32px;
  background: linear-gradient(170deg, rgba(13, 50, 38, .9), rgba(5, 20, 15, .95) 55%);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 100px -30px rgba(43, 212, 143, .25);
  display: flex; flex-direction: column; gap: 14px;
}
.chat__bar { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat__bar img { border-radius: 50%; }
.bubble { padding: 12px 16px; border-radius: 18px; font-size: .96rem; line-height: 1.5; max-width: 88%; }
.bubble--me { align-self: flex-end; background: rgba(247, 200, 115, .12); border: 1px solid rgba(247, 200, 115, .35); border-bottom-right-radius: 6px; }
.bubble--t { align-self: flex-start; background: rgba(172, 210, 203, .08); border-bottom-left-radius: 6px; color: var(--ink); }
.vcard { padding: 20px 20px 16px; border-radius: 22px; background: radial-gradient(120% 100% at 50% 0%, rgba(43, 212, 143, .16), rgba(4, 19, 13, .6)); border: 1px solid rgba(43, 212, 143, .3); text-align: center; }
.vcard__ar { font-family: var(--quran); font-size: clamp(1.45rem, 5.4vw, 1.9rem); line-height: 2.2; color: var(--ink); }
.vcard__en { color: var(--soft); font-size: .95rem; margin-top: 4px; }
.vcard__ref { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: .78rem; color: var(--gold); }
.vcard__play { display: inline-flex; align-items: center; gap: 6px; color: var(--jade); }
.chat__src { font-size: .84rem; color: var(--soft); }
.chat__src b { color: var(--ink); font-weight: 600; }
.chat figcaption { font-size: .74rem; color: var(--mute); text-align: center; padding-top: 4px; }

/* ── languages ── */
.lang { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 4vw, 44px) clamp(34px, 5.5vw, 72px); max-width: 1000px; margin-inline: auto; }
.lang li { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; transition: color .6s var(--ease); }
.lang span { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); transition: color .6s var(--ease); }
.lang span[dir="rtl"], .lang span[lang="bn"] { font-family: "Amiri Quran", "Noto Naskh Arabic", "Noto Sans Bengali", var(--sans); line-height: 1.6; }
.lang small { color: var(--mute); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.lang li:hover span { color: var(--gold); }

/* ── habit ── */
.habit__grid { display: grid; gap: clamp(56px, 8vw, 110px); align-items: center; }
@media (min-width: 940px) { .habit__grid { grid-template-columns: 1fr 1fr; } .habit__copy { order: -1; } }
.habit__phones { position: relative; display: flex; justify-content: center; --pw: clamp(190px, 46vw, 280px); height: calc(var(--pw) * 2.42); }
.habit__p { position: absolute; top: 0; left: 50%; }
.habit__p .phone { --w: var(--pw); }
.habit__p--a { margin-left: calc(var(--pw) * -.92); top: 0; }
.habit__p--b { margin-left: calc(var(--pw) * -.1); top: calc(var(--pw) * .3); z-index: 2; }
.feats { margin-top: 40px; display: grid; gap: 0; }
.feats li { padding: 26px 0; border-top: 1px solid var(--line); }
.feats h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 6px; }
.feats p { color: var(--soft); max-width: 32em; }

/* ── free ── */
.free { text-align: center; background: radial-gradient(60% 50% at 50% 30%, rgba(247, 200, 115, .08), transparent 70%); }
.free__in { display: flex; flex-direction: column; align-items: center; }
.spring { margin-bottom: clamp(36px, 5vw, 60px); }
.spring__ar { font-family: var(--quran); font-size: clamp(2rem, 6vw, 3.9rem); line-height: 2.2; color: var(--gold); text-shadow: 0 0 60px rgba(247, 200, 115, .35); }
.spring footer { color: var(--soft); font-size: 1.1rem; font-style: italic; }
.spring cite { display: block; font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }
.free .display { max-width: 15em; }
/* ── the spring: a full-width band of colour, the star pattern, light flowing up through it ── */
.springband {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(190px, 21vw, 320px) 0 clamp(200px, 22vw, 330px); /* room for the long fades */
  background: var(--band);
}
/* soft edges into the night above and below */
.springband::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* a long, eased fade (not a straight ramp), so the colours rise out of the page and sink back into it */
  --f: var(--night);
  background: linear-gradient(180deg,
    var(--f) 0%, color-mix(in srgb, var(--f) 88%, transparent) 7%, color-mix(in srgb, var(--f) 68%, transparent) 15%,
    color-mix(in srgb, var(--f) 42%, transparent) 23%, color-mix(in srgb, var(--f) 18%, transparent) 31%, transparent 39%,
    transparent 61%, color-mix(in srgb, var(--f) 18%, transparent) 69%, color-mix(in srgb, var(--f) 42%, transparent) 77%,
    color-mix(in srgb, var(--f) 68%, transparent) 85%, color-mix(in srgb, var(--f) 88%, transparent) 93%, var(--f) 100%);
}
.springband__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.springband__pattern {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%23F7C873' stroke-width='1'%3E%3Cpath d='M48 14 82 48 48 82 14 48Z'/%3E%3Cpath d='M24 24h48v48H24Z'/%3E%3Cpath d='M48 0v14M48 82v14M0 48h14M82 48h14M0 0l24 24M96 0 72 24M0 96l24-24M96 96 72 72'/%3E%3C/svg%3E"); background-size: 88px 88px; background-position: center;
  opacity: var(--pattern-a, .16);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 80%);
}
.springband__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.springband .spring footer { color: rgba(235, 248, 255, .86); }
.springband .spring cite { color: rgba(215, 235, 250, .68); }
.springband .display { color: #fff; max-width: 15em; margin-top: clamp(56px, 7vw, 104px); text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.springband .lede { color: rgba(235, 248, 255, .9); margin-top: clamp(22px, 3vw, 32px); text-shadow: 0 1px 2px rgba(0, 10, 30, .5), 0 0 24px rgba(0, 10, 30, .55); }
.springband .spring footer, .springband .spring cite { text-shadow: 0 1px 2px rgba(0, 10, 30, .5), 0 0 20px rgba(0, 10, 30, .5); }
.springband .water {
  background: var(--water); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 26px var(--water-glow));
}
.springband .gold { text-shadow: none; filter: drop-shadow(0 0 22px rgba(247, 200, 115, .35)); }

/* the colour treatments (pick one on the band: springband--…) */
.springband--kawthar {
  --band: radial-gradient(60% 45% at 50% 100%, rgba(127, 240, 210, .35), transparent 70%),
          radial-gradient(55% 40% at 50% 0%, rgba(160, 225, 255, .22), transparent 70%),
          linear-gradient(180deg, #072447 0%, #0A3D6B 35%, #0B5D8C 68%, #0B7B91 100%);
  --water: linear-gradient(100deg, #FFFFFF, #C9F3FF 25%, #8FE3FF 45%, #7FF0D2 65%, #E6FBFF 85%, #FFFFFF);
  --water-glow: rgba(155, 231, 255, .6);
}
.springband--aurora {
  --band: radial-gradient(55% 50% at 15% 85%, rgba(255, 92, 200, .45), transparent 70%),
          radial-gradient(60% 50% at 85% 20%, rgba(80, 255, 220, .38), transparent 70%),
          radial-gradient(70% 55% at 50% 50%, rgba(120, 90, 255, .45), transparent 75%),
          linear-gradient(160deg, #120635 0%, #2A0E6B 40%, #0C3B78 75%, #06505F 100%);
  --water: linear-gradient(100deg, #FFFFFF, #FFC1F0 20%, #B9A6FF 40%, #7FF5E0 60%, #FFE7A8 80%, #FFFFFF);
  --water-glow: rgba(200, 160, 255, .65);
  --pattern-a: .14;
}
.springband--nebula {
  --band: radial-gradient(45% 40% at 30% 40%, rgba(255, 60, 170, .40), transparent 70%),
          radial-gradient(50% 45% at 72% 60%, rgba(60, 120, 255, .50), transparent 70%),
          radial-gradient(35% 30% at 55% 15%, rgba(255, 200, 120, .25), transparent 70%),
          linear-gradient(180deg, #05020F 0%, #150A33 45%, #0B0F3D 100%);
  --water: linear-gradient(100deg, #FFFFFF, #FF9EE0 25%, #9FB4FF 50%, #FFD38A 75%, #FFFFFF);
  --water-glow: rgba(255, 140, 220, .6);
  --pattern-a: .12;
}
.springband--dawn {
  --band: radial-gradient(70% 55% at 50% 100%, rgba(255, 190, 120, .55), transparent 70%),
          radial-gradient(50% 40% at 80% 75%, rgba(255, 120, 150, .40), transparent 70%),
          linear-gradient(180deg, #05252A 0%, #0B4F55 40%, #1F7A6A 70%, #8A6A4A 100%);
  --water: linear-gradient(100deg, #FFFFFF, #FFE2B0 25%, #FFC0C8 45%, #A8F5DC 70%, #FFFFFF);
  --water-glow: rgba(255, 200, 150, .6);
}
.springband--glow {
  --band: radial-gradient(60% 50% at 50% 100%, rgba(0, 255, 190, .30), transparent 70%),
          radial-gradient(45% 40% at 20% 30%, rgba(0, 200, 255, .22), transparent 70%),
          linear-gradient(180deg, #010A0A 0%, #02201D 50%, #023530 100%);
  --water: linear-gradient(100deg, #E8FFF9, #5CFFD6 30%, #4FD9FF 55%, #B6FF7A 80%, #E8FFF9);
  --water-glow: rgba(60, 255, 210, .7);
  --pattern-a: .1;
}
.springband--celestial {
  --band: radial-gradient(60% 45% at 50% 100%, rgba(247, 200, 115, .35), transparent 70%),
          radial-gradient(50% 40% at 50% 0%, rgba(90, 120, 255, .30), transparent 70%),
          linear-gradient(180deg, #030716 0%, #0A1440 50%, #141E5A 100%);
  --water: linear-gradient(100deg, #FFF6DC, #FFE3A0 30%, #F7C873 55%, #FFFFFF 80%, #FFF6DC);
  --water-glow: rgba(247, 200, 115, .6);
  --pattern-a: .2;
}
/* the spring: cool water blues running into jade, flowing slowly across the words */
.water {
  background: linear-gradient(100deg, #9BE7FF 0%, #3CC7D9 22%, #4FA8F0 42%, #2BD48F 62%, #7FE0FF 82%, #9BE7FF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(60, 199, 217, .28));
  animation: water-flow 9s ease-in-out infinite alternate;
}
@keyframes water-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .water { animation: none; } }
.plans { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: clamp(40px, 5vw, 64px); width: 100%; max-width: 920px; text-align: start; align-items: start; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: clamp(8px, 1vw, 12px) 0; }
.plan--gold {
  /* the app's call-to-action gradient, with the star pattern pressed faintly into it */
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(34px, 4.2vw, 52px);
  border-radius: 32px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 255, 255, .28), transparent 60%),
    linear-gradient(135deg, var(--lagoon) 0%, var(--jade) 100%);
  color: var(--night);
  box-shadow: 0 50px 110px -40px rgba(43, 212, 143, .6), 0 20px 50px -30px rgba(60, 199, 217, .5);
}
.plan--gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none' stroke='%2304130D' stroke-width='1'%3E%3Cpath d='M48 14 82 48 48 82 14 48Z'/%3E%3Cpath d='M24 24h48v48H24Z'/%3E%3Cpath d='M48 0v14M48 82v14M0 48h14M82 48h14M0 0l24 24M96 0 72 24M0 96l24-24M96 96 72 72'/%3E%3C/svg%3E"); background-size: 72px 72px; background-position: -12px -12px;
  opacity: .14;
  -webkit-mask-image: radial-gradient(80% 75% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(80% 75% at 100% 0%, #000 0%, transparent 72%);
}
.plan.plan--gold h3 { color: var(--night); }
.plan.plan--gold .plan__sub { color: rgba(4, 19, 13, .72); font-weight: 600; }
.plan.plan--gold li { color: var(--night); border-top-color: rgba(4, 19, 13, .16); font-weight: 500; }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.2rem); letter-spacing: -.015em; }
.plan__sub { color: var(--gold); font-size: 1.02rem; margin-top: 4px; }
.plan ul { margin-top: 26px; display: grid; gap: 0; }
.plan li { position: relative; padding-block: 14px; padding-inline: 30px 0; color: var(--soft); border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; inset-inline-start: 3px; top: 1.32em; width: 11px; height: 5px; border-left: 1.5px solid var(--jade); border-bottom: 1.5px solid var(--jade); transform: rotate(-45deg); }
.plan.plan--gold li::before { border-color: var(--night); }

/* ── faq ── */
.faq__grid { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 940px) { .faq__grid { grid-template-columns: .8fr 1.2fr; } .faq__head { position: sticky; top: 120px; align-self: start; } }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 2px;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.01em;
  transition: color .5s var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--jade); }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--jade); border-bottom: 1.5px solid var(--jade);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .45s var(--ease);
}
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.a { padding: 0 2px 26px; color: var(--soft); max-width: 38em; }
/* the opening and closing (main.js): the answer unfolds, a gradient line sweeps under it */
details { position: relative; }
details::before {
  content: ""; position: absolute; inset: 0 -24px; z-index: -1; pointer-events: none; border-radius: 22px;
  background: radial-gradient(70% 90% at 15% 30%, rgba(43, 212, 143, .09), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
details.is-open::before { opacity: 1; }
details.is-open summary { color: var(--jade); }
details.is-open summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__sweep { position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--grad); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.js-faq .a { overflow: hidden; padding-bottom: 0; }
.js-faq .a > p { padding-bottom: 26px; } /* inside the part that folds, so closing ends at nothing, with no jump */

/* ── final ── */
.final { text-align: center; overflow: hidden; padding-bottom: clamp(110px, 15vw, 220px); }
.final__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 50% 100%, rgba(43, 212, 143, .26), transparent 70%), radial-gradient(40% 40% at 15% 100%, rgba(60, 199, 217, .18), transparent 70%); }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__icon { border-radius: 24%; margin-bottom: 36px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
.final .display { max-width: 17em; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--mute); font-size: .9rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.foot nav a { color: var(--soft); padding: 4px 0; }
.foot nav a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .foot__in { flex-direction: column; text-align: center; gap: 14px; }
  .foot nav { margin-inline-start: 0; justify-content: center; margin-top: 6px; }
}
@media (max-width: 760px) { .foot nav { margin-inline-start: 0; width: 100%; } }

/* ── reveal states (only when JS + motion allowed) ── */
.anim [data-reveal], .anim [data-chat], .anim [data-lang] { opacity: 0; }
.anim .hero__spot, .anim .book__glow, .anim .hero__sub, .anim .hero .hero__cta, .anim .hero .hero__note, .anim .reel, .anim .book { opacity: 0; }
.anim .hero .line__in { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { transform: scaleY(.6); }
  .wave i:nth-child(odd) { transform: scaleY(.3); }
}

/* screenshots are pictures to look at, not to select or drag: a drag on the carousel moves it */
.phone, .phone img, .reel__track { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.phone img { -webkit-user-drag: none; user-drag: none; }

/* "heart": a soft rose, warm against the jade around it, glowing gently */
.heart {
  background: linear-gradient(100deg, #FF8DB5 0%, #FFB0C6 45%, #FFC9A8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 141, 181, .35));
  padding-right: .06em; /* room for the italic's overhang */
}

/* "These are the words of Allah.": gold, catching the light, with a soft glow */
.goldtext {
  background: linear-gradient(100deg, #E9B45A 0%, #FBE3A6 30%, #F7C873 50%, #FFF1CC 68%, #E2A94E 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(247, 200, 115, .35));
  animation: gold-shine 7s ease-in-out infinite alternate;
}
@keyframes gold-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .goldtext { animation: none; } }

/* ── right-to-left pages (Arabic, Urdu, Persian) ── */
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .reel__btn svg { transform: scaleX(-1); }
[dir="rtl"] .faq__sweep { transform-origin: right; }
/* Arabic script joins its letters: no tracking, no faux italics */
[lang="ar"], [lang="ur"], [lang="fa"] { letter-spacing: 0; }
:is([lang="ar"], [lang="ur"], [lang="fa"]) :is(h1, h2, h3, p, li, summary, dt, dd, span, em, small, a, button, strong, cite) { letter-spacing: 0 !important; }
:is([lang="ar"], [lang="ur"], [lang="fa"]) :is(em, i, cite, .feel li, .spring footer) { font-style: normal; }
:is([lang="ar"], [lang="ur"], [lang="fa"], [lang="bn"]) .line { padding-block: .12em .3em; margin-block: -.12em -.3em; }
/* Nastaliq rises and falls far more than Latin: room for it */
html[lang="ur"] body { line-height: 2.1; }
html[lang="ur"] :is(h1, h2, h3, .display, .hero__title, summary, .feel li, .bridge) { line-height: 1.9 !important; }
html[lang="ur"] .hero__title { font-size: clamp(2rem, 6.4vw, 4.6rem); }
html[lang="ur"] .display { font-size: clamp(1.8rem, 4.6vw, 3.6rem); }
html[lang="ar"] .display, html[lang="ar"] .hero__title { line-height: 1.35; }
html[lang="fa"] .display, html[lang="fa"] .hero__title { line-height: 1.4; }
html[lang="bn"] .display, html[lang="bn"] .hero__title { line-height: 1.3; }

/* ── light theme: the app's day colours. Chosen by the visitor's device, or the sun/moon button (main.js), set on <html>
   before the page paints (the script in <head>). The phones stay dark devices and the spring band keeps its night sky. ── */
html[data-theme="light"] {
  color-scheme: light;
  --night: #F3F9F7;
  --night-2: #E7F2EE;
  --jade: #0F9D69;
  --lagoon: #138FA3;
  --gold: #A8741C;
  --ink: #0B2A22;
  --soft: #3D5C55;
  --mute: #67857D;
  --line: rgba(11, 42, 34, .13);
  --card: rgba(11, 42, 34, .04);
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] ::selection { background: rgba(15, 157, 105, .22); }
html[data-theme="light"] .grad { background-image: linear-gradient(100deg, var(--lagoon) 0%, var(--jade) 55%, #0B7F55 100%); }
html[data-theme="light"] .nav.is-stuck { background: rgba(243, 249, 247, .82); }
html[data-theme="light"] .langpick summary:hover, html[data-theme="light"] .langpick[open] summary { background: rgba(11, 42, 34, .06); }
html[data-theme="light"] .langpick__list { background: rgba(255, 255, 255, .97); box-shadow: 0 30px 60px -24px rgba(11, 42, 34, .3); }
html[data-theme="light"] .langpick__list a:hover { background: rgba(11, 42, 34, .05); }
html[data-theme="light"] :is(.store, .skip, .nav__cta:hover, .plan--gold, .plan.plan--gold h3, .plan.plan--gold li) { color: #04130D; }
html[data-theme="light"] .plan.plan--gold li::before { border-color: #04130D; }
html[data-theme="light"] .hero__light { background: radial-gradient(60% 46% at 0% 0%, rgba(43, 212, 143, .22), transparent 70%), radial-gradient(55% 44% at 100% 6%, rgba(60, 199, 217, .2), transparent 70%); }
html[data-theme="light"] .phone { box-shadow: 0 0 0 1px rgba(239, 250, 247, .09) inset, 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 80px -34px rgba(11, 42, 34, .45), 0 30px 60px -40px rgba(43, 212, 143, .3); }
html[data-theme="light"] .phone--lit { box-shadow: 0 0 0 1px rgba(239, 250, 247, .12) inset, 0 0 0 1px rgba(0, 0, 0, .5), 0 50px 100px -36px rgba(11, 42, 34, .5), 0 0 110px -24px rgba(43, 212, 143, .35); }
html[data-theme="light"] .reel__btn { background: rgba(255, 255, 255, .7); border-color: rgba(11, 42, 34, .16); }
html[data-theme="light"] .reel__btn:hover { background: rgba(168, 116, 28, .1); border-color: rgba(168, 116, 28, .45); }
html[data-theme="light"] .reel__dots i { background: rgba(11, 42, 34, .18); }
html[data-theme="light"] .reel__dots i.is-on { background: var(--gold); }
html[data-theme="light"] .verse.is-armed .w.is-lit { text-shadow: 0 0 30px rgba(247, 200, 115, .5); }
html[data-theme="light"] .tafsir { border-inline-start-color: rgba(168, 116, 28, .4); }
html[data-theme="light"] .ico { border-color: rgba(168, 116, 28, .35); }
html[data-theme="light"] .feel .f2 { background-image: linear-gradient(100deg, #A8741C, #C99234); }
html[data-theme="light"] .feel .f6 { background-image: linear-gradient(100deg, #0F9D69, #138FA3); }
html[data-theme="light"] .final__icon { box-shadow: 0 26px 60px -22px rgba(11, 42, 34, .45); }
html[data-theme="light"] .final__light { background: radial-gradient(55% 60% at 50% 100%, rgba(43, 212, 143, .2), transparent 70%), radial-gradient(40% 40% at 15% 100%, rgba(60, 199, 217, .14), transparent 70%); }
html[data-theme="light"] .goldtext { background-image: linear-gradient(100deg, #9A6514 0%, #C9923A 30%, #A8741C 50%, #D6A24A 68%, #8F5D12 100%); filter: none; }
html[data-theme="light"] .heart { background-image: linear-gradient(100deg, #D63B76 0%, #E8628E 45%, #E9805A 100%); filter: none; }
html[data-theme="light"] .springband .gold { color: #F7C873; }

/* the theme button: a moon in the dark, a sun in the light */
.themebtn {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); color: var(--soft); cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.themebtn:hover { color: var(--ink); border-color: var(--jade); }
.themebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.themebtn .sun { display: none; }
html[data-theme="light"] .themebtn .sun { display: block; }
html[data-theme="light"] .themebtn .moon { display: none; }
html[data-theme="light"] .springband .spring__ar { color: #F7C873; }
/* in the bar: on phones the button leads the right-hand group; on wide screens the links do */
.themebtn { margin-inline-start: auto; }
.nav__in .langpick, .nav__in .nav__cta { margin-inline-start: 0; }
@media (max-width: 899px) { .nav__in { gap: 12px; } }
@media (min-width: 900px) { .themebtn { margin-inline-start: 0; } }
/* small phones: the bar keeps the name, the theme and the languages; "Coming soon" is in the hero just below */
@media (max-width: 479px) { .nav__cta { display: none; } }
.langpick summary svg { flex: none; }
