/* =========================================================================
   Prayer Pause v3 - Desert Day, One Scroll
   The sky engine (site.js) drives the seven palette stops through :root vars.
   No em dashes anywhere. Content stays readable with zero JS.
   ========================================================================= */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

/* ---- palette defaults (predawn stop; used if JS never runs) ---- */
:root {
  --bg: #221520;
  --ink: #EBD9C4;
  --muted: rgba(235,217,196,0.62);
  --accent: #CBA978;
  --accentInk: #211710;
  --card: rgba(245,239,228,0.05);
  --bd: rgba(203,169,120,0.16);
  --dune1: #181017;
  --dune2: #22161F;
  --dune3: #2C1F27;
  --disc: #B96A4A;
  --glow: rgba(201,122,90,0.35);
  --horizon: rgba(201,120,110,0.40);
  --star: 0.7;

  --disc-x: 14vw;
  --disc-y: 64vh;
  --dfar: 0px;
  --dmid: 0px;
  --dnear: 0px;

  --gold: #C9A96E;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- base ---- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* while the engine runs, no CSS transition may fight a per-frame var write */
html.gsap body,
html.gsap .sky,
html.gsap .horizon,
html.gsap .stars,
html.gsap .disc,
html.gsap .dune,
html.gsap .nav,
html.gsap .nav__links a,
html.gsap .foot__links a,
html.gsap .cta { transition: none !important; }

::selection { background: var(--gold); color: #211710; }

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

.skip {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #211710;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* =========================================================================
   FIXED SKY
   ========================================================================= */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.horizon {
  position: absolute;
  left: -10%; right: -10%;
  top: 42vh; height: 46vh;
  background: radial-gradient(120% 90% at 50% 100%, var(--horizon), transparent 62%);
  opacity: 0.9;
}

/* stars: opacity of the whole layer driven by --star */
.stars {
  position: absolute;
  inset: 0;
  opacity: var(--star);
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.5;
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--td, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.9; }
}

/* sun / moon disc: one full circle, its color tells the time of day */
/* rig owns the var-driven position; the inner disc is free for GSAP tweens */
.disc-rig {
  position: absolute;
  left: 0; top: 0;
  transform: translate(var(--disc-x), var(--disc-y)) translate(-50%, -50%);
  opacity: var(--disc-o, 1);
  will-change: transform, opacity;
}
.disc {
  position: relative;
  width: clamp(96px, 13vw, 172px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--disc);
  box-shadow: 0 0 64px 16px var(--glow), 0 0 26px 3px var(--glow);
  overflow: hidden;
  /* hidden at first paint so the pre-JS frame never flashes the sun in
     place before the sunrise intro. The delayed reveal below is the
     unconditional fallback: it fires long after the GSAP sunrise has
     already landed on normal loads, and rescues every failure path
     (scripts blocked or failed, no JS, reduced motion). */
  opacity: 0;
  animation: disc-reveal 0.8s ease 2.6s forwards;
}
@keyframes disc-reveal { to { opacity: 1; } }

/* three parallax dunes: alpha masks tinted by the day cycle */
.dunes {
  position: absolute;
  inset: 0;
}
.dune {
  position: absolute;
  left: -2%; right: -2%;
  bottom: 0;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: bottom center;
  mask-position: bottom center;
  /* stretch, never crop: cover was decapitating the crests on wide screens */
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  will-change: transform;
}
.dune--far {
  height: 30vh;
  background-color: var(--dune1);
  -webkit-mask-image: url(images/art/dune-far.webp);
  mask-image: url(images/art/dune-far.webp);
  transform: translate3d(0, var(--dfar), 0);
}
.dune--mid {
  height: 24vh;
  background-color: var(--dune2);
  -webkit-mask-image: url(images/art/dune-mid.webp);
  mask-image: url(images/art/dune-mid.webp);
  transform: translate3d(0, var(--dmid), 0);
}
.dune--near {
  height: 18vh;
  background-color: var(--dune3);
  -webkit-mask-image: url(images/art/dune-near.webp);
  mask-image: url(images/art/dune-near.webp);
  transform: translate3d(0, var(--dnear), 0);
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--bd);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 540;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.nav__brand img { border-radius: 8px; }
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a { color: var(--muted); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }

/* primary CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accentInk);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  /* no transform transition: the magnetic quickTo owns transform every frame,
     and a CSS transition on it would double-ease into a laggy rubber-band */
  transition: box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}
.nav .cta {  }
.cta:hover { filter: brightness(1.06); box-shadow: 0 8px 26px -8px var(--glow); }
/* press feedback via filter, not transform, so it never clobbers the magnet translate */
.cta:active { filter: brightness(0.94); }

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
main { position: relative; z-index: 1; }

.band { position: relative; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 96px clamp(20px, 5vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

/* =========================================================================
   HERO HOOK
   ========================================================================= */
.hero-hook { gap: 26px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-head {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-lede {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--muted);
  max-width: 34ch;
}
/* the brand tagline as the hero subheader: clean sans, no italic.
   Each sentence is an unbreakable span, so narrow screens split at the
   period instead of mid-phrase. */
.hero-tag {
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--muted);
}
.hero-tag span { display: inline-block; }
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* the cue is a still track with one light travelling down it, like the sun
   about to start its arc. The old version stretched a line from both ends,
   which read as a glitch rather than an invitation. */
.scroll-cue {
  position: absolute;
  bottom: 34px;
  padding-bottom: 44px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* the track: always there, barely there */
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(var(--bd), transparent);
}
/* the light: falls once, rests, falls again */
.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 34px;
  width: 1px; height: 13px;
  transform: translate(-50%, 0);
  background: linear-gradient(transparent, var(--accent));
  animation: cueFall 2.8s var(--ease) infinite;
}
@keyframes cueFall {
  0%        { opacity: 0; transform: translate(-50%, -4px); }
  18%       { opacity: 0.95; }
  62%       { opacity: 0.95; }
  82%, 100% { opacity: 0; transform: translate(-50%, 34px); }
}

/* =========================================================================
   STAT + 24 DOTS
   ========================================================================= */
.dots-panel { gap: 34px; }
.stat {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat__num {
  /* the counter rewrites this on scrub: fixed-width digits, never rewraps */
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__src {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.dots {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(9px, 1.6vw, 15px);
  max-width: 460px;
  width: 100%;
}
.dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  /* the panel lives on the sunrise ground; every state earns its contrast */
  background: rgba(51,24,14,0.22);
  border: 1px solid rgba(51,24,14,0.26);
}
.dot--feed { background: rgba(51,24,14,0.55); border-color: transparent; }
.dot--prayer { background: rgba(51,24,14,0.22); }
.dots-cap {
  position: relative;
  width: 100%;
  max-width: 460px;
  text-align: center;
  /* Captions are absolutely positioned in JS mode (see html.gsap .cap below),
     so this box must reserve the full wrapped height. A 2-line caption grows
     to ~4 lines at the ~300px mobile dots width; reserve enough that the
     absolutely-positioned cap never overflows the panel below it. */
  min-height: 4.5em;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 600;
}
/* In the no-JS fallback the captions flow normally and both read stacked.
   Only when JS drives the crossfade (engine or reduced) do they overlap. */
.cap { display: block; }
html.gsap .cap,
html.reduced .cap {
  position: absolute;
  left: 0; right: 0;
  top: 0;
}
html.gsap .cap2 { opacity: 0; }

/* ---- the root-cause ring (pre-Isha): 24 hours bent into a circle ---- */
.loopring {
  width: clamp(230px, 38vh, 340px);
  aspect-ratio: 1 / 1;
}
.loopring svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* later captions start hidden in JS mode; cap1 is the no-JS text */
html.gsap .lcap2, html.gsap .lcap3,
html.reduced .lcap2, html.reduced .lcap3 { opacity: 0; }


/* =========================================================================
   SABR INTRO
   ========================================================================= */

/* =========================================================================
   FEATURE CHAPTERS
   ========================================================================= */
.feature {
  flex-direction: row;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  text-align: left;
  max-width: var(--maxw);
}
.feature--flip { flex-direction: row-reverse; }
.feature__text { flex: 1 1 44%; max-width: 30rem; }
.feature__media { flex: 1 1 40%; display: flex; justify-content: center; }

.chapter-arc { margin-bottom: 0; margin-left: -2px; }
.arc {
  width: 104px; height: 33px;
  overflow: visible;
}
.arc { color: var(--accent); }
.arc-horizon { stroke: currentColor; stroke-width: 1; opacity: 0.18; }
.arc-full { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.22; }
.arc-progress { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.arc-tick { fill: currentColor; opacity: 0.3; }
.arc-halo { fill: currentColor; opacity: 0.18; }
.arc-marker { fill: currentColor; }
.arc-moonbite { fill: var(--bg); }

.tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.tag .prayer {
  font-family: var(--serif);
  font-weight: 540;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
}
.tag .time {
  padding: 3px 10px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.feat-head {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 16ch;
}
.feat-lede {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 22px;
}
.checks { display: grid; gap: 12px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--ink);
}
.checks li b { font-weight: 700; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.16em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* phone mockup */
.phone {
  position: relative;
  height: fit-content;      /* hug the screenshot; never stretch to the column */
  align-self: center;
  width: clamp(220px, 30vw, 320px);
  border-radius: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--bd);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
}
.phone img { display: block; width: 100%; height: auto; }
.phone--tall { width: clamp(210px, 28vw, 300px); }

/* =========================================================================
   METHODS SHOWCASE (Asr, the namesake interception feature)
   Default markup = a static labeled grid of all five screens, fully readable
   with zero JS. When the engine is live, site.js adds .is-enhanced which flips
   the grid into one phone with a crossfading stack plus a tablist rail.
   ========================================================================= */
.methods-panel { gap: clamp(30px, 5vw, 52px); }

.methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 30px);
  width: 100%;
}


/* stage centers whatever it holds: the grid (fallback) or the phone (enhanced) */
.methods__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
/* the method's name sits under the device like a museum label: clean text,
   no pill, never covering the screenshot. Enhanced-only; the no-JS grid
   keeps its per-screen caps instead. */
.methods__label { display: none; }
.methods.is-enhanced .methods__label {
  display: block;
  min-height: 1.2em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

/* ---- fallback: the frame collapses so the screens form a labeled grid ---- */
.methods__frame { display: contents; }
.methods__screens {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2.2vw, 22px);
  width: 100%;
  max-width: 780px;
}
.mscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mscreen img {
  width: 100%;
  height: auto;
  padding: 5px;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(0,0,0,0.26));
  border: 1px solid var(--bd);
  box-shadow: 0 22px 46px -26px rgba(0,0,0,0.6);
}
.mscreen__cap {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- enhanced: one crossfading phone, method named on the device ---- */
.methods.is-enhanced .methods__frame {
  display: block;
  position: relative;
  width: clamp(230px, 30vw, 300px);
  aspect-ratio: 750 / 1629;
  border-radius: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--bd);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
}
.methods.is-enhanced .methods__screens {
  display: block;
  position: absolute;
  inset: 0;
  max-width: none;
}
.methods.is-enhanced .mscreen {
  position: absolute;
  inset: 0;
  gap: 0;
  opacity: 0;
}
.methods.is-enhanced .mscreen.is-active { opacity: 1; }
.methods.is-enhanced .mscreen img {
  width: 100%; height: 100%;
  padding: 0; border: 0; box-shadow: none;
  border-radius: 0;
  object-fit: cover;
}
.methods.is-enhanced .mscreen__cap { display: none; }

/* =========================================================================
   MEET SABR STATES STRIP
   ========================================================================= */
/* =========================================================================
   MEET SABR: the living conscience. Base DOM (no JS / reduced motion) renders
   three static labeled figures. JS adds .is-live to swap the stage into one
   large crossfading camel on a glow plinth, driven by the week scrubber.
   ========================================================================= */
.meet-sabr { gap: 16px; }
.meet-sabr__head { text-align: center; max-width: 20ch; margin-bottom: 2px; }
.meet-sabr__body { text-align: center; max-width: 42ch; }

.sabr {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}

/* ---- fallback: three labeled figures (thriving, tired, collapsed) ---- */
.sabr__stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 5vw, 44px);
  width: 100%;
}
.sabr__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: clamp(94px, 22vw, 150px);
}
.sabr__figure[data-state="1"],
.sabr__figure[data-state="3"],
.sabr__figure[data-state="4"] { display: none; }
.sabr__figure img {
  width: 100%;
  height: auto;
}
.sabr__cap {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sabr__voice { display: none; }
.sabr__tie {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 34ch;
}

/* ---- scroll-driven frame sequence: Sabr's week plays as you scroll ---- */
.sabr__canvas { display: none; }
.sabr--seq .sabr__canvas {
  display: block;
  width: clamp(250px, 38vw, 400px);
  height: auto;
  margin: 0 auto;
}
.sabr--seq .sabr__stage { display: block; width: auto; height: auto; }
.sabr--seq .sabr__figure { display: none; }
.sabr--seq .sabr__voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 3.6em;
  text-align: center;
}
.sabr__week { display: none; }
.sabr--seq .sabr__week { display: block; width: min(84vw, 440px); margin: 16px auto 0; }
.sabr__weekbar { height: 2px; border-radius: 2px; background: var(--bd); overflow: hidden; }
.sabr__weekfill { height: 100%; width: 0%; background: var(--accent); }
.sabr--seq .sabr__ends { display: flex; justify-content: space-between; margin-top: 10px; }

