/* Crawlable pages (/quran, /prayer-times, …) and the static parts of the home
   page. Builds on site.css: same navy, champagne gold and ivory. */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.doc { padding-bottom: 0; }
body.doc .skip:focus { position: fixed; }

/* ---------- header ---------- */
.ptop { position: sticky; top: 0; z-index: 20; background: rgba(7, 17, 29, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ptop-inner { width: min(1180px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 20px; min-height: 72px; }
.ptop .brand { border-right: 0; padding-right: 0; }
.ptop .brand-mark { width: 48px; height: 44px; }
.ptop .brand-name { font-size: 1.35rem; }
.ptop .brand-sub { letter-spacing: 0.12em; text-transform: none; font-size: 0.78rem; margin-top: 3px; color: var(--muted); }
.pnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.pnav::-webkit-scrollbar { display: none; }
.pnav a { color: var(--ivory); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-weight: 500; font-size: 0.95rem; }
.pnav a:hover { background: rgba(227, 194, 122, 0.1); }
.pnav a[aria-current="page"] { color: var(--gold); background: rgba(227, 194, 122, 0.12); }
.ptop .open-app { white-space: nowrap; }
@media (max-width: 1020px) {
  .ptop-inner { flex-wrap: wrap; gap: 4px 12px; padding: 10px 0 6px; }
  .ptop .open-app { margin-left: auto; padding: 8px 14px; }
  .pnav { order: 3; width: 100%; margin: 0 -12px; padding: 0 0 4px; }
}
@media (max-width: 420px) {
  .ptop .brand-sub { display: none; }
  .ptop .brand-name { font-size: 1.2rem; }
}

/* ---------- page hero ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.phero { padding: 22px 0 36px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 70% 80% at 85% 30%, rgba(46, 111, 115, 0.22), transparent 70%); }
.phero-grid { display: grid; gap: 32px; align-items: center; }
.phero.has-shot .phero-grid { grid-template-columns: minmax(0, 1fr) auto; }
.phero h1 { font-family: var(--headline); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; max-width: 18ch; margin-bottom: 16px; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #d9dfe6; max-width: 58ch; margin-bottom: 24px; }
.phero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.phero-actions .store-badge .badge-img.apple { height: 48px; width: auto; }
.soon { font-size: 0.9rem; color: var(--muted); border: 1px dashed var(--line); padding: 10px 14px; border-radius: 12px; }
.pshot { transform: none; opacity: 1; margin: 0; }
.pshot .device-frame { width: 250px; }
@media (max-width: 760px) {
  .phero.has-shot .phero-grid { grid-template-columns: 1fr; }
  .pshot { justify-self: center; }
  .pshot .device-frame { width: 210px; }
}

/* ---------- body ---------- */
.pbody { display: grid; gap: 40px; padding: 40px 0 56px; }
.prose { max-width: 70ch; }
.prose section { margin-bottom: 32px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: #f7f2e6; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 20px 0 6px; }
.prose p, .prose li { color: #dfe4ea; line-height: 1.7; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.faq { border-top: 1px solid var(--line); padding-top: 24px; }
.pcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: 900px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.pcta h2 { margin-bottom: 4px; }
.pcta p { margin: 0; color: var(--muted); }
.contact-box { margin-bottom: 32px; }
.related h2 { font-size: 1.3rem; }
.related > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a, .feature-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: rgba(19, 40, 63, 0.6); color: var(--ivory); text-decoration: none; transition: border-color 0.2s; }
.related a:hover, .feature-card:hover { border-color: var(--gold); }
.related b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--gold); }
.related span { color: var(--muted); font-size: 0.92rem; }
.notfound { padding: 56px 0 72px; min-height: 50vh; }

/* ---------- footer ---------- */
.pfoot { border-top: 1px solid var(--line); padding: 40px 0 32px; background: rgba(7, 17, 29, 0.6); }
.pfoot .wrap { display: grid; gap: 28px; grid-template-columns: minmax(220px, 1fr) 2fr; }
.pfoot-brand p { color: var(--muted); }
.pfoot-apps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pfoot-apps .badge-img.apple { height: 40px; width: auto; }
.pfoot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pfoot-links h2, .footer-seo h2 { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.pfoot-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pfoot-links a { color: var(--ivory); text-decoration: none; }
.pfoot-links a:hover { color: var(--gold); text-decoration: underline; }
.independence, .copy { grid-column: 1 / -1; color: var(--muted); font-size: 0.86rem; margin: 0; }
.footer-seo { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-seo .pfoot-links { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .pfoot .wrap { grid-template-columns: 1fr; }
  .pfoot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- home page: static parts ---------- */
.home-static { padding: 56px 0 40px; }
.home-static h1 { font-family: var(--headline); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 24ch; }
.eyebrow-text { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.home-seo { padding: 24px 0 56px; }
body:not(.is-home) .home-seo { display: none; }
.home-seo > .wrap > h2 { margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 28px; }
.feature-card h3 { font-family: var(--display); color: var(--gold); margin: 0 0 4px; }
.feature-card p { color: #d3dae2; font-size: 0.95rem; margin: 0 0 8px; flex: 1; }
.feature-card .more { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.home-about { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.home-about > div:first-child { max-width: 64ch; }
.home-about p { color: #d3dae2; margin: 0; }
