/* MyMuslimPal marketing site. Sky palette, self-hosted fonts, no framework. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/noto-kufi-arabic-800.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FD3E-FD3F;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FD3E-FD3F;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-700.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FD3E-FD3F;
}

:root {
  --sky: #5bc8f5;
  --sky-lip: #34a9dc;
  --sky-ink: #0f6f99;
  --sky-50: #e9f7fe;
  --sky-100: #d3effc;
  --sun: #ffd25e;
  --mint: #63d6ae;
  --coral: #ff8e7f;
  --lavender: #b7a4ff;
  --mint-50: #e6f8f1;
  --lavender-50: #f0ecff;
  --coral-50: #fff0ed;

  --bg: #f4fafd;
  --surface: #ffffff;
  --surface-2: #eef6fb;
  --ink: #0e3a52;
  --ink-2: #3f6276;
  --line: #d6e8f2;
  --shadow: 0 1px 2px rgb(14 58 82 / 6%), 0 12px 32px -12px rgb(14 58 82 / 18%);
  --shadow-lg: 0 2px 4px rgb(14 58 82 / 6%), 0 40px 80px -24px rgb(14 58 82 / 32%);
  --bezel: #0d1b24;
  --night-1: #0e3a52;
  --night-2: #1d4f73;

  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font);
  --radius: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --sky-ink: #7fd6fa;
  --sky-50: #0f2a3a;
  --sky-100: #123448;
  --mint-50: #0e2b2a;
  --lavender-50: #1b1f3d;
  --coral-50: #2e1c1f;
  --bg: #08141b;
  --surface: #0f212c;
  --surface-2: #132a38;
  --ink: #e7f4fb;
  --ink-2: #a6c2d2;
  --line: #1e3a4b;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 40px 80px -24px rgb(0 0 0 / 70%);
  --bezel: #02080c;
  --night-1: #0f2a3c;
  --night-2: #173d58;
  color-scheme: dark;
}

html:lang(ar) {
  --font: "Noto Sans Arabic", "Nunito", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Noto Kufi Arabic", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[dir="rtl"] body {
  font-size: 17.5px;
  line-height: 1.85;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--sky-ink);
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw {
  white-space: nowrap;
}
bdi.nm {
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 800;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 2px 0 var(--sky-lip);
}
.wordmark {
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.wordmark span {
  font-weight: 900;
  color: var(--sky-ink);
}
.top-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.top-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.top-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}
.lang:hover {
  border-color: var(--sky);
}
.lang:lang(ar) {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.lang:lang(en) {
  font-family: "Nunito", system-ui, sans-serif;
}

/* ------------------------------------------------------------ buttons */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--sky);
  color: #0b3045;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--sky-lip);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--sky-lip);
}
.btn:active,
.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sky-lip);
}
.btn-sm {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 13px;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--sky-lip);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  color: var(--sky-ink);
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* store placeholders: not links until the apps are live */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 10px 18px 10px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
}
html[dir="rtl"] .store {
  padding: 10px 14px 10px 18px;
}
.store-icon {
  width: 28px;
  height: 28px;
  flex: none;
  opacity: 0.9;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-soon {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
}
.store-name {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px);
  isolation: isolate;
  overflow-x: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 30%, color-mix(in srgb, var(--sky) 30%, transparent), transparent 70%),
    radial-gradient(40% 40% at 92% 85%, color-mix(in srgb, var(--lavender) 24%, transparent), transparent 70%),
    radial-gradient(35% 45% at 8% 10%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%);
}
html[dir="rtl"] .hero-bg {
  transform: scaleX(-1);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 750;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.eyebrow span {
  padding: 2px 12px;
}
.eyebrow span + span {
  border-inline-start: 1.5px solid var(--line);
}
.eyebrow span:first-child {
  background: var(--sky-50);
  color: var(--sky-ink);
  border-radius: 999px;
}
h1 {
  font-size: clamp(2.3rem, 4.7vw, 3.9rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.035em;
}
html[dir="rtl"] h1 {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
}
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 36em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* phones */
.phone {
  position: relative;
  background: var(--bezel);
  border-radius: 46px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 10%);
}
.phone-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}
.phone-screen::after {
  /* punch-hole camera */
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--bezel);
}
.phone img {
  width: 100%;
  height: auto;
}

