/* deen.in home + masjid poster — SITE-003 (2 Dec 2026).
   One prayer day: the page moves from night to first light to day stone to dusk bronze to night.
   Approved world only (APPROVED_DESIGN.md, D-029/030/034/035): ink-charcoal, warm stone, taupe, warm bronze glow.
   No green, no crescents, never a flat colour: every region sits on photo, grain or lit gradient.
   Content is visible without JavaScript; nothing animates that the reader needs. */

@font-face { font-family: "Amiri Quran Fatiha"; src: url("/fonts/amiri-quran-fatiha.woff2") format("woff2"); font-display: swap; }

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sec: clamp(88px, 11vw, 160px);
}

body.home, body.masjid-page { background: var(--canvas); }
.home main, .masjid-page main { overflow-x: clip; }

/* film grain over the whole page: never a flat colour */
body.home::after, body.masjid-page::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: var(--grain); opacity: .55; mix-blend-mode: soft-light; }

/* ---------- device frame (real screenshots only) ---------- */
.device { position: relative; margin: 0; padding: 9px; border-radius: 48px; background: linear-gradient(150deg, #4a4843 0%, #1d1d1b 38%, #2c2b28 70%, #57544e 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 3px #141413, 0 40px 80px -30px rgba(0,0,0,.75), 0 12px 28px -12px rgba(0,0,0,.5); }
.device img { width: 100%; height: auto; border-radius: 40px; background: #1d1d1b; }
.device.ios::before { content: ""; position: absolute; z-index: 1; top: 20px; left: 50%; width: 31%; height: 3.4%; max-height: 30px; border-radius: 999px; background: #0c0c0b; transform: translateX(-50%); }
.device.android { border-radius: 40px; padding: 8px; }
.device.android img { border-radius: 33px; }
.device.android::before { content: ""; position: absolute; z-index: 1; top: 22px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #0c0c0b; transform: translateX(-50%); box-shadow: 0 0 0 2px rgba(255,255,255,.05); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; isolation: isolate; padding-block: clamp(48px, 7vw, 104px) 0; }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 38%; filter: saturate(.92); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 78% 30%, rgba(201,162,122,.18), transparent 70%),
  linear-gradient(90deg, rgba(28,29,27,.94) 0%, rgba(28,29,27,.82) 36%, rgba(28,29,27,.38) 70%, rgba(28,29,27,.5) 100%),
  linear-gradient(180deg, rgba(28,29,27,.25) 0%, rgba(28,29,27,0) 40%, rgba(30,30,28,.86) 86%, #252624 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-copy { align-self: center; padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 120px); }
.hero h1 { font: 300 clamp(44px, 6.4vw, 88px)/1.02 var(--font-display); letter-spacing: -.025em; max-width: 12ch; color: #F7F3ED; }
.hero-sub { margin: 28px 0 0; max-width: 46ch; font: 400 clamp(18px, 1.5vw, 20px)/1.6 var(--font-ui); color: var(--ink-2); }
.get { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; margin-top: 40px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-flex; border-radius: 10px; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.badge:hover { box-shadow: 0 10px 26px -12px rgba(0,0,0,.8); }
.badge img { height: 52px; width: auto; }
.badge-google img { height: 78px; width: auto; max-width: none; margin: -13px; } /* official PNG carries ~13px clear space on every side at this size */
.qr { display: none; grid-template-columns: auto auto; column-gap: 14px; align-items: start; }
.qr figure { margin: 0; text-align: center; }
.qr img { width: 84px; height: 84px; border-radius: 10px; padding: 0; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }
.qr figcaption { margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.qr p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
@media (min-width: 1000px) and (hover: hover) { .qr { display: grid; } }
.hero-meta { margin: 28px 0 0; font-size: 14px; color: var(--ink-3); letter-spacing: .01em; }

.hero-phones { position: relative; display: grid; justify-items: center; align-self: end; margin-bottom: -96px; }
.hero-phones .device.ios { width: min(320px, 100%); grid-area: 1 / 1; z-index: 2; transform: translateX(-18%); }
.hero-phones .device.android { width: min(258px, 86%); grid-area: 1 / 1; z-index: 1; align-self: start; transform: translate(40%, 56px) rotate(3deg); opacity: .96; }

/* ---------- promise strip ---------- */
.promise { position: relative; z-index: 1; padding: 150px 0 72px; background:
  radial-gradient(40% 80% at 70% 0%, rgba(201,162,122,.10), transparent 70%),
  linear-gradient(180deg, #252624, #22231F); border-bottom: 1px solid var(--line); }
.promise-list { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 0; list-style: none; font: 400 clamp(22px, 2.3vw, 30px)/1.25 var(--font-display); color: var(--ink); }
.promise-list li { display: inline-flex; align-items: center; gap: 12px; }
.promise-list svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--bronze); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise-note { margin: 24px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.promise-note a { color: var(--ink); }

/* ---------- through the day ---------- */
.day-intro { padding-block: var(--sec) 24px; }
.day-intro h2, .try h2, .inside h2, .private h2, .masjid h2, .faq-home h2 { font: 300 clamp(36px, 4.4vw, 60px)/1.06 var(--font-display); letter-spacing: -.02em; color: #F7F3ED; max-width: 16ch; }
.day-intro p { margin: 22px 0 0; max-width: 52ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }

.moment { position: relative; isolation: isolate; padding-block: clamp(72px, 9vw, 128px); }
.moment::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.moment-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.moment-copy { max-width: 520px; }
.moment h3 { font: 300 clamp(32px, 3.6vw, 50px)/1.1 var(--font-display); letter-spacing: -.018em; }
.moment h3 em { display: block; font-style: italic; font-weight: 300; opacity: .78; }
.moment-copy > p { margin: 22px 0 0; font-size: 18px; line-height: 1.65; }
.moment .device { width: min(300px, 78%); justify-self: center; }
.facts { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 0; font-size: 16px; line-height: 1.5; }
.facts li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent); }
.facts li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .58em; border-radius: 50%; background: var(--bronze); }

/* the sky through the day: each band its own light */
.m-dawn { color: var(--ink); }
.m-dawn::before { background:
  radial-gradient(70% 55% at 85% 100%, rgba(201,162,122,.20), transparent 70%),
  radial-gradient(50% 40% at 10% 35%, rgba(115,102,91,.18), transparent 70%),
  linear-gradient(180deg, #1E1F1D 0%, #2B2A27 45%, #5E554B 82%, #8C8074 100%); }
.m-dawn .moment-copy > p { color: var(--ink-2); }

.m-noon { color: #2A2926; }
.m-noon::before { background:
  radial-gradient(60% 50% at 80% 10%, rgba(255,255,255,.7), transparent 70%),
  radial-gradient(60% 50% at 0% 65%, rgba(201,162,122,.18), transparent 70%),
  linear-gradient(180deg, #8C8074 0%, #CFC5B8 16%, #E8E2DA 46%, #F1ECE4 100%); }
.m-noon h3 em, .m-asr h3 em { color: #554B43; opacity: 1; }
.m-noon .moment-copy > p, .m-asr .moment-copy > p { color: #4A4540; }
.m-noon .facts, .m-asr .facts { color: #3A3632; }
.m-noon .facts li::before, .m-asr .facts li::before { background: #8A6E52; }

.m-asr { color: #2A2926; }
.m-asr::before { background:
  radial-gradient(60% 60% at 100% 40%, rgba(214,178,138,.32), transparent 70%),
  linear-gradient(180deg, #F1ECE4 0%, #EAE1D4 45%, #CDB79E 82%, #A88A6C 100%); }

.m-dusk { color: var(--ink); }
.m-dusk::before { background:
  radial-gradient(80% 60% at 20% 0%, rgba(214,170,124,.42), transparent 70%),
  radial-gradient(60% 50% at 90% 70%, rgba(115,90,70,.35), transparent 70%),
  linear-gradient(180deg, #A88A6C 0%, #6E5B4B 30%, #45403A 70%, #2E2D2A 100%); }
.m-dusk h3, .m-dusk .moment-copy > p { text-shadow: 0 1px 16px rgba(30,22,14,.35); }
.m-dusk .moment-copy > p { color: #EDE4D8; }
.m-dusk .facts { color: #F2EEE7; }
.m-dusk .facts li::before { background: #E9CFAE; }

.m-night { color: var(--ink); }
.m-night::before { background:
  radial-gradient(40% 40% at 75% 30%, rgba(201,162,122,.10), transparent 70%),
  linear-gradient(180deg, #2E2D2A 0%, #232422 45%, #1E1F1D 100%); }
.m-night .moment-copy > p { color: var(--ink-2); }
.day-note { margin: 0 auto; padding: 0 0 8px; font-size: 13.5px; color: var(--ink-3); background: none; }
.day { position: relative; background: #1E1F1D; padding-bottom: 32px; }
.day-intro { position: relative; }
.day::before { content: ""; position: absolute; inset: 0 0 auto; height: 600px; background: linear-gradient(180deg, #22231F, #1E1F1D); pointer-events: none; }
.day > * { position: relative; }

/* ---------- try it here ---------- */
.try { position: relative; isolation: isolate; padding-block: var(--sec); background:
  radial-gradient(50% 50% at 80% 40%, rgba(201,162,122,.12), transparent 70%),
  linear-gradient(180deg, #1E1F1D, #252624); }
.try-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.try-copy p { margin: 22px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.try-copy .facts { max-width: 46ch; color: var(--ink-2); }
.demo { width: 100%; max-width: 440px; justify-self: center; }
.demo-place { display: flex; gap: 8px; }
.demo-place button, .demo-place select { min-height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(52,51,47,.7); color: var(--ink); font: 500 15px/1 var(--font-ui); padding: 0 18px; cursor: pointer; transition: background-color 160ms var(--ease); }
.demo-place button:hover, .demo-place select:hover { background: rgba(70,68,63,.8); }
.demo-place select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
.demo-place option { color: #2A2926; background: #F3F0EA; }
.demo-status { margin: 10px 4px 14px; min-height: 2.8em; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.demo-card { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--glass-border); background:
  linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 40%), rgba(44,43,40,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 40px 80px -36px rgba(0,0,0,.8); color: var(--ink); }
.demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.25); }
.demo-tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14.5px/1 var(--font-ui); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.demo-tabs button[hidden] { display: none; }
.demo-panel { min-height: 380px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; padding: 14px 24px 24px; }
.demo-panel[hidden] { display: none; }
.demo-panel .sub { margin: 0; font-size: 14px; color: var(--ink-3); }
.d-next { margin-top: 18px; }
.d-next .nm { font: 300 52px/1 var(--font-display); letter-spacing: -.01em; }
.d-next .tm { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 300 32px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.d-next .cd { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 13px/1 var(--font-ui); white-space: nowrap; }
.d-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; text-align: center; }
.d-strip > * { padding: 10px 2px; border-radius: 14px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.d-strip > * b { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-strip .on { background: rgba(232,218,204,.14); color: var(--ink); } .d-strip .on b { color: var(--ink); }
@media (max-width: 440px) { .d-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
.d-note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.d-list { margin: 14px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.d-list li { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.q-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.q-play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.q-play svg { width: 22px; height: 22px; }
.q-lbl { font-weight: 500; } .q-pos { margin-inline-start: auto; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.q-ayahs { margin: 14px -10px 0; padding: 0; list-style: none; }
.q-ayahs button { display: block; width: 100%; padding: 14px 12px; border: 0; border-radius: 16px; background: transparent; color: inherit; text-align: start; font: inherit; cursor: pointer; transition: background-color 200ms var(--ease); }
.q-ayahs button:hover { background: rgba(255,255,255,.04); }
.q-ayahs button[aria-current="true"] { background: rgba(232,218,204,.13); }
.q-ar { display: block; font: 400 25px/2 "Amiri Quran Fatiha", "Noto Naskh Arabic", serif; text-align: right; direction: rtl; color: #F7F3ED; }
.q-en { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.dial-wrap { width: min(240px, 80%); margin: 18px auto 0; }
#d-needle, #d-north { transform-origin: 100px 100px; transition: transform 400ms var(--ease); }
.dial-meta { display: flex; justify-content: center; gap: 40px; margin-top: 14px; text-align: center; }
.dial-meta strong { display: block; font: 300 28px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.dial-meta small { font-size: 12.5px; color: var(--ink-3); }
.q-compass { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 14px/1 var(--font-ui); cursor: pointer; }

/* ---------- also inside ---------- */
.inside { padding-block: var(--sec); background:
  radial-gradient(60% 60% at 0% 0%, rgba(115,102,91,.22), transparent 70%),
  linear-gradient(180deg, #252624, #2A2A27); border-top: 1px solid var(--line); }
.inside-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.inside-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.inside-list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.inside-list dt { font: 400 22px/1.3 var(--font-display); color: var(--ink); }
.inside-list dd { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
sup a { color: var(--ink-3); text-decoration: none; font-size: .78em; padding-inline: 2px; }

/* ---------- private (on the night photo) ---------- */
.private { position: relative; isolation: isolate; padding-block: var(--sec); }
.private-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.private-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: blur(14px) saturate(.85); transform: scale(1.08); }
.private-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,42,39,.96) 0%, rgba(30,31,29,.80) 40%, rgba(30,31,29,.86) 100%); }
.private-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.private-head p { margin: 22px 0 28px; max-width: 40ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.private-list { margin: 0; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; border: 1px solid var(--glass-border); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 50%), rgba(40,40,37,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 40px 80px -40px rgba(0,0,0,.8); }
.private-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.private-list > div:first-child { border-top: 0; padding-top: 0; }
.private-list > div:last-child { padding-bottom: 0; }
.private-list dt { font: 600 17px/1.4 var(--font-ui); color: var(--ink); }
.private-list dd { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- masjid share ---------- */
.masjid { padding-block: var(--sec); background:
  radial-gradient(60% 70% at 85% 50%, rgba(201,162,122,.16), transparent 70%),
  linear-gradient(180deg, #252624, #2B2A27); }
.masjid-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.masjid-grid p { margin: 22px 0 32px; max-width: 46ch; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.poster-thumb { justify-self: center; display: block; width: min(320px, 90%); aspect-ratio: 210 / 297; padding: 14px; border-radius: 6px; background: #F3F0EA; color: #2A2926; text-decoration: none; transform: rotate(-2deg); box-shadow: 0 50px 80px -40px rgba(0,0,0,.85), 0 10px 20px -10px rgba(0,0,0,.6); transition: transform 300ms var(--ease); }
.poster-thumb:hover { transform: rotate(0deg); }
.poster-thumb-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; height: 100%; border: 1px solid #CFC5B8; border-radius: 3px; padding: 18px; text-align: center; background: radial-gradient(80% 50% at 50% 0%, #fff, transparent 70%), linear-gradient(180deg, #F7F4EF, #EAE3D8); }
.pt-logo svg { width: 150px; height: auto; color: #2A2926; }
.pt-line { font: 400 19px/1.3 var(--font-display); max-width: 16ch; }
.pt-qr { display: flex; gap: 12px; } .pt-qr img { width: 64px; height: 64px; }

/* ---------- FAQ ---------- */
.faq-home { padding-block: var(--sec); background: linear-gradient(180deg, #2B2A27, #252624); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-home .faq summary { min-height: 44px; align-items: center; }
.faq-home .faq summary:hover { color: #fff; }
.faq-home .faq .answer { font-family: var(--font-ui); font-size: 17px; }
.faq-home .faq .answer a { color: var(--ink); }

/* ---------- closing ---------- */
.closing { position: relative; isolation: isolate; padding-block: var(--sec); text-align: center; background:
  radial-gradient(90% 70% at 50% 110%, rgba(201,162,122,.16), transparent 72%),
  linear-gradient(180deg, #252624, #1F201E); }
.closing-mark { width: 64px; margin: 0 auto 28px; color: var(--accent); }
.closing-mark svg { width: 100%; height: auto; }
.closing h2 { font: 300 clamp(38px, 5vw, 68px)/1.06 var(--font-display); letter-spacing: -.02em; color: #F7F3ED; max-width: 14ch; margin-inline: auto; }
.closing p { margin: 20px auto 36px; font-size: 18px; color: var(--ink-2); }
.closing .stores { justify-content: center; }

.notes { padding: 32px 0 48px; background: none; }
.notes ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); max-width: 90ch; }
body.home .notes { background: #1F201E; width: 100%; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }

/* ---------- masjid page ---------- */
body.masjid-page { background-color: #252624; background:
  radial-gradient(50% 40% at 85% 10%, rgba(201,162,122,.16), transparent 70%),
  radial-gradient(50% 50% at 0% 80%, rgba(115,102,91,.2), transparent 70%),
  linear-gradient(180deg, #2B2A27, #1F201E) fixed; }
.masjid-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(56px, 8vw, 112px); }
.masjid-intro h1 { font: 300 clamp(40px, 5vw, 68px)/1.05 var(--font-display); letter-spacing: -.02em; color: #F7F3ED; }
.masjid-intro > p { margin: 22px 0 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.masjid-intro .facts { color: var(--ink-2); max-width: 46ch; }
.print-hint { font-size: 14.5px !important; color: var(--ink-3) !important; }
.poster { aspect-ratio: 210 / 297; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 5%, 56px) clamp(24px, 7%, 64px); border-radius: 6px; background: radial-gradient(80% 40% at 50% 0%, #fff, transparent 70%), linear-gradient(180deg, #F7F4EF, #EAE3D8); color: #2A2926; box-shadow: 0 60px 100px -50px rgba(0,0,0,.9), 0 10px 24px -12px rgba(0,0,0,.6); }
.poster-logo svg { width: min(240px, 60%); height: auto; margin-inline: auto; color: #2A2926; }
.poster-tag { margin: 14px 0 0; font: 600 12px/1.4 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: #554B43; }
.poster-h { margin-top: clamp(18px, 4%, 36px); font: 400 clamp(22px, 2.6vw, 34px)/1.18 var(--font-display); max-width: 18ch; color: #2A2926; }
.poster-list { margin: clamp(14px, 3%, 28px) 0 0; padding: 0; list-style: none; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.5; color: #3A3632; }
.poster-list li { padding: 5px 0; }
.poster-free { margin: clamp(12px, 3%, 24px) 0 0; font-weight: 600; font-size: clamp(14px, 1.3vw, 17px); color: #2A2926; }
.poster-qr { display: flex; justify-content: center; gap: clamp(20px, 6%, 48px); margin-top: auto; padding-top: 20px; }
.poster-qr figure { margin: 0; }
.poster-qr img { width: clamp(100px, 13vw, 160px); height: auto; }
.poster-qr figcaption { margin-top: 8px; font-size: 14px; color: #4A4540; }
.poster-qr strong { display: block; font-size: 16px; color: #2A2926; }
.poster-scan { margin: 14px 0 0; font-size: 13.5px; color: #554B43; }

/* ---------- focus ---------- */
.home :focus-visible, .masjid-page :focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.m-noon :focus-visible, .m-asr :focus-visible, .poster-thumb:focus-visible { outline-color: #554B43; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .hero-phones .device.android { display: none; }
  .hero-phones .device.ios { transform: none; }
}
@media (max-width: 999px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .hero-phones .device.ios { width: min(270px, 100%); }
}
@media (max-width: 760px) {
  .hero { padding-top: 40px; }
  .hero-grid, .moment-grid, .try-grid, .inside-grid, .private-grid, .masjid-grid, .faq-grid, .masjid-main { grid-template-columns: minmax(0, 1fr); }
  .hero-photo img { object-position: 70% 30%; }
  .hero-photo::after { background:
    linear-gradient(180deg, rgba(28,29,27,.72) 0%, rgba(28,29,27,.82) 45%, rgba(28,29,27,.6) 70%, #252624 100%); }
  .hero-copy { padding-bottom: 8px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 56px); }
  .get { margin-top: 32px; }
  .hero-phones { margin-bottom: -64px; }
  .hero-phones .device.ios { width: min(260px, 72vw); }
  .promise { padding-top: 104px; }
  .promise-list { flex-direction: column; gap: 12px; }
  .moment-grid { gap: 48px; }
  .moment .device { width: min(280px, 76vw); }
  .inside-list { grid-template-columns: 1fr; }
  .poster-thumb { width: min(280px, 80%); }
  .masjid-main { gap: 40px; }
}
@media (max-width: 380px) {
  .badge img { height: 46px; } .badge-google img { height: 69px; margin: -11.5px; }
}
@media (prefers-reduced-motion: reduce) { .poster-thumb, .poster-thumb:hover { transform: none; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  body.home::after, body.masjid-page::after { display: none; }
  .private-list { background: #33332F; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- print: the poster alone, on A4 ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body.masjid-page { background: #fff !important; }
  body.masjid-page::after, .masjid-page .site-header, .masjid-page .site-footer, .masjid-page .skip, .masjid-intro { display: none !important; }
  .masjid-main { display: block; padding: 0; width: auto; }
  .poster { box-shadow: none; border-radius: 0; background: #fff; width: 100%; height: 270mm; aspect-ratio: auto; padding: 18mm 14mm; }
  .poster-h { font-size: 30pt; } .poster-list, .poster-free { font-size: 15pt; } .poster-qr img { width: 55mm; }
}

/* solid fallbacks under the sky gradients (contrast holds even if a gradient fails to paint) */
.m-dawn { background-color: #2B2A27; } .m-noon, .m-asr { background-color: #EAE3D9; } .m-dusk { background-color: #4E463E; } .m-night { background-color: #232422; }
