/* Marketing landing for Al-Quran on iPhone and Android.
   Tokens match assets/emerald-refined.css. This page is not an app screen. */
:root {
  --page: #f5f7f5;
  --surface: #fff;
  --ink: #13201a;
  --muted: #4b5a52;
  --line: #dce3de;
  --emerald: #0e4d33;
  --emerald-deep: #0a3a26;
  --emerald-soft: #e3eee7;
  --emerald-line: #b9ccbf;
  --hero-muted: #e1ebe5;
  --gold: #a8842f;
  --gold-text: #7a5e1c;
  --gold-light: #e6cd8e;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --arabic: "Amiri Quran", serif;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 24px 48px -20px rgba(10, 12, 16, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 180ms;
  --wrap: 1120px;
  --phone-w: 410px;
  --phone-h: 864px;
  --phone-radius: 52px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .75), transparent 36%),
    var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; }
.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  padding: 8px 12px;
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--emerald);
  font-weight: 600;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-height: 72px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span {
  font: 600 28px/1.2 var(--display);
  color: var(--emerald);
  letter-spacing: -.02em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-small);
  color: var(--muted);
  font-weight: 600;
}
.header-actions { display: flex; gap: 8px; margin-left: auto; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 12px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--surface);
}
.store svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.store strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.store-compact { min-height: 44px; padding-inline: 12px; }
.store-compact small { display: none; }
.store-compact strong { font-size: 14px; }