.hero-visual {
  position: relative;
  height: clamp(480px, 46vw, 640px);
}
.hero-visual .phone {
  position: absolute;
  top: 50%;
  left: 50%;
}
.phone-main {
  width: clamp(230px, 22vw, 296px);
  transform: translate(-50%, -50%);
  z-index: 3;
}
.phone-side {
  width: clamp(190px, 18vw, 244px);
  z-index: 1;
}
.phone-a {
  transform: translate(-112%, -44%) rotate(-6deg);
}
.phone-b {
  transform: translate(12%, -44%) rotate(6deg);
}
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 750;
  font-size: 0.88rem;
  white-space: nowrap;
}
.chip-a {
  top: 23%;
  inset-inline-start: 4%;
}
.chip-b {
  bottom: 13%;
  inset-inline-end: 3%;
}
.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chip-dot.coral {
  background: var(--coral);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 25%, transparent);
}
.chip-ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 7px;
  background: var(--mint);
  color: #0b3a2d;
}
.sparkle {
  position: absolute;
  fill: var(--sun);
  z-index: 2;
}
.s1 {
  width: 30px;
  top: 4%;
  inset-inline-end: 18%;
}
.s2 {
  width: 18px;
  top: 14%;
  inset-inline-start: 10%;
}
.s3 {
  width: 22px;
  bottom: 4%;
  inset-inline-start: 22%;
}
.dots {
  position: absolute;
  inset-inline-end: 6%;
  top: 8%;
  display: flex;
  gap: 10px;
  transform: rotate(-24deg);
}
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.dots i:nth-child(1) {
  background: var(--mint);
}
.dots i:nth-child(2) {
  background: var(--lavender);
}
.dots i:nth-child(3) {
  background: var(--coral);
}

