/* ==========================================================================
   Quwwah — one deep-green world.

   The ground is the app icon's green (#084F3D) and the ink is its almond
   (#EED9C4); the mint accent is the app's own dark-mode green ink. Nothing
   here inverts for a light scheme on purpose: the page commits to one look
   and paints every colour explicitly.

   The phone screens are the app's own screens — Home, the Prayer tab, the
   reader, the Wellness dashboard, the Coach check-in — drawn in CSS from the
   app's green palette in its light scheme, checked against the app's design
   gallery (`.renders/`), at ~0.85 of the app's own scale.

   Depth: scenes carry elements tagged data-depth 0–5 and the scroll driver
   moves them at their own rates. All motion is transform / opacity / clip.
   ========================================================================== */

:root {
  color-scheme: dark;

  --g-900: #04211b;
  --g-950: #03170f;
  --g-800: #063127;
  --g-700: #084f3d;
  --g-600: #0b6a4f;
  --mint: #c2f4b6;
  --mint-2: #8cd79c;
  --almond: #eed9c4;
  --almond-80: rgba(238, 217, 196, 0.8);
  --almond-60: rgba(238, 217, 196, 0.6);
  --almond-40: rgba(238, 217, 196, 0.4);
  --almond-30: rgba(238, 217, 196, 0.3);
  --almond-14: rgba(238, 217, 196, 0.14);
  --almond-08: rgba(238, 217, 196, 0.08);
  --ink-on-almond: #04211b;
  --ink-on-almond-2: rgba(4, 33, 27, 0.7);

  --font-display: "Cormorant Garamond", "Amiri", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-ar-display: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --col: 1180px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --top-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- base --------------------------------------------------------------- */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--g-700);
  color: var(--almond);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.9;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--almond);
  color: var(--ink-on-almond);
}
.col {
  width: min(var(--col), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---- type --------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 500;
}
html[lang="ar"] .display {
  font-family: var(--font-ar-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="ar"] .display em {
  font-style: normal;
  color: var(--mint);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0;
  color: var(--almond-60);
  line-height: 1;
}
.eyebrow.center {
  justify-content: center;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 14px;
  font-family: var(--font-ar);
}
.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--almond-80);
  max-width: 30em;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--almond-60);
}
.meta.center {
  justify-content: center;
}
.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--almond-40);
}
.section-head {
  display: grid;
  gap: 18px;
  max-width: 34em;
  margin-block-end: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(38px, 5vw, 64px);
}

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
html[lang="ar"] .btn {
  font-family: var(--font-ar);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.98);
}
.btn-almond {
  background: var(--almond);
  color: var(--ink-on-almond);
}
.btn-almond:hover {
  background: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--almond);
  border-color: var(--almond-40);
}
.btn-ghost:hover {
  border-color: var(--almond);
}
.btn-green {
  background: var(--g-700);
  color: var(--almond);
}
.btn-green:hover {
  background: var(--g-800);
}
.btn-sm {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13.5px;
}

/* ---- wordmark ----------------------------------------------------------- */
/* Two masks over the brand PNG: alpha gives the whole shape in almond; the
   luminance channel (beige Arabic bright, rose letters dark) gives only the
   قوّة counter-form, painted back in the ground colour. */
.wordmark {
  position: relative;
  display: inline-block;
  width: 118px;
  aspect-ratio: 528 / 270;
}
.wordmark::before,
.wordmark::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("assets/wordmark.png") center / contain no-repeat;
  mask: url("assets/wordmark.png") center / contain no-repeat;
}
.wordmark::before {
  background: var(--almond);
}
.wordmark::after {
  background: var(--g-700);
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}
.wordmark-sm {
  width: 92px;
}

/* ---- top bar ------------------------------------------------------------ */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.top.is-scrolled {
  background: rgba(8, 79, 61, 0.72);
  border-bottom-color: var(--almond-08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--top-h);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 30px;
  margin-inline-start: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--almond-80);
}
.nav a {
  position: relative;
  padding-block: 4px;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}
html[dir="rtl"] .nav a::after {
  transform-origin: 100% 50%;
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}
.nav a.is-active {
  color: var(--almond);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-btn {
  height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--almond-40);
  background: transparent;
  color: var(--almond);
  font-family: var(--font-ar);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}
.lang-btn:hover {
  border-color: var(--almond);
}
html[lang="ar"] .lang-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}

/* ---- scenes + depth ----------------------------------------------------- */

.scene {
  position: relative;
  isolation: isolate;
}
.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.depth-0 {
  z-index: 0;
}
.depth-1 {
  z-index: 1;
}
.depth-3 {
  z-index: 3;
}
.depth-4 {
  z-index: 4;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.glow-a {
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  inset-inline-end: -14vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(46, 138, 74, 0.55) 0%, rgba(46, 138, 74, 0) 65%);
}
.glow-b {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  inset-inline-start: -16vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(194, 244, 182, 0.18) 0%, rgba(194, 244, 182, 0) 65%);
}
.glow-c {
  width: 70vw;
  height: 40vw;
  inset-inline-start: 15vw;
  top: 10%;
  background: radial-gradient(ellipse, rgba(46, 138, 74, 0.35) 0%, rgba(46, 138, 74, 0) 65%);
}

/* ---- hero --------------------------------------------------------------- */

