/* Deen Reminder home page: flat black and silver, silver outlines, the geometric pattern behind.
   Built by site/build.py; edit site/site.css, not Docs/site.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --radius: 14px; --wrap: 1080px; }
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c; --surface: #131315; --surface2: #18181b; --surface3: #202024;
  --text: #ededef; --text2: #b9bbc1; --muted: #8c8e95;
  --line: rgba(214,218,224,.15); --line-strong: rgba(226,229,234,.34); --sheen: rgba(255,255,255,.07);
  --glow: rgba(214,218,224,.07); --pattern: url(/pattern-silver.svg);
  --silver: linear-gradient(180deg,#f7f8fa 0%,#cfd3d9 100%); --on-silver: #0b0b0c;
  --nav-bg: rgba(11,11,12,.86); --gold: #d4af5a;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f7; --surface: #ffffff; --surface2: #f1f1f3; --surface3: #e9e9ec;
  --text: #111113; --text2: #3d3d44; --muted: #66666e;
  --line: rgba(24,24,28,.12); --line-strong: rgba(24,24,28,.26); --sheen: rgba(255,255,255,.9);
  --glow: rgba(184,137,42,.07); --pattern: url(/pattern-gold.svg);
  --silver: linear-gradient(180deg,#2a2a2f 0%,#121214 100%); --on-silver: #ffffff;
  --nav-bg: rgba(246,246,247,.88); --gold: #8a6a24;
}
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 15.5px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[dir="rtl"] body { font-family: 'Inter', 'Noto Naskh Arabic', system-ui, sans-serif; }
[lang="ur"] body, [lang="ar"] body { font-family: 'Inter', 'Noto Naskh Arabic', system-ui, sans-serif; line-height: 1.85; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
section { scroll-margin-top: 84px; }

.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% -8%, var(--glow), transparent 70%),
              radial-gradient(ellipse 85% 70% at 50% 22%, transparent 25%, var(--bg) 80%),
              var(--pattern) 0 0 / 120px 120px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--silver); color: var(--on-silver); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px rgba(226,229,234,.22); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface2); color: var(--text); border-color: var(--line-strong); box-shadow: inset 0 1px 0 var(--sheen); }
.btn-ghost:hover { background: var(--surface3); }
.btn .dc { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn svg:not(.dc) { width: 16px; height: 16px; }
.em { width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; }
.btn .em { width: 18px; height: 18px; }

/* ── Top bar ── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; flex-shrink: 0; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 11px; border-radius: 10px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--sheen); color: var(--text); font-size: 14px; font-weight: 500; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--surface3); }
.lang summary svg { width: 16px; height: 16px; color: var(--text2); flex-shrink: 0; }
.lang .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang[open] .chev { transform: rotate(180deg); }
.lang-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 220px; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--sheen), 0 18px 44px rgba(0,0,0,.45);
  animation: pop .14s ease-out; }
[data-theme="light"] .lang-pop { box-shadow: inset 0 1px 0 var(--sheen), 0 14px 36px rgba(0,0,0,.12); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.lang-opt { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); }
.lang-opt:hover, .lang-opt:focus-visible { background: var(--surface3); outline: none; }
.lo-name { grid-column: 1; font-size: 15px; font-weight: 600; line-height: 1.3; }
.lang-opt[lang="ur"] .lo-name, .lang-opt[lang="ar"] .lo-name { font-family: 'Noto Naskh Arabic', serif; font-size: 16px; }
.lo-en { grid-column: 1; font-size: 12px; color: var(--muted); line-height: 1.3; font-family: 'Inter', sans-serif; }
.lang-opt .tick { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--text); }
.lang-opt.on { background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.menu-btn { display: none; }

/* ── Hero: our intro, centred ── */
.hero { text-align: center; padding-top: 72px; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: 76px; height: 76px; object-fit: contain; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--sheen); color: var(--text2); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #c9a24a; }
h1 { font-size: clamp(2.7rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 14px; }
.bismillah { font-family: 'Noto Naskh Arabic', serif; font-size: 23px; color: var(--text2); margin-bottom: 18px; }
.hero-sub { max-width: 640px; color: var(--text2); font-size: 16.5px; margin-bottom: 28px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .ctas { margin-bottom: 26px; }
.proof { display: inline-flex; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--sheen); padding: 10px 4px; text-decoration: none; }
.proof:hover { border-color: var(--line-strong); }
.pi { display: flex; flex-direction: column; align-items: center; padding: 2px 22px; }
.pi[hidden] { display: none; }
.pi:not([hidden]) ~ .pi:not([hidden]) { border-inline-start: 1px solid var(--line-strong); }
.pi strong { font-size: 18px; font-weight: 700; white-space: nowrap; }
.pi strong .em { width: 16px; height: 16px; vertical-align: -2px; }
.pi small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 30px; }
.chips-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip { padding: 5px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--sheen); color: var(--text2); font-size: 13px; text-decoration: none; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }

