/* sabeelapp.com — holding page, privacy and 404.
   Brand: deep teal ground (the app's splash), off-white ink, teal accent; Urbanist + Amiri Quran,
   both self-hosted so the site makes no third-party requests except the recitation audio. */

@font-face {
  font-family: "Urbanist";
  src: url("/assets/fonts/urbanist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri Quran";
  src: url("/assets/fonts/amiri-quran-arabic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+25CC;
}

:root {
  --teal-deep: #042a2b;
  --teal: #0d8e91;
  --teal-glow: #3fbdb8;
  --ink: #eef1ec;
  --ink-2: rgba(238, 241, 236, 0.66);
  --ink-3: rgba(238, 241, 236, 0.45);
  --line: rgba(238, 241, 236, 0.14);
  --pill: rgba(63, 189, 184, 0.24);
  --sans: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(70% 55% at 75% 100%, rgba(13, 142, 145, 0.22), transparent 70%), var(--teal-deep);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--teal-glow);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* launch switch: <html data-launched="true|false"> */
html[data-launched="false"] .when-live,
html[data-launched="true"] .when-soon {
  display: none !important;
}

/* header */
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  display: block;
  height: auto;
}
.top__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-glow);
  box-shadow: 0 0 0 4px rgba(63, 189, 184, 0.18);
}

/* hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(40px, 9vh, 110px);
}
.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-glow);
}
h1 {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin: 0 0 34px;
  max-width: 44ch;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--ink-2);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(238, 241, 236, 0.22);
  color: var(--ink);
  text-decoration: none;
}
.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.store__t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.store__t small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.store--live {
  background: var(--ink);
  color: var(--teal-deep);
  box-shadow: none;
  transition: transform 0.25s var(--ease);
}
.store--live .store__t small {
  color: rgba(4, 42, 43, 0.7);
}
.store--live:hover {
  transform: translateY(-2px);
}
.store--live:active {
  transform: scale(0.97);
}

/* live recitation */
.recite {
  margin: 0;
}
.verse {
  position: relative;
  isolation: isolate;
  margin: 0;
  font-family: var(--arabic);
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 2.1;
  text-align: right;
}
.verse .w {
  display: inline-block;
  padding: 0 0.14em;
  line-height: 1.65;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.verse .w.on {
  color: #fff;
}
.verse .pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  border-radius: 0.28em;
  background: var(--pill);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s var(--ease), width 0.34s var(--ease), height 0.34s var(--ease), opacity 0.3s var(--ease);
}
.verse .pill.show {
  opacity: 1;
}
.verse .pill.instant {
  transition: opacity 0.3s var(--ease);
}
.player {
  direction: rtl;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 22px;
}
.play {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--teal-deep);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.play:active {
  transform: scale(0.93);
}
.play svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.play .i-pause,
.is-playing .play .i-play {
  opacity: 0;
  transform: scale(0.6);
}
.is-playing .play .i-pause {
  opacity: 1;
  transform: none;
}
.track {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
}
.track__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc(var(--p, 0) * 100%);
  background: var(--ink);
}
.track__dot {
  position: absolute;
  top: 50%;
  right: calc(var(--p, 0) * 100%);
  width: 11px;
  height: 11px;
  margin: -5.5px -5.5px 0 0;
  border-radius: 50%;
  background: var(--teal-glow);
  box-shadow: 0 0 0 5px rgba(63, 189, 184, 0.18), 0 0 24px 6px rgba(13, 142, 145, 0.5);
  transform: scale(0.6);
  transition: transform 0.4s var(--ease);
}
.has-played .track__dot {
  transform: none;
}
.tr {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.55;
}
.ref {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* footer */
.foot {
  padding-block: 28px max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.credits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.credits span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.credits a,
.foot__links a {
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot__row p {
  margin: 0;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot__links a {
  color: var(--ink);
}

/* privacy + 404 (document pages) */
.doc {
  flex: 1;
  padding-block: clamp(30px, 6vh, 70px) 90px;
}
.doc__in {
  max-width: 44rem;
}
.doc h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  margin-bottom: 10px;
}
.doc .updated {
  margin: 0 0 34px;
  color: var(--ink-3);
  font-size: 14px;
}
.doc .lede {
  max-width: none;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(238, 241, 236, 0.03);
  color: var(--ink-2);
}
.doc h2 {
  margin: 38px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin-bottom: 8px;
}
.doc a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.back {
  display: inline-block;
  margin-top: 26px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    padding-block: 28px 64px;
  }
}
@media (max-width: 520px) {
  .top__status {
    font-size: 13px;
    padding: 8px 12px;
  }
  .brand .brand__wm {
    display: none;
  }
  .store {
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