.hero {
  overflow: hidden;
  /* the depth layers lift on scroll and uncover this; it must be the colour the
     hero ground ends on, or a light strip shows against the sky below */
  background: var(--g-800);
  padding-block: calc(var(--top-h) + env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 96px)) clamp(72px, 8vw, 110px);
  min-height: 86svh;
  display: flex;
  align-items: center;
}
.hero::after {
  /* dissolve the glows into the sky colour the next scene opens on, so the
     hero's clipped edge never shows */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(80px, 10vw, 150px);
  background: linear-gradient(180deg, rgba(6, 49, 39, 0) 0%, var(--g-800) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-ground {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, var(--g-600) 0%, var(--g-700) 45%, var(--g-800) 100%);
}
.hero-calligraphy {
  position: absolute;
  inset-inline-end: -2vw;
  top: -6vw;
  font-family: var(--font-ar-display);
  font-weight: 700;
  font-size: clamp(260px, 42vw, 620px);
  line-height: 1;
  color: var(--almond);
  opacity: 0.055;
  direction: rtl;
  user-select: none;
}
.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 26px;
  position: relative;
}
.hero-h1 {
  font-size: clamp(56px, 8.4vw, 124px);
  color: var(--almond);
  display: grid;
  gap: 0.02em;
}
html[lang="ar"] .hero-h1 {
  font-size: clamp(52px, 7.6vw, 110px);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line-in {
  display: block;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-stage .phone {
  width: min(380px, 84vw);
}
/* The phone stands upright and still: no tilt, no bob, no drift. It used to
   hang in 3D (rotated, bobbing, over a far blurred shadow) and read as
   floating; now it sits square to the page on a tight contact shadow. */
.phone-tilt {
  position: relative;
}
.phone-shadow {
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 62%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(7px);
}

/* the scroll cue, bottom of the hero */
.scroll-cue {
  position: absolute;
  z-index: 5;
  inset-inline-start: var(--gutter);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--almond-60);
}
html[lang="ar"] .scroll-cue {
  letter-spacing: 0;
  font-size: 13px;
}
.scroll-cue i {
  width: 56px;
  height: 1px;
  background: var(--almond-30);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mint);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i::after {
    animation: sweep 2.4s ease-in-out infinite;
  }
}
@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ---- the phone ---------------------------------------------------------- */
/* 320 × 660: the app's geometry at ~0.85 of its 375-wide layout. Tokens are
   the app's green palette in its light scheme (`utils/COLORS.ts`). */

.phone {
  width: min(320px, 84vw);
  aspect-ratio: 320 / 660;
  border-radius: 46px;
  background: #0d1210;
  padding: 10px;
  box-shadow:
    0 22px 38px -14px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px rgba(0, 0, 0, 0.6);
  position: relative;
}
.screen {
  --sg: #f2f1ef;
  --s-plate: #046420;
  --s-ink: #1b1a18;
  --s-ink-2: #4a4a4a;
  --s-muted: #736c70;
  --s-acc: #046420;
  --s-fill: #128333;
  --s-fill-deep: #0a3b2a;
  --s-tint: #d9ebde;
  --s-tint-2: #b7d8bf;
  --s-card: rgba(255, 255, 255, 0.62);
  --s-card-40: rgba(255, 255, 255, 0.42);
  --s-card-solid: #ffffff;
  --s-line: rgba(27, 26, 24, 0.08);
  --s-nav: rgba(249, 249, 249, 0.8);
  --s-nav-circle: rgba(255, 255, 255, 0.55);
  --s-nav-btn-ink: #b7d8bf;
  --s-plate-ink: #f2f1ef;
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--sg);
  color: var(--s-ink);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
}
html[lang="ar"] .screen {
  font-family: var(--font-ar);
  line-height: 1.5;
}
/* a glass glare across the screen, above everything but the notch */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
  z-index: 5;
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #0d1210;
  z-index: 6;
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px) scale(1.01);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
.face.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}
/* header plates: Home's glow dissolves into the ground; the tab screens open
   on the full plate with rounded lower corners; Coach is full-bleed */
