/* Noor website.
   Look: Noor gold as the one accent, warm white on a deep near-black (dark) or a cool silver white (light).
   Surfaces are "double bezels": a thin outer shell holding an inner core, like glass in an aluminium tray.
   Radii: shells 32px, cores 26px, product screens 20px, buttons and inputs full pills.
   The product itself (notch, panel, the Imam's desktop) is dark in both themes, as it is on a Mac. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #070708;
  --bg-2: #0c0c0f;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, 0.64);
  --ink-3: rgba(244, 241, 234, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --shell: rgba(255, 255, 255, 0.035);
  --shell-line: rgba(255, 255, 255, 0.07);
  --core: #0e0e11;
  --core-hi: inset 0 1px 1px rgba(255, 255, 255, 0.07);
  --accent: #f3c76b;                 /* Noor gold, for text and marks */
  --gold: #f3c76b;                   /* gold fills (buttons), same in both themes */
  --gold-ink: #1b1407;
  --glow: rgba(243, 199, 107, 0.4);
  --shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85);
  --error: #f08f8f;
  --grain: 0.05;
  --sky:
    radial-gradient(80% 60% at 78% 105%, rgba(233, 144, 106, 0.55), transparent 60%),
    radial-gradient(60% 50% at 12% 100%, rgba(208, 100, 90, 0.35), transparent 60%),
    linear-gradient(180deg, #151a3f 0%, #2f3570 48%, #6d5a8c 82%, #a8717a 100%);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-ar: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-expand: cubic-bezier(0.2, 1.15, 0.35, 1);   /* replaced at runtime by noorSpring(0.42, 0.8) */
  --spring-expand-ms: 620ms;
  --section: 104px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eeeeec; --bg-2: #e6e6e3;
    --ink: #121214; --ink-2: rgba(18, 18, 20, 0.66); --ink-3: rgba(18, 18, 20, 0.46);
    --line: rgba(18, 18, 20, 0.09);
    --shell: rgba(18, 18, 20, 0.035); --shell-line: rgba(18, 18, 20, 0.06);
    --core: #fafaf8; --core-hi: inset 0 1px 1px rgba(255, 255, 255, 0.9);
    --accent: #8a620e; --glow: rgba(214, 160, 50, 0.35);
    --shadow: 0 40px 90px -45px rgba(70, 60, 40, 0.45);
    --error: #b42318; --grain: 0.035;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eeeeec; --bg-2: #e6e6e3;
  --ink: #121214; --ink-2: rgba(18, 18, 20, 0.66); --ink-3: rgba(18, 18, 20, 0.46);
  --line: rgba(18, 18, 20, 0.09);
  --shell: rgba(18, 18, 20, 0.035); --shell-line: rgba(18, 18, 20, 0.06);
  --core: #fafaf8; --core-hi: inset 0 1px 1px rgba(255, 255, 255, 0.9);
  --accent: #8a620e; --glow: rgba(214, 160, 50, 0.35);
  --shadow: 0 40px 90px -45px rgba(70, 60, 40, 0.45);
  --error: #b42318; --grain: 0.035;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Film grain, fixed so it never repaints while scrolling. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; color: var(--accent); }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 600; text-decoration: none; transition: top 0.3s var(--ease); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { padding: var(--section) 0; }
.section-title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.dim { color: var(--ink-3); }
.lede { margin-top: 20px; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--shell);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- double bezel ---------- */
.bezel { padding: 7px; border-radius: 32px; background: var(--shell); border: 1px solid var(--shell-line); }
.bezel > .core { position: relative; height: 100%; border-radius: 26px; background: var(--core); box-shadow: var(--core-hi); overflow: hidden; }
.bezel-dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.bezel-dark > .core { background: #050506; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08); }
/* A soft light that follows the pointer inside a core. */
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%);
  mix-blend-mode: soft-light;
}
.spot:hover::before { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 26px;
  border-radius: 999px; border: 0; font: 600 16px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 18px 40px -16px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:hover { box-shadow: 0 22px 50px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-orb {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(27, 20, 7, 0.1); transition: transform 0.5s var(--ease);
}
.btn-orb .icon { width: 18px; height: 18px; }
.btn:hover .btn-orb { transform: translate(3px, -1px) scale(1.06); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.link-arrow { position: relative; font-weight: 500; text-decoration: none; color: var(--ink); padding: 6px 2px; }
.link-arrow::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0.35); opacity: 0.5; transition: transform 0.6s var(--ease), opacity 0.3s; }
.link-arrow:hover::after { transform-origin: left; transform: scaleX(1); opacity: 1; }

/* ---------- the island nav (shaped like the notch) ---------- */
.island-nav {
  position: fixed; top: 14px; left: 50%; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 7px 0 18px; border-radius: 999px;
  background: rgba(6, 6, 8, 0.82); color: #f4f1ea;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.island-nav.lit { box-shadow: 0 0 0 1px rgba(243, 199, 107, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 34px -6px rgba(243, 199, 107, 0.45); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-right: 10px; }
.brand img { border-radius: 7px; }
.island-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.island-nav ul a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-size: 14px; color: rgba(244, 241, 234, 0.7); transition: color 0.3s, background-color 0.3s; }
.island-nav ul a:hover, .island-nav ul a.on { color: #f4f1ea; background: rgba(255, 255, 255, 0.08); }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: rgba(244, 241, 234, 0.8); cursor: pointer; transition: background-color 0.3s; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[data-mode="dark"] .i-moon { display: none; }
.theme-toggle[data-mode="dark"] .i-sun { display: block; }
.island-nav a { white-space: nowrap; }
.nav-cta { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--gold); color: #1b1407; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform 0.4s var(--ease); }
.nav-cta:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 148px 0 0; overflow: clip; }
.hero-glow {
  position: absolute; inset: -10% 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(520px 340px at var(--hx, 50%) var(--hy, 30%), var(--glow), transparent 70%),
    radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  opacity: 0.7; transition: opacity 0.6s;
}
.hero-copy { position: relative; text-align: center; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); letter-spacing: -0.045em; line-height: 0.98; }
.hero-sub { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 40ch; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; }

