/* salahalarm.com — brand: deep prayer-mat green, cream, gold accents. */
/* --header-h: sticky header height, including the announcement bar when shown */
:root {
  --header-h: 65px;
  --green-950: #04170f;
  --green-900: #072a1c;
  --green-800: #0a3d2a;
  --green-700: #0d5a3c;
  --green-600: #11774f;
  --green-500: #1c9a66;
  --gold: #d6aa48;
  --gold-soft: #f3dfae;
  --alarm: #d0261c;

  --bg: #f7f5ee;
  --bg-tint: #eef3ea;
  --surface: #ffffff;
  --text: #13201a;
  --muted: #56645d;
  --border: #e3e2d9;
  --link: var(--green-600);
  --shadow: 0 1px 2px rgb(4 23 15 / 6%), 0 12px 32px rgb(4 23 15 / 8%);

  --radius: 20px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1410;
    --bg-tint: #0f1c16;
    --surface: #13221b;
    --text: #e8eee9;
    --muted: #a2b1a9;
    --border: #22352c;
    --link: #4cc791;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1410; --bg-tint: #0f1c16; --surface: #13221b; --text: #e8eee9; --muted: #a2b1a9;
  --border: #22352c; --link: #4cc791; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: "Noto Naskh Arabic", var(--font); font-size: 18px; }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", var(--font); font-size: 17px; line-height: 2.2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
html[dir="rtl"] .icon-sm[viewBox] { transform: none; }
html[dir="rtl"] .link-arrow .icon, html[dir="rtl"] .card-more .icon { transform: scaleX(-1); }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--green-700); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-600); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #000; line-height: 1.1; font-size: 21px; font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, var(--font);
  transition: transform .2s, box-shadow .2s;
}
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / 25%); }
.badge-light { background: #fff; color: #000; border-color: #fff; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-buttons .store-badge { min-width: 168px; }
.buttons-light .store-badge { background: #fff; color: #000; border-color: #fff; }
.buttons-light .store-android { background: transparent; color: #fff; border-color: rgb(255 255 255 / 55%); }
.buttons-light .store-android:hover { background: rgb(255 255 255 / 10%); }
.buttons-stack { flex-direction: column; }
.buttons-stack .store-badge { justify-content: center; }
.section-cta { display: flex; justify-content: center; margin-top: 44px; }
.spotlight-copy .store-buttons, .ramadan-copy .store-buttons { margin-top: 28px; }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn { gap: 6px; padding: 8px 14px; font-family: var(--font); }
.header-cta svg { width: 17px; height: 17px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.home .site-header { background: color-mix(in srgb, var(--green-900) 85%, transparent); border-color: rgb(255 255 255 / 8%); }
.home .site-header .brand, .home .header-nav a { color: #fff; }
.home .site-header .btn { background: var(--gold); color: var(--green-950); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-family: var(--font); letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.header-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.header-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.header-nav a:hover { color: var(--text); }
.brand span, .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .header-nav a:not(:last-child) { display: none; }
  .header-nav { gap: 14px; }
  .header-inner { gap: 14px; }
}
@media (max-width: 400px) {
  .header-nav { display: none; }
  .header-cta { margin-inline-start: auto; }
  .brand span { display: none; }
  .header-cta .btn { padding: 8px 11px; font-size: 14px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% 10%, rgb(28 154 102 / 35%), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgb(214 170 72 / 14%), transparent 60%),
    linear-gradient(170deg, var(--green-950), var(--green-800) 70%);
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 140px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgb(255 255 255 / 9%); border: 1px solid rgb(255 255 255 / 14%); color: var(--gold-soft);
}
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); color: rgb(255 255 255 / 80%); max-width: 34em; margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.rating { display: flex; align-items: center; gap: 2px; margin: 0; color: rgb(255 255 255 / 75%); font-size: 14px; }
.rating span { margin-inline-start: 8px; }
.icon-star { width: 16px; height: 16px; fill: var(--gold); stroke: var(--gold); }
.hero-visual { position: relative; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings span {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1.5px solid rgb(208 38 28 / 50%);
  animation: ring 3.6s ease-out infinite;
}
.rings span:nth-child(2) { animation-delay: 1.2s; }
.rings span:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rings span { animation: none; opacity: .3; } html { scroll-behavior: auto; } }
.arch-line { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--bg); }

/* Phone frame */
.phone {
  position: relative; width: 300px; aspect-ratio: 71.5 / 146.5; /* real iPhone body */
  padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #2c2f2e, #0c0d0d);
  box-shadow: 0 0 0 1.5px #3b3f3d inset, 0 40px 80px rgb(0 0 0 / 45%), 0 10px 20px rgb(0 0 0 / 25%);
}
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.phone-screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { width: min(300px, 72vw); transform: rotate(-3deg); }
.phone-step { width: 62%; margin: 22px auto 0; }
.phone-step::after { top: 14px; height: 16px; }
.phone-aside { width: 150px; margin: 0 auto 18px; padding: 6px; border-radius: 28px; }
.phone-aside .phone-screen { border-radius: 23px; }
.phone-aside::after { top: 11px; height: 11px; }
.phone-tilt { width: 230px; transform: rotate(4deg); }

/* Sections */
.section { padding: 88px 0; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow-gold { color: var(--gold); }
.section-title { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; max-width: 18em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover { gap: 10px; }

/* Compare */
.compare { padding-top: 40px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.compare-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare-card h3 { font-size: 20px; margin-bottom: 16px; }
.compare-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-card li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.compare-card.bad li .icon { color: var(--alarm); }
.compare-card.bad li:first-child .icon { color: var(--muted); }
.compare-card.bad { color: var(--muted); }
.compare-card.good { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.compare-card.good .icon { color: var(--gold); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; padding-bottom: 26px; }
.step-visual { height: 360px; overflow: hidden; background: linear-gradient(180deg, #f2f6f1, #e6f0e4); }
.step-visual > img { width: 78%; margin: 22px auto 0; }
.step-num { margin: 22px 26px 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; font-weight: 800; font-size: 15px; }
.step h3 { margin: 0 26px 8px; font-size: 21px; }
.step p:last-child { margin: 0 26px; color: var(--muted); }

/* Spotlight */
.spotlight { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; }
.spotlight-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.spotlight-visual { border-radius: 28px; overflow: hidden; height: 540px; background: linear-gradient(180deg, #f2f6f1, #e3eee1); padding: 36px 36px 0; }
.spotlight-visual img { width: 100%; max-width: 380px; margin: 0 auto; }
.spotlight h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.spotlight p { color: rgb(255 255 255 / 78%); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks .icon { color: var(--gold); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--bg-tint); color: var(--green-600); }
.feature h3 { font-size: 18px; margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Gallery */
.gallery-section { padding: 0 0 88px; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(20px, calc((100vw - 1120px) / 2)) 20px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 250px; height: auto; flex: none; scroll-snap-align: center; border-radius: 22px; box-shadow: var(--shadow); }

/* Ramadan */
.ramadan {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 32px; color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgb(214 170 72 / 28%), transparent 60%),
    linear-gradient(150deg, var(--green-900), var(--green-700));
}
.ramadan h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.ramadan p { color: rgb(255 255 255 / 80%); }
.ramadan .link-arrow { color: var(--gold-soft); }
.countdown { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgb(214 170 72 / 55%); background: rgb(0 0 0 / 15%); }
.countdown-num { font-size: clamp(56px, 7vw, 88px); font-weight: 800; color: var(--gold); line-height: 1; align-self: end; }
.countdown-label { align-self: start; font-weight: 600; color: rgb(255 255 255 / 75%); }

/* Languages and chips */
.languages { padding-top: 0; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.chip:hover, .chip.active { border-color: var(--green-600); color: var(--green-600); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.card-more { display: inline-flex; gap: 6px; align-items: center; color: var(--link); font-weight: 700; font-size: 15px; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; overflow: hidden; }
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.cta-band p { color: rgb(255 255 255 / 78%); font-size: 18px; max-width: 30em; margin: 14px 0 28px; }
.cta-band-inner > div:first-child { padding-bottom: 72px; }
.cta-band .phone { margin-bottom: -140px; align-self: start; }

/* Footer */
.site-footer { background: var(--green-950); color: rgb(255 255 255 / 70%); padding: 64px 0 28px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: rgb(255 255 255 / 45%); margin-bottom: 14px; }
.footer-grid div > a:not(.brand) { display: block; color: rgb(255 255 255 / 80%); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 22em; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 13.5px; }
.footer-base p { margin: 0; }

/* Article pages */
.article-hero { padding: 56px 0 40px; background: var(--bg-tint); border-bottom: 1px solid var(--border); }
.article-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 14px 0 16px; }
.article-hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span { color: var(--border); }
.meta { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.translations { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.translations a { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.translations a:empty { display: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; justify-content: space-between; gap: 56px; padding-top: 44px; padding-bottom: 72px; }
.article-aside { position: relative; }
.aside-card { position: sticky; top: 92px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow); }
.aside-card p { font-size: 15px; color: var(--muted); }
.aside-card .cta-title { color: var(--text); font-size: 18px; font-weight: 800; margin-bottom: 4px; }

.prose { font-size: 18.5px; }
html[lang="ur"] .prose { font-size: 18px; }
.prose h2 { font-size: 28px; font-weight: 800; margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose ol li::marker { color: var(--green-600); font-weight: 800; }
.prose blockquote { margin: 28px 0; padding: 18px 22px; border-inline-start: 4px solid var(--gold); background: var(--surface); border-radius: 0 14px 14px 0; }
html[dir="rtl"] .prose blockquote { border-radius: 14px 0 0 14px; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.prose th, .prose td { padding: 11px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--green-900); color: #fff; font-weight: 700; }
.prose tbody th { font-weight: 700; background: var(--surface); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose em { color: var(--green-600); font-style: italic; }
.toc { margin-bottom: 36px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 4px 22px; }
.toc summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.toc ul { margin: 0 0 16px; padding-inline-start: 20px; font-size: 16px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-faq h2 { margin-bottom: 0; }

.cta-inline {
  display: flex; gap: 18px; align-items: flex-start; margin: 40px 0;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #fff;
}
.cta-inline img { border-radius: 14px; flex: none; }
.cta-inline p { margin: 0 0 14px; color: rgb(255 255 255 / 80%); font-size: 16px; }
.cta-inline .cta-title { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.related { background: var(--bg-tint); padding: 64px 0; }
.blog-hero { padding-bottom: 32px; }
.blog-hero .lang-chips { margin-top: 8px; }

/* Responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 110px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-actions .store-buttons, .cta-band .store-buttons { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .steps, .cards { grid-template-columns: 1fr; }
  .step-visual { height: 320px; }
  .spotlight-inner { grid-template-columns: 1fr; }
  .spotlight-visual { height: 440px; padding: 28px 28px 0; }
  .ramadan { grid-template-columns: 1fr; padding: 32px 24px; }
  .countdown { width: 200px; justify-self: center; }
  .cta-band-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-band p { margin-inline: auto; }
  .cta-band .phone { justify-self: center; margin-bottom: -180px; }
  .cta-band-inner > div:first-child { padding-bottom: 8px; }
  .cta-band { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .section { padding: 64px 0; }
  .compare-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .feature h3 { margin: 0 0 4px; }
  .feature p { grid-column: 2; }
  .feature .icon { grid-row: span 2; }
  .gallery img { width: 200px; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 24px; }
  .cta-inline { flex-direction: column; }
  .store-buttons { justify-content: center; }
  .store-buttons .store-badge { flex: 1 1 0; min-width: 0; max-width: 220px; padding: 9px 14px; font-size: 19px; justify-content: center; }
  .cta-inline .store-buttons, .buttons-stack { justify-content: flex-start; }
  .phone-hero { width: min(230px, 56vw); }
}

/* Alarm screen drawn in HTML (container-relative units so it scales with the frame) */
.phone { container-type: inline-size; }
.alarm-screen {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 70% at 50% 30%, #e0342a, #b3150f 70%, #8f0d09);
  color: #fff; font-family: -apple-system, BlinkMacSystemFont, var(--font); text-align: center;
}
.alarm-status { width: 100%; display: flex; justify-content: space-between; padding: 6cqw 10cqw 0; font-size: 5cqw; font-weight: 600; }
.alarm-name { margin: 11cqw 0 0; font-size: 15cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.alarm-ar { margin: 3cqw 0 0; font-size: 8cqw; font-family: "Noto Naskh Arabic", serif; line-height: 1.2; }
.alarm-time { margin: 1cqw 0 0; font-size: 6cqw; font-weight: 600; opacity: .9; }
.alarm-pulse { position: relative; width: 48cqw; height: 48cqw; margin: 9cqw 0 0; display: grid; place-items: center; }
.alarm-pulse span { position: absolute; inset: 0; border-radius: 50%; border: .6cqw solid rgb(255 255 255 / 45%); animation: ring 3s ease-out infinite; }
.alarm-pulse span:nth-child(2) { animation-delay: 1s; }
.alarm-pulse span:nth-child(3) { animation-delay: 2s; }
.alarm-pulse i { width: 22cqw; height: 22cqw; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 16%); border: .6cqw solid rgb(255 255 255 / 70%); }
.alarm-pulse .icon { width: 11cqw; height: 11cqw; }
.alarm-card { position: absolute; left: 4cqw; right: 4cqw; bottom: 5cqw; padding: 6cqw 5cqw 5cqw; border-radius: 7cqw; background: #fff; color: #13201a; text-align: start; }
.alarm-card-title { margin: 0; font-size: 5.6cqw; font-weight: 700; }
.alarm-card-sub { margin: 1.5cqw 0 4cqw; font-size: 4cqw; color: #56645d; line-height: 1.35; }
.alarm-card-btn { margin: 0; display: flex; align-items: center; justify-content: center; gap: 2cqw; padding: 3.6cqw; border-radius: 3.5cqw; background: #0d5a3c; color: #fff; font-weight: 700; font-size: 5cqw; }
.alarm-card-btn .icon { width: 5.5cqw; height: 5.5cqw; }
@media (prefers-reduced-motion: reduce) { .alarm-pulse span { animation: none; } }

/* Ramadan Ready challenge (/ramadan-2027/) */
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 10%); }
.btn-ghost { background: transparent; color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green-600); }
.btn-ghost:hover { background: var(--bg-tint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); } }
:root[data-theme="dark"] .btn-ghost { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.challenge-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.challenge-actions .btn { padding: 15px 26px; font-size: 17px; }
.challenge-hero .hero-inner { padding-bottom: 150px; }
.challenge-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; margin-top: 36px; }
.challenge-stats div { display: grid; }
.challenge-stats b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.challenge-stats span { font-size: 14px; color: rgb(255 255 255 / 70%); }
.invite-note { margin: 0 0 26px; padding: 18px 20px; border-radius: 18px; background: rgb(214 170 72 / 14%); border: 1px solid rgb(214 170 72 / 45%); }
.invite-note p { margin: 0; color: rgb(255 255 255 / 88%); }
.invite-note .invite-help { margin-top: 10px; font-size: 14px; color: rgb(255 255 255 / 65%); }
.invite-code { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.invite-code code { font: 800 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; color: var(--gold); }
.rings-gold span { border-color: rgb(214 170 72 / 45%); }

.challenge-screen { display: flex; flex-direction: column; align-items: center; color: #fff; background: linear-gradient(180deg, #0a3d2a, #04170f); }
.cs-tag { margin-top: 8cqw; font-size: 4.6cqw; font-weight: 700; color: var(--gold-soft); }
.cs-ring { position: relative; width: 52cqw; margin-top: 5cqw; }
.cs-ring svg { width: 100%; transform: rotate(-90deg); fill: none; stroke-width: 7; }
.cs-ring circle { stroke: rgb(255 255 255 / 12%); }
.cs-ring .cs-ring-fill { stroke: var(--gold); stroke-linecap: round; }
.cs-ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.cs-ring-text b { font-size: 16cqw; font-weight: 800; }
.cs-ring-text span { margin-top: 1.5cqw; font-size: 4cqw; color: rgb(255 255 255 / 70%); }
.cs-phase { margin-top: 4cqw; font-size: 4.4cqw; font-weight: 600; color: rgb(255 255 255 / 80%); }
.cs-list { width: 84cqw; margin-top: 4cqw; display: grid; gap: 2cqw; }
.cs-row { display: flex; justify-content: space-between; align-items: center; padding: 2.6cqw 4cqw; border-radius: 3.5cqw; background: rgb(255 255 255 / 7%); font-size: 4.6cqw; font-weight: 600; }
.cs-row i { width: 6.5cqw; height: 6.5cqw; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 35%); display: grid; place-items: center; }
.cs-row.done i { background: var(--green-500); border-color: var(--green-500); }
.cs-row .icon { width: 4.6cqw; height: 4.6cqw; stroke-width: 3; }
.cs-invite { display: flex; align-items: center; gap: 2cqw; margin-top: 4cqw; padding: 2.4cqw 4cqw; border-radius: 99px; background: rgb(214 170 72 / 18%); color: var(--gold-soft); font-size: 4cqw; font-weight: 700; }
.cs-invite .icon { width: 4.6cqw; height: 4.6cqw; }

.section-lead { max-width: 40em; color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.offer-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.offer-card-big { background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #fff; border-color: transparent; }
.offer-card-big p:last-child { color: rgb(255 255 255 / 80%); }
.offer-num { margin: 0; font-size: 64px; font-weight: 800; line-height: 1; color: var(--gold); }
.offer-card h3 { font-size: 22px; margin: 6px 0 10px; }
.offer-card p:last-child { margin: 0; color: var(--muted); }
.offer-card-big p:last-child { color: rgb(255 255 255 / 80%); }
.offer-steps { margin: 32px 0 36px; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer-steps li { counter-increment: s; position: relative; padding-top: 46px; color: var(--muted); }
.offer-steps li::before { content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green-700); color: #fff; font-weight: 800; font-size: 15px; }
.offer-steps b { color: var(--text); }

.phases-section { background: var(--bg-tint); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.phase { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.phase-days { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--green-600); }
.phase h3 { font-size: 21px; margin-bottom: 8px; }
.phase p:last-child { margin: 0; color: var(--muted); }
.phase-finals { background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #fff; border-color: transparent; }
.phase-finals .phase-days { color: var(--gold-soft); }
.phase-finals p:last-child { color: rgb(255 255 255 / 80%); }
.phases-note { display: flex; gap: 10px; align-items: center; margin: 24px 0 0; color: var(--muted); font-weight: 600; }
.phases-note .icon { color: var(--green-600); }

.prize .fine { font-size: 14px; color: rgb(255 255 255 / 60%); margin-bottom: 0; }
.prize-badge { gap: 8px; }
.prize-icon { width: 30%; height: auto; color: var(--gold); align-self: end; }
.faq-more { margin-top: 28px; }

.challenge-band { text-align: center; padding: 80px 0; }
.challenge-band p { margin-inline: auto; }
.challenge-band .challenge-actions { justify-content: center; }

@media (max-width: 1000px) {
  .phases { grid-template-columns: 1fr 1fr; }
  .offer-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .challenge-hero .challenge-actions, .challenge-stats { justify-content: center; }
  .challenge-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; gap: 12px 16px; }
  .invite-note { text-align: start; }
}
@media (max-width: 560px) {
  .offer-grid, .phases, .offer-steps { grid-template-columns: 1fr; }
  .challenge-actions .btn { flex: 1 1 100%; justify-content: center; }
  .challenge-stats b { font-size: 20px; }
  .challenge-stats span { font-size: 12.5px; }
}
.pill-link { text-decoration: none; }
.pill-link:hover { background: rgb(255 255 255 / 14%); }
.ramadan-copy .link-arrow { display: flex; width: fit-content; margin-top: 8px; }

/* Announcement bar (inside the sticky header, below the nav) */
body.has-announce { --header-h: 103px; }
.announce {
  display: flex; align-items: center; justify-content: center; gap: 14px; height: 38px; padding: 0 16px;
  background: linear-gradient(90deg, #c99a35, var(--gold) 50%, #c99a35); color: var(--green-950);
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden;
}
.announce:hover { background: var(--gold-soft); }
.announce-short { display: none; }
.announce-text { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; }
.announce-cta { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: var(--green-900); color: var(--gold-soft); font-size: 13px; flex: none; }
html[dir="rtl"] .announce-cta .icon { transform: scaleX(-1); }
@media (max-width: 560px) {
  .announce { font-size: 13px; gap: 10px; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
}

/* Free Makkah Trip Challenge */
.challenge-hero h1 .gold { color: var(--gold); }
.challenge-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.challenge-cta .btn { padding: 13px 22px; }
.hero-fine { margin: 18px 0 0; font-size: 13px; color: rgb(255 255 255 / 60%); }
.hero-fine a { color: var(--gold-soft); }
.entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.entry-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.entry-card h3 { font-size: 20px; margin: 4px 0 8px; }
.entry-card p:last-child { margin: 0; color: var(--muted); }
.entry-card-gold { background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #fff; border-color: transparent; }
.entry-card-gold p:last-child { color: rgb(255 255 255 / 80%); }
.entries-example { display: flex; gap: 10px; align-items: center; margin: 22px 0 32px; font-weight: 600; color: var(--muted); }
.entries-example .icon { color: var(--gold); }
.prize .fine a { color: var(--gold-soft); }
@media (max-width: 1000px) { .entries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .challenge-hero .challenge-cta { justify-content: center; }
  .challenge-band .challenge-cta { justify-content: center; }
}
@media (max-width: 560px) {
  .challenge-cta { flex-direction: column; align-items: stretch; }
  .challenge-cta .store-buttons { justify-content: center; }
  .challenge-cta .btn { justify-content: center; }
}
.challenge-band .challenge-cta { justify-content: center; }
.challenge-band .band-fine { margin: 28px auto 0; font-size: 14px; color: rgb(255 255 255 / 70%); }
.challenge-band .band-fine a { color: var(--gold-soft); }

/* Makkah challenge promo inside English articles */
.cta-challenge {
  margin: 36px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--gold-soft, #fbf3dc);
  border: 1px solid var(--gold, #c9a227);
  color: var(--green-950, #0d2b1f);
}
.cta-challenge a:not(.btn) { color: var(--green-950, #0d2b1f); text-decoration: underline; }
.cta-challenge p { margin: 0 0 12px; }
.cta-challenge .cta-title { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.cta-challenge-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cta-challenge-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.cta-challenge-rules { font-size: 14px; }

/* Slim app bar on article pages, phones only */
.sticky-app {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 16px;
  background: var(--green-950, #04170f); color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}
.sticky-app[hidden] { display: none; }
.sticky-app img { border-radius: 10px; flex: none; }
.sticky-app p { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.sticky-app p strong { display: block; font-size: 14px; }
.sticky-app p span { color: rgb(255 255 255 / 75%); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-app .btn { background: var(--gold); color: var(--green-950); flex: none; }
.sticky-app-close { background: none; border: 0; color: rgb(255 255 255 / 70%); font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }
@media (min-width: 900px) { .sticky-app { display: none !important; } }

/* Ramadan timetable pages */
.tt-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.prose .tt, .tt { min-width: 0; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tt th, .tt td { padding: .55rem .7rem; border-bottom: 1px solid rgba(127,127,127,.25); text-align: start; white-space: nowrap; }
.tt thead th { font-weight: 700; background: var(--green-900); color: #fff; white-space: normal; }
@media (max-width: 520px) { .prose .tt, .tt { font-size: .85rem; } .tt th, .tt td { padding: .45rem .4rem; } }
.tt tbody tr:nth-child(even) { background: rgba(127,127,127,.04); }
.tt-note { font-size: .9rem; opacity: .8; }
.tt-cities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem 1rem; }
.tt-cities a { font-weight: 600; }
.tt-country { opacity: .7; font-size: .9rem; }