.glowhead {
  position: absolute;
  inset: 0 0 auto 0;
  height: 44%;
  background: linear-gradient(180deg, var(--s-fill) 0%, var(--sg) 100%);
  pointer-events: none;
}
.plate-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(180deg, var(--s-plate) 0%, var(--sg) 100%);
  border-radius: 0 0 27px 27px;
  pointer-events: none;
}
.plate-glow-short {
  height: 30%;
}
.coach-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--s-plate) 0%, var(--sg) 100%);
  pointer-events: none;
}
.s-body {
  position: relative;
  padding: 46px 17px 0;
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.s-card {
  border-radius: 19px;
  background: var(--s-card);
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.s-card.tint {
  background: rgba(18, 131, 51, 0.13);
  box-shadow: none;
}
.chev {
  font-style: normal;
  color: var(--s-ink-2);
  font-size: 15px;
  line-height: 1;
  opacity: 0.7;
}
html[dir="rtl"] .chev,
html[dir="rtl"] .link i,
html[dir="rtl"] .s-plate-head .ctl.back {
  display: inline-block;
  transform: scaleX(-1);
}

/* shared: plate header row (title over the plate, a round control) */
.s-plate-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  color: var(--s-plate-ink);
}
.s-plate-head strong {
  font-size: 14px;
  font-weight: 600;
}
.s-plate-head .ctl {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}
.s-plate-head .ctl svg {
  width: 15px;
  height: 15px;
}
.s-plate-head.three .ctl:first-child {
  inset-inline-end: auto;
  inset-inline-start: 0;
}

/* ---- Home --------------------------------------------------------------- */
.s-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}
.s-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #bdbdbd;
  color: var(--s-fill);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.s-avatar svg {
  width: 18px;
  height: 18px;
}
.s-greet {
  font-size: 12.5px;
  color: var(--s-plate-ink);
  white-space: nowrap;
}
.s-greet b {
  font-weight: 600;
}
.s-bell {
  margin-inline-start: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  color: var(--s-plate-ink);
  flex-shrink: 0;
}
.s-bell svg {
  width: 14px;
  height: 14px;
}
.s-next {
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.72);
}
.s-next .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.s-next small {
  color: var(--s-ink-2);
  font-size: 10.5px;
}
.s-next .link {
  font-size: 10.5px;
  color: var(--s-ink-2);
}
.s-next .link i {
  font-style: normal;
}
.s-next strong {
  font-size: 18px;
  font-weight: 500;
  color: var(--s-acc);
  line-height: 1.2;
}
.s-next .glyph {
  font-size: 20px;
  line-height: 1;
}
.s-next .sub {
  color: var(--s-muted);
}
.s-salah-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 2px 0;
}
.s-salah-head b {
  font-size: 13px;
  font-weight: 600;
}
.s-salah-head span {
  font-size: 10.5px;
  color: var(--s-ink-2);
}
.s-salah {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.pc {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--s-muted);
}
.pc i {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  color: var(--s-acc);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.08);
}
.pc i svg {
  width: 18px;
  height: 18px;
}
.pc.done {
  color: var(--s-acc);
  font-weight: 600;
}
.pc.done i {
  background: var(--s-card-solid);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.08), inset 0 1px 14px 2px var(--s-tint-2), inset 0 1px 3px 2px var(--s-fill);
}
.s-dua {
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.7);
}
.s-dua b {
  font-size: 11px;
  font-weight: 500;
  color: var(--s-acc);
}
.s-dua p {
  font-family: var(--font-ar-display);
  font-size: 14px;
  line-height: 1.7;
  text-align: start;
}
.s-dua small {
  font-size: 10px;
  color: var(--s-ink-2);
}
.s-score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ring {
  --v: 72;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--s-acc) calc(var(--v) * 1%), var(--s-tint) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring::after {
  content: attr(data-label);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--s-card-solid);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--s-acc);
}
.s-score-label {
  display: grid;
  line-height: 1.25;
  font-size: 11px;
  color: var(--s-ink-2);
}
.s-score-label b {
  font-weight: 500;
  color: var(--s-acc);
}
.s-score-label b i {
  font-style: normal;
  color: var(--s-ink-2);
}
.s-stats {
  margin-inline-start: auto;
  display: grid;
  gap: 6px;
  font-size: 10px;
  color: var(--s-ink-2);
}
.s-stats div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.s-stats b {
  color: var(--s-acc);
  font-weight: 600;
  font-size: 12px;
}
.s-stats i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}
.s-week {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
}
.s-week small {
  font-size: 11px;
  color: var(--s-ink-2);
}
.s-week .days {
  display: flex;
  justify-content: space-between;
}
.s-week .days i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  color: var(--s-ink);
}
.s-week .days i.on {
  background: var(--s-fill);
  color: #fff;
}

/* ---- Deen (the Prayer tab) --------------------------------------------- */
.s-today {
  text-align: center;
  display: grid;
  gap: 1px;
  background: var(--s-card-40);
  padding: 9px 12px;
}
.s-today small {
  font-size: 10px;
  color: var(--s-ink-2);
}
.s-today b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--s-acc);
}
.s-upcoming {
  border-radius: 19px;
  background: linear-gradient(180deg, #34a052 0%, #128333 100%);
  color: #fff;
  padding: 12px 14px 10px;
  display: grid;
  gap: 2px;
  box-shadow: 0 8px 20px rgba(4, 100, 32, 0.25);
}
.s-upcoming .row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.s-upcoming .row i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.s-upcoming .row i svg {
  width: 20px;
  height: 20px;
}
.s-upcoming .row b {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
html[lang="ar"] .s-upcoming .row b {
  letter-spacing: 0;
}
.s-upcoming .row span {
  font-size: 10.5px;
  opacity: 0.9;
}
.s-upcoming small {
  font-size: 10px;
  opacity: 0.9;
}
.s-upcoming .row.big {
  justify-content: space-between;
}
.s-upcoming .row.big strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}
.s-upcoming .center {
  text-align: center;
  margin-top: 4px;
}
.s-times {
  display: grid;
  gap: 4px;
  padding: 10px 14px 8px;
  background: rgba(255, 255, 255, 0.86);
}
.s-times .t {
  display: grid;
  grid-template-columns: 22px 1fr 26px;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.s-times .t i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--s-acc);
}
.s-times .t i svg {
  width: 18px;
  height: 18px;
}
.s-times .t b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--s-acc);
  line-height: 1.2;
}
.s-times .t small {
  font-size: 9.5px;
  color: var(--s-muted);
}
.s-times .chk {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--s-tint-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.s-times .done .chk {
  background: linear-gradient(180deg, #34a052, #128333);
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(4, 100, 32, 0.3);
}
.s-times .note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 6px;
  font-size: 10px;
  color: var(--s-acc);
}
.s-times .note svg {
  width: 12px;
  height: 12px;
}
.s-tiles-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tile2 {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}
.tile2 i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  color: var(--s-acc);
  margin-bottom: 4px;
}
.tile2 i svg {
  width: 18px;
  height: 18px;
}
.tile2 b {
  font-size: 12px;
  font-weight: 600;
  color: var(--s-acc);
}
.tile2 small {
  font-size: 10px;
  color: var(--s-ink-2);
}

