/* firstsaff.com — the First Saff website. Same design language as the app (docs/DESIGN.md): Anek Latin, Saff Blue for
   action, gold for the first row, white sheets on a light grey backdrop, soft radii. Flat: hairlines and tints, no
   heavy shadows. Every animation is decoration only and switches off with prefers-reduced-motion. */
@font-face { font-family: Anek; src: url(fonts/anek-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Anek; src: url(fonts/anek-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Anek; src: url(fonts/anek-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Anek; src: url(fonts/anek-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --blue: #1F6BFF; --blue-pressed: #1859D9; --deep: #1240D8; --tint: #EAF1FF; --tint-2: #DCE7FF;
  --night: #0B1A3D; --night-2: #060C26; --night-line: rgba(255,255,255,.12);
  --gold: #FFD04F; --gold-ink: #7A4F00; --gold-soft: #FFF4D6;
  --ink: #1D1D1F; --ink-2: #6E6E75; --ink-3: #A8A8AD;
  --white: #FFFFFF; --backdrop: #F4F4F4; --tile: #F0F0F0; --hairline: #E6E6E6;
  --green: #1FA35B; --green-soft: #E5F6EC; --orange: #FF8A1F; --orange-soft: #FFF0E0; --purple: #7B5CFF; --purple-soft: #F0ECFF;
  --teal: #12A594; --teal-soft: #E0F6F2;
  --r-sheet: 28px; --r-card: 20px; --r-btn: 14px; --r-chip: 12px;
  --wrap: 1180px; --gutter: 20px;
  --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.4,.5,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Anek, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
b, strong { font-weight: 600; }
p { margin: 0 0 14px; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; letter-spacing: -.015em; }
.ar { font-family: 'Geeza Pro', 'Noto Naskh Arabic', 'Segoe UI', serif; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons */
.btn { --bg: var(--blue); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 22px;
  border-radius: var(--r-btn); background: var(--bg); color: var(--fg); font: 600 17px/1 Anek, sans-serif; border: 0; cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.btn:hover { color: var(--fg); background: var(--blue-pressed); }
.btn:active { transform: scale(.96); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.white { --bg: #fff; --fg: var(--blue); } .btn.white:hover { background: var(--tint); }
.btn.ghost { --bg: rgba(255,255,255,.12); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); } .btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn.tinted { --bg: var(--tint); --fg: var(--blue); } .btn.tinted:hover { background: var(--tint-2); }
.btn.dark { --bg: var(--ink); --fg: #fff; } .btn.dark:hover { background: #000; }
.btn.sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* ---------- top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s, color .3s; border-bottom: 1px solid transparent; color: #fff; }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 21px; letter-spacing: -.02em; flex: none; }
.brand:hover { color: inherit; }
.brand svg { width: 34px; height: 34px; }
.bar .brand .mk-b, .bar.solid .brand .mk-w { display: none; }
.bar.solid .brand .mk-b { display: block; }
.bar nav a.go { display: none; }
.bar nav { display: flex; gap: 4px; margin-left: auto; }
.bar nav a { color: inherit; opacity: .82; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 10px; transition: opacity .2s, background-color .2s; }
.bar nav a:hover { opacity: 1; background: rgba(255,255,255,.12); }
.bar .btn { margin-left: 8px; }
.bar.solid { background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom-color: var(--hairline); color: var(--ink); }
.bar.solid nav a:hover { background: var(--tile); }
.bar.solid .btn.white { --bg: var(--blue); --fg: #fff; } .bar.solid .btn.white:hover { background: var(--blue-pressed); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: inherit; cursor: pointer; }
.bar.solid .menu-btn { background: var(--tile); }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero */
.hero { position: relative; background: linear-gradient(180deg, #2373FF 0%, var(--blue) 45%, var(--deep) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.hero .rows { position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none; }
.hero .rows svg { width: 100%; height: 100%; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: min(900px, 100svh); padding-top: 120px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 5px 8px; border-radius: 999px; background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-weight: 500; font-size: 15px; }
.eyebrow i { display: inline-grid; place-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: var(--night); font-style: normal; font-weight: 600; font-size: 13px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: .96; letter-spacing: -.035em; margin: 24px 0 24px; font-weight: 600; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
.hero h1 em { font-style: normal; color: var(--gold); }
@keyframes rise { to { transform: none; } }
.hero .lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: rgba(255,255,255,.86); max-width: 540px; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; color: rgba(255,255,255,.75); }
.soon .store { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 6px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: #fff; font-weight: 500; }
.soon .store svg { width: 18px; height: 18px; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 640px; }
.stage .tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.stage .halo { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0)); z-index: -1; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 16px 11px 12px;
  box-shadow: 0 0 0 1px rgba(11,26,61,.06); font-size: 15px; line-height: 1.2; white-space: nowrap; animation: float 6s ease-in-out infinite; animation-delay: var(--f, 0s); }
.chip .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 22px; height: 22px; }
.chip b { display: block; font-size: 16px; }
.chip small { color: var(--ink-2); font-size: 14px; }
.chip.c1 { left: -4%; top: 22%; }
.chip.c2 { right: -6%; top: 40%; --f: -2s; }
.chip.c3 { left: 2%; bottom: 16%; --f: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip-in { opacity: 0; scale: .9; animation: pop .7s var(--spring) forwards; animation-delay: var(--d, 900ms); }
@keyframes pop { to { opacity: 1; scale: 1; } }

/* ---------- phone */
.phone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 430 / 932; border-radius: calc(var(--w) * .16); background: #0E1424; padding: calc(var(--w) * .032);
  box-shadow: inset 0 0 0 1.5px #2A3350, 0 0 0 1px rgba(11,26,61,.08); flex: none; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #fff; isolation: isolate; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; z-index: 4; top: calc(var(--w) * .028); left: 50%; translate: -50% 0; width: 31%; height: calc(var(--w) * .085); border-radius: 999px; background: #000; }
.phone .status { position: absolute; z-index: 3; inset: 0 0 auto; height: calc(var(--w) * .14); display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--w) * .085) 0 calc(var(--w) * .1); font-weight: 600; font-size: calc(var(--w) * .047); color: #000; pointer-events: none; }
.phone .status svg { height: calc(var(--w) * .038); width: auto; }
.phone .status span:last-child { display: flex; gap: calc(var(--w) * .014); align-items: center; }
.phone.lg { --w: 330px; }

/* ---------- stats band */
.facts { background: var(--night); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div.f { padding: 34px 24px 30px; border-left: 1px solid var(--night-line); }
.facts div.f:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: clamp(36px, 4vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts b em { font-style: normal; color: var(--gold); }
.facts .f > span { display: block; margin-top: 8px; color: #A9B9E3; font-size: 16px; line-height: 1.3; }

/* ---------- sections */
section { position: relative; }
.sec { padding: 120px 0; }
.sec.grey { background: var(--backdrop); }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--blue); font-weight: 600; font-size: 14px; padding: 6px 13px 5px; border-radius: 999px; letter-spacing: .01em; }
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag.dark { background: rgba(255,255,255,.1); color: #C9D6FF; }
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 18px; }
h2 em { font-style: normal; color: var(--blue); }
h3 { font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-2); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- live prayer times */
.live { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: stretch; }
.panel { background: var(--white); border-radius: var(--r-sheet); padding: 28px; box-shadow: inset 0 0 0 1px var(--hairline); }
.next { background: var(--blue); color: #fff; box-shadow: none; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.next .where { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; color: rgba(255,255,255,.9); }
.next .where svg { width: 18px; height: 18px; }
.next .hijri { font-size: 15px; color: rgba(255,255,255,.7); margin-top: 4px; }
.next .label { margin-top: auto; padding-top: 40px; font-size: 18px; color: rgba(255,255,255,.85); }
.next .count { font-size: clamp(56px, 7vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 22px; }
.next .row { display: flex; flex-wrap: wrap; gap: 10px; }
.next .btn.white { height: 46px; font-size: 16px; }
.next .arch { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; opacity: .1; pointer-events: none; }
.next .bar-line { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: rgba(255,255,255,.18); }
.next .bar-line i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s linear; }
.times { display: grid; gap: 6px; }
.times .t { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; font-size: 19px; transition: background-color .4s, color .4s; }
.times .t .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tile); }
.times .t .ic svg { width: 20px; height: 20px; }
.times .t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.times .t.past { color: var(--ink-3); }
.times .t.on { background: var(--tint); color: var(--blue); }
.times .t.on .ic { background: var(--blue); color: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.opts label { font-size: 14px; color: var(--ink-2); }
.select { appearance: none; -webkit-appearance: none; font: 500 15px Anek, sans-serif; color: var(--ink); background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E75' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 0; border-radius: 10px; padding: 9px 34px 8px 12px; cursor: pointer; max-width: 100%; }
.seg { display: inline-flex; background: var(--tile); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { font: 500 15px Anek, sans-serif; border: 0; background: transparent; padding: 7px 14px 6px; border-radius: 9px; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hairline); }
.qibla-mini { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--teal-soft); }
.qibla-mini svg { width: 64px; height: 64px; flex: none; }
.qibla-mini .needle { transform-origin: 32px 32px; transition: transform 1.4s var(--spring); }
.qibla-mini b { display: block; font-size: 18px; }
.qibla-mini span { font-size: 15px; color: #0B6E62; }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ---------- story (sticky phone) */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story .sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.story .stack { position: relative; }
.story .stack .screen img { opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story .stack .screen img.on { opacity: 1; transform: none; }
.story .dots { position: absolute; right: -36px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.story .dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--hairline); transition: height .4s var(--spring), background-color .3s; }
.story .dots i.on { height: 28px; background: var(--blue); }
.steps { padding: 18vh 0 22vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step .num { font-weight: 600; color: var(--blue); font-size: 15px; letter-spacing: .04em; }
.step h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.025em; margin: 12px 0 14px; }
.step p { font-size: 19px; color: var(--ink-2); max-width: 460px; }
.step ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step li { display: inline-flex; align-items: center; gap: 7px; background: var(--tile); border-radius: 10px; padding: 7px 12px 6px; font-size: 15px; font-weight: 500; }
.step li svg { width: 16px; height: 16px; }
.step .phone-m { display: none; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-sheet); background: var(--white); padding: 28px; box-shadow: inset 0 0 0 1px var(--hairline); min-height: 280px;
  display: flex; flex-direction: column; isolation: isolate; transition: transform .5s var(--ease); }
.cell::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31,107,255,.07), transparent 60%); }
.cell:hover::before { opacity: 1; }
.cell h3 { font-size: 23px; margin-top: auto; padding-top: 22px; }
.cell p { color: var(--ink-2); font-size: 17px; margin: 0; }
.cell.w2 { grid-column: span 2; } .cell.w3 { grid-column: span 3; } .cell.w4 { grid-column: span 4; }
.cell.blue { background: var(--blue); color: #fff; box-shadow: none; } .cell.blue p { color: rgba(255,255,255,.82); }
.cell.night { background: var(--night); color: #fff; box-shadow: none; } .cell.night p { color: #A9B9E3; }
.cell.gold { background: var(--gold-soft); box-shadow: none; }
.cell.blue::before, .cell.night::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.1), transparent 60%); }

.notif { display: grid; gap: 10px; }
.notif .n { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.notif .n .ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.notif .n .ic svg { width: 22px; height: 22px; }
.notif .n b { display: block; font-size: 16px; }
.notif .n small { font-size: 14px; opacity: .8; }
.notif .n:nth-child(2) { opacity: .7; scale: .96; }
.notif .n:nth-child(3) { opacity: .4; scale: .92; }
.ring { animation: ring 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { rotate: 0deg; } 75% { rotate: 14deg; } 80% { rotate: -12deg; } 85% { rotate: 8deg; } 90% { rotate: -4deg; } }

.compass { width: 190px; height: 190px; margin: 0 auto; }
.compass .nd { transform-origin: 100px 100px; animation: seek 7s var(--ease) infinite; }
@keyframes seek { 0% { rotate: -40deg; } 30% { rotate: 301deg; } 38% { rotate: 286deg; } 44%, 100% { rotate: 291deg; } }

.marquee { position: relative; overflow: hidden; margin: 0 -28px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 8px; width: max-content; animation: slide 36s linear infinite; padding: 4px 0; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 42s; }
.marquee + .marquee { margin-top: 8px; }
.marquee span { display: inline-flex; align-items: center; gap: 8px; background: var(--tile); border-radius: 12px; padding: 9px 14px 8px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.marquee span i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
@keyframes slide { to { transform: translateX(-50%); } }

.apps { display: flex; gap: 10px; flex-wrap: wrap; }
.apps span { display: inline-flex; align-items: center; gap: 8px; background: var(--tile); border-radius: 12px; padding: 10px 14px 9px; font-weight: 500; font-size: 16px; }
.apps span i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
.walk { margin-top: 18px; display: grid; gap: 8px; }
.walk div { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.walk .ln { flex: 1; height: 8px; border-radius: 4px; background: var(--tile); overflow: hidden; }
.walk .ln i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); transition: width 1.6s var(--ease); }
.in .walk .ln i { width: var(--w); }

.jumuah { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jumuah div { background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 1px var(--night-line); }
.jumuah small { color: #A9B9E3; font-size: 14px; display: block; }
.jumuah b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }

.offline { display: flex; align-items: center; gap: 14px; }
.offline .sig { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.offline .sig i { width: 7px; border-radius: 2px; background: var(--hairline); }
.offline .sig i:nth-child(1) { height: 25%; background: var(--ink-3); } .offline .sig i:nth-child(2) { height: 50%; } .offline .sig i:nth-child(3) { height: 75%; } .offline .sig i:nth-child(4) { height: 100%; }
.offline .ok { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: #0F7A40; font-weight: 600; font-size: 15px; padding: 6px 12px 5px; border-radius: 999px; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: 14px; }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: rgba(122,79,0,.06); color: var(--gold-ink); font-weight: 500; }
.cal span.h { background: var(--gold); color: var(--night); font-weight: 600; }
.cal span.w { background: transparent; color: var(--ink-3); font-size: 12px; aspect-ratio: auto; padding-bottom: 2px; }

.fund { display: grid; gap: 10px; }
.fund .meter { height: 10px; border-radius: 5px; background: var(--tile); overflow: hidden; }
.fund .meter i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 5px; transition: width 1.8s var(--ease) .2s; }
.in .fund .meter i { width: 64%; }
.fund .checks { display: flex; flex-wrap: wrap; gap: 6px; }
.fund .checks span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; background: var(--green-soft); color: #0F7A40; padding: 5px 10px 4px; border-radius: 999px; }

/* ---------- the first row */
.saff { background: var(--night); color: #fff; overflow: hidden; }
.saff .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.saff .lede { color: #B9C6EA; }
.saff .word { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 8px 0 12px; }
.saff .word .ar { font-size: 84px; line-height: 1.15; color: var(--gold); }
.saff .word span { font-size: 22px; color: #A9B9E3; }
.hall { position: relative; background: rgba(255,255,255,.04); border-radius: var(--r-sheet); padding: 26px; box-shadow: inset 0 0 0 1px var(--night-line); }
.hall svg { width: 100%; height: auto; }
.hall circle { transition: fill .5s ease, r .5s var(--spring); }
.hall .cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; color: #8EA0D0; }
.quote { margin-top: 28px; border-left: 3px solid var(--gold); padding: 2px 0 2px 20px; }
.quote p { font-size: 21px; line-height: 1.45; font-weight: 500; margin-bottom: 8px; color: #fff; }
.quote cite { font-style: normal; font-size: 15px; color: #A9B9E3; }

/* ---------- community */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how { background: var(--white); border-radius: var(--r-sheet); padding: 28px; box-shadow: inset 0 0 0 1px var(--hairline); display: flex; flex-direction: column; gap: 14px; }
.how .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.how .ic svg { width: 30px; height: 30px; }
.how h3 { margin: 6px 0 0; }
.how p { color: var(--ink-2); margin: 0; font-size: 17px; }
.how .mini { margin-top: auto; background: var(--backdrop); border-radius: 16px; padding: 14px; font-size: 15px; display: grid; gap: 8px; }
.how .mini .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.how .mini .r span { color: var(--ink-2); }
.vote { display: flex; gap: 8px; }
.vote button { flex: 1; height: 40px; border: 0; border-radius: 12px; font: 600 15px Anek, sans-serif; cursor: pointer; transition: transform .25s var(--spring), background-color .2s, color .2s; }
.vote button:active { transform: scale(.95); }
.vote .yes { background: var(--green-soft); color: #0F7A40; } .vote .no { background: var(--tile); color: var(--ink-2); }
.vote button[aria-pressed=true].yes { background: var(--green); color: #fff; }
.vote button[aria-pressed=true].no { background: var(--ink); color: #fff; }
.paste { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-2); font-size: 14px; overflow: hidden; white-space: nowrap; }
.paste .caret { width: 2px; height: 18px; background: var(--blue); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.board { display: grid; gap: 6px; }
.board .r b { font-variant-numeric: tabular-nums; }
.board .me { color: var(--blue); }

/* ---------- privacy */
.private { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.private .big { background: var(--night); color: #fff; border-radius: var(--r-sheet); padding: 40px; position: relative; overflow: hidden; }
.private .big h2 { color: #fff; }
.private .big .lede { color: #B9C6EA; }
.private .big .shield { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .14; }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promise div { background: var(--backdrop); border-radius: var(--r-card); padding: 22px; }
.promise b { display: block; font-size: 19px; margin: 12px 0 4px; }
.promise span { color: var(--ink-2); font-size: 16px; line-height: 1.4; display: block; }
.promise .ic { width: 42px; height: 42px; border-radius: 13px; background: #fff; display: grid; place-items: center; }
.promise .ic svg { width: 24px; height: 24px; }

/* ---------- for masjids */
.masjids { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 4px; }
.list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--hairline); }
.list li:first-child { border-top: 0; }
.list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.list .ic svg { width: 22px; height: 22px; }
.list b { display: block; font-size: 19px; }
.list span { color: var(--ink-2); font-size: 16px; }
.ticket { position: relative; background: var(--white); border-radius: var(--r-sheet); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; max-width: 460px; margin-left: auto; }
.ticket .top { background: var(--blue); color: #fff; padding: 26px 28px; }
.ticket .top small { display: block; opacity: .8; font-size: 15px; }
.ticket .top b { display: block; font-size: 28px; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -.02em; }
.ticket .mid { padding: 22px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ticket .mid small { display: block; color: var(--ink-2); font-size: 14px; }
.ticket .mid b { font-size: 18px; }
.ticket .cut { position: relative; border-top: 2px dashed var(--hairline); margin: 0 18px; }
.ticket .cut::before, .ticket .cut::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--backdrop); box-shadow: inset 0 0 0 1px var(--hairline); }
.ticket .cut::before { left: -31px; } .ticket .cut::after { right: -31px; }
.ticket .bot { padding: 22px 28px 26px; display: flex; align-items: center; gap: 20px; }
.ticket .qr { width: 96px; height: 96px; flex: none; }
.ticket .bot span { color: var(--ink-2); font-size: 15px; }
.ticket .bot b { display: block; color: var(--ink); font-size: 17px; }
.sec.grey .ticket .cut::before, .sec.grey .ticket .cut::after { background: var(--backdrop); }

/* ---------- faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--tile); flex: none; transition: background-color .3s, rotate .4s var(--spring); }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 1px; translate: -50% -50%; }
.faq summary .pm::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.faq details[open] summary .pm { background: var(--blue); rotate: 180deg; }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { rotate: 0deg; }
.faq .a { overflow: hidden; }
.faq .a p { color: var(--ink-2); font-size: 18px; max-width: 720px; padding-bottom: 24px; margin: 0; }

/* ---------- final call */
.final { padding: 0 0 120px; }
.final .card { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; background: var(--blue); color: #fff; padding: 80px 40px; text-align: center; }
.final .card .rows { position: absolute; inset: 0; z-index: -1; opacity: .8; }
.final h2 { color: #fff; margin: 22px auto 16px; max-width: 760px; }
.final .lede { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 34px; }
.final .cta { justify-content: center; }
.final .app-icon { width: 96px; height: 96px; margin: 0 auto; animation: float 6s ease-in-out infinite; }

/* ---------- footer */
footer { background: var(--backdrop); padding: 72px 0 40px; font-size: 16px; }
footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer .brand { color: var(--ink); }
footer p { color: var(--ink-2); max-width: 340px; margin-top: 14px; }
footer h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 14px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer ul a { color: var(--ink); } footer ul a:hover { color: var(--blue); }
footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; }
footer .bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- simple pages (privacy, support, brand, delete account, 404) */
.page-hero { background: var(--blue); color: #fff; padding: 150px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .rows { position: absolute; inset: 0; z-index: -1; opacity: .7; }
.page-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 16px 0 14px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 20px; max-width: 640px; margin: 0; }
.doc { max-width: 780px; margin: 0 auto; padding: 72px var(--gutter) 110px; }
.doc h2 { font-size: 28px; letter-spacing: -.02em; margin: 44px 0 10px; line-height: 1.2; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #3F3F45; font-size: 18px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; } .doc li { margin-bottom: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .note { background: var(--tint); border-radius: 18px; padding: 20px 22px; margin: 26px 0; }
.doc .note p:last-child { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.cards a, .cards div { display: block; background: var(--backdrop); border-radius: 20px; padding: 22px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.cards a:hover { background: var(--tint); }
.cards b { display: block; font-size: 19px; margin-bottom: 4px; }
.cards span { color: var(--ink-2); font-size: 16px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0; }
.swatches div { border-radius: 16px; padding: 70px 14px 12px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatches b { display: block; font-size: 15px; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
.logos figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); }
.logos .art { display: grid; place-items: center; height: 200px; padding: 30px; }
.logos .art img { max-height: 90px; width: auto; }
.logos figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; background: #fff; border-top: 1px solid var(--hairline); }
.logos figcaption a { font-weight: 600; text-decoration: none; }

/* ---------- responsive */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 112px; min-height: 0; gap: 20px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta, .soon { justify-content: center; }
  .stage { min-height: 600px; }
  .story { grid-template-columns: 1fr; }
  .story .sticky { display: none; }
  .steps { padding: 0; display: grid; gap: 64px; }
  .step { min-height: 0; opacity: 1; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
  .step .phone-m { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell.w2, .cell.w3, .cell.w4 { grid-column: span 1; }
  .cell.wide-m { grid-column: span 2; }
  .saff .wrap, .masjids, .live, .private { grid-template-columns: 1fr; }
  .ticket { margin: 0 auto; }
  .trio { grid-template-columns: 1fr; }
  footer .top { grid-template-columns: 1fr 1fr; }
  footer .top > div:first-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .bar nav, .bar .wrap > .btn { display: none; }
  .menu-btn { display: block; }
  .menu-open .bar { background: #fff; color: var(--ink); border-bottom-color: var(--hairline); }
  .menu-open .bar nav { display: grid; position: fixed; inset: 68px 0 auto; background: #fff; padding: 12px var(--gutter) 24px; gap: 2px; border-bottom: 1px solid var(--hairline); animation: fadeUp .35s var(--ease); }
  .menu-open .bar nav a { opacity: 1; font-size: 20px; padding: 14px 4px; border-radius: 0; border-top: 1px solid var(--tile); }
  .menu-open .bar nav a.go { display: block; color: var(--blue); font-weight: 600; }
  .sec { padding: 84px 0; }
  .head { margin-bottom: 40px; }
  .stage { min-height: 560px; }
  .phone { --w: 260px; } .phone.lg { --w: 270px; }
  .chip { font-size: 14px; padding: 9px 12px 8px 9px; gap: 9px; border-radius: 15px; }
  .chip .ic { width: 32px; height: 32px; border-radius: 10px; } .chip b { font-size: 15px; } .chip small { font-size: 13px; }
  .chip.c1 { left: -2%; top: 12%; } .chip.c2 { right: -3%; top: 46%; } .chip.c3 { left: 0; bottom: 10%; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .facts div.f { padding: 26px 0 24px 18px; border-top: 1px solid var(--night-line); }
  .facts div.f:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts div.f:nth-child(-n+2) { border-top: 0; }
  .step { grid-template-columns: 1fr; text-align: left; }
  .step .phone-m { margin: 8px auto 0; }
  .bento { grid-template-columns: 1fr; }
  .cell.wide-m { grid-column: span 1; }
  .cell { min-height: 0; }
  .panel { padding: 22px; }
  .promise { grid-template-columns: 1fr; }
  .private .big { padding: 30px 24px; }
  .saff .word .ar { font-size: 64px; }
  .final .card { padding: 60px 22px; border-radius: 28px; }
  .final { padding-bottom: 84px; }
  .ticket .mid { padding: 20px 22px; } .ticket .top { padding: 22px; } .ticket .bot { padding: 20px 22px 22px; }
  .cards, .logos { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  footer .top { grid-template-columns: 1fr 1fr; }
  .btn { height: 52px; }
  .cta .btn { flex: 1 1 220px; }
}
@media (max-width: 380px) {
  .phone { --w: 236px; }
  .chip.c2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