/* ── Sections ── */
.block { padding-top: 64px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
[lang="ur"] .label, [lang="ar"] .label { letter-spacing: 0; font-size: 13px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.lead { color: var(--text2); max-width: 640px; margin-bottom: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--sheen); }
a.card { text-decoration: none; transition: border-color .15s, background .15s; }
a.card:hover { border-color: var(--line-strong); background: var(--surface2); }
h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface3); border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { padding: 22px; display: flex; flex-direction: column; }
.feat-icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; }

/* ── Prayer times widget ── */
.pt { padding: 26px 28px; }
.pt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.pt-title { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pt-title span { color: var(--text2); }
.pt-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.pt-clock { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text2); background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; white-space: nowrap; }
.pt-clock:empty { display: none; }
.pt-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-input { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 9px; background: var(--surface2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; }
.pt-input:focus-within { border-color: var(--text2); }
.pt-input svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.pt-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 15px inherit; padding: 11px 0; }
.pt-form .btn[disabled] { opacity: .6; cursor: wait; }
.pt-next { text-align: center; padding: 4px 0 18px; }
.pt-next-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pt-next-name { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.pt-count { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; direction: ltr; }
.pt-bar { height: 4px; background: var(--surface3); border-radius: 4px; overflow: hidden; max-width: 320px; margin: 10px auto 0; }
.pt-bar span { display: block; height: 100%; width: 0; background: var(--text2); transition: width .6s ease; }
.pt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pc { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 6px; text-align: center; }
.pc img { width: 26px; height: 26px; border-radius: 7px; }
.pc-name { font-size: 12px; font-weight: 600; color: var(--text2); margin-top: 2px; }
.pc-time { font-size: 13.5px; font-variant-numeric: tabular-nums; direction: ltr; }
.pc.past { opacity: .45; }
.pc.next { border-color: var(--line-strong); background: var(--surface3); }
.pc.next .pc-name { color: var(--text); }
.pc.sunrise { border-style: dashed; }
.pt-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.pt-foot a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.pt-error { display: none; margin-top: 12px; font-size: 13.5px; color: #f0a35c; }
.pt-error.show { display: block; }
[data-theme="light"] .pt-error { color: #a4500c; }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.qa { padding: 0; }
.qa summary { cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-top: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.qa p { padding: 0 20px 18px; }

/* ── Support and closing band ── */
.support { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 26px 28px; }
.support > div:first-child { flex: 1 1 360px; }
.support h2 { font-size: 1.45rem; }
.support p { color: var(--text2); }
.cta-band { text-align: center; padding: 48px 24px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 var(--sheen);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--glow), transparent 70%), var(--surface); }
.cta-band p { color: var(--text2); margin-bottom: 22px; }
.cta-band .docs-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.cta-band .docs-note:empty { display: none; }

/* ── Footer ── */
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 52px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 18px; max-width: 320px; }
.dua { font-family: 'Noto Naskh Arabic', serif; font-size: 17px; color: var(--muted); margin-top: 18px; text-align: start; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.foot-col a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--text); }