/* ---- Quran (the reader) ------------------------------------------------- */
.s-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}
.s-toggle > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--s-acc);
}
.s-toggle > span i {
  font-style: normal;
  font-size: 11px;
}
.s-toggle > span.on {
  background: var(--s-fill);
  color: #f2f1ef;
}
.s-mushaf {
  display: grid;
  gap: 10px;
  padding: 12px 14px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--s-ink);
}
.surah-band {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
  background: rgba(18, 131, 51, 0.08);
}
.surah-band b {
  font-family: var(--font-ar-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--s-acc);
  line-height: 1.5;
}
.surah-band small {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-acc);
}
html[lang="ar"] .surah-band small {
  letter-spacing: 0;
  font-size: 9.5px;
}
.ayat {
  font-family: var(--font-ar-display);
  font-size: 16.5px;
  line-height: 2.2;
  text-align: justify;
  text-align-last: center;
}
.orn {
  color: var(--s-acc);
  font-size: 15px;
}
.mushaf-foot {
  font-size: 9px;
  color: var(--s-acc);
  text-align: center;
}

/* ---- Wellness ----------------------------------------------------------- */
.s-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "chip chev"
    "value value"
    "label label"
    "foot foot";
  gap: 3px;
  padding: 10px 12px 11px;
  background: rgba(255, 255, 255, 0.82);
}
.s-metric.tint {
  background: rgba(18, 131, 51, 0.13);
}
.s-metric .chip {
  grid-area: chip;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  color: var(--s-acc);
  margin-bottom: 6px;
  font-style: normal;
}
.s-metric .chip svg {
  width: 18px;
  height: 18px;
}
.s-metric .chip.zz {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: -0.02em;
}
.s-metric .chip.zz b {
  font-size: 14px;
}
.s-metric .chev {
  grid-area: chev;
  align-self: start;
}
.s-metric > b {
  grid-area: value;
  font-size: 16px;
  font-weight: 600;
  color: var(--s-acc);
  line-height: 1.2;
}
.s-metric > b small {
  font-size: 10px;
  font-weight: 500;
  color: var(--s-muted);
}
.s-metric > span {
  grid-area: label;
  font-size: 9.5px;
  color: var(--s-ink-2);
  line-height: 1.35;
}
.s-metric .bar,
.s-metric .spark {
  grid-area: foot;
  margin-top: 6px;
}
.bar {
  height: 5px;
  border-radius: 5px;
  background: var(--s-tint);
  overflow: hidden;
}
.bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--s-fill);
  border-radius: 5px;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.spark i {
  flex: 1;
  height: var(--h);
  background: var(--s-tint-2);
  border-radius: 2px;
}
.spark i:nth-child(6) {
  background: var(--s-fill);
}
.s-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.s-moodcard {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.s-moodcard img {
  width: 26px;
  height: auto;
}
.s-moodcard b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.s-moodcard small {
  font-size: 9.5px;
  color: var(--s-ink-2);
  line-height: 1.35;
}

/* ---- Coach -------------------------------------------------------------- */
.s-coach-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  position: relative;
  color: var(--s-plate-ink);
}
.s-coach-head img {
  width: 22px;
  height: auto;
}
.s-coach-head strong {
  font-size: 14px;
  font-weight: 600;
}
.s-coach-head .btns {
  position: absolute;
  inset-inline-end: 0;
  display: flex;
  gap: 6px;
}
.s-coach-head .btns i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  color: var(--s-plate-ink);
}
.s-coach-head .btns i svg {
  width: 15px;
  height: 15px;
}
.s-coach-greet {
  background: var(--s-fill);
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: none;
}
.s-dua2 {
  display: grid;
  justify-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.s-dua2 b {
  font-family: var(--font-ar-display);
  font-weight: 400;
  font-size: 15px;
}
.s-dua2 small {
  font-size: 10.5px;
  color: var(--s-ink-2);
}
.s-nudgecard {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}
.s-nudgecard .badge {
  position: absolute;
  top: -9px;
  inset-inline-start: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--s-fill);
  color: #fff;
  font-size: 9.5px;
}
.s-nudgecard p {
  font-size: 11px;
  line-height: 1.45;
}
.s-nudgecard .chip {
  justify-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--s-acc);
  font-size: 10.5px;
  font-weight: 500;
}
.s-recent {
  display: grid;
  gap: 6px;
}
.s-recent > small {
  font-size: 11px;
  color: var(--s-ink);
}
.s-recent .center {
  text-align: center;
}
.s-recent .s-card {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
}
.s-recent .grow {
  display: grid;
  gap: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--s-line);
}
.s-recent .grow small {
  font-size: 9px;
  color: var(--s-muted);
}
.s-recent .grow b {
  font-size: 11px;
  font-weight: 500;
}
.s-recent .more {
  justify-self: end;
  font-size: 9.5px;
  color: var(--s-acc);
}
.fab {
  position: absolute;
  inset-inline-end: 17px;
  bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--s-acc);
  color: #f2f1ef;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(4, 100, 32, 0.35), 0 0 0 3px var(--sg);
}
.fab svg {
  width: 20px;
  height: 20px;
}