/* ------------------------------------------------------------ stats */
.stats ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats li {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats li + li {
  border-inline-start: 1px solid var(--line);
}
.stats strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 850;
}
.stats span {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------ sections */
.kicker {
  display: inline-block;
  color: var(--sky-ink);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
html[dir="rtl"] .kicker {
  letter-spacing: 0;
  font-size: 0.95rem;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
}
html[dir="rtl"] h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 850;
}
html[dir="rtl"] h3 {
  font-size: 1.12rem;
  line-height: 1.6;
  font-weight: 700;
}
.body {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin-top: 18px;
}
.fine {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--sun);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head .lede {
  margin-inline: auto;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(64px, 9vw, 128px) 0;
}
.feature.reverse .feature-copy {
  order: 2;
}
.points {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 650;
}
.points svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 9px;
  background: var(--sky-50);
  color: var(--sky-ink);
  margin-top: 1px;
}
html[dir="rtl"] .points svg {
  margin-top: 4px;
}
.feature-art {
  position: relative;
  border-radius: 36px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px) 0;
  min-height: 460px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.tint-sky {
  background: linear-gradient(160deg, var(--sky-100), var(--sky-50));
}
.tint-lavender {
  background: linear-gradient(160deg, color-mix(in srgb, var(--lavender) 30%, var(--lavender-50)), var(--lavender-50));
}
.tint-mint {
  background: linear-gradient(160deg, color-mix(in srgb, var(--mint) 26%, var(--mint-50)), var(--mint-50));
}
.feature-art .phone {
  width: min(300px, 78%);
  border-radius: 46px 46px 0 0;
  padding-bottom: 0;
  margin-bottom: -2px;
  box-shadow: var(--shadow-lg);
}
.feature-art .phone-screen {
  border-radius: 38px 38px 0 0;
  max-height: 520px;
}
.feature-art .s4 {
  width: 28px;
  top: 28px;
  inset-inline-end: 32px;
}
.art-recite {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.mushaf-card {
  margin: 0;
  width: 100%;
  max-width: 540px;
  background: #fffef9;
  border-radius: 24px;
  padding: 14px 14px 0;
  box-shadow: var(--shadow-lg);
  color: #0e3a52;
}
.mushaf-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 6px 12px 16px;
  font-weight: 750;
  font-size: 0.92rem;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.lg-mistake {
  background: #c0392b;
  box-shadow: 0 0 0 3px #f6d5d0;
}
.lg-place {
  background: #a8dcf7;
  box-shadow: 0 0 0 3px #def2fc;
}
.listen {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mic-btn {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background: var(--sky);
  color: #0b3045;
  box-shadow: 0 6px 0 var(--sky-lip), 0 0 0 10px color-mix(in srgb, var(--sky) 22%, transparent);
}
.mic-btn svg {
  width: 34px;
  height: 34px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wave i {
  width: 6px;
  border-radius: 3px;
  background: var(--sky-lip);
  opacity: 0.7;
}
.wave i:nth-child(1) { height: 12px; }
.wave i:nth-child(2) { height: 26px; }
.wave i:nth-child(3) { height: 40px; }
.wave i:nth-child(4) { height: 22px; }
.wave i:nth-child(5) { height: 14px; }
.wave + .mic-btn + .wave {
  transform: scaleX(-1);
}
.feature-illus {
  position: absolute;
  width: 132px;
  height: auto;
  bottom: 24px;
  inset-inline-start: 12px;
  z-index: 2;
}

/* how it works */
.how {
  padding-block: clamp(72px, 10vw, 136px) 0;
}
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  box-shadow: var(--shadow);
}
.step-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin-bottom: 22px;
}
.step-ic svg {
  width: 28px;
  height: 28px;
}
.step-1 .step-ic {
  background: var(--mint);
  color: #0b3a2d;
  box-shadow: 0 4px 0 #3fb88f;
}
.step-2 .step-ic {
  background: var(--lavender);
  color: #251a5c;
  box-shadow: 0 4px 0 #9580ee;
}
.step-3 .step-ic {
  background: var(--coral);
  color: #4a1510;
  box-shadow: 0 4px 0 #ec6f5f;
}
.step-n {
  position: absolute;
  top: 26px;
  inset-inline-end: 28px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--line);
}
.step p {
  margin-top: 10px;
  color: var(--ink-2);
}

/* imam mode */
.imam {
  padding-block: clamp(64px, 9vw, 128px) 0;
}
.imam-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 36px;
  color: #e9f6fd;
  background:
    radial-gradient(60% 80% at 85% 20%, rgb(183 164 255 / 30%), transparent 70%),
    linear-gradient(150deg, var(--night-2), var(--night-1));
  overflow: hidden;
}
html[dir="rtl"] .imam-card {
  background:
    radial-gradient(60% 80% at 15% 20%, rgb(183 164 255 / 30%), transparent 70%),
    linear-gradient(210deg, var(--night-2), var(--night-1));
}
.imam-card .kicker {
  color: var(--sun);
}
.imam-card .body {
  color: #c4dfec;
  max-width: 34em;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pills li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 16%);
  font-weight: 700;
  font-size: 0.92rem;
}
.imam-art img {
  width: min(320px, 100%);
  height: auto;
  margin-inline: auto;
}

