/* Everyday Muslim — cinematic landing experience */

body.em {
  --bg: #071412;
  --bg-2: #0c221f;
  --cream: #f6f1e6;
  --mist: #d5e2db;
  --gold: #e7c56a;
  --gold-2: #f6e2a8;
  --ink: #1a1408;
  --panel: rgba(12, 36, 33, 0.72);
  --line: rgba(231, 197, 106, 0.22);
  --good: #8fd6ae;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.em.light {
  --bg: #f4efe4;
  --bg-2: #fffaf2;
  --cream: #14211e;
  --mist: #3d524c;
  --gold: #6b4e0e;
  --gold-2: #5c430c;
  --ink: #1a1408;
  --panel: rgba(255, 250, 242, 0.92);
  --line: rgba(90, 68, 20, 0.22);
  --shadow: 0 24px 60px rgba(60, 40, 10, 0.12);
}

body.em h1,
body.em h2,
body.em h3,
body.em .section-title h2 {
  font-family: "Fraunces", serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--cream);
}

body.em .section-title {
  margin-bottom: 2.5rem;
}
body.em .section-title h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  text-transform: none;
  text-align: center;
}
body.em .section-title h2 span {
  color: var(--gold);
  font-style: italic;
  font-weight: 560;
}

body.em a {
  color: var(--gold-2);
}
body.em a:hover {
  color: var(--cream);
  text-decoration: none;
}
body.em :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Ambient sky */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at calc(80% - var(--dusk, 0) * 30%) -10%, rgba(231, 197, 106, 0.2), transparent 60%),
    radial-gradient(700px 480px at 0% 30%, rgba(36, 110, 98, 0.45), transparent 55%),
    linear-gradient(180deg, #071412 0%, #0e2a26 42%, #071412 100%);
}
body.em.light .sky {
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(231, 197, 106, 0.35), transparent 60%),
    linear-gradient(180deg, #f7f1e6 0%, #efe4d0 100%);
}
body.em > *:not(.sky):not(.scroll-progress):not(.navbar):not(.preloader):not(.video-popup):not(.floating-controls):not(.sticky-cta):not(dialog) {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 4000;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
  pointer-events: none;
}