/* ---- the tab bar (drawn by app.js into every .s-nav) -------------------- */
.s-nav {
  position: relative;
  margin-top: auto;
  padding: 26px 15px 14px;
  z-index: 3;
}
.s-nav-bar {
  height: 63px;
  border-radius: 17px;
  background: var(--s-nav);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  padding: 5px 5px 0;
}
.s-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 9px;
  line-height: 1.1;
  color: var(--s-acc);
  white-space: nowrap;
}
.s-tab i {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--s-nav-circle);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  color: var(--s-acc);
}
.s-tab i svg {
  width: 18px;
  height: 18px;
}
.s-tab.on i {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1), inset 0 1px 14px var(--s-tint), inset 0 1px 3px var(--s-fill);
}
.s-tab-deen {
  padding-top: 21px;
}
.s-deen {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 47px;
  border-radius: 50px;
  background: var(--s-fill);
  color: var(--s-nav-btn-ink);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 14px rgba(183, 216, 191, 0.55), inset 0 1px 3px var(--s-fill-deep);
}
.s-deen.on {
  background: var(--s-fill-deep);
}
.s-deen svg {
  width: 18px;
  height: 18px;
}

/* ---- horizon: the layered parallax scene -------------------------------- */
/* Four layers scrubbed against the scroll (app.js, initHorizon): a star sky
   that sinks furthest, a far skyline, the copy, and the near mosque that holds
   still and so rides up over the copy. At rest — no script, reduced motion —
   they simply stand as a composed scene. */

.parallax {
  position: relative;
  background: var(--g-800);
}
.parallax__visuals {
  position: relative;
  overflow: hidden;
  height: clamp(600px, 100svh, 960px);
  background:
    radial-gradient(64% 50% at 50% 90%, rgba(238, 217, 196, 0.6) 0%, rgba(140, 215, 156, 0.2) 44%, rgba(140, 215, 156, 0) 76%),
    linear-gradient(180deg, var(--g-800) 0%, var(--g-950) 34%, #0a3d30 80%, var(--g-700) 100%);
}
.parallax__visuals::before {
  /* the moon's halo is wider than the sky's visible top; fade the sky in from
     the hero's ground colour so its clipped edge never shows */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(90px, 13vw, 180px);
  background: linear-gradient(180deg, var(--g-800) 0%, rgba(6, 49, 39, 0) 100%);
  z-index: 5;
  pointer-events: none;
}
.parallax__layers {
  position: absolute;
  inset: 0;
}
.parallax__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}
/* the sky is taller than the scene so the far layer can sink 36% of itself
   without the top of the frame running out of stars */
.parallax__layer--sky {
  inset: -60% 0 auto 0;
  height: 160%;
}
.parallax__svg {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  display: block;
}
.parallax__layer--sky .parallax__svg {
  inset: 0;
  height: 100%;
}
.parallax__svg--far {
  height: 66%;
}
.parallax__svg--near {
  height: 50%;
}
.parallax__layer--title {
  display: grid;
  place-items: center;
  align-content: center;
  padding: calc(var(--top-h) + 12px) var(--gutter) 22%;
}
.parallax__copy {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2vw, 22px);
  text-align: center;
  max-width: 880px;
}
.parallax__title {
  margin: 0;
  font-size: clamp(46px, 9vw, 132px);
  line-height: 0.98;
  color: var(--almond);
  text-shadow: 0 2px 40px rgba(3, 23, 15, 0.45);
}
html[lang="ar"] .parallax__title {
  line-height: 1.25;
}
.parallax__sub {
  margin: 0;
  max-width: 26em;
  text-align: center;
}
.parallax__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 10%;
  background: linear-gradient(180deg, rgba(8, 79, 61, 0) 0%, var(--g-700) 100%);
  pointer-events: none;
  z-index: 5;
}
@media (prefers-reduced-motion: no-preference) {
  .tw {
    animation: twinkle 5.5s ease-in-out infinite;
  }
  .tw:nth-child(3n) {
    animation-delay: -2.1s;
  }
  .tw:nth-child(3n + 1) {
    animation-delay: -4s;
  }
}
@keyframes twinkle {
  0%,
  100% {
    fill-opacity: 0.2;
  }
  50% {
    fill-opacity: 0.95;
  }
}

/* ---- smooth scroll (Lenis adds these classes to <html>) ----------------- */

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

/* ---- statement + facts -------------------------------------------------- */