.hero {
  background:
    radial-gradient(circle at 85% 12%, rgba(230, 205, 142, .18), transparent 28%),
    var(--emerald-deep);
  color: var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 40px;
  align-items: end;
  padding: 72px 0 64px;
}
.hero .eyebrow { color: var(--gold-light); }
.bismillah {
  margin: 20px 0 4px;
  font: 400 clamp(28px, 3vw, 36px)/2 var(--arabic);
  color: var(--gold-light);
  text-align: left;
}
.hero h1 {
  margin-top: 8px;
  max-width: 12ch;
  font: 600 clamp(48px, 6vw, 76px)/1.02 var(--display);
  letter-spacing: -.03em;
}
.hero-lead {
  max-width: 38rem;
  margin-top: 20px;
  color: var(--hero-muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; color: var(--hero-muted); font-size: 14px; }
.hero-note a { color: var(--surface); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero :focus-visible { outline-color: var(--gold-light); }

.hero-stage {
  position: relative;
  width: min(100%, 440px);
  height: calc(var(--phone-h) * .66 + 42px);
  margin-left: auto;
}
.hero-device {
  position: absolute;
  display: grid;
  justify-items: start;
  gap: 10px;
}
.hero-device--front { left: 0; top: 0; z-index: 2; }
.hero-device--back { right: 0; top: 64px; z-index: 1; justify-items: end; }
.device-label {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(10, 18, 14, .18);
}
.hero-device--back .device-label { background: var(--gold-light); color: var(--emerald-deep); }

.device {
  width: calc(var(--phone-w) * var(--device-scale, .66));
  height: calc(var(--phone-h) * var(--device-scale, .66));
  overflow: hidden;
  border-radius: calc(var(--phone-radius) * var(--device-scale, .66));
  background: var(--surface);
  filter: drop-shadow(var(--shadow));
}
.device--front { --device-scale: .66; }
.device--back { --device-scale: .48; }
.device iframe {
  width: var(--phone-w);
  height: var(--phone-h);
  border: 0;
  transform: scale(var(--device-scale, .66));
  transform-origin: top left;
  background: var(--surface);
}

.section { padding: 88px 0; }
section[id] { scroll-margin-top: 88px; }
.section-intro { max-width: 40rem; margin-bottom: 36px; }
.section-intro h2,
.feature h2,
.cta h2 {
  margin-top: 8px;
  font: 600 clamp(34px, 4vw, 52px)/1.08 var(--display);
  letter-spacing: -.02em;
}
.section-intro p { margin-top: 12px; color: var(--muted); font-size: 18px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.value {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.value-index {
  font: 600 28px/1 var(--display);
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.value h3 { font: 600 28px/1.2 var(--display); letter-spacing: -.01em; }
.value p { color: var(--muted); }

.proof { padding-top: 24px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}
.proof-grid figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.proof-grid .device { --device-scale: .42; }
.proof-grid figcaption { display: grid; gap: 4px; width: 100%; text-align: center; }
.chip {
  justify-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}
.chip.is-android { background: var(--ink); color: var(--surface); }
.proof-grid h3 { font: 600 22px/1.2 var(--display); }
.proof-grid figcaption p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.open-screen {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 600;
}

.feature + .feature { border-top: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 48px;
  align-items: center;
}
.feature.is-flip .feature-grid { grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
.feature.is-flip .feature-copy { order: 2; }
.feature-copy p.lede { margin-top: 16px; color: var(--muted); font-size: 18px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ticks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--emerald);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticks strong { display: block; font-size: 16px; }
.ticks span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.footnote { margin-top: 16px; color: var(--muted); font-size: 14px; }

.verse,
.plus-panel,
.platform {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.verse { padding: 32px 28px; display: grid; gap: 16px; }
.verse-ar {
  font: 400 34px/2 var(--arabic);
  text-align: right;
  color: var(--emerald);
}
.verse-en { color: var(--muted); font-size: 17px; line-height: 1.7; }
.verse-ref { color: var(--gold-text); font-size: 14px; }
.verse-meta { color: var(--muted); font-size: 13px; }

.platform-grid,
.plus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#practice .feature-grid { grid-template-columns: 1fr; }
.platform { padding: 28px 24px 24px; display: grid; align-content: start; gap: 12px; }
.platform h3 { font: 600 32px/1.15 var(--display); }
.platform .store { justify-self: start; margin-top: 8px; }

.plus { padding-top: 0; }
.plus-panel {
  padding: 36px 32px;
  background: var(--emerald-soft);
  border-color: var(--emerald-line);
}
.plus-panel h2 { font: 600 clamp(32px, 4vw, 44px)/1.1 var(--display); }
.plus-panel .lede { margin-top: 8px; max-width: 40rem; }
.plus-grid { margin-top: 28px; }
.plus-item {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--emerald-line);
}
.plus-item h3 { font: 600 22px/1.25 var(--display); }
.plus-item p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.free-note { margin-top: 20px; font-size: 15px; }

.cta {
  background: var(--emerald);
  color: var(--surface);
  padding: 96px 0 104px;
}
.cta-inner {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 40rem;
  padding-block: 8px;
}
.cta .eyebrow { color: var(--gold-light); }
.cta p { color: var(--hero-muted); font-size: 18px; }
.cta .hero-actions { margin-top: 12px; }
.cta :focus-visible { outline-color: var(--gold-light); }

.site-footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font: 600 22px/1 var(--display);
}
.footer-brand img { width: 32px; height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--emerald); font-weight: 600; }
.sources { margin-top: 20px; max-width: 46rem; }

@media (hover: hover) {
  .site-nav a:hover { color: var(--emerald); background: var(--emerald-soft); }
  .store:hover { background: #000; }
  .open-screen:hover,
  .footer-links a:hover,
  .hero-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 1100px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid .device { --device-scale: .56; }
}
@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .feature.is-flip .feature-grid { grid-template-columns: 1fr; }
  .feature.is-flip .feature-copy { order: 0; }
  .hero-stage {
    width: min(100%, 320px);
    height: calc(var(--phone-h) * .72 + 42px);
    margin-inline: auto;
  }
  .site-nav { flex-wrap: nowrap; justify-content: space-between; width: 100%; }
  .site-nav a { padding-inline: 6px; font-size: 15px; }
  .hero-device--back { display: none; }
  .device--front { --device-scale: .72; }
  .hero h1 { max-width: 16ch; }
  .values,
  .platform-grid,
  .plus-grid { grid-template-columns: 1fr; }
  .header-actions { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .site-header { padding-inline: 16px; gap: 0 16px; }
  .site-nav { width: 100%; }
  .site-nav a { padding-inline: 8px; }
  .hero-grid { padding-top: 40px; }
  .section { padding: 64px 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid .device { --device-scale: .72; }
  .hero-stage {
    width: calc(var(--phone-w) * .72);
    height: calc(var(--phone-h) * .72 + 42px);
  }
  .site-nav a { padding-inline: 2px; font-size: 14px; }
  .device--front { --device-scale: .72; }
  .verse { padding: 24px 18px; }
  .verse-ar { font-size: 28px; }
  .plus-panel { padding: 24px 18px; }
  .cta { padding: 72px 0 80px; }
  .hero-actions .store,
  .cta .store { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
