:root {
  --ink: #0b2e24;
  --brand: #165a43;
  --brand-deep: #0f3d2e;
  --brand-mid: #2d8a64;
  --brand-soft: #e7f4ee;
  --gold: #c9a227;
  --gold-soft: #f4e7b8;
  --cream: #f7fbf8;
  --white: #ffffff;
  --text: #16332b;
  --muted: #5b7369;
  --line: #d7e6de;
  --shadow: 0 18px 50px rgba(11, 46, 36, 0.12);
  --radius: 22px;
  --header: 76px;
  --max: 1160px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
[id] { scroll-margin-top: 96px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  min-height: 100vh;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); }
button, input, select, textarea { font-family: inherit; }

.skip {
  position: absolute;
  inset-inline-start: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { inset-inline-start: 8px; }

.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #cfe6da;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(11,46,36,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(11,46,36,0.18);
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-inline: 6px;
}
.lang-switch a {
  padding: 5px 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.lang-switch a.is-active { background: var(--brand); color: #fff; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--brand-soft);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: #cfe6da; }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-gold { background: var(--gold); color: #1a1608; }
.btn-gold:hover { background: #b38d16; color: #1a1608; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(201,162,39,0.18), transparent 28%),
    linear-gradient(160deg, #0c3328 0%, #165a43 52%, #0f3d2e 100%);
  color: #fff;
  padding: 56px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern.svg");
  background-size: 160px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: end;
}
.hero-copy { padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 38rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff !important;
  border-radius: 12px;
  padding: 8px 16px 8px 12px;
  min-height: 54px;
  border: 1px solid #333;
}
.store-badge:hover { color: #fff !important; background: #000; }
.store-badge small { display: block; font-weight: 400; font-size: 0.68rem; letter-spacing: 0.04em; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.apple-mark { width: 22px; height: 26px; fill: currentColor; }

.phones {
  display: flex;
  justify-content: center;
  gap: 18px;
  transform: translateY(28px);
}
.device {
  width: 230px;
  background: #0d1a16;
  border-radius: 34px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 2px solid #23483c;
}
.device.offset { transform: translateY(28px) scale(0.94); opacity: 0.95; }
.device-screen {
  background: #f7fbf8;
  border-radius: 26px;
  overflow: hidden;
  min-height: 460px;
  color: var(--text);
}
.notch {
  width: 88px;
  height: 18px;
  background: #0d1a16;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 6px;
}
.status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px 8px;
}
.app-head {
  padding: 4px 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: var(--ink);
}
.next-card {
  margin: 0 12px 12px;
  background: linear-gradient(160deg, #165a43, #0f3d2e);
  color: #fff;
  border-radius: 18px;
  padding: 14px;
}
.next-card span { display: block; opacity: 0.8; font-size: 0.78rem; }
.next-card strong { font-size: 1.45rem; }
.prayer-list, .mosque-list { padding: 0 12px; }
.prayer-row, .mosque-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.prayer-row.is-next { border-color: var(--brand-mid); background: var(--brand-soft); font-weight: 800; }
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  text-align: center;
  color: var(--muted);
  padding: 8px 0 12px;
}
.tabs b { color: var(--brand); display: block; }
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 12px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.84rem;
}
.switch {
  width: 34px;
  height: 20px;
  background: var(--brand-mid);
  border-radius: 999px;
  position: relative;
}
.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  inset-inline-start: 16px;
}
.features { background: var(--cream); }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11,46,36,0.04);
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 18px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.shots { background: #fff; }
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.shot { text-align: center; }
.shot .device { margin-inline: auto; width: 250px; }
.shot figcaption { margin-top: 16px; color: var(--muted); font-weight: 700; }

.cta-band {
  background: linear-gradient(160deg, #0f3d2e, #165a43);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/pattern.svg");
  opacity: 0.28;
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.86); max-width: 640px; margin: 0 auto 22px; }

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h3 { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.copyright { padding-top: 18px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.page-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(201,162,39,0.16), transparent 26%),
    linear-gradient(180deg, #f3faf6, #fff);
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}
.support-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.toc a:hover { background: var(--brand-soft); color: var(--brand); }
.article h2 {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.article h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.ol-pretty { padding-inline-start: 18px; }
.ol-pretty li { margin-bottom: 8px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--ink);
}
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 28px; }
.contact-card { text-align: center; }
.form {
  display: grid;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.legal p, .legal li { color: var(--muted); }
.legal h2 { margin-top: 28px; }

@media (max-width: 980px) {
  .hero-grid, .footer-grid, .support-layout, .grid-4, .shot-row, .contact-cards { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .phones { justify-content: flex-start; overflow: auto; padding-bottom: 18px; }
  .device.offset { transform: none; }
  .toc { position: static; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    z-index: 40;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 4px;
    overflow: auto;
  }
  .site-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .site-nav.is-open .header-cta { display: inline-flex; width: 100%; margin-top: 8px; }
}