/* miraapp.io — shared styles (home, legal pages, verses).
   Palette and type follow the app and the 1.9.2 App Store set: a day that runs from dawn to night,
   Manrope for words, Cormorant Garamond italic for the gold "moment" lines, Amiri for Arabic. */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(fonts/Manrope-Regular.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(fonts/Manrope-Medium.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(fonts/Manrope-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(fonts/Manrope-Bold.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 600; font-style: italic; font-display: swap; src: url(fonts/CormorantGaramond-SemiBoldItalic.woff2) format('woff2'); }
@font-face { font-family: Cormorant; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/CormorantGaramond-Italic.woff2) format('woff2'); }
@font-face { font-family: Amiri; font-weight: 400; font-display: swap; src: url(fonts/Amiri-Regular.woff2) format('woff2'); }

:root {
  --night: #07030F;
  --night-2: #0E0620;
  --plum: #2A1242;
  --gold: #E2BE6E;
  --gold-2: #D4A94F;
  --gold-ink: #2A1A06;
  --cream: #FBF5E8;
  --cream-2: #F4EAD6;
  --ink-dark: #24103B;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Cormorant, 'Cormorant Garamond', Georgia, serif;
  --arabic: Amiri, 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --wrap: 1160px;
  --nav-h: 68px;
  /* Default (night) section colours; light sections override these. */
  --ink: #F4EEFA;
  --sub: #B9AECF;
  --moment: #E2BE6E;
  --line: rgba(226, 190, 110, .16);
  --chip-bg: rgba(255, 255, 255, .06);
  --chip-line: rgba(255, 255, 255, .12);
  --chip-ink: #E6DCF4;
  --shade: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 20px 40px -20px rgba(0, 0, 0, .5);
  --stars: .75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--night); color: var(--ink); font-family: var(--sans); font-weight: 500;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────── */
.moment { font: italic 600 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); color: var(--moment); letter-spacing: .005em; }
h1, .h1 { font: 700 clamp(40px, 6.4vw, 80px)/1.02 var(--sans); letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
h2, .h2 { font: 700 clamp(34px, 4.4vw, 58px)/1.04 var(--sans); letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
h1 em, h2 em, .h2 em, h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.1em;
  letter-spacing: -.01em; color: var(--moment); line-height: .9; white-space: nowrap;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--sub); }

/* ── Star field (two repeating tiles, no script) ─── */
.starry { position: relative; isolation: isolate; }
.starry::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url(stars-a.svg), url(stars-b.svg);
  background-size: 420px 420px, 760px 760px; background-position: 0 0, 130px 60px;
  opacity: var(--stars, 1);
}
.sparkle { position: absolute; width: 18px; height: 18px; color: var(--gold); opacity: .8; pointer-events: none;
  animation: twinkle 5s ease-in-out infinite alternate; }
.sparkle svg { width: 100%; height: 100%; }
@keyframes twinkle { from { opacity: .25; transform: scale(.85); } to { opacity: .9; transform: scale(1); } }

