/* Quran Rahma website. Colours mirror the app: teal brand, gold accents, soft green page. */
:root {
  --bg: #F4F7F2;
  --page: #E9F5D8;
  --text: #13241C;
  --muted: #5E6E66;
  --brand: #0E7C5A;
  --brand-dark: #05463D;
  --gold: #C9A227;
  --card: #FFFFFF;
  --line: #E2E8E3;
  --r: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0B0F0D; --page: #0B0F0D; --text: #E8EDE9; --muted: #93A39A; --card: #161C19; --line: #26302B; --brand: #2FA374; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0B0F0D; --page: #0B0F0D; --text: #E8EDE9; --muted: #93A39A; --card: #161C19; --line: #26302B; --brand: #2FA374; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.nav-links a { color: inherit; text-decoration: none; opacity: .8; }

/* Hero: the app's landscape banner */
.hero { background: url("assets/banner.jpg") center bottom / cover no-repeat; color: #0B3B30; }
.hero .nav { color: #0B3B30; }
.hero-inner { text-align: center; padding: 20px 0 170px; display: grid; justify-items: center; gap: 16px; }
.hero-icon { width: 110px; height: 110px; border-radius: 26px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.03em; text-shadow: 0 1px 12px rgba(255,255,255,.6); }
.hero p { margin: 0; font-size: clamp(17px, 2.2vw, 21px); max-width: 34ch; font-weight: 600; text-shadow: 0 1px 10px rgba(255,255,255,.7); }
.badge { display: inline-flex; align-items: center; height: 54px; padding-inline: 26px; border-radius: 999px; background: #13241C; color: #fff; font-weight: 700; text-decoration: none; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: -70px auto 40px; position: relative; }
.feature { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 8px 24px rgba(19,36,28,.08); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.doc { max-width: 720px; margin: 0 auto; padding: 10px 0 60px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 10px 0 4px; }
.doc h2 { font-size: 20px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text); }
.updated { color: var(--muted); margin-top: 0; }
.card { background: var(--card); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; border: 1px solid var(--line); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer a { color: inherit; }

/* Landing page sections */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.hero-grid .hero-inner { text-align: left; justify-items: start; padding-bottom: 150px; }
.phone { width: 270px; max-width: 72vw; border-radius: 44px; padding: 10px; background: #13241C; box-shadow: 0 30px 60px rgba(5,40,30,.35); }
.phone img { border-radius: 34px; width: 100%; }
.hero-phone { justify-self: center; margin-bottom: -120px; position: relative; z-index: 2; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-inner { text-align: center; justify-items: center; padding-bottom: 20px; }
  .hero-phone { margin-bottom: -90px; }
}
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 140px 0 10px; text-align: center; }
.stat b { display: block; font-size: 30px; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.section { padding-block: 56px; }
.section h2 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.section .lead { color: var(--muted); font-size: 18px; max-width: 52ch; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split .phone { justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); outline: 2px solid var(--brand); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 8px; margin-top: 28px; }
.tool { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; }
.tool img { width: 72px; height: 72px; }
.reciters { display: flex; gap: 16px; overflow-x: auto; padding: 24px 2px 8px; scroll-snap-type: x mandatory; }
.reciter { flex: none; width: 104px; text-align: center; font-size: 13px; font-weight: 600; scroll-snap-align: start; }
.reciter img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--gold); }
.band { background: var(--card); }
.cta { text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta img { width: 96px; height: 96px; border-radius: 22px; }
.credits-list { display: grid; gap: 12px; }