.statement {
  padding-block: clamp(80px, 12vw, 150px) clamp(40px, 6vw, 72px);
  background: var(--g-700);
}
.statement-text {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.18;
  max-width: 22em;
  margin-inline: auto;
  text-align: center;
  color: var(--almond-40);
}
.statement-text .w {
  transition: color 0.35s ease;
}
.statement-text .w.lit {
  color: var(--almond);
}
.facts {
  background: var(--g-700);
  padding-block: 0 clamp(64px, 9vw, 120px);
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--almond-14);
  border-bottom: 1px solid var(--almond-14);
}
.fact {
  display: grid;
  gap: 2px;
  padding: 26px 22px;
  border-inline-start: 1px solid var(--almond-14);
}
.fact:first-child {
  border-inline-start: 0;
}
.fact b {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 500;
  color: var(--almond);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact span {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--almond-60);
}

/* ---- journey ------------------------------------------------------------ */

.journey {
  background: linear-gradient(180deg, var(--g-700) 0%, var(--g-800) 100%);
  padding-block: clamp(24px, 4vw, 48px) clamp(80px, 10vw, 140px);
}
.journey-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 120px);
  /* stretch, not start: the stage column must be as tall as the chapters or
     the sticky phone has nowhere to stick */
  align-items: stretch;
}
.journey-stage {
  position: relative;
}
.sticky {
  position: sticky;
  top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 6vh);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding-block: 20px 60px;
}
/* the chapter rail beside the phone: four ticks, the current one lit */
.rail {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}
.rail a {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--almond-30);
  border-radius: 2px;
  transition: background-color 0.3s ease, width 0.3s var(--ease-out);
}
.rail a.is-on {
  background: var(--mint);
  width: 34px;
}
.chapters {
  display: grid;
  gap: clamp(72px, 11vw, 150px);
  padding-block: clamp(40px, 8vh, 110px);
}
.chapter {
  display: grid;
  gap: 22px;
  max-width: 34em;
  scroll-margin-top: 100px;
}
.chapter h2 {
  font-size: clamp(38px, 4.6vw, 60px);
  color: var(--almond);
}
.chapter > p {
  font-size: 16.5px;
  color: var(--almond-80);
  line-height: 1.75;
}
.lines {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.lines li {
  padding-block: 14px;
  border-top: 1px solid var(--almond-14);
  font-size: 14.5px;
  color: var(--almond-80);
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: baseline;
}
.lines li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--mint-2);
  transform: translateY(-4px);
}
.lines li:last-child {
  border-bottom: 1px solid var(--almond-14);
}

/* ---- hadith band -------------------------------------------------------- */

.hadith-band {
  background: var(--g-900);
  padding-block: clamp(96px, 14vw, 200px);
  overflow: hidden;
}
.hadith-inner {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.hadith-ar {
  font-family: var(--font-ar-display);
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.6;
  color: var(--almond);
  max-width: 16em;
  text-wrap: balance;
}
.hadith-en {
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--almond-80);
  max-width: 26em;
}
html[lang="ar"] .hadith-en {
  font-style: normal;
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
}

/* ---- principles --------------------------------------------------------- */

.principles {
  background: var(--g-800);
  padding-block: clamp(80px, 12vw, 160px);
}
.pr-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--almond-14);
}
.pr-list li {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--almond-14);
}
.pr-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  color: var(--almond);
}
html[lang="ar"] .pr-list h3 {
  font-family: var(--font-ar-display);
  font-size: 24px;
  line-height: 1.5;
}
.pr-list p {
  font-size: 15px;
  color: var(--almond-60);
  max-width: 30em;
}

/* ---- waitlist: the almond inversion ------------------------------------- */

.waitlist {
  background: var(--almond);
  color: var(--ink-on-almond);
  padding-block: clamp(80px, 12vw, 160px);
}
.waitlist ::selection {
  background: var(--g-700);
  color: var(--almond);
}
.wl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.wl-copy {
  display: grid;
  gap: 22px;
}
.waitlist .eyebrow {
  color: var(--g-600);
}
.wl-copy h2 {
  font-size: clamp(44px, 6vw, 84px);
  color: var(--g-900);
}
.waitlist .lede {
  color: var(--ink-on-almond-2);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.store {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--g-900);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(4, 33, 27, 0.25);
}
.store b {
  font-weight: 500;
}
.store small {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-600);
}
html[lang="ar"] .store small {
  letter-spacing: 0;
  font-size: 12px;
}
.store[href] small {
  display: none;
}
.wl-form {
  display: grid;
  gap: 22px;
  padding-top: 14px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-600);
}
html[lang="ar"] .field {
  letter-spacing: 0;
  font-size: 13px;
}
.field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding-inline: 0;
  border: 0;
  border-bottom: 1px solid rgba(4, 33, 27, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--g-900);
  font: inherit;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.25s ease;
}
html[lang="ar"] .field input {
  font-family: var(--font-ar);
}
.field input::placeholder {
  color: rgba(4, 33, 27, 0.35);
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--g-900);
}
.platform {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.platform legend {
  padding: 0;
  margin-block-end: 10px;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g-600);
}
html[lang="ar"] .platform legend {
  letter-spacing: 0;
  font-size: 13px;
}
.platform label {
  position: relative;
  cursor: pointer;
}
.platform input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.platform span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid rgba(4, 33, 27, 0.35);
  color: var(--g-900);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.platform input:checked + span {
  background: var(--g-700);
  border-color: var(--g-700);
  color: var(--almond);
}
.platform input:focus-visible + span {
  outline: 2px solid var(--g-700);
  outline-offset: 2px;
}
.wl-form .btn {
  justify-self: start;
  margin-top: 6px;
}
.wl-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.wl-note {
  font-size: 12.5px;
  color: var(--ink-on-almond-2);
}
.wl-status {
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-900);
}
.wl-status:empty {
  display: none;
}
.wl-status[data-tone="error"] {
  color: #8a2e2e;
}