/* learn bento */
.learn {
  padding-block: clamp(72px, 10vw, 136px) 0;
}
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
}
@supports (grid-template-rows: subgrid) {
  .card {
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}
.card {
  margin-bottom: 20px;
}
.card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-row: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.peek {
  align-self: end;
  height: 250px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-inline: -28px;
  padding-top: 24px;
  margin-top: 28px;
  position: relative;
}
.card-guide .peek,
.card-maqamat .peek {
  background: linear-gradient(180deg, var(--sky-50), transparent);
}
.card-salah .peek,
.card-goals .peek {
  background: linear-gradient(180deg, var(--mint-50), transparent);
}
.card-hisn .peek,
.card-hadith .peek {
  background: linear-gradient(180deg, var(--lavender-50), transparent);
}
.peek .phone {
  width: 72%;
  max-width: 260px;
  border-radius: 34px 34px 0 0;
  padding: 7px 7px 0;
  align-self: flex-start;
  box-shadow: var(--shadow);
}
.peek .phone-screen {
  border-radius: 28px 28px 0 0;
}
.peek .phone-screen::after {
  top: 7px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
}

/* privacy */
.privacy {
  margin-top: clamp(72px, 10vw, 136px);
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--night-1);
  color: #e9f6fd;
  position: relative;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(91 200 245 / 22%), transparent);
}
.privacy-head {
  max-width: 720px;
  position: relative;
}
.privacy .kicker {
  color: var(--sun);
}
.privacy .lede {
  color: #c4dfec;
}
.privacy-grid {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.privacy-grid li {
  padding: 28px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
}
.privacy-grid p {
  margin-top: 8px;
  color: #c4dfec;
}
.p-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--sky);
  color: #0b3045;
  margin-bottom: 20px;
  box-shadow: 0 4px 0 var(--sky-lip);
}
.p-ic svg {
  width: 24px;
  height: 24px;
}
.privacy-link {
  margin-top: 32px;
  position: relative;
}
.privacy .text-link {
  color: #9fe0fb;
}

/* download */
.download {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.download-card {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px);
  border-radius: 40px;
  background:
    radial-gradient(50% 70% at 50% 0%, rgb(255 255 255 / 55%), transparent 70%),
    linear-gradient(170deg, #8fdcfa, var(--sky));
  color: #0b3045;
  overflow: hidden;
}
.download-card h2 {
  margin-top: 20px;
}
.download-card p {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 1.1rem;
  color: #12405a;
}
.download-mark {
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--sky-lip), 0 20px 40px -12px rgb(14 58 82 / 40%);
}
.stores-center {
  justify-content: center;
  margin-top: 32px;
}
.download-card .store {
  background: #0b3045;
  color: #fff;
}
.download-card .text-link {
  margin-top: 22px;
  color: #0b3045;
}
.s5 {
  width: 34px;
  top: 14%;
  left: 12%;
}
.s6 {
  width: 22px;
  bottom: 18%;
  right: 10%;
}