/* ── Smaller screens ── */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; }
  .grid { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .pt-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-add span { display: none; }
  .nav-add { padding: 0 11px; }
  .nav .brand span { display: none; }
  .lang-current { display: none; }
  .lang summary { padding: 0 9px; }
  .hero { padding-top: 40px; }
  .ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .ctas, .cta-band .ctas, .support .ctas { width: 100%; }
  .proof { width: 100%; justify-content: space-around; }
  .pi { padding: 2px 10px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .pt { padding: 20px 16px; }
  .pt-head { flex-direction: column; }
  .pt-form .btn span { display: none; }
  .block { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Hover: a glowing silver edge on cards */
[data-theme="dark"]  { --hover-glow: 0 0 0 1px rgba(232,235,240,.22), 0 0 22px rgba(220,224,230,.12), inset 0 1px 0 var(--sheen); }
[data-theme="light"] { --hover-glow: 0 0 0 1px rgba(24,24,28,.14), 0 6px 22px rgba(24,24,28,.08), inset 0 1px 0 var(--sheen); }
a.card:hover, .qa:hover, .proof:hover, .chip:hover { border-color: var(--line-strong); box-shadow: var(--hover-glow); }
.card.support:hover, .card.pt:hover { box-shadow: inset 0 1px 0 var(--sheen); }

/* The Bismillah under the name, in gold */
.bismillah { background: linear-gradient(180deg, #f6e3a1 0%, #d4af5a 55%, #b08a36 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(212,175,90,.18)); }
[data-theme="light"] .bismillah { background: linear-gradient(180deg, #b8892a 0%, #8a6a24 100%); -webkit-background-clip: text; background-clip: text; filter: none; }

/* Prayer times card: the colourful look from before, on the dark and silver page */
.card.pt { position: relative; overflow: hidden; }
.card.pt::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 85% -10%, rgba(224,182,90,.11), transparent 60%),
              radial-gradient(500px 200px at 0% 0%, rgba(96,165,255,.09), transparent 60%); }
.card.pt > * { position: relative; }
.pt-title span { color: #f7cc72; }
.pt-count { background: linear-gradient(135deg, #e0b65a, #60a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pt-bar span { background: linear-gradient(90deg, #cfd3d9, #d4af5a); }
[data-theme="light"] .pt-bar span { background: linear-gradient(90deg, #8d929a, #b8892a); }
.pc.next { border-color: #e0b65a; background: rgba(224,182,90,.06); box-shadow: 0 0 0 1px rgba(224,182,90,.35), 0 6px 22px rgba(224,182,90,.15); }
.pc.next .pc-name { color: #e0b65a; }
.pt-form .btn-primary { background: linear-gradient(135deg, #b08a36, #6e5420); color: #fff; box-shadow: 0 4px 18px rgba(224,182,90,.22); }
.pt-foot a { color: #e0b65a; }
.pt-input:focus-within { border-color: var(--line-strong); }
[data-theme="light"] .card.pt::before { background: radial-gradient(600px 220px at 85% -10%, rgba(176,138,54,.09), transparent 60%),
              radial-gradient(500px 200px at 0% 0%, rgba(37,99,235,.07), transparent 60%); }
[data-theme="light"] .pt-title span { color: #a05a00; }
[data-theme="light"] .pt-count { background-image: linear-gradient(135deg, #8a6a24, #1d4ed8); }
[data-theme="light"] .pc.next { border-color: #8a6a24; background: rgba(176,138,54,.06); box-shadow: 0 0 0 1px rgba(176,138,54,.3); }
[data-theme="light"] .pc.next .pc-name, [data-theme="light"] .pt-foot a { color: #8a6a24; }
[dir="ltr"] .dua { text-align: left; }
[dir="rtl"] .dua { text-align: right; }
.pt-count { background-image: linear-gradient(180deg, #f6e3a1, #d4af5a); }
[data-theme="light"] .pt-count { background-image: linear-gradient(180deg, #b8892a, #8a6a24); }
.pt-form .btn { font-weight: 700; letter-spacing: -.005em; }
.pt-form .btn svg { width: 15px; height: 15px; }
.step { transition: border-color .15s, box-shadow .15s; }
.step:hover { border-color: var(--line-strong); box-shadow: var(--hover-glow); }

/* Closing band: the pattern and a faint gold glow behind the heading */
.cta-band { position: relative; overflow: hidden; padding: 64px 24px 72px; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(212,175,90,.10), transparent 70%),
              linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)), var(--pattern) center / 96px 96px; opacity: 1; }
[data-theme="dark"] .cta-band { --pattern: url(/pattern-silver.svg); }
[data-theme="light"] .cta-band::before { background: radial-gradient(ellipse 55% 60% at 50% 30%, rgba(184,137,42,.10), transparent 70%), var(--pattern) center / 96px 96px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band:hover { border-color: var(--line-strong); box-shadow: var(--hover-glow); }

/* Closing band: clear glass over the page's pattern */
.cta-band { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter: blur(3px) saturate(120%); -webkit-backdrop-filter: blur(3px) saturate(120%);
  border-color: rgba(226,229,234,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.35); }
.cta-band::before { background: radial-gradient(ellipse 55% 60% at 50% 25%, rgba(212,175,90,.07), transparent 70%); }
[data-theme="light"] .cta-band { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); border-color: rgba(24,24,28,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 36px rgba(0,0,0,.08); }
[data-theme="light"] .cta-band::before { background: none; }

/* Prayer times card: clear glass over the pattern too */
.card.pt { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  backdrop-filter: blur(3px) saturate(120%); -webkit-backdrop-filter: blur(3px) saturate(120%);
  border-color: rgba(226,229,234,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.35); }
.card.pt::before { opacity: .6; }
.card.pt .pc { background: rgba(255,255,255,.035); border-color: rgba(226,229,234,.16); }
.card.pt .pc.next { background: rgba(224,182,90,.08); border-color: #e0b65a; }
.card.pt .pt-input, .card.pt .pt-clock { background: rgba(255,255,255,.04); }
[data-theme="light"] .card.pt { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); border-color: rgba(24,24,28,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 36px rgba(0,0,0,.08); }
[data-theme="light"] .card.pt .pc, [data-theme="light"] .card.pt .pt-input, [data-theme="light"] .card.pt .pt-clock { background: rgba(255,255,255,.5); border-color: rgba(24,24,28,.12); }
[data-theme="light"] .card.pt .pc.next { background: rgba(184,137,42,.08); border-color: #8a6a24; }


/* Features: the bento layout, wide tiles carry a small preview */
.grid { grid-template-columns: repeat(3, 1fr); }
.feat.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 22px; }
.feat.full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; }
.feat.full .feat-icon { margin-bottom: 0; }
.feat.full h3 { margin-bottom: 2px; }
.feat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feat.full > h3, .feat.full > p { flex: 1; }
.mini { flex: 0 0 230px; background: rgba(43,45,49,.9); border-inline-start: 3px solid #c7cad0; border-radius: 9px; padding: 11px 13px;
  font-size: 12.5px; color: #dbdee1; box-shadow: 0 10px 28px rgba(0,0,0,.35); line-height: 1.5; }
[data-theme="light"] .mini { background: #f2f3f5; color: #313338; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.mini-title { font-weight: 700; color: #f2f3f5; margin-bottom: 3px; }
[data-theme="light"] .mini-title { color: #060607; }
.mini-line.dim { opacity: .72; }
.mini .em { width: 15px; height: 15px; vertical-align: -3px; border-radius: 4px; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: #4e5058; color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.mini-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.12); margin: 6px 0 2px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f6e3a1, #d4af5a); }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin-top: 12px; }
.mini-bars i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #e6e8ec, rgba(214,218,224,.35)); }
[data-theme="light"] .mini-bars i { background: linear-gradient(180deg, #3d3d44, rgba(61,61,68,.35)); }
.mini-compass { flex: 0 0 124px; width: 124px; height: 124px; color: var(--text2); }
.mini-needle { transform-origin: 60px 60px; animation: needleSwing 6s ease-in-out infinite; }
@keyframes needleSwing { 0%, 100% { transform: rotate(-18deg); } 45%, 60% { transform: rotate(58deg); } }
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .feat.full { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .feat.wide, .feat.full { grid-column: auto; flex-direction: column; align-items: stretch; }
  .mini { flex-basis: auto; }
  .mini-compass { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .mini-needle { animation: none; } }

/* Footer: Ar-Ra'd 13:28 */
.verse { margin-top: 20px; padding-inline-start: 14px; border-inline-start: 2px solid rgba(212,175,90,.55); }
.verse-ar { font-family: 'Noto Naskh Arabic', serif; font-size: 19px; line-height: 1.7;
  background: linear-gradient(180deg, #f6e3a1, #d4af5a); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
[data-theme="light"] .verse-ar { background-image: linear-gradient(180deg, #b8892a, #8a6a24); }
[dir="ltr"] .verse-ar { text-align: left; }
.verse figcaption { color: var(--muted); font-size: 13px; margin-top: 2px; font-style: italic; }
[lang="ar"] .verse figcaption { font-style: normal; }

/* Phones: lighter home page, previews and extras left for bigger screens */
@media (max-width: 640px) {
  .feat .mini, .feat .mini-bars, .feat .mini-compass { display: none; }
  .feat { padding: 18px; }
  .feat-icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .feat.wide, .feat.full { gap: 0; }
  .chips { display: none; }
  .hero-sub { font-size: 15.5px; }
  .pt-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pc { padding: 8px 4px; }
  .pc img { width: 22px; height: 22px; }
  .faq { gap: 8px; }
  .qa summary { padding: 15px 16px; font-size: 15px; }
  .foot-col a { padding: 4px 0; }
  .support { padding: 20px 18px; }
}

/* Phones: the title sits beside the icon, the text runs underneath */
@media (max-width: 640px) {
  .feat.wide, .feat.full { display: block; }
  .feat:not(.wide):not(.full), .feat-text { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
  .feat .feat-icon { margin: 0; }
  .feat h3 { margin: 0; font-size: 16px; }
  .feat p { grid-column: 1 / -1; margin-top: 8px; }
}
@media (max-width: 640px) { .feat:has(.feat-text) { display: block !important; } }
@media (max-width: 640px) {
  .feat.full { display: grid !important; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
  .step { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: center; padding: 18px; }
  .step .num { margin: 0; }
  .step h3 { margin: 0; }
  .step p { grid-column: 1 / -1; margin-top: 8px; }
}

/* Footer on phones: one short row of links instead of four columns */
.foot-mini { display: none; }
@media (max-width: 640px) {
  .foot-col { display: none; }
  .foot-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  .foot-mini a { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; text-decoration: none; color: var(--text2);
    background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--sheen); }
  .foot-mini a:hover { color: var(--text); border-color: var(--line-strong); }
  .foot-bottom { margin-top: 22px; flex-direction: column; gap: 6px; }
}

/* Phones: no support or closing cards (voting stays in the footer links) */
@media (max-width: 640px) { #support, #add { display: none; } }

/* Stats box: each figure gets an equal, centred share */
.proof .pi { flex: 1 1 0; text-align: center; }
@media (max-width: 640px) {
  .proof { display: flex; width: 100%; padding: 12px 0; }
  .pi { padding: 2px 6px; min-width: 0; }
  .pi small { white-space: normal; line-height: 1.3; }
}

/* Prayer times card on phones */
@media (max-width: 640px) {
  .card.pt { padding: 18px 16px; }
  .pt-head { display: block; position: relative; margin-bottom: 14px; }
  .pt-clock { position: absolute; top: -4px; inset-inline-end: 0; font-size: 12px; padding: 4px 8px; }
  .pt-sub { display: none; }
  .pt-title { font-size: 1.2rem; line-height: 1.3; padding-inline-end: 4px; }
  .pt-form { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .pt-input { flex: 1 1 100%; }
  .pt-form .btn-primary { flex: 1; }
  .pt-form #pt-geo { width: 46px; padding: 0; flex: 0 0 46px; }
  .pt-next { padding-bottom: 14px; }
  .pt-next-name { font-size: 1.5rem; }
  .pt-count { font-size: 2rem; }
  .pt-foot { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12.5px; }
}

/* City search: press Enter or Search to look it up; the location button sits inside the box */
.pt-form { display: block; }
.pt-input { padding-inline-end: 5px; }
.pt-input input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.pt-geo { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; cursor: pointer;
  color: #e0b65a; background: rgba(224,182,90,.1); border: 1px solid rgba(224,182,90,.35); transition: background .15s; }
.pt-geo:hover { background: rgba(224,182,90,.18); }
.pt-geo svg { width: 16px; height: 16px; }
.pt-geo[disabled] { opacity: .5; cursor: wait; }
[data-theme="light"] .pt-geo { color: #8a6a24; background: rgba(184,137,42,.1); border-color: rgba(184,137,42,.35); }
.pt-input { padding: 5px 5px 5px 12px; gap: 10px; border-radius: 12px; }
[dir="rtl"] .pt-input { padding: 5px 12px 5px 5px; }
.pt-input input { padding: 8px 0; }
.pt-geo { width: 34px; height: 34px; border-radius: 8px; }
.card.pt .pt-clock { border: 1px solid rgba(226,229,234,.2); border-radius: 8px; background: rgba(255,255,255,.04); padding: 4px 9px; font-size: 12.5px; line-height: 1.3; }
[data-theme="light"] .card.pt .pt-clock { border-color: rgba(24,24,28,.14); background: rgba(255,255,255,.5); }
@media (max-width: 640px) { .pt-clock { top: -5px; } .pt-head .label { line-height: 18px; } }

/* Cards fly in from below as they scroll into view (opacity and transform only: cheap to draw) */
.rv { opacity:0; transform:translateY(24px) scale(.985); transition:opacity .5s ease var(--rv-delay, 0ms), transform .6s cubic-bezier(.22,1,.36,1) var(--rv-delay, 0ms); }
.rv.rv-in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity:1; transform:none; transition:none; } }

/* Very small phones: figures shrink a little rather than spill out */
@media (max-width: 380px) { .pi strong { font-size: 16px; } }

/* Reviews label: full on computers, short on phones */
.lbl-short { display: none; }
@media (max-width: 640px) { .lbl-long { display: none; } .lbl-short { display: inline; } .pi small { white-space: nowrap; } }

/* The Dashboard menu link in gold */
.nav-gold { color: #e0b65a !important; }
.nav-gold:hover { color: #f6e3a1 !important; }
[data-theme="light"] .nav-gold { color: #8a6a24 !important; }
[data-theme="light"] .nav-gold:hover { color: #b8892a !important; }

/* ══ Light mode: gold accents (dark mode stays black and silver) ══════════════
   Deep gold #8a6a24 for text (readable on white), brighter gold only for tints, bars and badges. */
[data-theme="light"] {
  --gold-ink: #8a6a24; --gold-mid: #b8892a; --gold-tint: rgba(184,137,42,.11); --gold-line: #e3cd96; --gold-soft: #f7eed8;
  --hover-glow: 0 0 0 1px rgba(184,137,42,.35), 0 6px 22px rgba(184,137,42,.12), inset 0 1px 0 var(--sheen);
}
[data-theme="light"] .label, [data-theme="light"] .chips-label { color: var(--gold-ink); }
[data-theme="light"] .num { background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold-line); }
[data-theme="light"] .qa[open] summary::after { border-color: var(--gold-ink); }
[data-theme="light"] .qa[open] { border-color: var(--gold-line); }
[data-theme="light"] .lang-opt.on { background: var(--gold-tint); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-ink); }
[data-theme="light"] .pt-input:focus-within, [data-theme="light"] .card.pt .pt-input:focus-within { border-color: var(--gold-mid); }
[data-theme="light"] .chip:hover { color: var(--gold-ink); }
[data-theme="light"] .site-footer a:hover, [data-theme="light"] footer a:hover { color: var(--gold-ink); }
[data-theme="light"] :focus-visible { outline-color: var(--gold-mid); }
[data-theme="light"] .nav-links a:hover, [data-theme="light"] .foot-col a:hover, [data-theme="light"] .foot-bottom a:hover { color: var(--gold-ink); }