.sabr__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.sabr__line {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 32ch;
}

.sabr__ends {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.sabr__ends span:last-child { text-align: right; }

/* =========================================================================
   REVIEWS: weight-forward social proof. A colossal 4.9 + huge pull quote,
   then a slow, pausable transform-only marquee of verbatim reviews.
   ========================================================================= */
.reviews {
  gap: clamp(36px, 6vw, 60px);
  position: relative;
  justify-content: center;
}
/* single ultra-subtle pattern accent */
.band--reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--accent);
  opacity: 0.05;
  -webkit-mask: repeat center / 340px url(images/art/pattern-tile.webp);
  mask: repeat center / 340px url(images/art/pattern-tile.webp);
  pointer-events: none;
}

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

/* ---- hero: score + pull quote ---- */
.reviews__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  width: 100%;
  text-align: left;
}
.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.score__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--accent);
  text-shadow: 0 6px 40px var(--glow);
}
.score__stars {
  display: inline-flex;
  gap: 6px;
}
.rvstar {
  width: clamp(20px, 2.6vw, 30px);
  height: clamp(20px, 2.6vw, 30px);
  fill: var(--gold);
  filter: drop-shadow(0 2px 8px var(--glow));
}
.score__src {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.reviews__hero .pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  max-width: 16ch;
  flex: 1 1 320px;
}