/* faq */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(72px, 10vw, 128px);
}
.faq-more {
  margin-top: 18px;
  color: var(--ink-2);
}
.faq-more a {
  font-weight: 750;
}
.faq-list {
  display: grid;
  gap: 12px;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 0.15s ease;
}
details[open] {
  border-color: color-mix(in srgb, var(--sky) 60%, var(--line));
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 750;
  font-size: 1.05rem;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.faq-ic {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--sky-50);
  color: var(--sky-ink);
  transition: transform 0.2s ease;
}
details[open] .faq-ic {
  transform: rotate(45deg);
}
details p {
  padding: 0 22px 22px;
  color: var(--ink-2);
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 56px 28px;
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-brand p {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 26em;
}
.foot h2 {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
html[dir="rtl"] .foot h2 {
  letter-spacing: 0;
  font-size: 0.95rem;
}
.foot ul {
  display: grid;
  gap: 8px;
}
.foot a {
  color: var(--ink);
  text-decoration: none;
}
.foot a:hover {
  color: var(--sky-ink);
  text-decoration: underline;
}
.foot-base {
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 0.88rem;
}
.foot-base p {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
html[dir="rtl"] .foot-base p {
  text-align: right;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1060px) {
  .top-nav {
    display: none;
  }
  .top-actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 920px) {
  .hero-grid,
  .feature,
  .imam-card,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lede {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-visual {
    height: clamp(440px, 110vw, 600px);
  }
  .phone-main {
    width: clamp(210px, 46vw, 280px);
  }
  .phone-side {
    width: clamp(170px, 38vw, 230px);
  }
  .feature.reverse .feature-copy {
    order: 0;
  }
  .feature-art {
    min-height: 0;
    padding-top: 40px;
  }
  .feature-art .phone-screen {
    max-height: 440px;
  }
  .stats ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats li:nth-child(3) {
    border-inline-start: 0;
  }
  .stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .steps,
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .imam-art {
    order: -1;
  }
  .imam-art img {
    width: 200px;
  }
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .top-actions .btn-sm {
    display: none;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .top-row {
    height: 60px;
    gap: 12px;
  }
  .wordmark {
    font-size: 1.1rem;
  }
  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .lang {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .eyebrow {
    font-size: 0.82rem;
  }
  .eyebrow span {
    padding: 2px 9px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 18px;
  }
  .stores {
    justify-content: center;
  }
  .stores {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .store {
    min-width: 0;
    gap: 8px;
    padding: 9px 14px 9px 12px;
    border-radius: 14px;
  }
  html[dir="rtl"] .store {
    padding: 9px 12px 9px 14px;
  }
  .store-icon {
    width: 22px;
    height: 22px;
  }
  .store-name {
    font-size: 1rem;
  }
  .imam-art img {
    width: 132px;
  }
  .phone {
    border-radius: 36px;
    padding: 7px;
  }
  .phone-screen {
    border-radius: 30px;
  }
  .phone-a {
    transform: translate(-104%, -44%) rotate(-6deg);
  }
  .phone-b {
    transform: translate(4%, -44%) rotate(6deg);
  }
  .chip {
    font-size: 0.8rem;
    padding: 8px 11px;
  }
  .chip-a {
    top: 12%;
    inset-inline-start: 0;
  }
  .chip-b {
    bottom: 6%;
    inset-inline-end: 0;
  }
  .stats li {
    padding: 18px 16px;
  }
  .stats strong {
    font-size: 1.1rem;
  }
  .stats span {
    font-size: 0.88rem;
  }
  .bento {
    grid-template-columns: none;
    grid-template-rows: auto auto auto;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-top: 40px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    gap: 0 14px;
  }
  .bento::-webkit-scrollbar {
    display: none;
  }
  .card {
    padding: 26px 22px 0;
    scroll-snap-align: start;
    margin-bottom: 8px;
  }
  .steps {
    margin-top: 40px;
    gap: 14px;
  }
  .step {
    padding: 24px 22px;
  }
  .step-ic {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    margin-bottom: 16px;
  }
  .step-n {
    top: 22px;
    inset-inline-end: 22px;
    font-size: 2.1rem;
  }
  .privacy-grid {
    margin-top: 36px;
    gap: 14px;
  }
  .privacy-grid li {
    padding: 22px;
  }
  .p-ic {
    margin-bottom: 14px;
  }
  .peek {
    margin-inline: -22px;
    height: 230px;
  }
  .feature-art {
    border-radius: 28px;
    padding-inline: 20px;
  }
  .feature-art .phone {
    border-radius: 36px 36px 0 0;
  }
  .feature-art .phone-screen {
    border-radius: 30px 30px 0 0;
    max-height: 380px;
  }
  .feature-illus {
    width: 92px;
    bottom: 12px;
    inset-inline-start: 4px;
  }
  .imam-card,
  .download-card {
    border-radius: 28px;
  }
  .s5 {
    top: 6%;
    left: 8%;
  }
  .s6 {
    bottom: 5%;
    right: 7%;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-grid > div:last-child {
    grid-column: 1 / -1;
  }
  summary {
    padding: 18px;
    font-size: 1rem;
  }
  details p {
    padding: 0 18px 18px;
  }
}

/* ------------------------------------------------------------ simple pages (404, slots) */
.simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px var(--gutter);
}
.simple h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-top: 24px;
}
.simple .lede {
  margin-inline: auto;
}
.simple .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: 32px;
}
.simple img {
  margin-inline: auto;
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--sky-lip);
}
.slot {
  background: var(--coral-50);
  border: 2px solid var(--sun);
  border-radius: 16px;
  padding: 16px;
}

/* Theme switch (light by default; the choice is remembered). */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ------------------------------------------------------------ v2 additions */

/* free forever band */
.free {
  padding-block: clamp(56px, 8vw, 104px) 0;
}
.free-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 40px;
  background:
    radial-gradient(60% 90% at 0% 0%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 70%),
    linear-gradient(160deg, #fff6d9, #ffe7a3);
  color: #3a2a00;
  overflow: hidden;
}
.free-card h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  color: #2a1f00;
}
html[dir="rtl"] .free-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.free-card .kicker {
  color: #8a5a00;
}
.free-card .body {
  color: #5a4300;
}
.free-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.free-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 20px;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(138 90 0 / 14%);
}
.free-list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 850;
  font-size: 1.08rem;
  color: #2a1f00;
}
.free-list span {
  font-size: 0.93rem;
  color: #5a4300;
}
.free-list svg {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--sun);
  color: #3a2a00;
  box-shadow: 0 3px 0 #e8b53a;
}
:root[data-theme="dark"] .free-card {
  background:
    radial-gradient(60% 90% at 0% 0%, rgb(255 210 94 / 22%), transparent 70%),
    linear-gradient(160deg, #2a2412, #1d1a10);
  color: #fbefc8;
}
:root[data-theme="dark"] .free-card h2,
:root[data-theme="dark"] .free-list strong {
  color: #fff4d2;
}
:root[data-theme="dark"] .free-card .kicker {
  color: var(--sun);
}
:root[data-theme="dark"] .free-card .body,
:root[data-theme="dark"] .free-list span {
  color: #e3d3a4;
}
:root[data-theme="dark"] .free-list li {
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 210 94 / 18%);
}