/* ── Nav ──────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s; }
.nav.solid, .nav.always { background: rgba(10, 4, 22, .74); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(226, 190, 110, .1); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(226, 190, 110, .35); }
.brand span { font: 700 20px/1 var(--sans); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 auto; }
.nav-links a { color: rgba(244, 238, 250, .72); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-right { margin-left: 0; }
.lang { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.lang a, .lang span { font: 700 12px/1 var(--sans); letter-spacing: .04em; padding: 7px 10px; border-radius: 99px; text-decoration: none; color: rgba(244, 238, 250, .66); }
.lang [aria-current] { background: rgba(226, 190, 110, .18); color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px;
  background: linear-gradient(135deg, #F0D184, var(--gold-2)); color: var(--gold-ink); font: 700 14px/1 var(--sans);
  text-decoration: none; box-shadow: 0 6px 20px -6px rgba(226, 190, 110, .6); transition: transform .2s, box-shadow .2s; white-space: nowrap; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(226, 190, 110, .75); }
.pill svg { width: 16px; height: 16px; }
.back-link { color: rgba(244, 238, 250, .72); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--gold); }

/* ── Store badges ─────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .2s, border-color .2s; min-width: 176px; }
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .6); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store small { display: block; font: 600 11px/1.1 var(--sans); letter-spacing: .02em; opacity: .85; }
.store b { display: block; font: 700 21px/1.05 var(--sans); letter-spacing: -.02em; }
.store[hidden] { display: none; }
.free-note { margin-top: 14px; font-size: 14px; color: var(--sub); }

/* ── Phone mock-up (sizes scale with --pw) ────────── */
.phone { --pw: 300px; width: var(--pw); font-size: calc(var(--pw) / 100); flex-shrink: 0; position: relative;
  padding: .64em; border-radius: 16.4em;
  background: linear-gradient(135deg, #8A7D92 0%, #3A3340 15%, #1C181F 50%, #3A3340 85%, #8A7D92 100%);
  box-shadow: var(--shade), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.phone .bezel { padding: 1.64em; border-radius: 15.8em; background: #050307; }
.phone .screen { position: relative; aspect-ratio: 1320 / 2868; border-radius: 13.6em; overflow: hidden; background: #120621; }
.phone .screen img, .phone .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 1.08em; left: 50%; width: 27.4em; height: 8.1em; margin-left: -13.7em; border-radius: 9em; background: #000; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + 56px) 0 0; text-align: center; overflow: hidden;
  background:
    radial-gradient(70% 38% at 50% 100%, rgba(255, 196, 160, .55), transparent 70%),
    linear-gradient(180deg, #07030F 0%, #110622 30%, #25103E 52%, #4A2058 68%, #8E4C76 82%, #DB9C98 93%, #F6E2DC 100%); }
.hero.starry::before { -webkit-mask-image: linear-gradient(#000 40%, transparent 75%); mask-image: linear-gradient(#000 40%, transparent 75%); }
.crescent { position: absolute; top: -120px; right: -140px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 62% 38%, transparent 47%, rgba(150, 110, 210, .14) 48%, rgba(150, 110, 210, .05) 62%, transparent 63%); }
.app-icon { width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(226, 190, 110, .45), 0 0 60px rgba(226, 190, 110, .28), 0 24px 50px -16px rgba(0, 0, 0, .8); }
.hero .moment { margin-bottom: 14px; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero .lead { max-width: 600px; margin: 24px auto 34px; }
.fan { position: relative; height: 700px; margin-top: 72px; display: flex; justify-content: center; }
.fan .phone { position: absolute; top: 0; }
.fan .center { --pw: 310px; z-index: 2; }
.fan .side { --pw: 262px; top: 70px; opacity: .97; }
.fan .left { transform: translateX(-62%) rotate(-9deg); transform-origin: bottom right; right: 50%; }
.fan .right { transform: translateX(62%) rotate(9deg); transform-origin: bottom left; left: 50%; }

/* ── Moments: one day from dawn to night ──────────── */
.moments { position: relative; }
.moment-sec { position: relative; padding: 120px 0; overflow: hidden; }
.moment-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.moment-sec.flip .copy { order: 2; }
.moment-sec .copy { max-width: 500px; }
.moment-sec .flip-pad { justify-self: end; }
.moment-sec h2 { margin: 14px 0 22px; }
.moment-sec .shot { display: flex; justify-content: center; }
.moment-sec .phone { --pw: 320px; transform: rotate(var(--tilt, 3deg)); }
.moment-sec.flip .phone { --tilt: -3deg; }
.moment-sec::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 34% at var(--gx, 80%) var(--gy, 50%), var(--glow, transparent), transparent 100%); }
.moment-sec > .wrap { z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.chips li { font: 600 13.5px/1 var(--sans); padding: 10px 14px; border-radius: 99px; background: var(--chip-bg);
  border: 1px solid var(--chip-line); color: var(--chip-ink); }
.chips li.gold { background: rgba(226, 190, 110, .18); border-color: rgba(226, 190, 110, .45); color: var(--moment); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; font-size: 15px;
  color: var(--moment); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { opacity: .8; }

.light { --ink: #24103B; --sub: #5A4C70; --moment: #8A6420; --chip-bg: rgba(36, 16, 59, .06); --chip-line: rgba(36, 16, 59, .12);
  --chip-ink: #3A2552; --shade: 0 60px 90px -36px rgba(58, 26, 78, .5), 0 24px 40px -24px rgba(58, 26, 78, .4); }
.m-dawn { background: linear-gradient(180deg, #F6E2DC 0%, #F2E5F2 100%); --glow: rgba(244, 190, 150, .45); --gx: 18%; --gy: 62%; }
.m-morning { background: linear-gradient(180deg, #F2E5F2 0%, #EDDCF2 55%, #F0DEC6 100%); --glow: rgba(212, 177, 95, .25); --gx: 80%; --gy: 40%; }
.m-noon { background: linear-gradient(180deg, #F0DEC6 0%, #E9C886 40%, #D9A75E 72%, #9A5260 100%); --glow: rgba(255, 236, 190, .5); --gx: 76%; --gy: 38%;
  --ink: #2A1530; --sub: #4A3020; --moment: #5A2A4E; --chip-bg: rgba(42, 21, 48, .08); --chip-line: rgba(42, 21, 48, .16); --chip-ink: #3D1F3A;
  --shade: 0 60px 90px -36px rgba(74, 45, 10, .55), 0 24px 40px -24px rgba(74, 45, 10, .45); }
.m-dusk { background: linear-gradient(180deg, #9A5260 0%, #6E3560 30%, #30164C 100%); --glow: rgba(240, 150, 120, .26); --gx: 28%; --gy: 52%;
  --ink: #FBF3EA; --sub: #E3CFE0; --moment: #F2C77A; --chip-ink: #F4E6EE; }
.m-dusk.starry::before { -webkit-mask-image: linear-gradient(transparent 15%, #000 85%); mask-image: linear-gradient(transparent 15%, #000 85%); }
.m-isha { background: linear-gradient(180deg, #30164C 0%, #1C0B32 100%); --glow: rgba(168, 139, 232, .2); --gx: 72%; --gy: 50%;
  --sub: #C9BDE0; }
.m-night { background: linear-gradient(180deg, #1C0B32 0%, #0B0418 100%); --glow: rgba(212, 177, 95, .1); --gx: 30%; --gy: 50%; --sub: #ABA0C2; }

/* ── Night sections ───────────────────────────────── */
.night { background: linear-gradient(180deg, #0B0418 0%, #07030F 100%); }
.block { padding: 96px 0; position: relative; }
.block-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.block-head h2 { margin: 12px 0 18px; }

/* Moods grid with the app's own scenes */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.mood-card { position: relative; display: block; aspect-ratio: 240 / 138; border-radius: 18px; overflow: hidden; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -22px rgba(0, 0, 0, .8); transition: transform .25s, box-shadow .25s; }
.mood-card img { width: 100%; height: 100%; object-fit: cover; }
.mood-card span { position: absolute; left: 14px; bottom: 11px; color: #fff; font: 700 16px/1.1 var(--sans); letter-spacing: -.01em;
  text-shadow: 0 1px 10px rgba(20, 6, 40, .7); }
a.mood-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(226, 190, 110, .6), 0 24px 50px -22px rgba(0, 0, 0, .9); }
.moods-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--sub); }
.moods-note a { color: var(--gold); }

/* Supporter */
.support { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, rgba(58, 26, 85, .75), rgba(20, 8, 36, .85)); border: 1px solid rgba(226, 190, 110, .22);
  box-shadow: 0 40px 100px -40px rgba(120, 70, 200, .35); }
.support-copy { padding: 52px 48px; }
.support-copy h2 { margin: 12px 0 18px; font-size: clamp(32px, 3.6vw, 46px); }
.support-copy .pill { margin-top: 28px; height: 46px; padding: 0 22px; font-size: 15px; }
.support-list { list-style: none; padding: 44px 40px; display: grid; gap: 10px; align-content: center; background: rgba(255, 255, 255, .03);
  border-left: 1px solid rgba(226, 190, 110, .12); }
.support-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #E6DCF4; line-height: 1.45; }
.support-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 1px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); transition: background .2s, border-color .2s; }
.faq details[open] { background: rgba(255, 255, 255, .06); border-color: rgba(226, 190, 110, .28); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative; font: 700 17.5px/1.35 var(--sans); color: var(--ink); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--sub); font-size: 16px; }
.faq details p a { color: var(--gold); }
.langs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 24px 22px; list-style: none; }
.langs li { padding: 8px 14px; border-radius: 99px; background: rgba(226, 190, 110, .1); border: 1px solid rgba(226, 190, 110, .25); color: var(--gold); font-weight: 700; font-size: 14px; }
.langs li[lang="ar"] { font-family: var(--arabic); font-size: 17px; font-weight: 400; padding: 5px 14px 7px; }

/* Closing call */
.closing { text-align: center; padding: 96px 0 130px; overflow: hidden; position: relative; }
.closing .app-icon { width: 88px; height: 88px; border-radius: 20px; }
.closing h2 { margin: 12px 0 18px; }
.closing .lead { max-width: 520px; margin: 0 auto 32px; }
.closing .glow { position: absolute; left: 50%; top: 40%; width: 760px; height: 420px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(226, 190, 110, .14), transparent); }

/* ── Footer ───────────────────────────────────────── */
.footer { border-top: 1px solid rgba(226, 190, 110, .12); padding: 56px 0 36px; background: #06020D; color: #9F94B6; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-tag { font: italic 600 19px/1.3 var(--serif); color: var(--gold); }
.footer-desc { margin-top: 8px; max-width: 300px; line-height: 1.55; }
.footer h3 { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #E6DCF4; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li:has(> [hidden]) { display: none; }
.footer a { color: #9F94B6; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #7D7394; }

/* ── Inner pages (legal, verses) ──────────────────── */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 56px; text-align: center;
  background: radial-gradient(60% 70% at 50% 0%, rgba(120, 70, 190, .28), transparent 70%), linear-gradient(180deg, #0E0620, #07030F); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin: 12px auto 0; max-width: 860px; }
.page-hero .lead { max-width: 640px; margin: 18px auto 0; }
.page-date { margin-top: 16px; font-size: 14px; color: #9F94B6; }

/* Legal document on cream paper, like the app's verse card */
.legal { padding: 0 0 96px; }
.legal .container { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.legal .page-header { padding: calc(var(--nav-h) + 64px) 0 48px; text-align: center; }
.legal .page-header .moment { display: block; }
.legal .page-title { font: 700 clamp(36px, 5.6vw, 60px)/1.04 var(--sans); letter-spacing: -.04em; margin-top: 12px; color: #F4EEFA; }
.doc { background: var(--cream); color: #3A2D4A; border-radius: 28px; padding: 56px 64px; font-size: 16px; line-height: 1.75;
  box-shadow: 0 0 0 1px rgba(226, 190, 110, .35), 0 50px 100px -40px rgba(0, 0, 0, .8); }
.doc h2 { font: 700 22px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink-dark); margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(138, 100, 32, .2); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 17px/1.4 var(--sans); color: #8A6420; margin: 26px 0 8px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: #B08A3A; }
.doc a { color: #7A4FB0; text-decoration: underline; text-decoration-color: rgba(122, 79, 176, .35); text-underline-offset: 3px; word-break: break-word; }
.doc a:hover { text-decoration-color: currentColor; }
.doc strong, .doc b { color: var(--ink-dark); font-weight: 700; }
.doc code { font: 500 .88em/1.4 ui-monospace, 'SF Mono', Menlo, monospace; background: rgba(36, 16, 59, .06); padding: 2px 6px; border-radius: 6px; word-break: break-word; }
.doc hr { border: 0; border-top: 1px solid rgba(138, 100, 32, .2); margin: 32px 0; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.doc th { text-align: left; color: #8A6420; padding: 8px 10px; border-bottom: 1px solid rgba(138, 100, 32, .3); }
.doc td { padding: 8px 10px; border-bottom: 1px solid rgba(36, 16, 59, .08); }
.doc .warning-box { background: #FFF1D6; border: 1px solid #EBC77A; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.doc .warning-box p { color: #6A4A12; margin-bottom: 0; }
.doc .warning-box p:not(:last-child) { margin-bottom: 8px; }
.doc .info-box { background: rgba(122, 79, 176, .07); border: 1px solid rgba(122, 79, 176, .2); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.doc .info-box p { margin-bottom: 0; }
.doc .lang-divider { display: flex; align-items: center; gap: 14px; margin: 56px 0 40px; }
.doc .lang-divider::before, .doc .lang-divider::after { content: ''; flex: 1; height: 1px; background: rgba(138, 100, 32, .3); }
.doc .lang-divider span { font: italic 600 22px/1 var(--serif); color: #8A6420; white-space: nowrap; }

/* Verses */
.verses-main { max-width: 860px; margin: 0 auto; padding: 0 20px 40px; }
.crumbs { font-size: 14px; color: #9F94B6; margin-bottom: 18px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.scene { width: 100%; max-width: 860px; aspect-ratio: 240 / 100; margin: 36px auto 0; border-radius: 26px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin: 36px 0; padding: 26px 28px; border-radius: 24px;
  background: linear-gradient(150deg, rgba(58, 26, 85, .8), rgba(22, 9, 40, .9)); border: 1px solid rgba(226, 190, 110, .22); }
.cta p { flex: 1 1 300px; color: #D9CFEA; font-size: 16px; }
.cta .stores { justify-content: flex-start; }
.verse { background: var(--cream); color: #3A2D4A; border-radius: 24px; padding: 34px 38px 28px; margin: 0 0 18px;
  box-shadow: 0 0 0 1px rgba(226, 190, 110, .3), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.verse .ar { font-family: var(--arabic); font-size: clamp(24px, 3.2vw, 30px); line-height: 2.05; direction: rtl; text-align: center; color: #24103B; margin-bottom: 16px; }
.verse .en { font: italic 600 clamp(19px, 2vw, 21px)/1.55 var(--serif); color: #4A3A5C; text-align: center; max-width: 640px; margin: 0 auto; }
.verse .ref { margin-top: 18px; text-align: center; font: italic 600 18px/1 var(--serif); }
.verse .ref a { color: #8A6420; text-decoration: none; }
.verse .ref a:hover { text-decoration: underline; }
.verse .ref::before, .verse .ref::after { content: '·'; color: #C9A84C; margin: 0 10px; }
.other { margin: 40px 0 10px; }
.other h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 16px; }
.other ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.other .mood-card { aspect-ratio: 240 / 110; border-radius: 14px; }
.other .mood-card span { font-size: 14px; left: 12px; bottom: 9px; }
.verses-main .moods { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.mood-card small { position: absolute; right: 12px; top: 10px; font: 700 11.5px/1 var(--sans); color: #fff; padding: 6px 9px; border-radius: 99px; background: rgba(12, 4, 24, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fine { max-width: 860px; margin: 0 auto; padding: 0 20px 56px; font-size: 13.5px; color: #8E84A6; line-height: 1.6; }
.fine p + p { margin-top: 8px; }

/* ── Reveal on scroll (only when JS is on) ────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sparkle { animation: none; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .moment-sec .wrap { gap: 40px; }
  .moment-sec .phone { --pw: 280px; }
  .support { grid-template-columns: 1fr; }
  .support-list { border-left: 0; border-top: 1px solid rgba(226, 190, 110, .12); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav .wrap { gap: 12px; }
  .brand span { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  .pill { height: 36px; padding: 0 14px; font-size: 13px; }
  .lang a, .lang span { padding: 6px 8px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .app-icon { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 20px; }
  .crescent { width: 340px; height: 340px; top: -90px; right: -170px; }
  .hero .sparkle:first-of-type { top: 9% !important; left: 8% !important; }
  .fan { height: 520px; margin-top: 52px; }
  .fan .center { --pw: 236px; }
  .fan .side { --pw: 196px; top: 54px; }
  .fan .left { transform: translateX(-52%) rotate(-9deg); }
  .fan .right { transform: translateX(52%) rotate(9deg); }
  .moment-sec { padding: 80px 0 72px; }
  .moment-sec .wrap { grid-template-columns: 1fr; gap: 44px; }
  .moment-sec.flip .copy { order: 0; }
  .moment-sec .phone { --pw: 250px; }
  .block { padding: 88px 0; }
  .block-head { margin-bottom: 40px; }
  .moods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mood-card { border-radius: 14px; }
  .mood-card span { font-size: 14px; left: 11px; bottom: 9px; }
  .support { border-radius: 26px; }
  .support-copy { padding: 36px 26px 30px; }
  .support-list { padding: 28px 26px 32px; }
  .faq summary { padding: 18px 50px 18px 20px; font-size: 16.5px; }
  .faq summary::after { right: 20px; }
  .faq details p { padding: 0 20px 20px; font-size: 15.5px; }
  .langs { margin: 0 20px 20px; }
  .closing { padding: 88px 0 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .doc { padding: 32px 22px; border-radius: 22px; font-size: 15.5px; }
  .legal .container { padding: 0 14px; }
  .legal .page-header { padding: calc(var(--nav-h) + 44px) 0 34px; }
  .verse { padding: 26px 20px 22px; border-radius: 20px; }
  .cta { padding: 22px 20px; }
  .verses-main .moods { grid-template-columns: 1fr 1fr; }
  .scene { border-radius: 20px; aspect-ratio: 240 / 120; }
  .page-hero { padding: calc(var(--nav-h) + 44px) 0 40px; }
}
@media (max-width: 350px) {
  .brand span { display: none; }
  .fan .left { transform: translateX(-46%) rotate(-9deg); }
  .fan .right { transform: translateX(46%) rotate(9deg); }
}