/* ---- marquee ---- */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  outline: none;
}
.marquee:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 20px; }
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 4px;
  width: 100%;
  gap: clamp(14px, 2vw, 24px);
}
.qcard {
  position: relative;
  flex: 0 1 320px;
  max-width: 360px;
  padding: 30px 26px 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--bd);
  text-align: left;
  overflow: hidden;
}
.qcard__stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
}
.rvstar--sm {
  width: 15px;
  height: 15px;
  filter: none;
}
.qcard__text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.58;
  margin: 0;
}
/* duplicated track half only exists in the animated marquee */
.qcard--dup { display: none; }

/* ---- animated marquee: only when the engine is running (html.gsap) ---- */
html.gsap .marquee {
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
html.gsap .marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  gap: 0;
  padding: 0;
  animation: reviews-marquee 46s linear infinite;
  will-change: transform;
}
html.gsap .qcard {
  flex: 0 0 auto;
  width: clamp(280px, 78vw, 360px);
  margin-right: clamp(14px, 2vw, 24px);
}
html.gsap .qcard--dup { display: block; }
html.gsap .marquee:hover .marquee__track,
html.gsap .marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================================
   FINALE
   ========================================================================= */
.finale__sabr {
  width: 150px; height: auto;
  width: clamp(110px, 22vw, 150px);
  height: auto;
  margin-bottom: 4px;
}
.finale__head {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-align: center;
}
.finale__tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.fine {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 8px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--bg) 80%, #000 20%);
  border-top: 1px solid var(--bd);
  padding: 40px clamp(20px, 5vw, 40px) 56px;
  text-align: center;
  display: grid;
  gap: 14px;
}
.foot__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.foot__links a { color: var(--ink); transition: color 0.2s var(--ease); display: inline-block; padding: 8px 4px; }
.foot__links a:hover { color: var(--accent); }
.foot__legal { font-size: 0.85rem; color: var(--muted); }
.foot__legal a { color: var(--muted); }
.foot__legal a:hover { color: var(--ink); }