/* A quiet desktop bar and an editorial, full-screen mobile menu. */
body.em .site-header, body.em .site-header.navbar-shrink {
  z-index: 1400; padding: 0; height: 80px; background: rgba(7,20,18,.92);
  border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(18px); box-shadow: none;
}
body.em.light .site-header, body.em.light .site-header.navbar-shrink { background: rgba(244,239,228,.94); border-color: rgba(16,38,34,.08); }
body.em .header-inner { display: flex; flex-wrap: nowrap; gap: 32px; height: 100%; }
body.em .navbar-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; margin: 0; padding: 0; color: var(--cream); }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font: 400 17px/1.2 "Outfit",sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.brand-name strong { font-weight: 600; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-inline-start: auto; }
body.em .desktop-nav a { padding: 14px 0; color: var(--mist); font-size: 14px; font-weight: 400; text-transform: none; }
body.em .desktop-nav a:hover { color: var(--cream); }
.header-controls { display: flex; align-items: center; margin-inline-start: 12px; }
body.em .language-trigger, body.em .menu-toggle, body.em .text-close {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--cream); font: 400 14px/1.4 "Outfit",sans-serif; cursor: pointer;
}
body.em .header-language { color: var(--mist); }
.language-trigger svg { flex-shrink: 0; opacity: .6; }
body.em .menu-toggle { display: none; min-width: 44px; }
body.em .text-close { min-width: 44px; color: var(--mist); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
body.em .text-close:hover { color: var(--cream); text-decoration-color: currentColor; }
body.em.menu-open, body.em.language-open { overflow: hidden; }
body.em dialog.navigation-sheet {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; background: #0c1e1b; color: var(--cream); overflow: hidden;
}
body.em.light dialog.navigation-sheet { background: #f4efe4; }
.navigation-sheet::backdrop { background: rgba(7,20,18,.7); }
.menu-shell { display: flex; flex-direction: column; width: 100%; max-width: 760px; height: 100%; margin-inline: auto; padding-inline: 32px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 80px; gap: 24px; border-bottom: 1px solid var(--line); }
.sheet-brand { margin: 0; color: var(--mist); font-size: 16px; letter-spacing: -.02em; }
.sheet-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 32px max(32px,env(safe-area-inset-bottom)); scrollbar-width: thin; }
.site-nav { list-style: none; margin: 0; padding: 0; }
body.em .site-nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 12px 0; color: var(--cream); font-size: clamp(28px,4vw,40px); font-weight: 400; line-height: 1.25; letter-spacing: -.035em; text-transform: none; overflow-wrap: anywhere; }
.site-nav a::after { content: "→"; flex-shrink: 0; font-size: 24px; color: var(--mist); opacity: .5; }
html[dir="rtl"] .site-nav a::after { content: "←"; }
body.em .site-nav a:hover { color: var(--gold); }
.menu-secondary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
body.em .menu-secondary a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); font-size: 14px; text-transform: none; }
.menu-preferences { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.preference-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; color: var(--mist); font-size: 13px; }
.appearance-control { display: inline-flex; padding: 3px; gap: 2px; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
body.em .appearance-control button { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--mist); font: 400 13px/1.3 "Outfit",sans-serif; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
body.em .appearance-control button[aria-pressed="true"] { color: var(--cream); background: rgba(255,255,255,.1); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
body.em.light .appearance-control button[aria-pressed="true"] { background: #fffaf2; }
.footer-preferences { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.footer-preferences .language-trigger { gap: 16px; }
.footer-preferences .language-trigger > span:first-child { color: var(--mist); font-size: 13px; }
body.em dialog.language-dialog {
  position: fixed; inset: 0; width: min(560px,calc(100% - 32px)); max-width: none; max-height: min(760px,calc(100dvh - 48px));
  padding: 24px; border: 1px solid var(--line); border-radius: 20px; margin: auto; background: #102622;
  color: var(--cream); overflow: hidden;
}
body.em dialog.language-dialog[open] { display: flex; flex-direction: column; }
body.em.light dialog.language-dialog { background: #fffaf2; }
.language-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.language-dialog-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 20px; margin-bottom: 16px; }
body.em .language-dialog-header h2 { margin: 0; font: 500 22px/1.3 "Outfit",sans-serif; letter-spacing: -.03em; }
body.em .language-search { width: 100%; min-height: 48px; flex-shrink: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--cream); font: 400 15px/1.4 "Outfit",sans-serif; margin-bottom: 16px; }
.language-search::placeholder { color: var(--mist); opacity: .8; }
.language-options { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2px 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.em .language-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; border-radius: 8px; color: var(--cream); font-size: 15px; line-height: 1.4; text-align: start; overflow-wrap: anywhere; }
body.em .language-option:hover { background: var(--panel); }
body.em .language-option.is-current { color: var(--gold); background: rgba(231,197,106,.07); }
.language-option.is-current::after { content: "✓"; font-size: 14px; }
.language-option[hidden] { display: none !important; }
.language-empty { margin: 8px 0 0; color: var(--mist); }
@media (max-width: 1199px) {
  body.em .site-header, body.em .site-header.navbar-shrink { height: 72px; }
  body.em .header-inner { gap: 16px; }
  .desktop-nav, body.em .header-language { display: none; }
  .header-controls { margin-inline-start: auto; }
  body.em .menu-toggle { display: inline-flex; }
}
@media (max-width: 575px) {
  body.em .header-inner { padding-inline: 20px; gap: 8px; }
  .brand-icon { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  body.em .site-header, body.em .site-header.navbar-shrink, .sheet-header { height: 68px; }
  .menu-shell { padding-inline: 24px; }
  .sheet-content { padding-top: 24px; }
  body.em .site-nav a { min-height: 62px; font-size: 29px; }
  .menu-preferences { margin-top: 24px; }
  .appearance-row { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 12px; }
  .appearance-row .appearance-control { width: 100%; }
  body.em dialog.language-dialog { padding: 20px; max-height: calc(100dvh - 32px); }
  .language-options { grid-template-columns: minmax(0,1fr); }
  body.em .language-dialog-header h2 { font-size: 20px; }
}

/* Hero: an editorial introduction with direct, equal-sized store actions. */
.hero { padding: 140px 0 24px; min-height: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 64px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero-promise { margin: 0 0 22px; color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
body.em .hero h1 { font-size: clamp(3.5rem,7vw,6.25rem); line-height: 0.98; margin: 0 0 26px; letter-spacing: -0.05em; }
.hero h1 em { display: block; font-style: italic; font-weight: 560; color: var(--gold); }
.hero-description { font-family: "Outfit", sans-serif; font-size: clamp(1.05rem,1.6vw,1.25rem); line-height: 1.65; font-weight: 400; color: var(--mist); max-width: 29rem; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body.em .store-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 14px 22px; border: 1px solid #e7c56a; border-radius: 14px; background: #e7c56a; color: #1a1408; font-size: 16px; font-weight: 600; line-height: 1.3; }
.store-link i { font-size: 23px; }
body.em .store-link-secondary { color: var(--cream); background: transparent; border-color: var(--line); }
body.em .store-link:hover { background: #f6e2a8; color: #1a1408; }
body.em .store-link-secondary:hover { background: var(--panel); color: var(--gold); border-color: var(--gold); }
body.em .hero-video { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: auto; height: auto; min-height: 44px; padding: 10px 0; margin-top: 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--mist); font: 400 14px/1.5 "Outfit", sans-serif; cursor: pointer; }
.hero-video i { font-size: 10px; color: var(--gold); }
body.em .hero-video:hover { color: var(--gold); }
.hero-stage { position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; inset: 5% 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 52%, rgba(231,197,106,0.22), transparent 68%), radial-gradient(ellipse at 50% 35%, rgba(125,179,150,0.14), transparent 65%); }
.device {
  width: min(320px, 100%);
  padding: 12px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, #4a524e 0%, #1c2220 12%, #0e1211 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
}
.device-hero {
  width: min(300px, 100%);
  animation: floaty 7s ease-in-out infinite;
}
.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #2c3330;
  z-index: 2;
}
.device::before {
  left: -2px;
  top: 22%;
  height: 54px;
}
.device::after {
  right: -2px;
  top: 18%;
  height: 78px;
}
.device-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 471 / 1024;
  background: #071412;
}
.device-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
}
.device-screen img:first-child { opacity: 1; }
.device-screen.is-live img { opacity: 0; }
.device-screen.is-live img.is-on { opacity: 1; transition: opacity 0.7s ease; }
.chapter-visual .device-screen img:only-child {
  opacity: 1;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
.orbit {
  position: absolute;
  inset: -4% 0;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.orbit circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.35;
  stroke-dasharray: 6 10;
  transform-origin: 50% 50%;
  animation: orbit-spin 32s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.chapter-visual .device {
  position: relative;
  z-index: 1;
  animation: floaty 8s ease-in-out infinite;
}
.chapter:nth-child(even) .device { animation-delay: -3s; }

/* The phone sits between the far and near sides of the orbital light field. */
.celestial {
  position: relative;
  width: calc(100% + 48px);
  margin-inline: -24px;
  isolation: isolate;
  scroll-margin-top: 104px;
}
.celestial::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  left: 50%;
  top: 52%;
  width: 86%;
  height: 30%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
}
.celestial.is-rendered::after { display: none; }
.celestial .device-hero {
  z-index: 1;
}
.celestial-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.celestial-canvas-back { z-index: 0; }
.celestial-canvas-front { z-index: 2; }
.celestial-toggle {
  position: absolute;
  z-index: 3;
  inset-inline-end: 4px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--gold-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.3s ease, opacity 0.3s ease;
}
.celestial-toggle[hidden] { display: none; }
.celestial-toggle:hover,
.celestial-toggle:focus-visible {
  opacity: 1;
  background: rgba(231, 197, 106, 0.08);
}
.celestial-toggle span {
  width: 9px;
  height: 10px;
  border-inline: 2px solid currentColor;
}
.celestial-toggle[aria-pressed="true"] span {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}
.moments {
  padding: 8px 0 28px;
}
.moments-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: minmax(220px, 30vh) minmax(200px, 26vh);
  gap: 16px;
}
.moment {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.moment-family { grid-row: 1 / span 2; }
.moment-ramadan { grid-column: 2 / span 2; }
.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}
.moment-family img { object-position: center 42%; }
.moment-qibla img { object-position: center 28%; }
.moment-quran img { object-position: center 40%; }
.moment-ramadan img { object-position: center 32%; }

/* Chapters */
.chapter-wrap {
  padding: 40px 0 20px;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}
.chapter:nth-child(even) .chapter-copy {
  order: 2;
}
.chapter-index {
  display: block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.chapter h3 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0 0 12px;
  line-height: 1.05;
}
.chapter p {
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0;
}
.chapter-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.chapter-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 46%;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(231, 197, 106, 0.16), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

/* Proof */
.proof {
  position: relative;
  margin: 40px 0;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}
.proof-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-scrim {
  position: relative;
  width: 100%;
  padding: 48px 8% 40px;
  background: linear-gradient(180deg, rgba(7, 20, 18, 0.05), rgba(7, 20, 18, 0.88) 55%);
}
.proof .section-title h2,
.proof p,
.proof .stat h3,
.proof .stat span {
  color: #f6f1e6;
}
.proof p {
  max-width: 40rem;
  color: rgba(246, 241, 230, 0.86);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.stat h3 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0;
  color: var(--gold-2);
}
.stat span {
  display: block;
  color: var(--mist);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-size: 0.95rem;
}

/* Screenshot rail */
.rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.rail-hint {
  color: var(--mist);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.shot-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
}
.shot-rail::-webkit-scrollbar { display: none; }
.shot-rail.is-grabbing { cursor: grabbing; }
.shot {
  flex: 0 0 auto;
  width: min(210px, 68vw);
  scroll-snap-align: center;
  margin: 0;
}
.shot .device {
  width: 100%;
  transition: transform 0.45s ease;
}
.shot:hover .device {
  transform: translateY(-8px);
}

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: center;
}
.download-life {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.store-grid {
  display: grid;
  gap: 16px;
}
.store-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.store-card i {
  font-size: 28px;
  color: var(--gold);
  width: 36px;
  text-align: center;
}
.store-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  text-transform: capitalize;
}
.store-card p {
  margin: 0;
  color: var(--mist);
  font-size: 0.92rem;
}
body.em .btn-2 {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
body.em .btn-2:hover {
  background: var(--gold);
  color: var(--ink);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.why-card {
  padding: 28px 22px 32px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 280px;
  transition: transform 0.45s ease, border-color 0.45s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(231, 197, 106, 0.55);
}
.why-card .step {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--gold);
  font-style: italic;
}
.why-card h3 {
  font-size: 1.7rem;
  margin: 8px 0 10px;
}
.why-card p {
  color: var(--mist);
  margin: 0;
  font-size: 0.98rem;
}

/* Life band */
.life-band {
  margin: 10px 0 20px;
  border-radius: 32px;
  overflow: hidden;
  height: 280px;
}
.life-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quote {
  margin: 0;
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote p {
  color: var(--cream);
  font-size: 1rem;
  margin: 0;
}
.quote footer h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.quote footer span,
.quote .stars {
  color: var(--gold);
  font-size: 0.9rem;
}
body.em:not(.light) .quote:nth-child(1),
body.em:not(.light) .quote:nth-child(4) {
  background: rgba(16, 40, 36, 0.92);
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.support-card {
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.support-card h3 {
  font-size: 1.8rem;
  margin: 0 0 6px;
}
.support-card h5 {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.support-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.support-card li {
  padding: 7px 0;
  color: var(--mist);
  border-bottom: 1px solid rgba(231, 197, 106, 0.08);
}
.support-card i {
  color: var(--gold);
  margin-inline-end: 8px;
}

/* Privacy, FAQ, about */
body.em .faq,
body.em .team,
body.em .sponsors,
body.em .faq {
  padding-top: 80px;
  padding-bottom: 40px;
  background: transparent;
}
body.em .faq .section-title + p,
body.em .team p {
  color: var(--mist);
  text-align: center;
  max-width: 860px;
  margin: -20px auto 30px;
}
body.em .team p {
  text-align: start;
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}
body.em .faq .accordion-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 12px;
}
body.em .faq .accordion-header {
  background: transparent;
  box-shadow: none;
  padding: 18px 54px 18px 22px;
}
body.em .faq .accordion-header h3,
body.em .faq .accordion-header h6 {
  color: var(--cream);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0;
  font-weight: 500;
}
body.em .faq .accordion-header h6 {
  color: var(--mist);
  margin: 4px 0 0;
  font-size: 0.85rem;
}
body.em .faq .accordion-header:not(.collapsed) {
  background: rgba(231, 197, 106, 0.08);
}
body.em .faq .accordion-header:not(.collapsed) h3 {
  color: var(--gold-2);
}
body.em .faq .accordion-header::before {
  color: var(--gold);
}
body.em .faq .accordion-header:not(.collapsed)::before {
  color: var(--gold);
}
body.em .faq .accordion-body {
  background: transparent;
}
body.em .faq .accordion-body p,
body.em .faq .accordion-body li {
  color: var(--mist);
  font-weight: 400;
}
body.em .faq .accordion-body strong {
  color: var(--cream);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.team-card {
  text-align: center;
  padding: 18px 10px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.team-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(231, 197, 106, 0.4);
}
.team-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.team-card span {
  color: var(--gold);
  font-size: 0.85rem;
}
.about-kicker {
  text-align: center;
  margin: 10px 0 22px;
}

/* Sponsors */
body.em .sponsor-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--cream);
  height: 100%;
}
body.em .sponsor-card.featured {
  border-color: rgba(231, 197, 106, 0.55);
}
body.em .sponsor-name,
body.em .sponsors-subtitle,
body.em .sponsors-cta h3,
body.em .sponsors-cta p,
body.em .sponsors-empty p,
body.em .sponsors-loading p {
  color: var(--cream);
}
body.em .sponsors-cta a {
  color: var(--gold);
}
body.em .owl-dots .owl-dot span {
  background: rgba(231, 197, 106, 0.35);
}
body.em .owl-dots .owl-dot.active span {
  background: var(--gold);
}

/* Footer */
body.em .footer {
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 64px 0 110px;
  margin-top: 40px;
}
body.em .footer-col h3,
body.em .footer h7,
body.em .footer h8 {
  color: var(--cream);
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
body.em .footer-col p,
body.em .footer-col ul li a,
body.em .footer .copyright-text {
  color: var(--mist);
}
body.em .footer-col ul li a:hover {
  color: var(--gold);
}
body.em .footer h8 {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: var(--gold-2);
}

/* Floating controls */
body.em .floating-controls .i18n-language-toggle,
body.em .toggle-theme {
  background: rgba(7, 20, 18, 0.92);
  color: #f6e2a8;
  border: 1px solid rgba(246, 226, 168, 0.45);
  backdrop-filter: blur(10px);
}
body.em.light .floating-controls .i18n-language-toggle,
body.em.light .toggle-theme,
body.em.light .navbar-toggler {
  background: #fffaf2;
  color: #6b4e0e;
  border-color: rgba(90, 68, 20, 0.35);
}
body.em.light .sticky-cta {
  background: rgba(255, 250, 242, 0.96);
}
body.em.light .sticky-cta a.ghost {
  color: #6b4e0e;
  border-color: rgba(90, 68, 20, 0.4);
}
body.em .floating-controls .i18n-language-menu {
  background: #102421;
  color: var(--cream);
  border: 1px solid var(--line);
}
body.em.light .floating-controls .i18n-language-menu {
  background: #fffaf2;
  color: #14211e;
}
body.em .floating-controls .i18n-language-option {
  color: inherit;
}
body.em .floating-controls .i18n-language-option:hover,
body.em .floating-controls .i18n-language-option.is-current {
  background: rgba(231, 197, 106, 0.12);
}

/* Video */
body.em .video-popup {
  background: rgba(7, 20, 18, 0.82);
}
body.em .video-popup .video-popup-close {
  color: var(--gold);
}

/* Sticky download */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  z-index: 1100;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(7, 20, 18, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform 0.45s ease;
}
.sticky-cta.is-on {
  transform: translateX(-50%) translateY(0);
}
body.em .sticky-cta a {
  color: #1a1408;
  background: linear-gradient(180deg, #f6e2a8, #d7b15a);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
body.em .sticky-cta a:hover {
  color: #1a1408;
}
body.em .sticky-cta a.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}
.chapter:nth-child(2) { animation-delay: 0.05s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
.reveal.is-paused {
  opacity: 1;
  transform: none;
  animation: none;
}

@supports (animation-timeline: view()) {
  .chapter,
  .why-card,
  .quote,
  .support-card,
  .store-card,
  .team-card {
    animation: rise 0.9s ease both;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .why-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid, .support-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 991px) {
  body.em .navbar { z-index: 1400; }
}
@media (max-width: 860px) {
  .hero-grid,
  .chapter,
  .download-grid {
    grid-template-columns: 1fr;
  }
  .chapter:nth-child(even) .chapter-copy { order: 0; }

  .hero-stage { min-height: 0; }

  .chapter-visual { min-height: 0; padding: 12px 0 28px; }
  .moments-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 260px 190px 210px;
  }
  .moment-family,
  .moment-ramadan { grid-column: 1 / -1; grid-row: auto; }
  .quote-grid, .support-grid, .why-grid, .team-grid { grid-template-columns: 1fr; }
  .store-card { grid-template-columns: auto 1fr; }
  .store-card .btn { grid-column: 1 / -1; justify-self: start; }
  .life-band { height: 46vh; border-radius: 22px; }
  .proof { border-radius: 22px; }
  .sticky-cta { width: calc(100% - 24px); justify-content: center; }
}

[dir="rtl"] body.em .faq .accordion-header { padding: 18px 22px 18px 54px; }
[dir="rtl"] body.em .faq .accordion-header::before { right: auto; left: 10px; }

/* Shared safeguards for narrow screens, translated copy, and keyboard navigation. */
html { scroll-behavior: smooth; }
body.em { overflow-x: clip; }
section[id], header[id] { scroll-margin-top: 96px; }
img { max-width: 100%; }
.hero-grid > *, .chapter > *, .download-grid > *, .store-card > *,
.stat-grid > *, .why-grid > *, .support-grid > *, .team-grid > *, .quote-grid > * { min-width: 0; }
.stat span, .chapter-copy, .why-card, .support-card, .quote, .store-card, .team-card, .footer-col, .sponsors-cta { overflow-wrap: anywhere; }
body.em .btn-2 { white-space: normal; }
body.em .app-download-item { margin-bottom: 0; }
body.em .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta { bottom: max(12px, env(safe-area-inset-bottom, 0px)); visibility: hidden; pointer-events: none; }
.sticky-cta.is-on { visibility: visible; pointer-events: auto; }
body.em .sticky-cta a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; text-transform: none; letter-spacing: 0; }
body.em.menu-open .sticky-cta { visibility: hidden; pointer-events: none; }
body.video-open { overflow: hidden; }
body.em .video-popup-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #102622; color: #f6f1e6; display: grid; place-items: center; padding: 0; font-size: 18px; cursor: pointer; }
@media (max-width: 860px) {
  .hero { padding-top: 116px; }
  .hero-grid { gap: 36px; }
  .hero-copy { max-width: 560px; margin-inline: auto; text-align: center; }
  body.em .hero h1 { font-size: clamp(3.2rem, 9vw, 4.5rem); margin-bottom: 20px; }
  .hero-description { margin-inline: auto; max-width: 27rem; }
  .hero-promise { margin-bottom: 18px; }
  .hero-actions { justify-content: center; }
  .hero-stage { padding-top: 8px; }
  .hero .device-hero { width: 244px; animation: none; }
  .hero .celestial { width: calc(100% + 32px); margin-inline: -16px; }
  .download-life { display: none; }
  .store-card { grid-template-columns: 36px minmax(0,1fr); }
  .proof-scrim { padding-inline: 24px; }
  .sticky-cta { max-width: 380px; }
}
@media (max-width: 575px) {
  body.em .container { padding-inline: 20px; }
  .hero { padding-top: 104px; padding-bottom: 8px; }
  .hero-grid { gap: 26px; }
  .hero-promise { font-size: 12px; letter-spacing: 0.025em; }
  body.em .hero h1 { font-size: clamp(3rem, 12vw, 3.8rem); line-height: 1.02; }
  .hero-description { font-size: 16px; line-height: 1.6; margin-bottom: 24px; max-width: 340px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body.em .store-link { padding: 13px 10px; min-height: 52px; gap: 8px; font-size: 14px; border-radius: 12px; }
  .store-link i { font-size: 20px; }
  .hero .device-hero { width: 224px; padding: 8px; border-radius: 32px; }
  .hero .device-screen { border-radius: 25px; }
  .stat-grid { gap: 18px 12px; }
  .stat span { letter-spacing: 0; font-size: 13px; }
  .stat h3 { font-size: 2rem; }
  .proof-scrim { padding: 36px 20px 30px; }
  body.em .section-title h2 { font-size: clamp(2rem, 9vw, 2.8rem); overflow-wrap: anywhere; }
  .sticky-cta { gap: 8px; padding: 6px; border-radius: 18px; }
  body.em .sticky-cta a { flex: 1; padding: 10px 8px; border-radius: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Native dialog provides keyboard containment and a reliable Escape action. */
body.em dialog.video-popup { display: none; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px; transition: none; }
body.em dialog.video-popup[open] { display: flex; opacity: 1; visibility: visible; }
body.em dialog.video-popup::backdrop { background: transparent; }
body.em .video-popup-inner { width: min(900px, 100%, calc((100dvh - 136px) * 1.77778)); max-width: 100%; }
body.em .video-popup .video-popup-close { top: -56px; inset-inline-end: 0; }
body.em .video-popup .iframe-box { border-radius: 16px; overflow: hidden; }