/* ---- footer ------------------------------------------------------------- */

.foot {
  background: var(--g-900);
  color: var(--almond-60);
  padding-block: 44px calc(56px + env(safe-area-inset-bottom, 0px));
  font-size: 13.5px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot nav a:hover {
  color: var(--almond);
}
.foot .copy {
  margin-inline-start: auto;
}

/* ---- reveals: scroll-driven, computed from layout, never hidden at rest -- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-in {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes rise-in {
  from {
    opacity: 0.45;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- motion ------------------------------------------------------------- */

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

/* ---- faith + fitness: the workout pass ---------------------------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Home → Today's Discipline: the card that follows "This week" in the app */
.s-disc {
  display: grid;
  gap: 6px;
}
.s-disc .dt {
  margin: 0;
  padding-inline: 2px;
  font-size: 10.5px;
  color: var(--s-ink);
}
.dcard {
  display: grid;
  gap: 11px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.di {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.dchip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--s-tint);
  color: var(--s-acc);
  display: grid;
  place-items: center;
}
.dchip svg {
  width: 16px;
  height: 16px;
}
.dmain p {
  margin: 0 0 5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dmain b {
  flex: 1;
  font-size: 11px;
  font-weight: 400;
  color: var(--s-muted);
}
.dmain span {
  font-size: 10px;
  color: var(--s-ink-2);
}
.dchev {
  font-style: normal;
  font-size: 13px;
  line-height: 1;
  color: var(--s-ink-2);
  opacity: 0.7;
}
html[dir="rtl"] .dchev {
  display: inline-block;
  transform: scaleX(-1);
}

/* the reader: the basmala on its own centred line, as the app draws it */
.basmala {
  margin: 0;
  font-family: var(--font-ar-display);
  font-size: 17px;
  line-height: 2;
  text-align: center;
  color: var(--s-ink);
}

/* Workout section */
.s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 400;
  color: #fff;
  background: var(--s-acc);
}
.s-btn svg {
  width: 13px;
  height: 13px;
}
.s-session {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
}
.s-live {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-fill);
}
html[lang="ar"] .s-live {
  letter-spacing: 0;
  font-size: 10px;
}
.s-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-fill);
}
.s-session-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.s-session-row b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-ink);
  line-height: 1.3;
}
.s-session-row small {
  display: block;
  font-size: 9px;
  color: var(--s-ink-2);
}
.s-session-row .clock {
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--s-acc);
  font-variant-numeric: tabular-nums;
}
.s-twostat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}
.s-twostat > div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-inline: 8px;
}
.s-twostat > div + div {
  border-inline-start: 1px solid var(--s-tint-2);
}
.s-twostat p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--s-ink);
}
.bub {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--s-tint);
  color: var(--s-acc);
  display: grid;
  place-items: center;
}
.bub svg {
  width: 10px;
  height: 10px;
}
.s-twostat b {
  font-size: 15px;
  font-weight: 600;
  color: var(--s-acc);
}
.s-wchart {
  display: grid;
  gap: 6px;
}
.s-wchart .t {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--s-acc);
}
.s-wchart .s-card {
  padding: 10px 10px 8px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.s-wchart .bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}
.s-wchart .bars span {
  flex: 1;
  min-width: 0;
  height: var(--h);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 7px 7px 0 0;
  background: var(--s-fill);
  color: #fff;
  line-height: 1.05;
}
.s-wchart .bars span.off {
  background: var(--s-tint-2);
  color: var(--s-ink-2);
}
.s-wchart .bars b {
  font-size: 8px;
  font-weight: 600;
}
.s-wchart .bars small {
  font-size: 6.5px;
}
.s-wchart .dys {
  display: flex;
  margin-top: 5px;
}
.s-wchart .dys i {
  flex: 1;
  text-align: center;
  font-style: normal;
  font-size: 9px;
  color: var(--s-ink);
}
.s-hist {
  display: grid;
  gap: 6px;
}
.s-hist .h {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: 2px;
}
.s-hist .h b {
  font-size: 11px;
  font-weight: 600;
  color: var(--s-acc);
}
.s-hist .h small {
  font-size: 9px;
  color: var(--s-acc);
}
.s-hist .rows {
  display: grid;
  padding: 2px 12px;
  background: rgba(255, 255, 255, 0.82);
}
.s-hist .row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
}
.s-hist .row + .row {
  border-top: 1px solid var(--s-line);
}
.s-hist .thumb {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--s-tint);
  color: var(--s-acc);
  display: grid;
  place-items: center;
}
.s-hist .thumb svg {
  width: 15px;
  height: 15px;
}
.s-hist .row b {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--s-ink);
  line-height: 1.3;
}
.s-hist .row small {
  display: block;
  font-size: 8.5px;
  color: var(--s-ink-2);
}
.s-hist .row > span {
  font-size: 9px;
  color: var(--s-ink);
}