/* feature index */
.index {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.index-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.index-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.index-grid a:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
}
.index-grid strong {
  font-family: var(--font-head);
  font-weight: 850;
  font-size: 1.02rem;
}
.index-grid span {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
}
.ix {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.ix svg {
  width: 22px;
  height: 22px;
}
.c-sky { background: var(--sky); color: #0b3045; box-shadow: 0 3px 0 var(--sky-lip); }
.c-mint { background: var(--mint); color: #0b3a2d; box-shadow: 0 3px 0 #3fb88f; }
.c-lav { background: var(--lavender); color: #251a5c; box-shadow: 0 3px 0 #9580ee; }
.c-coral { background: var(--coral); color: #4a1510; box-shadow: 0 3px 0 #ec6f5f; }
.c-sun { background: var(--sun); color: #3a2a00; box-shadow: 0 3px 0 #e8b53a; }

/* feature sections, two phones */
.feature-art.two {
  gap: 0;
}
.feature-art.two .phone {
  width: min(250px, 58%);
}
.feature-art.two .phone + .phone {
  margin-inline-start: -14%;
  margin-bottom: -40px;
  transform: translateY(-34px);
  z-index: -1;
}
.tint-sun {
  background: linear-gradient(160deg, color-mix(in srgb, var(--sun) 34%, var(--surface)), color-mix(in srgb, var(--sun) 10%, var(--surface)));
}
.tint-coral {
  background: linear-gradient(160deg, color-mix(in srgb, var(--coral) 28%, var(--coral-50)), var(--coral-50));
}
.feature .points {
  margin-top: 22px;
}

/* wide device (Mac) */
.wide {
  padding-block: clamp(64px, 9vw, 128px) 0;
}
.wide .section-head {
  margin-bottom: 40px;
}
.laptop {
  max-width: 1040px;
  margin-inline: auto;
}
.laptop-screen {
  background: var(--bezel);
  border-radius: 22px 22px 0 0;
  padding: 12px 12px 14px;
  box-shadow: var(--shadow-lg);
}
.laptop-screen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.laptop-base {
  height: 18px;
  margin-inline: -4%;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #c9d6de, #9fb0bb);
}
:root[data-theme="dark"] .laptop-base {
  background: linear-gradient(180deg, #2b3b46, #1a252d);
}
.wide .points {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
}

/* sub-pages */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
  text-align: center;
  isolation: isolate;
  overflow-x: clip;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
html[dir="rtl"] .page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.page-hero .lede {
  margin-inline: auto;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 16px;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.dl {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
a.dl:hover {
  border-color: var(--sky);
}
.dl-ic {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}
.dl-ic svg {
  width: 28px;
  height: 28px;
}
.dl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.dl-text strong {
  font-family: var(--font-head);
  font-weight: 850;
  font-size: 1.15rem;
}
.dl-text span {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.4;
}
.dl-state {
  flex: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.dl-state.live {
  background: var(--sky);
  color: #0b3045;
}
.dl-note {
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-top: -32px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.downloads {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.downloads .dl-grid {
  margin-top: 40px;
  padding-bottom: 0;
}

/* login */
.auth {
  display: grid;
  place-items: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 104px);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-card > img {
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--sky-lip);
}
.auth-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-top: 22px;
  letter-spacing: -0.02em;
}
html[dir="rtl"] .auth-card h1 {
  font-size: clamp(1.6rem, 3.6vw, 2rem);
}
.auth-card .lede {
  font-size: 1rem;
  margin: 12px auto 0;
}
.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.auth-actions .btn {
  width: 100%;
  padding-block: 15px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--sky);
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-help {
  margin-top: 24px;
  text-align: start;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.auth-help li {
  display: flex;
  gap: 10px;
}
.auth-help svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sky-ink);
  margin-top: 2px;
}
.auth-fine {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ayah / page link fallback */
.ref-card {
  margin-inline: auto;
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 34px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ref-main {
  font-family: var(--font-head);
  font-weight: 850;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.ref-sub {
  color: var(--ink-2);
  font-weight: 650;
}
.ref-ar {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}
.ref-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  align-items: center;
  margin-top: 28px;
}
[hidden] {
  display: none !important;
}

.top-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}
.signin {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 8px 10px;
}
.signin:hover {
  color: var(--sky-ink);
}

@media (max-width: 1060px) {
  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .free-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .free-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .free-card {
    border-radius: 28px;
  }
  .index-grid {
    gap: 10px;
    margin-top: 32px;
  }
  .index-grid a {
    padding: 16px;
    border-radius: 18px;
  }
  .index-grid span {
    display: none;
  }
  .ix {
    width: 36px;
    height: 36px;
  }
  .feature-art.two .phone {
    width: 62%;
  }
  .laptop-screen {
    padding: 6px 6px 8px;
    border-radius: 14px 14px 0 0;
  }
  .laptop-base {
    height: 10px;
  }
  .wide .points {
    justify-content: flex-start;
  }
  .signin {
    padding-inline: 4px;
    font-size: 0.9rem;
  }
  .dl {
    padding: 18px;
    gap: 14px;
  }
  .dl-ic {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
}

/* All nine languages use the same layout, with fonts appropriate to script. */
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-bengali-400.woff2) format("woff2");
}
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-bengali-700.woff2) format("woff2");
}
html:lang(ur), html:lang(fa) {
  --font: "Noto Sans Arabic", "Nunito", system-ui, sans-serif;
  --font-head: var(--font);
  line-height: 1.9;
}
html:lang(bn) {
  --font: "Noto Sans Bengali", "Nunito", system-ui, sans-serif;
  --font-head: var(--font);
}
html:lang(bn) body, html:lang(bn) .store-text { line-height: 1.9; }
html:lang(bn) :is(h1, h2, h3, .stats strong),
html:lang(ur) :is(h1, h2, h3), html:lang(fa) :is(h1, h2, h3) {
  line-height: 1.55;
  letter-spacing: normal;
}
:lang(bn) .language-menu a, .language-menu a:lang(bn) { font-family: "Noto Sans Bengali", system-ui, sans-serif; }
.language-menu a:is(:lang(ar), :lang(ur), :lang(fa)) { font-family: "Noto Sans Arabic", system-ui, sans-serif; }
.top-row { height: auto; min-height: 68px; padding-block: 10px; flex-wrap: wrap; }
.top-actions { margin-inline-start: auto; min-width: 0; }
.top-nav { flex-wrap: wrap; }
.language-menu { position: relative; font-size: 0.95rem; font-weight: 700; }
.language-menu summary { cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu nav {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  z-index: 60; width: min(250px, calc(100vw - 32px)); max-height: 70vh;
  overflow-y: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
}
.language-menu a { display: block; padding: 8px 12px; text-decoration: none; border-radius: 10px; color: var(--ink); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--surface-2); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 4px; }
:is(h1,h2,h3,p,li,a,summary,strong) { overflow-wrap: anywhere; }
:is(.hero-copy,.feature-copy,.imam-copy,.foot-grid > *, .top-nav) { min-width: 0; }
.btn-sm { white-space: normal; }
.download-card .dl-grid { text-align: start; margin-top: 28px; padding-bottom: 0; }
.download-card .dl { box-shadow: none; }
.dl { flex-wrap: wrap; }
.dl-text { flex-basis: 90px; }
.dl-state { white-space: normal; max-width: 100%; }
.reference { text-align: center; padding-bottom: 80px; }
.ref-card { max-width: 100%; }
.ref-actions { padding-bottom: 36px; }
@media (max-width: 1200px) { .top-nav { display: none; } }
@media (max-width: 600px) {
  .top-row { gap: 10px; }
  .top-row > .brand { margin-inline: auto; }
  .top-actions { width: 100%; justify-content: center; flex-wrap: wrap; margin: 0; }
  .top-actions .btn-sm { display: inline-flex; }
  .top { position: relative; }
  .language-menu summary { padding-inline: 8px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 18px; }
  .stores { flex-wrap: wrap; }
  .language-menu nav { inset-inline-end: auto; inset-inline-start: 0; }
  .laptop-base { margin-inline: 0; }
}
.verse-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); width: 100%; }
.verse-ar { font-family: "Noto Sans Arabic", sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 2; text-align: center; }
.verse-card blockquote { margin: 20px 0; font-size: 1.3rem; line-height: 1.8; }
.verse-footnotes { margin-top: 16px; white-space: pre-line; }
.verse-card figcaption, .source-credit { margin-top: 20px; color: var(--ink-2); font-size: 0.9rem; }

/* ------------------------------------------------------------ report form (/report) */
.report {
  max-width: 760px;
  padding-block: 40px 72px;
}
.report-head h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.15;
}
.report-head .lede {
  margin-top: 12px;
}
.report-card {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 32px);
}
.report-types {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.report-types legend,
.report-label {
  display: block;
  font-weight: 800;
  margin: 18px 0 6px;
}
.report-types legend {
  margin-top: 0;
  padding: 0;
}
.report-type {
  position: relative;
  display: flex;
}
.report-type input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.report-type span {
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface);
  min-height: 48px;
}
.report-type input:checked + span {
  border-color: var(--sky);
  background: var(--sky-50);
  color: var(--sky-ink);
}
.report-type input:focus-visible + span {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.report-input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 48px;
}
.report-input:focus {
  outline: none;
  border-color: var(--sky);
}
textarea.report-input {
  resize: vertical;
}
.report-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 14px;
}
.report-hint {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin-top: 4px;
}
.report-file {
  font: inherit;
  max-width: 100%;
}
.report-trap {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.report-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--sky-50);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.report-privacy svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sky-ink);
  margin-top: 2px;
}
.report-error {
  color: #b42318;
  font-weight: 700;
  margin-bottom: 12px;
}
:root[data-theme="dark"] .report-error {
  color: #ff9c8f;
}
.report-done {
  text-align: center;
}
.report-done-ic {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-50);
  color: #0d7553;
}
.report-done-ic svg {
  width: 28px;
  height: 28px;
}
.report-done h2 {
  margin-top: 14px;
  font-size: 1.5rem;
}
.report-done p {
  margin-top: 10px;
}
.report-done-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Nine-language review fixes: header icons, report form at phone width. */
.language-menu summary { display: inline-flex; align-items: center; gap: 6px; }
.language-menu summary .globe { width: 18px; height: 18px; flex: none; }
.report-card { overflow-wrap: anywhere; }
.report-type span { min-width: 0; }
@media (max-width: 420px) {
  .report-types { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  /* Hero chips may wrap on phones; some languages' labels are long. */
  .chip { white-space: normal; max-width: 72%; }
}