/* =========================================================================
   REVEAL (SplitText line masks); hidden only when the engine is live
   ========================================================================= */
html.gsap .line-mask { overflow: hidden; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 900px) {
    /* only when the rail is laid out does it supply the margin-left:auto push,
     so the CTA sits right next to it; below 900px .nav .cta keeps margin-left:auto */
}
@media (max-width: 820px) {
  .nav__links { display: none; }
}
/* mid band: features stay side by side like the Dhuhr showcase, just smaller */
@media (min-width: 641px) and (max-width: 900px) {
  .feature { gap: clamp(24px, 4vw, 44px); }
  .feature .feat-head { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
  .feature .feat-lede { font-size: 1.02rem; }
  .phone { width: clamp(180px, 26vw, 260px); }
}
/* only truly narrow screens stack the features */
@media (max-width: 640px) {
  .feature, .feature--flip { flex-direction: column; text-align: center; }
  .feature .chapter-arc { display: flex; justify-content: center; }
  .feature__text { max-width: 34rem; }
  .checks { text-align: left; display: inline-grid; }
  .tag { justify-content: center; }
  .feat-head, .feat-lede { margin-left: auto; margin-right: auto; }
  .fajr-feature .feature__text { text-align: center; }
  .fajr-feature .feat-modes { margin-inline: auto; }
}
@media (max-width: 680px) {
  /* fallback grid: five phones are too tight, wrap to three then two */
  .methods__screens { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
}
@media (max-width: 560px) {
  .panel { padding: 84px 20px; }
  .dots { grid-template-columns: repeat(8, 1fr); max-width: 300px; }
  .methods__screens { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
}

/* =========================================================================
   REDUCED MOTION: static day bands, no engine, fully readable
   ========================================================================= */
html.reduced .disc,
html.reduced .stars,
html.reduced .scroll-cue::after { animation: none; }
html.reduced .sky { background: linear-gradient(#221520 0%, #3C1608 55%, #130F0B 100%); }
html.reduced .disc { display: none; }
html.reduced .cap2 { opacity: 1; }
html.reduced .cap1 { opacity: 0; }
/* the dots-panel sits on the dark predawn band in reduced mode, so the dot
   fills flip to warm light tints (the dark browns tuned for the sunrise
   ground would vanish here) */
html.reduced .dot { background: rgba(235,217,196,0.14); border-color: rgba(235,217,196,0.20); }
html.reduced .dot--feed { background: rgba(235,217,196,0.30); border-color: transparent; }
html.reduced .dot--prayer { background: var(--gold); }

/* per-band static colors so each chapter reads on its own */
html.reduced .band--predawn { background: #221520; color: #EBD9C4; }
/* Dhuhr is the one light band; the engine never runs in reduced mode, so its
   palette vars stay at the dark predawn defaults unless we set them per band.
   Without these, every var(--ink)/var(--muted)/var(--accent) child renders
   pale cream on cream and is unreadable. */
html.reduced .band--dhuhr {
  background: #F6F0E4; color: #3A2A1A;
  --ink: #3A2A1A;
  --muted: rgba(58,42,26,0.78);
  --accent: #8A5D26;
  --accentInk: #FBF3E6;
  --bd: rgba(58,42,26,0.14);
  --card: rgba(60,42,24,0.05);
}
html.reduced .band--asr { background: #5E300A; color: #F6E8D0; }
html.reduced .band--maghrib { background: #3C1608; color: #F2D8BE; }
html.reduced .band--isha { background: #1B1410; color: #E7D2BC; }
html.reduced .band--reviews { background: #130F0B; color: #E3CDB6; }
html.reduced .band--finale { background: #130F0B; color: #E3CDB6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue::before, .star, .marquee__track { animation: none !important; }
  /* no travelling light without motion: show the light resting at the top */
  .scroll-cue::before { opacity: 0.8; }
}

/* =========================================================================
   HERO ENTRANCE: pure CSS, never gated on JS or fonts. Message lands fast.
   ========================================================================= */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-hook .hero-head { animation: hero-up 0.65s ease-out 0.1s both; }
.hero-hook .reveal-line { animation: hero-up 0.6s ease-out 0.32s both; }
.hero-hook .reveal-line + .reveal-line { animation-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  .hero-hook .hero-head, .hero-hook .reveal-line { animation: none; }
}

/* keep the stat legible while the sun passes behind it */


/* narrow viewports: smaller disc + tighter glow so the sun/moon never
   crowds the text column */
@media (max-width: 700px) {
  .disc { width: clamp(64px, 11vw, 104px); box-shadow: 0 0 44px 10px var(--glow), 0 0 20px 2px var(--glow); }
}

/* ---- store badges: phones as an equal pair ---- */
.cta-pair { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---- unified store badge system: identical anatomy across all four ---- */
.sbadge {
  position: relative;
  display: inline-flex; align-items: center; gap: 11px;
  height: 54px; padding: 0 18px 0 15px;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px #8a8a8f;
  color: #fff; text-decoration: none;
  transition: transform 0.18s ease;
}
a.sbadge:hover { transform: translateY(-2px); }
/* unreleased store: same badge, dimmed, with a corner pill instead of a link */
.sbadge--soon { position: relative; opacity: 0.72; cursor: default; }
.sbadge__soon {
  position: absolute;
  top: -9px;
  right: -9px;
  padding: 3px 9px 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accentInk);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sbadge__ico { display: flex; }
.sbadge__ico svg { width: 26px; height: 26px; display: block; }
.sbadge__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1; }
.sbadge__top { font-size: 0.6rem; letter-spacing: 0.045em; opacity: 0.92; }
.sbadge__name { font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; }

/* ---- pin runways: explicit scroll distance, no dynamic spacers.
   Heights only exist when the scroll engine runs; in reduced-motion or
   no-JS mode the runways collapse to their content. ---- */
.runway { position: relative; }
html.gsap .runway--sabr { height: 230vh; }
html.gsap .runway--methods { height: 260vh; margin-bottom: 9vh; }
html.gsap .runway--dots { height: 205vh; }
html.gsap .runway--loop { height: 235vh; }

/* ---- hero: desktop platforms as one quiet line, not more buttons ---- */
.also-line {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---- fajr feature: one thought per line, no checklist ---- */
.feat-modes {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.feat-modes b { color: var(--ink); font-weight: 700; }

.also-line a { color: var(--accent); text-underline-offset: 3px; }

/* ---- phones: shorter pin journeys, pinned panels sized to the real viewport ---- */
@media (max-width: 700px) {
  html.gsap .runway--sabr { height: 170vh; }
  html.gsap .runway--methods { height: 200vh; margin-bottom: 11vh; }
  html.gsap .runway--dots { height: 175vh; }
  html.gsap .runway--loop { height: 190vh; }
  .meet-sabr, .methods-panel {
    min-height: 100svh;
    justify-content: center;
    padding-top: 76px;
    padding-bottom: 40px;
  }
  /* the pinned methods stack must fit one small screen */
  .methods.is-enhanced .methods__frame { width: min(46vw, 190px); }
  .sabr--seq .sabr__canvas { width: min(56vw, 260px); }
  .meet-sabr__head { font-size: 1.55rem; }
}

/* finale breathes: fewer elements, more air between them */
.finale__inner { gap: 26px; }
.finale__tag { margin-top: -6px; }

/* finale: calm close, less vertical sprawl */
.finale__sabr { width: clamp(120px, 16vw, 168px); height: auto; }
.finale__tag { margin-top: 2px; }
.finale .cta-group { margin-top: 14px; }
.finale .fine { opacity: 0.75; margin-top: 10px; }

/* ---- DEMO: nav rating chip + hero phone preview ---- */
.nav__rating {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display); font-weight: 700; font-size: 0.88rem;
  color: var(--muted); text-decoration: none;
  /* ride at the right edge, snug against the CTA */
  margin-left: auto;
  margin-right: 12px;
}
.nav__rating-star { color: var(--accent); font-size: 0.95rem; line-height: 1; }
.nav__rating:hover { color: var(--ink); }

@media (max-width: 640px) { .nav__rating { margin-right: 8px; } }

/* phones: dunes hug the horizon so content stays clear */
@media (max-width: 700px) {
  .dune--far { height: min(22vh, 240px); }
  .dune--mid { height: min(17vh, 190px); }
  .dune--near { height: min(12vh, 140px); }
}

/* ---- tag lockup: the day-position glyph lives inside the row ---- */
.tag { align-items: center; }
.tag__arc { display: inline-flex; color: var(--accent); margin-right: 2px; }
.tag__arc svg { width: 46px; height: 16px; display: block; overflow: visible; }

/* =========================================================================
   METHODS SHOWCASE LAYOUT: one copy column beside the device. The column is
   a plain flex stack so nothing distributes leftover height into gaps.
   ========================================================================= */
.methods__copy { max-width: 42rem; margin-inline: auto; text-align: center; }
.methods__copy .feat-head { margin-inline: auto; }

@media (min-width: 641px) {
  html.gsap .methods {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 6vw, 84px);
  }
  html.gsap .methods__copy {
    flex: 0 1 29rem;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  html.gsap .methods__copy .tag { margin-bottom: 0; }
  html.gsap .methods__copy .feat-head { margin: 0; }
  html.gsap .methods__copy .feat-lede { margin: 0; max-width: 30rem; }
  html.gsap .methods.is-enhanced .methods__frame { width: clamp(230px, 24vw, 290px); }
}
@media (max-width: 640px) {
  html.gsap .methods__copy .feat-head { font-size: 1.45rem; }
  html.gsap .methods__copy .feat-lede { display: none; }
}