/* the workout chapter: the faith-aware sessions, as the app lists them */
.wk-rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--almond-14);
}
.wk-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--almond-14);
}
.wk-rows .ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(194, 244, 182, 0.1);
  color: var(--mint);
  display: grid;
  place-items: center;
}
.wk-rows .ic svg {
  width: 22px;
  height: 22px;
}
.wk-rows b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: var(--almond);
  line-height: 1.35;
}
.wk-rows small {
  display: block;
  font-size: 13px;
  color: var(--almond-60);
}
.wk-rows em {
  font-style: normal;
  font-size: 13px;
  color: var(--mint-2);
  font-variant-numeric: tabular-nums;
}

/* one score, two halves */
.balance {
  background: var(--g-700);
  padding-block: clamp(24px, 4vw, 56px) clamp(72px, 10vw, 140px);
}
.bal-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 34em;
  margin-inline: auto;
  text-align: center;
}
.bal-head .display {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
}
html[lang="ar"] .bal-head .display {
  line-height: 1.35;
}
.bal-head .lede {
  margin: 0;
  max-width: 30em;
}
.bal-bar {
  display: flex;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
}
.bal-bar .grp {
  flex: var(--w) 1 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.bal-bar .gl {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint-2);
}
html[lang="ar"] .bal-bar .gl {
  letter-spacing: 0;
  font-size: 14px;
}
.bal-bar .gl b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--almond-60);
}
.bal-bar .segs {
  display: flex;
  gap: 4px;
  height: clamp(84px, 11vw, 132px);
}
.bal-bar .seg {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: 14px;
  background: var(--c);
  color: var(--g-900);
}
.bal-bar .seg b {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}
.bal-legend {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--almond-80);
}
.bal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}
.bal-legend b {
  font-weight: 500;
  color: var(--almond);
  font-variant-numeric: tabular-nums;
}
.bal-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--almond-14);
}
.bal-cols h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color: var(--almond);
}
html[lang="ar"] .bal-cols h3 {
  font-family: var(--font-ar-display);
  font-weight: 700;
}
.bal-cols p {
  margin: 0;
  max-width: 26em;
  color: var(--almond-80);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bal-bar .seg {
      transform-origin: left center;
      animation: seg-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    html[dir="rtl"] .bal-bar .seg {
      transform-origin: right center;
    }
  }
}
@keyframes seg-grow {
  from {
    transform: scaleX(0.25);
    opacity: 0.35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .bal-bar {
    gap: 8px;
  }
  .bal-bar .gl {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .bal-bar .gl b {
    font-size: 17px;
  }
  .bal-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .wk-rows li {
    gap: 12px;
  }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  /* minmax(0, 1fr), never a bare 1fr: a lone `1fr` track is `minmax(auto, 1fr)`
     and grows to its widest child's min-content, which is how the Arabic
     waitlist made the page 501px wide on a 400px screen */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stage {
    order: 2;
    margin-top: 24px;
  }
  .hero-calligraphy {
    font-size: 300px;
    top: auto;
    bottom: -60px;
  }
  .scroll-cue {
    display: none;
  }
  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:nth-child(3) {
    border-inline-start: 0;
  }
  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--almond-14);
  }

  /* the phone pins above the text, not over it: the stage is opaque and as
     tall as the scaled phone, and the chapters scroll beneath its edge */
  .journey-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .journey-stage {
    position: sticky;
    top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    z-index: 3;
    background: var(--g-700);
    box-shadow: 0 24px 24px -12px var(--g-700);
  }
  .sticky {
    position: static;
    height: calc(660px * 0.58 + 10px);
    overflow: hidden;
    padding: 8px 0 0;
    gap: 0;
  }
  .rail {
    display: none;
  }
  .sticky .phone-tilt,
  html[dir="rtl"] .sticky .phone-tilt {
    transform: scale(0.58);
    transform-origin: top center;
  }
  .sticky .phone-shadow {
    display: none;
  }
  .chapters {
    padding-block: 20px 40px;
    gap: 88px;
  }
  .wl-grid,
  .pr-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    display: none;
  }
}
@media (max-width: 640px) {
  .top-row {
    min-height: 64px;
    gap: 12px;
  }
  :root {
    --top-h: 64px;
  }
  .wordmark {
    width: 92px;
  }
  .top-actions {
    margin-inline-start: auto;
    gap: 8px;
  }
  .btn-sm {
    padding-inline: 14px;
    font-size: 12.5px;
  }
  .hero {
    min-height: 0;
    padding-top: calc(64px + env(safe-area-inset-top, 0px) + 40px);
  }
  .hero-h1 {
    font-size: clamp(48px, 15vw, 72px);
  }
  .sticky {
    height: calc(660px * 0.5 + 10px);
  }
  .sticky .phone-tilt,
  html[dir="rtl"] .sticky .phone-tilt {
    transform: scale(0.5);
  }
  .foot .copy {
    margin-inline-start: 0;
  }
}

@media (max-width: 1000px) and (max-height: 660px) {
  .sticky {
    height: calc(660px * 0.42 + 10px);
  }
  .sticky .phone-tilt,
  html[dir="rtl"] .sticky .phone-tilt {
    transform: scale(0.42);
  }
}