.device-wrap { position: relative; margin: 72px auto 0; max-width: 1180px; padding: 0 28px; perspective: 1800px; }
.device {
  padding: 10px; border-radius: 34px;
  background: linear-gradient(180deg, #3a3a40, #1a1a1e 30%, #101013);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 60px 140px -50px rgba(0, 0, 0, 0.9), 0 0 120px -40px var(--glow);
  transform-origin: 50% 0;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The screen leans back and settles flat as it scrolls up into view. */
    .device { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes settle { from { transform: rotateX(22deg) scale(0.9); } to { transform: none; } }
  }
}

/* ---------- stages (screens where the notch and the Imam live) ---------- */
.stage { --k: calc(100cqw / 1100); container-type: inline-size; position: relative; overflow: hidden; color: #f4f1ea; }
.screen { aspect-ratio: 1100 / 620; border-radius: 24px; background: var(--sky); }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: calc(30 * var(--k));
  background: rgba(16, 18, 44, 0.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 calc(18 * var(--k));
  font-size: max(9px, calc(12.5 * var(--k))); font-weight: 500; color: rgba(255, 255, 255, 0.86);
}
.island {
  --cw: 374; --ch: 32;    /* collapsed: notch 190 + two 92 pt wings */
  position: absolute; top: 0; left: 50%; width: calc(640 * var(--k)); height: calc(300 * var(--k));
  transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; z-index: 3;
  clip-path: inset(0 calc((640 - var(--cw)) / 2 * var(--k)) calc((300 - var(--ch)) * var(--k)) round 0 0 calc(10 * var(--k)) calc(10 * var(--k)));
  transition: clip-path 300ms cubic-bezier(0.3, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}
.island:focus-visible { outline: none; }
.island::before { content: ""; position: absolute; inset: 0; background: #000; }
.island.open { clip-path: inset(0 0 0 0 round 0 0 calc(26 * var(--k)) calc(26 * var(--k))); transition: clip-path var(--spring-expand-ms) var(--spring-expand); }
.island .panel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: blur(6px); transform: translateY(calc(-6 * var(--k))); transition: opacity 120ms, filter 120ms, transform 120ms; }
.island.open .panel { opacity: 1; filter: none; transform: none; transition: opacity 220ms var(--ease-out) 80ms, filter 220ms var(--ease-out) 80ms, transform 220ms var(--ease-out) 80ms; }
.wings {
  position: absolute; top: 0; left: calc(133 * var(--k)); width: calc(374 * var(--k)); height: calc(32 * var(--k));
  display: flex; justify-content: space-between; align-items: center; padding: 0 calc(14 * var(--k));
  font-size: max(8px, calc(12 * var(--k))); font-weight: 600; font-variant-numeric: tabular-nums; color: #f4f1ea; transition: opacity 150ms;
}
.wings b, .wings .soon { color: #f3c76b; font-weight: 600; }
.island.open .wings { opacity: 0; }
.notch-glow {
  position: absolute; top: 0; left: 50%; width: calc(374 * var(--k)); height: calc(32 * var(--k)); transform: translateX(-50%);
  border-radius: 0 0 calc(10 * var(--k)) calc(10 * var(--k)); z-index: 2; pointer-events: none;
  box-shadow: 0 0 calc(26 * var(--k)) calc(5 * var(--k)) rgba(243, 199, 107, 0.6);
  animation: wing-glow 2.4s ease-in-out infinite alternate; transition: opacity 0.2s;
}
.screen.is-open .notch-glow, .screen.is-open .screen-hint { opacity: 0; animation: none; }
@keyframes wing-glow { from { opacity: 0.25; } to { opacity: 0.65; } }
/* The logo moment (site.js noorIntro): ن on the screen, rising into the notch before the island shows. */
.intro-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.stage-hero .island:not(.open) { transition: clip-path 300ms cubic-bezier(0.3, 0, 0.2, 1), opacity 250ms; }
.stage-hero.intro .island { opacity: 0; pointer-events: none; }
.stage-hero.intro .notch-glow, .stage-hero.intro .screen-hint { opacity: 0; animation: none; }
.screen-hint { position: absolute; left: 0; right: 0; top: calc(56 * var(--k)); text-align: center; font-size: max(11px, calc(14 * var(--k))); color: rgba(255, 255, 255, 0.7); transition: opacity 0.4s; pointer-events: none; }

.figure {
  --size: 380; position: absolute; bottom: calc(14 * var(--k)); left: 0; z-index: 2;
  width: calc(var(--size) * var(--k)); height: calc(var(--size) * var(--k));
  transform: translateX(calc(1200 * var(--k))); will-change: transform, opacity; cursor: default;
}
.figure canvas { width: 100%; height: 100%; }
.stage-hero .figure { --size: 330; cursor: pointer; }
.bubble {
  position: absolute; bottom: calc(300 * var(--k)); right: calc(235 * var(--k)); z-index: 4;
  width: max-content; max-width: min(calc(340 * var(--k)), 86%);
  padding: calc(16 * var(--k)) calc(18 * var(--k)); border-radius: calc(20 * var(--k));
  background: rgba(10, 10, 12, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); color: #f4f1ea;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  font-size: max(13px, calc(16 * var(--k))); line-height: 1.45;
  transform-origin: 100% 100%; opacity: 0; transform: scale(0.9) translateY(10px); pointer-events: none;
  transition: opacity 160ms, transform 160ms;
}
.stage-hero .bubble { bottom: calc(270 * var(--k)); right: calc(205 * var(--k)); }
.bubble.in { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.35s var(--ease-out), transform 0.6s cubic-bezier(0.25, 1.35, 0.4, 1); }
.bubble-text p + p { margin-top: 4px; }
.answers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.answers:empty { display: none; }
.answers button {
  height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06); color: #f4f1ea; font: 500 13.5px var(--font); cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.answers button:hover { background: rgba(255, 255, 255, 0.14); }
.answers button:active { transform: scale(0.97); }
.answers button.primary { background: #f3c76b; color: #1b1407; border-color: transparent; }

/* ---------- marquee ---------- */
.marquee { margin-top: 88px; overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: baseline; gap: 16px; padding: 0 40px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink-2); white-space: nowrap; }
.marquee li::after { content: ""; width: 7px; height: 7px; margin-left: 40px; border-radius: 50%; background: var(--accent); align-self: center; box-shadow: 0 0 12px var(--glow); }
.marquee li span { font-family: var(--font-ar); font-size: 1.15em; color: var(--accent); font-weight: 400; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.story-sticky { position: sticky; top: 112px; align-self: start; }
.story-frame > .core { aspect-ratio: 1280 / 600; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); filter: blur(8px); transition: opacity 0.8s var(--ease), transform 1s var(--ease), filter 0.8s var(--ease); }
.story-img.is-on { opacity: 1; transform: none; filter: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.story-step:first-child { min-height: 30vh; justify-content: flex-start; padding-top: 24px; }
.story-step.is-on { opacity: 1; }
.story-step .icon { width: 34px; height: 34px; color: var(--accent); }
.story-step h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.story-step p { font-size: 1.1rem; color: var(--ink-2); max-width: 36ch; }
.step-img { display: none; }

/* ---------- bento ---------- */
.more { padding-top: 40px; }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento .core { padding: 34px; display: flex; flex-direction: column; gap: 12px; }
.bento h3 { font-size: 1.55rem; letter-spacing: -0.03em; }
.bento p { color: var(--ink-2); max-width: 40ch; }
.bento .icon.big { width: 40px; height: 40px; color: var(--accent); margin-bottom: 8px; }
.cell-tasbih { grid-column: span 4; grid-row: span 2; }
.cell-tasbih .core { align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(90% 60% at 50% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--core); }
.cell-azaan { grid-column: span 8; }
.cell-azaan .core { background: var(--sky); color: #f4f1ea; justify-content: flex-end; min-height: 300px; }
.cell-azaan p { color: rgba(244, 241, 234, 0.78); }
.cell-work { grid-column: span 4; }
.cell-private { grid-column: span 4; }
.cell-third { grid-column: span 4; }
.cell-private .core { background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 18px 18px; background-color: var(--core); }
.methods { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.methods li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); background: var(--bg); }
.azaan-wave { display: flex; align-items: center; gap: 5px; height: 72px; margin-bottom: auto; }
.azaan-wave i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(#ffe9b8, #f3c76b); transform-origin: 50% 50%; animation: wave 1.6s var(--ease) infinite alternate; animation-delay: calc(var(--n, 0) * -0.11s); opacity: 0.9; }
.azaan-wave i:nth-child(1) { --n: 1; } .azaan-wave i:nth-child(2) { --n: 5; } .azaan-wave i:nth-child(3) { --n: 2; } .azaan-wave i:nth-child(4) { --n: 8; }
.azaan-wave i:nth-child(5) { --n: 3; } .azaan-wave i:nth-child(6) { --n: 11; } .azaan-wave i:nth-child(7) { --n: 6; } .azaan-wave i:nth-child(8) { --n: 13; }
.azaan-wave i:nth-child(9) { --n: 4; } .azaan-wave i:nth-child(10) { --n: 9; } .azaan-wave i:nth-child(11) { --n: 7; } .azaan-wave i:nth-child(12) { --n: 12; }
.azaan-wave i:nth-child(13) { --n: 10; } .azaan-wave i:nth-child(14) { --n: 2; } .azaan-wave i:nth-child(15) { --n: 14; } .azaan-wave i:nth-child(16) { --n: 6; }
@keyframes wave { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }

.tasbih { position: relative; width: 210px; height: 210px; margin: 18px auto 10px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 50%; transition: transform 0.4s var(--ease); }
.tasbih:active { transform: scale(0.97); }
.tasbih svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tasbih .track { stroke: var(--line); }
.tasbih .fill { stroke: var(--accent); transition: stroke-dashoffset 0.45s var(--ease-out); filter: drop-shadow(0 0 6px var(--glow)); }
.tasbih .count { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.tasbih .num { font-size: 58px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.tasbih .of { font-size: 13px; color: var(--ink-3); }
.tasbih.bump .num { animation: bead 180ms var(--ease-out); }
.tasbih.done svg { filter: drop-shadow(0 0 16px var(--glow)); }
@keyframes bead { 50% { transform: scale(1.16); } }
.dhikr-ar { font-family: var(--font-ar); font-size: 30px; line-height: 1.5; }
.dhikr-en { font-size: 14px; color: var(--ink-3); }
.hint { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-3) !important; }

/* ---------- the Imam ---------- */
.imam { padding-top: 64px; }
.imam-head { max-width: 760px; }
.stage-tabs { margin-top: 36px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--shell); border: 1px solid var(--shell-line); }
.stage-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); font: 500 15px var(--font); cursor: pointer; transition: background-color 0.4s var(--ease), color 0.3s; }
.stage-tabs button[aria-selected="true"] { background: var(--core); color: var(--ink); box-shadow: var(--core-hi), 0 4px 14px -6px rgba(0, 0, 0, 0.3); }
.stage-shell { margin-top: 18px; padding: 8px; border-radius: 36px; box-shadow: var(--shadow); }
.stage-main { aspect-ratio: 1100 / 560; border-radius: 28px; background: var(--sky); }
.stage-main::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.18)); pointer-events: none; }
.mini-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  width: calc(374 * var(--k)); height: calc(30 * var(--k)); background: #000; border-radius: 0 0 calc(10 * var(--k)) calc(10 * var(--k));
  display: flex; justify-content: space-between; align-items: center; padding: 0 calc(13 * var(--k));
  font-size: max(8px, calc(11.5 * var(--k))); font-weight: 600; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 calc(22 * var(--k)) calc(4 * var(--k)) rgba(243, 199, 107, 0.45);
}
.mini-notch b, .mini-notch .soon { color: #f3c76b; font-weight: 600; }
.replay {
  position: absolute; right: calc(22 * var(--k)); bottom: calc(20 * var(--k)); z-index: 5; opacity: 0; pointer-events: none;
  height: 40px; padding: 0 16px; display: inline-flex; gap: 8px; align-items: center; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 10, 12, 0.72); color: #f4f1ea; font: 500 14px var(--font); cursor: pointer;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.replay.show { opacity: 1; pointer-events: auto; }
.replay:active { transform: scale(0.97); }
.replay .icon { width: 16px; height: 16px; }
.stage-loading { position: absolute; right: calc(120 * var(--k)); bottom: calc(30 * var(--k)); width: calc(130 * var(--k)); height: calc(320 * var(--k)); border-radius: calc(65 * var(--k)) calc(65 * var(--k)) calc(14 * var(--k)) calc(14 * var(--k)); background: linear-gradient(100deg, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.stage-loading[hidden] { display: none; }
.voice-toggle {
  position: absolute; left: calc(22 * var(--k)); bottom: calc(20 * var(--k)); z-index: 5;
  height: 40px; padding: 0 16px; display: inline-flex; gap: 8px; align-items: center; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 10, 12, 0.72); color: #f4f1ea; font: 500 14px var(--font); cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s;
}
.voice-toggle:active, .azaan-play:active { transform: scale(0.97); }
.voice-toggle .icon, .azaan-play .icon { width: 16px; height: 16px; }
.voice-toggle .i-on, .azaan-play .i-on, .voice-toggle[aria-pressed="true"] .i-off, .azaan-play[aria-pressed="true"] .i-off { display: none; }
.voice-toggle[aria-pressed="true"] .i-on, .azaan-play[aria-pressed="true"] .i-on { display: block; }
.voice-toggle[aria-pressed="true"] { border-color: rgba(243, 199, 107, 0.7); color: #f3c76b; }
.stage-hero .voice-toggle { transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.stage-hero.intro .voice-toggle { opacity: 0; pointer-events: none; }
.azaan-play {
  align-self: flex-start; height: 40px; margin-top: 6px; padding: 0 16px; display: inline-flex; gap: 8px; align-items: center; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(10, 10, 12, 0.35); color: #f4f1ea; font: 500 14px var(--font); cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.moments { margin-top: 18px; padding: 0; }
@keyframes shimmer { to { background-position: -150% 0; } }
.stage-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ---------- manifesto ---------- */
.manifesto { padding-top: 80px; }
.manifesto-text { font-size: clamp(1.9rem, 4.4vw, 3.9rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; max-width: 22ch; }
.manifesto-text .w { opacity: 0.16; transition: opacity 0.3s; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Words light up one line at a time as they cross the middle of the screen. */
    .manifesto-text .w { animation: lit linear both; animation-timeline: view(); animation-range: cover 30% cover 48%; }
    @keyframes lit { to { opacity: 1; } }
  }
}
.no-timeline .manifesto-text .w, .manifesto-text.lit .w { opacity: 1; }
.calm-row { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.calm-row li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--shell); border: 1px solid var(--shell-line); color: var(--ink-2); font-size: 15px; }
.calm-row .icon { width: 24px; height: 24px; color: var(--accent); }

/* ---------- pricing ---------- */
.plans { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.plan .core { padding: 40px; display: flex; flex-direction: column; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; }
.plan h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; min-height: 66px; }
.price strong { font-size: 3.6rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--ink-2); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; flex: 1; align-content: start; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.ticks .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.plan-note { margin-top: 28px; font-size: 14px; color: var(--ink-3); }
/* Plus: a slow ring of gold light around the shell. */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-plus { position: relative; border-color: transparent; background:
  linear-gradient(var(--bg), var(--bg)) padding-box,
  conic-gradient(from var(--angle), transparent 0 60%, rgba(243, 199, 107, 0.9) 75%, transparent 90%) border-box;
  animation: orbit 6s linear infinite; }
.plan-plus .core { background: radial-gradient(100% 70% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%), var(--core); }
@keyframes orbit { to { --angle: 360deg; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.faq-side { position: sticky; top: 112px; align-self: start; }
.faq-side .lede a { color: var(--accent); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.5s var(--ease), color 0.3s; margin-top: 2px; }
.faq details[open] summary .icon { transform: rotate(135deg); color: var(--accent); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* ---------- closing ---------- */
.closing { padding-bottom: 72px; }
.closing-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; padding: 96px 64px; background: #050506; color: #f4f1ea; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.orb { position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; transform: translate(-50%, -38%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 233, 184, 0.95) 0%, rgba(243, 199, 107, 0.55) 18%, rgba(243, 199, 107, 0.12) 42%, transparent 66%);
  animation: breathe 6s var(--ease) infinite alternate; }
@keyframes breathe { to { transform: translate(-50%, -42%) scale(1.06); opacity: 0.85; } }
.closing-card h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.closing-card h2 em { color: #f3c76b; }
.closing-card > p { margin: 20px auto 0; color: rgba(244, 241, 234, 0.7); max-width: 44ch; font-size: 1.1rem; }
.closing-cta { margin-top: 36px; }
.closing-card > p.closing-req { margin-top: 16px; font-size: 14px; color: rgba(244, 241, 234, 0.55); }

.footer { padding: 28px 0 48px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer .brand { color: var(--ink); font-size: 15px; }
.footer nav { margin-left: auto; display: flex; gap: 22px; }
.footer a { text-decoration: none; color: var(--ink-2); transition: color 0.3s; }
.footer a:hover { color: var(--ink); }

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); filter: blur(10px); } }

/* ---------- legal pages ---------- */
.legal { padding: 140px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.legal h2 { font-size: 1.4rem; margin-top: 44px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal code { overflow-wrap: anywhere; font-size: 0.92em; }
.legal .updated { margin-top: 14px; color: var(--ink-3); font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .island-nav nav { display: none; }
  .story-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .story-sticky { display: none; }
  .story-step, .story-step:first-child { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .step-img { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: 20px; box-shadow: var(--shadow); }
  .faq-side { position: static; }
  .cell-tasbih, .cell-azaan { grid-column: span 12; grid-row: auto; }
  .cell-work, .cell-private { grid-column: span 6; }
  .cell-third { grid-column: span 12; }
  .calm-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --section: 72px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .island-nav { top: 10px; width: calc(100% - 20px); justify-content: space-between; padding-left: 14px; }
  .island-nav .theme-toggle { margin-left: auto; }
  .hero { padding-top: 112px; }
  .hero-ctas { flex-direction: column; gap: 18px; }
  .device-wrap { margin-top: 52px; padding: 0 12px; }
  .device { padding: 6px; border-radius: 24px; }
  .screen { --k: calc(100cqw / 660); aspect-ratio: 660 / 600; border-radius: 18px; }
  .stage-hero .figure { --size: 300; }
  .stage-hero .bubble { right: calc(178 * var(--k)); bottom: calc(250 * var(--k)); }
  .marquee { margin-top: 56px; padding: 18px 0; }
  .marquee li { padding: 0 24px; }
  .marquee li::after { margin-left: 24px; }
  .bento .core { padding: 26px; }
  .cell-work, .cell-private { grid-column: span 12; }
  .stage-tabs { display: flex; flex-wrap: wrap; border-radius: 26px; }
  .stage-tabs button { flex: 1 1 40%; padding: 0 10px; }
  .cell-azaan .core { min-height: 260px; }
  .stage-main { --k: calc(100cqw / 640); aspect-ratio: 3 / 4; }
  .stage-main .figure { --size: 420; }
  .stage-main .bubble { bottom: auto; top: calc(70 * var(--k)); right: auto; left: calc(24 * var(--k)); max-width: calc(100% - 48 * var(--k)); font-size: 14px; }
  .calm-row { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan .core { padding: 28px; }
  .closing-card { padding: 64px 22px; border-radius: 28px; }
  .field { flex-direction: column; border-radius: 28px; }
  .field .btn { justify-content: space-between; }
  .faq details p { padding-right: 0; }
  .footer nav { margin-left: 0; }
}
@media (max-width: 400px) {
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; filter: none; transition: opacity 0.15s; }
  .js .rise { animation: none; }
  .island, .island.open, .stage-hero .island:not(.open) { transition: clip-path 150ms linear; }
  .notch-glow { animation: none; opacity: 0.45; }
  .marquee-track, .azaan-wave i, .orb, .plan-plus, .stage-loading { animation: none; }
  .story-img { transform: none; filter: none; }
  .manifesto-text .w { opacity: 1; }
}

/* ---------- the 7-day trial ---------- */
/* Hero chip: the offer, in gold, linked to the trial band. */
.pill-offer {
  text-decoration: none; text-transform: none; letter-spacing: -0.005em; font-size: 14px; font-weight: 500;
  padding: 7px 10px 7px 12px; gap: 8px; color: var(--ink);
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(110deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--line) 45%, color-mix(in srgb, var(--accent) 55%, transparent)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 30px -10px var(--glow);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.pill-offer .icon { width: 16px; height: 16px; color: var(--accent); }
.pill-offer .icon:last-child { color: var(--ink-3); transition: transform 0.5s var(--ease), color 0.3s; }
.pill-offer:hover { box-shadow: 0 0 40px -8px var(--glow); }
.pill-offer:hover .icon:last-child { transform: translate(2px, -1px); color: var(--accent); }

.pricing .lede { margin-bottom: 0; }
.trial { margin-top: 48px; }
.trial > .core {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 44px;
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--core);
}
.trial-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }
.trial-tag .icon { width: 16px; height: 16px; }
.trial h3 { margin-top: 14px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.04em; }
.trial-copy p { margin-top: 14px; color: var(--ink-2); max-width: 42ch; }
/* Seven days as a bar: two labelled ends, five quiet days between, then what comes after. */
.trial-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.7fr repeat(5, 0.45fr) 1.5fr 2.1fr; gap: 6px; align-items: end; }
.trial-days li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.trial-days li::before { content: ""; order: 2; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #f3c76b, #ffe0a0); box-shadow: 0 0 18px -4px var(--glow); }
.trial-days li span { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.trial-days li.mid::before { opacity: 0.75; }
.trial-days li.after::before { background: var(--line); box-shadow: none; }
.trial-days li.after span { color: var(--ink-2); }
.js .trial.in .trial-days li::before { animation: fill-in 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + 300ms); transform-origin: 0 50%; }
.trial-days li:nth-child(2) { --d: 1; } .trial-days li:nth-child(3) { --d: 2; } .trial-days li:nth-child(4) { --d: 3; }
.trial-days li:nth-child(5) { --d: 4; } .trial-days li:nth-child(6) { --d: 5; } .trial-days li:nth-child(7) { --d: 6; } .trial-days li:nth-child(8) { --d: 7; }
@keyframes fill-in { from { transform: scaleX(0); } }

.price-trial { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.price-trial .icon { width: 15px; height: 15px; }
.plan-cta { margin-top: 24px; align-self: flex-start; }

@media (max-width: 1000px) {
  .trial > .core { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .trial > .core { padding: 28px; }
  .trial-days { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .trial-days li { flex-direction: row; align-items: center; gap: 12px; }
  .trial-days li::before { order: 0; width: 34px; flex: none; height: 8px; }
  .trial-days li.mid { display: none; }
  .pill-offer { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .trial.in .trial-days li::before { animation: none; }
}
