/* balum.app homepage, v2 (Sel, 2026-10-21): ivory, Apple/Google-store style, real 3D
   phones (rendered stills from balum-ads src/site/PhoneStill.jsx; re-render with
   balum-ads capture/site-phones.sh). Nothing moves with the scroll: the hero phones
   rise once on load and each block fades up once as it arrives (IntersectionObserver),
   so phones cannot jitter on mobile. Shared tokens and RTL rules live in site.css. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.home {
  --bg: #F6F1E7; --bg2: #FBF8F1; --card: #FFFFFF; --line: rgba(22, 41, 74, 0.10);
  --ink: #16294A; --ink2: rgba(22, 41, 74, 0.68); --ink3: rgba(22, 41, 74, 0.48);
  --gold: #BE8A2C; --star: #E3A52F;
  --hero-bg: radial-gradient(1100px 700px at 75% 40%, #FFFFFF 0%, #F6F1E7 55%, #EDE5D6 100%);
  --quote: 'Fraunces', Georgia, serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
html[dir="rtl"] body.home { --quote: var(--serif); }
.home .wrap { max-width: 1180px; padding: 0 28px; }
.home .skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.home .skip-link:focus { top: 12px; }
.home .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.home em { font-style: normal; color: var(--gold); }

/* ---- nav ------------------------------------------------------------------ */
.home-nav { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 231, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.home-nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.home-wm { font-weight: 700; font-size: 15px; letter-spacing: 0.32em; color: var(--ink); }
.home-wm span { color: var(--gold); letter-spacing: 0; }
.home-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; font-weight: 500; color: var(--ink2); }
.home-links a:hover { color: var(--ink); }
.home-nav-end { display: flex; align-items: center; gap: 12px; }
.home-nav .lang-switch > summary { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.6); min-height: 40px; }
.home-nav .lang-switch > summary:hover { background: #fff; }
.home-nav .ls-menu { background: #fff; border-color: var(--line); box-shadow: 0 24px 50px -24px rgba(22, 41, 74, 0.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home-nav .ls-opt { color: var(--ink); }
.home-nav .ls-opt:hover, .home-nav .ls-opt:focus-visible { background: var(--bg); }
.home-nav .ls-opt[aria-current] { color: var(--gold); }
.home-cta { background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.home-cta:hover { background: #0E1D38; }

/* ---- hero ----------------------------------------------------------------- */
.home-hero { background: var(--hero-bg); padding: 64px 0 84px; overflow: hidden; }
.home-hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: var(--ink3); text-transform: uppercase; margin-bottom: 22px; }
.home h1 { font-size: clamp(40px, 4.7vw, 66px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; margin-bottom: 26px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink2); max-width: 560px; margin-bottom: 34px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 18px 22px; border-radius: 14px; min-width: 250px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.78; font-weight: 500; line-height: 1.3; }
.store b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.store .stat { margin-inline-start: auto; padding-inline-start: 16px; border-inline-start: 1px solid currentColor; text-align: end; }
.store .stat b { font-size: 17px; white-space: nowrap; }
.store.dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(22, 41, 74, 0.6); }
.store.dark .stat { border-inline-start-color: rgba(255, 255, 255, 0.25); }
.store.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.store.light .stat { border-inline-start-color: var(--line); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; list-style: none; font-size: 15px; color: var(--ink2); }
.trust li + li::before { content: "•"; margin-inline-end: 18px; color: var(--ink3); }
.trust strong { color: var(--ink); font-weight: 700; }
.langs { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.flags { display: flex; }
.flags a { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg2); transition: transform 0.2s ease; position: relative; }
.flags a + a { margin-inline-start: -7px; }
.flags a:hover, .flags a:focus-visible { transform: translateY(-3px); z-index: 1; outline: none; }
.flags svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.langs span { color: var(--ink2); font-size: 15px; }

.p3d { display: block; width: 100%; height: auto; }
.hero-art { position: relative; isolation: isolate; }
.hero-art .p3d { width: min(380px, 92%); margin-inline-start: auto; position: relative; animation: phoneIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.hero-art .p3d.back { position: absolute; width: 66%; inset-inline-end: 44%; top: 10%; z-index: -1; animation-delay: 0.3s; }
@keyframes phoneIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* ---- feature sections ----------------------------------------------------- */
.feat { padding: 120px 0; border-top: 1px solid var(--line); }
.feat.alt { background: var(--bg2); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.tag i { font-style: normal; background: var(--gold); color: #fff; letter-spacing: 0.08em; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.home h2 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 20px; }
.sub { font-size: 19px; line-height: 1.6; color: var(--ink2); max-width: 600px; }
.feat-head { max-width: 760px; margin-bottom: 64px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.trio figure:nth-child(2) { margin-top: 56px; }
.trio .p3d { max-width: 330px; margin: 0 auto; }
/* Ummah: how it stays kind, as a row of quiet chips under its phones */
/* A thin, slowly moving strip between two hairlines (Sel 2026-11-03: the pill rows
   looked cheap). The list is written twice and the row moves by half its width,
   so the loop has no seam; the copy is hidden from screen readers and the
   keyboard. Pauses on hover and focus; still and centred for reduced motion. */
.ticker { position: relative; overflow: hidden; max-width: 1040px; margin: 56px auto 0; padding: 15px 0; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tk-row { display: flex; width: max-content; animation: tk var(--tk-dur, 44s) linear infinite; }
.ticker:hover .tk-row, .ticker:focus-within .tk-row { animation-play-state: paused; }
.tk-row ul { display: flex; flex-shrink: 0; list-style: none; margin: 0; padding: 0; }
.tk-row li { display: flex; align-items: center; white-space: nowrap; font-size: 14.5px; color: var(--ink2); letter-spacing: 0.01em; }
.tk-row li::before { content: "\2726"; color: var(--gold); font-size: 9px; margin: 0 26px; opacity: 0.9; }
.tk-links li a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.tk-links li a:hover, .tk-links li a:focus-visible { text-decoration-color: var(--gold); }
@keyframes tk { to { transform: translateX(-50%); } }
@keyframes tk-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .tk-row { animation-name: tk-rtl; }
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .tk-row { width: auto; animation: none; justify-content: center; }
  .tk-row ul { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .tk-row ul[aria-hidden] { display: none; }
}
.home figcaption { text-align: center; margin-top: 22px; }
.home figcaption b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.home figcaption span { color: var(--ink2); font-size: 15px; line-height: 1.5; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .phones { display: flex; gap: 22px; justify-content: center; }
.split .phones .p3d { width: 48%; max-width: 300px; }
.split .phones .p3d:nth-child(2) { margin-top: 70px; }
.points { list-style: none; margin-top: 36px; display: grid; gap: 22px; }
.points li { padding-inline-start: 34px; position: relative; font-size: 16px; line-height: 1.55; color: var(--ink2); }
.points li b { color: var(--ink); font-weight: 600; display: block; font-size: 17px; }
.points li::before { content: "✦"; position: absolute; inset-inline-start: 0; top: 1px; color: var(--gold); }
.rest { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.rest figcaption b { font-size: 16px; }
.rest figcaption span { font-size: 13.5px; }

/* ---- reviews -------------------------------------------------------------- */
/* The three figures share ONE card, split by hairlines, so they never stack as
   three uneven boxes on a phone (Sel 2026-11-03). Side by side at every width:
   number beside its label on wide screens, above it on phones. */
.rating-row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-bottom: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.rating { padding: 20px 22px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.rating + .rating { border-inline-start: 1px solid var(--line); }
.rating b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.st { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.rating small { display: block; color: var(--ink2); font-size: 13px; line-height: 1.4; }
.reviews { columns: 3; column-gap: 22px; }
.review { break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 22px; margin-bottom: 22px; }
.review blockquote { font-family: var(--quote); font-size: 21px; line-height: 1.4; margin: 14px 0 10px; letter-spacing: -0.01em; }
.review blockquote[lang="ar"] { font-family: 'Amiri', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.6; }
html[dir="rtl"] .review blockquote[dir="ltr"] { text-align: start; }
.review .tr { color: var(--ink2); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.review .who b { color: var(--ink); font-weight: 600; }
.review .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(190, 138, 44, 0.16); color: var(--gold); font-weight: 700; font-size: 12px; }
.review .src { margin-inline-start: auto; font-size: 12.5px; color: var(--ink3); text-align: end; }
/* a review needs no translation on a page in its own language */
html:lang(en) .review[data-q="en"] .tr, html:lang(ar) .review[data-q="ar"] .tr, html:lang(id) .review[data-q="id"] .tr { display: none; }

/* ---- the invitation + footer ---------------------------------------------- */
.home-end { text-align: center; padding: 130px 0; background: var(--hero-bg); border-top: 1px solid var(--line); }
.home-end .sub { margin: 0 auto 36px; }
.home-end .stores, .home-end .langs, .home-end .trust { justify-content: center; }
.home-end .note { margin-top: 22px; font-size: 15px; color: var(--ink2); }
.home-end .note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.home-foot { background: var(--bg2); border-top: 1px solid var(--line); padding: 56px 0 40px; text-align: center; color: var(--ink2); }
.home-foot .home-wm { display: inline-block; margin-bottom: 8px; }
.home-foot .foot-tag { font-size: 15px; margin-bottom: 26px; }
.home-foot .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 14.5px; margin-bottom: 26px; }
.home-foot .foot-links a:hover { color: var(--ink); }
.home-foot .lang-foot { justify-content: center; margin: 0 0 22px; }
.home-foot .lang-foot a { color: var(--ink2); opacity: 1; }
.home-foot .lang-foot a:hover, .home-foot .lang-foot a[aria-current] { color: var(--gold); }
.home-foot .foot-copy { font-size: 13px; color: var(--ink3); }

/* ---- reveal: once, never scroll-linked ------------------------------------ */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-art .p3d { animation: none; }
  .store, .flags a { transition: none; }
}

/* ---- right to left -------------------------------------------------------- */
html[dir="rtl"] .home h1, html[dir="rtl"] .home h2 { line-height: 1.35; }
html:lang(ur) .home h1, html:lang(ur) .home h2 { line-height: 1.7; }
html[dir="rtl"] .home .eyebrow, html[dir="rtl"] .home .tag { text-transform: none; }

/* ---- tablet + phone ------------------------------------------------------- */
@media (max-width: 960px) {
  .home-links { display: none; }
  .home-nav-end { margin-inline-start: auto; }
  .rest { grid-template-columns: repeat(3, 1fr); }
  .reviews { columns: 2; }
}
@media (max-width: 760px) {
  .home .wrap { padding: 0 20px; }
  .home-nav .wrap { height: 60px; gap: 12px; }
  .home-cta { padding: 9px 14px; font-size: 14px; }
  .home-hero { padding: 40px 0 56px; }
  .home-hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .home h1 { font-size: 9.3vw; }
  html[dir="rtl"] .home h1 { font-size: 8.4vw; }
  .lede { font-size: 17px; margin-bottom: 26px; }
  .trust { gap: 6px 16px; }
  .trust li + li::before { content: none; }
  .trust li { position: relative; }
  .store { min-width: 0; width: 100%; }
  .hero-art { display: flex; justify-content: center; }
  .hero-art .p3d { width: 70%; margin: 0; }
  .hero-art .p3d.back { width: 52%; inset-inline-end: auto; inset-inline-start: 2%; top: 8%; }
  .feat { padding: 76px 0; }
  .feat-head { margin-bottom: 40px; }
  .sub { font-size: 17px; }
  /* Swipe rows move sideways only. overflow-x:auto alone silently makes the
     other axis scrollable too, and the phones' fade-in offset overflowed it by
     16px, so a not-quite-horizontal swipe nudged the row up and down. A vertical
     swipe now goes to the page; a sideways one stops at the row's ends. */
  .js .trio > .rv, .js .rest > .rv { transform: none; }   /* fade only: nothing slides inside a swipe row */
  .trio, .rest { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; gap: 16px; margin-inline: -20px; padding: 0 20px 12px; scrollbar-width: none; }
  .trio::-webkit-scrollbar, .rest::-webkit-scrollbar { display: none; }
  .trio figure { flex: 0 0 68%; scroll-snap-align: center; margin-top: 0 !important; }
  .rest figure { flex: 0 0 44%; scroll-snap-align: start; }
  .ticker { margin-top: 36px; padding: 13px 0; }
  .tk-row li { font-size: 13.5px; }
  .tk-row li::before { margin: 0 20px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .phones { order: -1; }
  .reviews { columns: 1; }
  .rating { flex-direction: column; justify-content: flex-start; gap: 7px; padding: 18px 6px; text-align: center; }
  .rating b { font-size: 28px; }
  .rating .st { font-size: 11px; letter-spacing: 1px; }
  .rating small { font-size: 11.5px; }
  .rating small br { display: none; }   /* the label wraps by itself; the space before <br> keeps the words apart */
  .home-end { padding: 84px 0; }
}
.flags a { overflow: hidden; }

/* ==== the night at the top (Sel, 2026-10-26) ===============================
   The hero and the prayer arc wear the old cinematic night (stars, a crescent,
   a dark sky); everything below keeps the ivory v2 design. The sky, the live
   download count and the prayer arc are drawn by /assets/home-sky.js. */
.home-hero.night { position: relative; color: #F2ECDF;
  background: radial-gradient(900px 600px at 78% 60%, rgba(70, 90, 150, 0.22), transparent 70%),
              linear-gradient(180deg, #070C1A 0%, #0C1328 58%, #12183C 100%); }
.hero-night { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.home-hero.night .wrap { position: relative; z-index: 1; }
.home-hero.night .eyebrow { color: #E8C778; }
.home-hero.night h1 { font-family: var(--quote); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: #F7F1E4; }
.home-hero.night h1 em { color: #E8C778; }
.home-hero.night .lede { color: rgba(232, 236, 246, 0.78); }
.hero-stores { display: flex; gap: 14px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px;
  border-radius: 14px; font-family: var(--ui); font-weight: 600; font-size: 17px; color: #F4EFE3; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s ease, transform 0.2s ease; }
.store-btn:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.hero-trust { font-size: 15px; letter-spacing: 0.04em; color: rgba(232, 236, 246, 0.64); margin: 20px 0 0; }
/* the four numbers: serif figures over small caps, hairlines between them */
.hero-proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 16px; }
.hero-proof li { padding: 0 clamp(14px, 2vw, 24px); border-inline-start: 1px solid rgba(255, 255, 255, 0.14); text-align: center; }
.hero-proof li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-proof strong { display: block; font-family: var(--quote); font-weight: 500; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.15;
  color: #F4EEE0; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 3px; }
.hp-star { color: #E8C778; font-size: 0.7em; margin-inline-end: 0.2em; vertical-align: 0.1em; }
.hero-proof span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(232, 236, 246, 0.52); }
.hero-proof-note { font-size: 12px; color: rgba(232, 236, 246, 0.36); margin: 12px 0 0; }
.home-hero.night .flags a { box-shadow: 0 0 0 2.5px #0C1328; }
.home-hero.night .langs span { color: rgba(232, 236, 246, 0.7); }
html[dir="rtl"] .hero-proof span, html[dir="rtl"] .hero-trust { letter-spacing: 0; text-transform: none; }

/* the sticky nav over the night (home-sky.js sets body.nav-night) */
.home-nav { transition: background 0.35s ease, border-color 0.35s ease; }
.home-nav .home-wm, .home-nav .home-links a { transition: color 0.35s ease; }
body.nav-night .home-nav { background: rgba(7, 12, 26, 0.9); border-bottom-color: rgba(255, 255, 255, 0.08); }
body.nav-night .home-wm { color: #F4EFE3; }
body.nav-night .home-wm span { color: #E8C778; }
body.nav-night .home-links a { color: rgba(232, 236, 246, 0.72); }
body.nav-night .home-links a:hover { color: #fff; }
body.nav-night .home-nav .lang-switch > summary { color: #F4EFE3; border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }
body.nav-night .home-cta { background: #F4EFE3; color: #16294A; }   /* pearl at night, never gold */
body.nav-night .home-cta:hover { background: #fff; }

/* ---- the prayer arc: a sticky stage the visitor scrolls through ---------- */
.prayer { position: relative; height: 180vh; background: #0A1228; }
.prayer .stage { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.prayer-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.prayer-copy { position: absolute; left: 0; right: 0; top: 30%; z-index: 2; display: flex; justify-content: center; pointer-events: none; padding: 0 20px; }
.prayer-line { font-family: var(--quote); font-size: clamp(20px, 3vw, 29px); color: rgba(247, 241, 228, 0.92); text-align: center; margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
/* the sky runs from near-black to pale midday: a soft ground haze keeps the copy legible on all of it */
.prayer-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 11, 24, 0) 0%, rgba(6, 11, 24, 0.42) 52%, rgba(6, 11, 24, 0.78) 100%); }
.prayer-panel { position: absolute; left: 0; right: 0; bottom: 7%; z-index: 3; width: min(94%, 760px); margin: 0 auto; text-align: center; }
.prayer-h2 { font-family: var(--quote); font-weight: 500; font-size: clamp(21px, 2.8vw, 30px); line-height: 1.15; color: #F7F1E4;
  margin: 0 0 18px; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45); letter-spacing: -0.01em; }
.prayer-times { list-style: none; display: flex; justify-content: center; gap: clamp(10px, 3vw, 40px); margin: 0 0 30px;
  padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.prayer-times li { position: relative; text-align: center; text-shadow: 0 1px 20px rgba(0, 0, 0, 0.45); }
.prayer-times .pt-t { display: block; font-family: var(--quote); font-size: clamp(17px, 2.3vw, 23px); color: #FBF5E8; }
.prayer-times .is-next::before { content: ""; position: absolute; left: 50%; top: -17px; width: 26px; height: 2px; transform: translateX(-50%);
  background: #E8C778; box-shadow: 0 0 12px rgba(232, 199, 120, 0.8); }
.prayer-times .is-next .pt-t { color: #E8C778; }
.prayer-times .pt-tag { display: block; font-size: 10px; letter-spacing: 0.07em; color: rgba(240, 216, 166, 0.95); margin-top: 6px; white-space: nowrap; }
.prayer-status { font-size: clamp(13px, 1.5vw, 14.5px); letter-spacing: 0.04em; color: rgba(240, 222, 180, 0.92); margin: 0 0 20px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5); }
.prayer-sub { font-size: clamp(14px, 1.5vw, 15.5px); line-height: 1.6; color: rgba(232, 236, 246, 0.78); margin: 0 auto; max-width: 58ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5); }
.prayer-sub a { color: rgba(240, 222, 180, 0.95); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(240, 222, 180, 0.45); }
/* sized from the one measured viewport (home-sky.js sets --vh), so the mobile address bar moves nothing */
@supports (height: 100svh) {
  .prayer { height: calc(var(--vh, 100svh) * 1.8); }
  .prayer .stage { height: var(--vh, 100svh); }
}
@media (prefers-reduced-motion: reduce) { .prayer { height: auto; } .prayer .stage { position: relative; } }

/* ---- phones: centred, buttons side by side, the numbers two by two -------- */
@media (max-width: 760px) {
  .home-hero.night { text-align: center; padding-top: 62px; }
  .home-hero.night .lede { margin-inline: auto; }
  .home-hero.night .langs { justify-content: center; }
  .hero-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .store-btn { padding: 13px 10px; font-size: 15px; gap: 8px; }
  .store-btn svg { width: 19px; height: 19px; }
  .hero-trust { font-size: 13.5px; margin-top: 16px; }
  .hero-proof { max-width: 340px; margin-inline: auto; row-gap: 14px; }
  .hero-proof li { flex: 0 0 50%; padding: 0 8px; box-sizing: border-box; }
  .hero-proof li:nth-child(odd) { border-inline-start: 0; }
  .hero-proof li:first-child { padding-inline-start: 8px; }
  .hero-proof strong { font-size: 21px; }
  .hero-proof span { font-size: 9.5px; letter-spacing: 0.1em; }
  .hero-proof-note { font-size: 11px; }
  .prayer-copy { top: 24%; }
  .prayer-panel { bottom: 4%; }
  .prayer-times { gap: 0; justify-content: space-between; }
  .prayer-times li { flex: 1 1 0; }
  .prayer-times .pt-t { font-size: 15px; }
  .prayer-times .pt-tag { position: absolute; left: 50%; transform: translateX(-50%); bottom: -19px; font-size: 9.5px; }
  .prayer-status { font-size: 12.5px; margin-bottom: 16px; }
}
@supports (height: 100svh) { @media (max-width: 680px) { .prayer { height: calc(var(--vh, 100svh) * 1.5); } } }
/* the closing "Just return tomorrow" buttons: side by side on phones too
   (the rating panel steps aside; the hero numbers already carry it) */
@media (max-width: 760px) {
  .home-end .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-end .store { padding: 11px 12px; gap: 9px; border-radius: 13px; }
  .home-end .store svg { width: 22px; height: 22px; }
  .home-end .store .stat { display: none; }
  .home-end .store b { font-size: 16px; }
  .home-end .store small { font-size: 10.5px; }
}
/* store ratings beside the names (Sel, 2026-10-26); Google Play's logo in colour */
.store-btn { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; column-gap: 10px; }
.store-btn .sb-rate { padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, 0.22); font-weight: 600; color: #F4EFE3; }
.store-btn .sb-rate i { font-style: normal; color: #E8C778; }
@media (max-width: 760px) {
  .store-btn { grid-template-columns: auto auto; column-gap: 9px; row-gap: 1px; padding: 10px 10px; justify-content: center; }
  .store-btn svg { grid-row: span 2; width: 24px; height: 24px; }
  .store-btn .sb-name { font-size: 15px; line-height: 1.2; text-align: start; }
  .store-btn .sb-rate { padding: 0; border: 0; font-size: 12.5px; line-height: 1.2; font-weight: 500; color: rgba(244, 239, 227, 0.78); text-align: start; }
}

/* ==== Balum Together (2 Dec 2026): the night carries on under the hero ========
   The app's own room window (src/together/RoomWindow.jsx, rendered to SVG), the
   three phones, three more things it does, and the promise of privacy. */
.together { position: relative; padding: 110px 0 120px; color: #F2ECDF; overflow: hidden;
  background: radial-gradient(720px 200px at 50% 0%, rgba(39, 38, 65, 1) 0%, rgba(39, 38, 65, 0) 100%),   /* carries the hero's glow on, no seam */
              radial-gradient(760px 520px at 74% 22%, rgba(232, 199, 120, 0.09), transparent 70%),
              linear-gradient(180deg, #181B3C 0%, #12183C 180px, #0E1531 46%, #0A1228 100%); }
.together::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image: radial-gradient(1.2px 1.2px at 8% 14%, #fff, transparent), radial-gradient(1px 1px at 22% 6%, #fff, transparent),
    radial-gradient(1px 1px at 41% 19%, #fff, transparent), radial-gradient(1.3px 1.3px at 58% 9%, #fff, transparent),
    radial-gradient(1px 1px at 88% 12%, #fff, transparent), radial-gradient(1px 1px at 95% 31%, #fff, transparent),
    radial-gradient(1px 1px at 4% 44%, #fff, transparent), radial-gradient(1.2px 1.2px at 33% 52%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 92% 58%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 14% 78%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 72% 84%, rgba(255,255,255,.6), transparent); }
.together .wrap { position: relative; z-index: 1; }
.tg-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.together .tag { color: #E8C778; }
.together .tag i { background: #E8C778; color: #0C1328; }
.together h2 { font-family: var(--quote); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: #F7F1E4; }
.together h2 em { color: #E8C778; }
.together .sub { color: rgba(232, 236, 246, 0.8); }
.tg-who { margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: rgba(240, 222, 180, 0.92); max-width: 560px; }
.tg-art { max-width: 580px; width: 100%; justify-self: center; filter: drop-shadow(0 34px 70px rgba(232, 199, 120, 0.16)); }
.tg-art svg { display: block; width: 100%; height: auto; }
.together figcaption b { color: #F7F1E4; }
.together figcaption span { color: rgba(232, 236, 246, 0.68); }
.tg-feats { list-style: none; margin: 100px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tg-feats li { padding: 30px 28px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); }
.tg-feats svg, .tg-private svg { color: #E8C778; display: block; }
.tg-feats h3 { font-size: 19px; font-weight: 600; color: #F7F1E4; margin: 18px 0 8px; letter-spacing: -0.01em; }
.tg-feats p { text-wrap: pretty; font-size: 15.5px; line-height: 1.6; color: rgba(232, 236, 246, 0.7); margin: 0; }
.tg-private { text-align: center; margin-top: 84px; }
.tg-private svg { margin: 0 auto 16px; }
.tg-private-h { text-wrap: balance; font-family: var(--quote); font-size: clamp(22px, 2.6vw, 30px); color: #F7F1E4; margin: 0 0 8px; letter-spacing: -0.01em; }
.tg-private p:not(.tg-private-h) { font-size: 16px; color: rgba(232, 236, 246, 0.68); margin: 0; }
html[dir="rtl"] .together .tag { letter-spacing: 0; }
@media (max-width: 960px) { .tg-head { gap: 40px; } }
@media (max-width: 760px) {
  .together { padding: 72px 0 84px; }
  .tg-head { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .tg-feats { grid-template-columns: 1fr; gap: 14px; margin-top: 56px; }
  .tg-feats li { padding: 22px 22px; }
  .tg-private { margin-top: 56px; }
}
.together h2, .together .sub { text-wrap: balance; }
