/* BetterMuslim landing (EN + AR). The app's "Little lantern" world: a warm night room, a brass lantern,
   cream paper, white cards, gold #d4af8c as fill only. Text on light never uses gold (gold ink #86663b). */

@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-600.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('../fonts/cairo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amiri Hadith'; src: url('../fonts/amiri-hadith.woff2') format('woff2'); font-display: swap; }

:root {
  --night: #1a130f;
  --night-2: #231912;
  --night-3: #2e2118;
  --cream: #fdfbf7;
  --paper: #f6efe4;
  --card: #ffffff;
  --line: #ece2d3;
  --gold: #d4af8c;
  --gold-soft: #efe0cc;
  --gold-ink: #86663b;
  --on-gold: #3d2914;
  --ink: #171512;
  --muted: #625649;
  --on-night: #fdfbf7;
  --on-night-2: #d9c9b2;
  --lamp: #f2c98f;
  --display: 'Fraunces', Georgia, serif;
  --body: 'General Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
}
[dir="rtl"] { --display: 'Cairo', system-ui, sans-serif; --body: 'Cairo', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[dir="rtl"] body { font-size: 18px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on-night); transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.top.scrolled { background: rgba(26, 19, 15, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(212, 175, 140, .14); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--on-night-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--on-night); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(212, 175, 140, .4); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--on-night); transition: border-color .2s, background-color .2s; }
.lang:hover { border-color: var(--gold); background: rgba(212, 175, 140, .1); }
.lang[lang="ar"] { font-family: 'Cairo', sans-serif; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; text-decoration: none; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #dcbb9a; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .nav { display: none; } .top-actions { margin-inline-start: auto; } }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px; border-radius: 16px; text-decoration: none; background: var(--cream); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
.store:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .6); }
.store:active { transform: scale(.98); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small, .store b { white-space: nowrap; }
.store small { display: block; font-size: 11.5px; line-height: 1.1; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
[dir="rtl"] .store { padding: 0 18px 0 22px; }
[dir="rtl"] .store b { font-family: 'General Sans', sans-serif; }
.store.dark { background: var(--night); color: var(--on-night); }
.store.dark small { color: var(--on-night-2); }
.store.dark:hover { background: #0f0b08; }

/* ---------- hero: the room ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-night); background:
  radial-gradient(60% 55% at 74% 46%, rgba(255, 186, 110, .22), rgba(200, 108, 44, .07) 45%, transparent 70%),
  linear-gradient(180deg, #110c0a 0%, #1f1712 55%, #1a130f 100%); }
[dir="rtl"] .hero { background:
  radial-gradient(60% 55% at 26% 46%, rgba(255, 186, 110, .22), rgba(200, 108, 44, .07) 45%, transparent 70%),
  linear-gradient(180deg, #110c0a 0%, #1f1712 55%, #1a130f 100%); }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('../images/lantern/grain.webp') repeat; background-size: 420px; opacity: .14; mix-blend-mode: soft-light; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; min-height: min(100svh, 940px); padding-top: 92px; padding-bottom: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6.6vw, 82px); line-height: 1.02; letter-spacing: -.025em; margin: 22px 0 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--lamp); }
[dir="rtl"] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.25; font-size: clamp(42px, 6.2vw, 76px); }
[dir="rtl"] .hero h1 em { font-style: normal; font-weight: 700; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--on-night-2); max-width: 27em; text-wrap: pretty; }
.hero .stores { margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--on-night-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .8; }
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }

/* reveal on load (no layout shift; reduced motion shows everything at once) */
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- the live phone (try it) ---------- */
.phone { position: relative; width: 340px; max-width: 100%; border-radius: 54px; padding: 11px; background: linear-gradient(160deg, #3a2c22, #120d0a 40%, #241a13); box-shadow: 0 0 0 1px rgba(212, 175, 140, .22), 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 120px -20px rgba(255, 170, 90, .25); }
.screen { position: relative; overflow: hidden; border-radius: 44px; background: var(--cream); }
.island { position: absolute; z-index: 4; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #070504; }
.demo { color: var(--ink); text-align: start; }
.demo-head { position: relative; height: 272px; color: var(--on-night); overflow: hidden; }
.demo-head svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-head .lit { opacity: 0; transition: opacity .9s var(--ease); }
.demo-head .wash { position: absolute; inset: 0; background: radial-gradient(70% 80% at 72% 75%, rgba(255, 196, 120, .38), transparent 70%); opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
[dir="rtl"] .demo-head .wash { background: radial-gradient(70% 80% at 28% 75%, rgba(255, 196, 120, .38), transparent 70%); }
.demo.kept .demo-head .wash { opacity: 1; }
.demo-stat { position: absolute; z-index: 2; top: 76px; inset-inline-start: 22px; width: 52%; }
.ring { width: 64px; height: 64px; }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: rgba(253, 251, 247, .16); }
.ring .bar { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); }
.ring-wrap { position: relative; width: 64px; height: 64px; direction: ltr; }
.ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.demo-title { margin-top: 14px; font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.demo-sub { margin-top: 4px; font-size: 13.5px; color: var(--on-night-2); }
.demo-title, .demo-sub { transition: opacity .25s; }
.demo-title.swap, .demo-sub.swap { opacity: 0; }
.sheet { position: relative; margin-top: -18px; padding: 26px 16px 22px; background: var(--cream); }
.sheet-edge { position: absolute; top: -14px; left: 0; width: 100%; height: 34px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.sheet-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.chip { direction: ltr; unicode-bidi: isolate; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--on-gold); font-variant-numeric: tabular-nums; }
.group { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 14px 12px 10px; }
.group-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 4px; }
.group-top b { display: block; font-size: 16px; font-weight: 600; }
.group-top small { display: block; font-size: 12.5px; color: var(--muted); }
.gbar { height: 4px; margin: 12px 4px 12px; border-radius: 4px; background: var(--gold-soft); overflow: hidden; }
.gbar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width .8s var(--ease); }
[dir="rtl"] .gbar i { margin-inline-start: auto; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .3s, border-color .3s; }
.row:hover { border-color: #e2d3bd; }
.tick { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.tick svg { width: 16px; height: 16px; color: var(--on-gold); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.row[aria-pressed="true"] .tick { background: var(--gold); }
.row[aria-pressed="true"] .tick svg { opacity: 1; transform: none; }
.row[aria-pressed="true"] { background: #fbf6ef; }
.row .name { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.25; }
.row[aria-pressed="true"] .name { color: var(--muted); }
.row .days { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .days svg { width: 12px; height: 12px; color: var(--gold-ink); }
.done-label { margin: 6px 6px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.done-label[hidden] { display: block; visibility: hidden; }
.pulse .tick::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: pulse 2.4s var(--ease) 1.2s 3; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }
.try { margin: 0 0 16px; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.2; color: var(--lamp); text-align: center; transition: opacity .4s; }
[dir="rtl"] .try { font-family: 'Cairo', sans-serif; font-style: normal; font-size: 17px; }
.try.gone { opacity: 0; }
.again { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(253, 251, 247, .28); background: rgba(26, 19, 15, .4); color: var(--on-night); font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s; }
.again svg { width: 13px; height: 13px; }
.demo.kept .again { opacity: 1; pointer-events: auto; }
.ember { position: fixed; z-index: 60; top: 0; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff6e4 0 25%, #ffc46f 45%, rgba(255, 160, 70, 0) 72%); box-shadow: 0 0 18px 6px rgba(255, 180, 90, .45); }
svg .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 3.2s ease-in-out infinite; }
svg .flame.in { animation-duration: 2.6s; animation-delay: -.7s; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 22% { transform: scale(.97, 1.05) skewX(-1.5deg); } 48% { transform: scale(1.02, .96) skewX(1deg); } 70% { transform: scale(.98, 1.03) skewX(-.6deg); } }
.demo.bump svg .glowp { animation: bump .9s var(--ease); transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ---------- shared section bits ---------- */
section { position: relative; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 15px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] .h2 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.h2 em { font-style: italic; font-weight: 400; color: var(--gold-ink); }
[dir="rtl"] .h2 em { font-style: normal; font-weight: 700; }
.sub { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.star8 { width: 14px; height: 14px; color: var(--gold); }
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; }
.orn i { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { transform: scaleX(-1); }

/* ---------- the hadith: the sheet edge out of the room ---------- */
.edge { position: absolute; top: -43px; left: 0; right: 0; height: 44px; z-index: 2; }
.edge svg:first-child { width: 100%; height: 100%; }
.edge .star8 { position: absolute; left: 50%; top: 6px; width: 16px; height: 16px; margin-left: -8px; }
.hadith { padding: 72px 0 96px; text-align: center; }
.hadith .ar { font-family: 'Amiri Hadith', 'Amiri', serif; direction: rtl; font-size: clamp(30px, 5vw, 58px); line-height: 1.9; text-wrap: balance; color: var(--ink); }
.hadith .orn { margin: 18px 0 22px; }
.hadith blockquote { margin: 0 auto; max-width: 20em; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); text-wrap: balance; }
.hadith cite { display: block; margin-top: 16px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .hadith cite { letter-spacing: 0; font-size: 16px; }
.hadith .after { margin: 44px auto 0; max-width: 30em; font-size: 19px; color: var(--muted); text-wrap: balance; }
.hadith .after strong { color: var(--ink); font-weight: 600; }

/* ---------- story: a day in the app ---------- */
.story { background: var(--paper); padding: 110px 0 120px; }
.story-head { max-width: 620px; margin-bottom: 40px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 66vh; padding: 40px 0; }
.step .num { font-family: 'Fraunces', Georgia, serif; font-size: 15px; font-weight: 600; color: var(--gold-ink); display: flex; align-items: center; gap: 10px; }
.step .num::after { content: ''; width: 40px; height: 1px; background: var(--gold); }
.step h3 { margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] .step h3 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.step p { margin-top: 14px; max-width: 26em; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.step .note { margin-top: 10px; font-size: 14px; }
.step .shot { display: none; }
.step { opacity: .32; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.stage { position: sticky; top: 88px; height: calc(100vh - 112px); display: flex; align-items: center; justify-content: center; }
.frame { position: relative; height: min(720px, 100%); aspect-ratio: 1206 / 2622; border-radius: 56px; padding: 10px; background: #120d0a; box-shadow: 0 0 0 1px rgba(61, 41, 20, .18), 0 40px 80px -30px rgba(61, 41, 20, .55); }
.frame .shots { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--night); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.frame img.on { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .story { padding: 84px 0 40px; }
  .story-grid { display: block; }
  .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0 44px; }
  .step .shot { display: block; width: min(300px, 82vw); margin: 30px auto 0; border-radius: 44px; padding: 8px; background: #120d0a; box-shadow: 0 30px 60px -28px rgba(61, 41, 20, .55); }
  .step .shot img { width: 100%; height: auto; border-radius: 37px; aspect-ratio: 1206 / 2622; }
}

/* ---------- more in the app ---------- */
.more { padding: 110px 0; background: var(--cream); }
.more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile { display: flex; gap: 16px; padding: 22px 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(61, 41, 20, .35); }
.tile .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--on-gold); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.tile p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; gap: 10px; } .tile { padding: 18px; } }

/* ---------- guides ---------- */
.guides { padding: 0 0 110px; background: var(--cream); }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide { display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--paper); text-decoration: none; transition: background-color .25s, transform .3s var(--ease); }
.guide:hover { background: #f1e6d6; transform: translateY(-2px); }
.guide span { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
[dir="rtl"] .guide span { letter-spacing: 0; font-size: 14px; }
.guide h3 { margin-top: 10px; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25; }
[dir="rtl"] .guide h3 { font-weight: 700; line-height: 1.5; }
.guide p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-ink); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .guide-list { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: 110px 0; background: var(--paper); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.qa { border-bottom: 1px solid #e4d7c4; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; background: var(--ink); transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { padding: 0 0 24px; max-width: 36em; color: var(--muted); }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- final: the lit room ---------- */
.final-edge { position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 40px; }
.final { overflow: hidden; color: var(--on-night); background: #1a130f; text-align: center; }
.final .scene-wrap { position: relative; height: clamp(300px, 42vw, 520px); }
.final svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.final .scene-wrap::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, #1a130f); }
.final .copy { position: relative; z-index: 1; padding: 6px 24px 110px; }
.final h2 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 62px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.final h2 em { font-style: italic; font-weight: 400; color: var(--lamp); }
[dir="rtl"] .final h2 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .final h2 em { font-style: normal; font-weight: 700; }
.final p { margin: 16px auto 0; max-width: 28em; color: var(--on-night-2); font-size: 18px; }
.final .stores { justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
.foot { background: #120d0a; color: var(--on-night-2); font-size: 15px; padding: 64px 0 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); margin-bottom: 14px; }
[dir="rtl"] .foot h2 { letter-spacing: 0; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--on-night-2); }
.foot a:hover { color: var(--on-night); }
.foot .brand { color: var(--on-night); margin-bottom: 14px; }
.foot .about { max-width: 22em; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(212, 175, 140, .14); font-size: 13.5px; color: #a8987f; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- sticky get-the-app bar (phones) ---------- */
.getbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 20px; background: rgba(26, 19, 15, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-night); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transform: translateY(140%); transition: transform .45s var(--ease); }
[dir="rtl"] .getbar { padding: 10px 14px 10px 10px; }
.getbar img { width: 38px; height: 38px; border-radius: 10px; }
.getbar b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.getbar small { display: block; font-size: 12.5px; color: var(--on-night-2); }
.getbar .btn { margin-inline-start: auto; }
.getbar.show { transform: none; }
@media (max-width: 760px) { .getbar { display: flex; } }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; min-height: 0; padding-top: 104px; padding-bottom: 88px; text-align: center; }
  .hero .copy { display: flex; flex-direction: column; align-items: center; }
  .hero .stores, .facts { justify-content: center; }
  .hero { background:
    radial-gradient(80% 40% at 50% 74%, rgba(255, 186, 110, .2), rgba(200, 108, 44, .06) 50%, transparent 75%),
    linear-gradient(180deg, #110c0a 0%, #1f1712 55%, #1a130f 100%) !important; }
}
@media (max-width: 520px) {
  .top .wrap { gap: 12px; height: 64px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .lang { min-width: 40px; height: 34px; padding: 0 10px; font-size: 13px; }
  .hero .stores { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .hero .store, .final .store { flex: 1 1 0; min-width: 0; justify-content: center; gap: 10px; padding: 0 12px; min-height: 56px; }
  .store b { font-size: 16px; }
  .store small { font-size: 10.5px; }
  .store svg { width: 22px; height: 22px; }
  .final .stores { flex-wrap: nowrap; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  .phone { width: 100%; border-radius: 50px; }
  .screen { border-radius: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
