/* Sahar Azan website. Sukoon tokens (DESIGN.md): cream and olive by day, warm charcoal by night.
   No external requests; motion is transform and opacity only. */

@font-face { font-family: Inter; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(../fonts/inter-tight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Amiri; src: url(../fonts/amiri.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light dark;
  --marble: #FFF8EA; --ink: #323D25; --ink2: #4F5640; --ink3: #64674F;
  --hairline: #EBE3C6; --sandstone: #56643F; --tint: #EDE8CA; --surface: #FFFDF6;
  --khaki: #D2CF9A; --sage: #9BA685;
  --band: #323D25; --band-ink: #FFEFD2; --band-ink2: #D2CF9A; --band-line: #4A5539;
  --btn: #323D25; --btn-ink: #FFF8EA;
  --arch: #EDE8CA; --arch-line: #CFC795; --land1: #D9D5AA; --land2: #B9BC93;
  --frame: #1B2014; --frame-edge: #D2CF9A;
  --header: #FFF8EA;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(20px, 5vw, 48px);
}
@supports (animation-timing-function: linear(0, 1)) {
  /* A critically damped spring (no overshoot), as the app's SukoonMotion.settle. */
  :root { --spring: linear(0, .104, .299, .488, .644, .760, .843, .899, .936, .960, .975, .985, .991, .995, 1); }
}
:root[data-theme="dark"] {
    --marble: #171814; --ink: #F3EBDA; --ink2: #CFC8B2; --ink3: #BDB9A6;
    --hairline: #2E302A; --sandstone: #D2CF9A; --tint: #262820; --surface: #212219;
    --band: #212219; --band-ink: #F3EBDA; --band-ink2: #CFC8B2; --band-line: #393B31;
    --btn: #D2CF9A; --btn-ink: #171814;
    --arch: #212219; --arch-line: #45463A; --land1: #2A2C22; --land2: #34382A;
    --frame: #08090600; --frame-edge: #4B4D40;
    --header: #171814;
  }


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--marble); color: var(--ink);
  font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sandstone); text-underline-offset: .18em; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sandstone); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--khaki); color: #1F2618; }
h1, h2, h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.2rem + 6.4vw, 5.75rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.75rem); line-height: 1.04; letter-spacing: -.028em; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.008em; }
p { margin: 0; text-wrap: pretty; }
.ar { font-family: Amiri, "Geeza Pro", serif; font-weight: 400; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 18px; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; color: var(--ink2); margin-top: 22px; max-width: 32em; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--btn); color: var(--btn-ink); padding: 12px 18px; border-radius: 14px; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--hairline); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; font: 600 1.05rem "Inter Tight", Inter, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink2); text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: 10px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--tint); }
@media (max-width: 859px) { .top nav a.wide { display: none; } }
@media (max-width: 379px) { .top nav a { padding: 0 8px; font-size: .875rem; } .brand { font-size: .98rem; gap: 8px; } .brand img { width: 28px; height: 28px; } .top .wrap { padding-inline: 16px; gap: 6px; } }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .45s var(--spring), opacity .2s; touch-action: manipulation; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-line { border-color: var(--sage); color: var(--ink); }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--tint); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: .875rem; font-weight: 500; }
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 3px; background: var(--sandstone); }

/* Phone: the app's real screens inside a drawn frame */
.phone { position: relative; width: 100%; max-width: 320px; padding: 8px; border-radius: 46px; background: var(--frame, #1B2014); border: 1.5px solid var(--frame-edge); box-shadow: 0 30px 60px -30px rgb(25 30 14 / .45); margin: 0; }
.phone img { width: 100%; aspect-ratio: 390 / 844; border-radius: 37px; background: var(--marble); }
.phone::after { content: ""; position: absolute; left: 50%; top: 19px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #11150C; }
:where(:root[data-theme="dark"]) .phone { background: #0B0C09; box-shadow: none; }


/* Hero */
.hero { padding-top: clamp(28px, 6vw, 72px); }
.hero > .wrap { display: grid; gap: 40px; }
.hero h1 { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .quiet { margin-top: 18px; font-size: .9375rem; color: var(--ink3); }
.stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 10 / 11.4; }
.stage .arch { position: absolute; inset: 0 3% 0; width: 94%; height: 100%; max-width: none; }
.stage .phone { position: absolute; width: 50%; border-radius: 15.5% / 7.4%; padding: 1.4%; }
.stage .phone img { border-radius: 13.6% / 6.3%; }
.stage .phone::after { width: 3.6%; height: auto; aspect-ratio: 1; top: 2.4%; margin-left: -1.8%; }
.stage .p-back { left: 5%; top: 17%; width: 43%; }
.stage .p-front { right: 5%; top: 8%; width: 50%; z-index: 1; }
@media (min-width: 940px) {
  .hero > .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: min(820px, calc(100svh - 68px)); padding-bottom: 40px; }
  html.shot .hero > .wrap { min-height: 0; }
}
.strip { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--hairline); }
.strip ul { list-style: none; margin: 0 auto; padding-block: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 20px; }
.strip a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.strip a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 599px) { .strip ul { justify-content: flex-start; } }

/* Sections */
section { scroll-margin-top: 68px; }
.sec { padding-block: clamp(80px, 11vw, 152px); }
.split { display: grid; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.visual { display: flex; justify-content: center; }
.visual .phone { max-width: min(320px, 84%); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip > .visual { order: -1; }
}
.rows { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.rows li { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.rows h3 + p { color: var(--ink2); font-size: .975rem; margin-top: 4px; }

/* The Azan: an olive band */
.band { background: var(--band); color: var(--band-ink); --ink: var(--band-ink); --ink2: var(--band-ink2); --ink3: var(--band-ink2); --hairline: var(--band-line); --sandstone: #D2CF9A; --tint: rgb(255 239 210 / .08); }
.band .phone { --frame: #171B10; --frame-edge: #6E7A58; }
.platforms { display: grid; gap: 12px; margin-top: 28px; }
.card { background: var(--tint); border: 1px solid var(--hairline); border-radius: 20px; padding: 20px; }
.card p { color: var(--ink2); font-size: .975rem; margin-top: 6px; }
@media (min-width: 560px) { .platforms { grid-template-columns: 1fr 1fr; } }
.phrases { margin-top: clamp(64px, 8vw, 104px); }
.phrases ol { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--hairline); }
.phrases li { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.phrases .ar { font-size: 1.75rem; line-height: 1.8; color: #D2CF9A; text-align: right; }
.phrases strong { font: 600 clamp(1.4rem, 1rem + 1.2vw, 1.85rem)/1.15 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; }
.phrases .w { display: inline-block; }
@media (min-width: 640px) { .phrases ol { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 980px) { .phrases ol { grid-template-columns: 1fr 1fr 1fr; column-gap: 48px; } }

/* Quran: two pages, light and night */
.pair { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.pair .phone { width: 52%; max-width: 280px; border-radius: 15.5% / 7.4%; padding: 1.4%; }
.pair .phone img { border-radius: 13.6% / 6.3%; }
.pair .phone::after { width: 3.6%; height: auto; aspect-ratio: 1; top: 2.4%; margin-left: -1.8%; }
.pair .phone + .phone { margin-left: -8%; margin-top: 14%; }

/* Duas and dhikr */
.duo { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 560px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo .card { background: var(--surface); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: space-between; gap: 12px; }
.duo .card .eyebrow { margin: 0; }
.duo .ar { font-size: 1.8rem; line-height: 2; color: var(--ink); margin: 0; }
.duo .say { font-style: italic; }
.duo small { color: var(--ink3); font-size: .8125rem; }
.tasbih { appearance: none; position: relative; width: 148px; height: 148px; border-radius: 50%; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .45s var(--spring); }
.tasbih:active { transform: scale(.95); transition-duration: .1s; }
.tasbih svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tasbih circle { fill: none; stroke-width: 7; }
.tasbih .t { stroke: var(--hairline); }
.tasbih .v { stroke: var(--sandstone); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transition: stroke-dashoffset .35s var(--ease); }
.tasbih b { display: block; font: 600 3rem/1 "Inter Tight", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.tasbih span { display: block; font-size: .75rem; color: var(--ink3); margin-top: 2px; }
.link-btn { appearance: none; background: none; border: 0; color: var(--sandstone); font: 500 .875rem Inter, sans-serif; min-height: 44px; padding: 0 16px; cursor: pointer; }
.no-js .tasbih-card { display: none; }
.no-js .duo { grid-template-columns: 1fr; }

/* Qibla */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Ramadan: night indigo, the app's Ramadan look */
.night { background: #121A3A; color: #FFF1CF; --ink: #FFF1CF; --ink2: #D9D5C6; --ink3: #E8C873; --hairline: rgb(255 241 207 / .16); --sandstone: #E8C873; --tint: rgb(255 241 207 / .06); }
.night .phone { --frame: #070A1A; --frame-edge: #4A5072; background: #070A1A; box-shadow: none; }

/* Privacy */
.statement { font: 600 clamp(2.4rem, 1rem + 6vw, 5.5rem)/1.04 "Inter Tight", Inter, sans-serif; letter-spacing: -.035em; }
.statement span { display: block; }
.statement span:nth-child(even) { color: var(--ink3); }
.grid4 { list-style: none; margin: 56px 0 0; padding: 0; display: grid; column-gap: 32px; }
.grid4 li { border-top: 1px solid var(--hairline); padding: 20px 0 28px; }
.grid4 p { color: var(--ink2); font-size: .975rem; margin-top: 8px; }
@media (min-width: 600px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.more { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; margin-top: 8px; }
.tinted { background: var(--tint); --hairline: #D8D1A8; }
:where(:root[data-theme="dark"]) .tinted { background: #1D1E18; --hairline: #35372D; }

.tinted .eyebrow, .tinted .statement span:nth-child(even) { color: var(--ink2); }

/* Languages */
.langs { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.langs li { border: 1px solid var(--hairline); background: var(--surface); border-radius: 14px; padding: 10px 16px; line-height: 1.5; }
.langs b { display: block; font-weight: 500; font-size: 1.0625rem; }
.langs small { display: block; color: var(--ink3); font-size: .75rem; }
.note { margin-top: 20px; font-size: .9375rem; color: var(--ink3); max-width: 34em; }

/* FAQ */
.faq .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq .wrap { grid-template-columns: 1fr 1.7fr; gap: 72px; } .faq h2 { position: sticky; top: 110px; } }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 1.125rem/1.35 "Inter Tight", Inter, sans-serif; touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.75px solid var(--sandstone); border-bottom: 1.75px solid var(--sandstone); transform: rotate(45deg); transition: transform .45s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { color: var(--ink2); padding: 0 32px 24px 0; }
.faq details[open] p { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } }

/* Closing */
.closing { text-align: center; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); }
.closing .gate { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(120px, 17vw, 190px) 24px clamp(64px, 8vw, 96px); }
.closing .gate > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.closing { isolation: isolate; }
.closing .ar { font-size: clamp(3.5rem, 2rem + 6vw, 6rem); line-height: 1.4; color: var(--sandstone); }
.closing h2 { max-width: 11em; margin: 8px auto 0; }
.closing p.lead { margin-inline: auto; }
.closing .actions { display: flex; justify-content: center; margin-top: 32px; }
.closing .share { margin: 24px auto 0; max-width: 24em; }
.closing .btn { max-width: 100%; padding-inline: clamp(14px, 4vw, 26px); }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding-block: 48px 40px; font-size: .875rem; color: var(--ink3); }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; column-gap: 24px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.foot nav a:hover { text-decoration: underline; }
.foot .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); display: grid; gap: 8px; font-size: .8125rem; max-width: 70em; }

/* Privacy and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--pad) 88px; }
.doc .label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.doc h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); margin: 12px 0 20px; line-height: 1.04; }
.doc h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; margin: 52px 0 12px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.doc p, .doc li, .doc td { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 20px; margin: 0; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--sage); }
.doc a { overflow-wrap: anywhere; }
.doc .pill { margin: 16px 0 0; border-radius: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .975rem; }
.doc th, .doc td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font-weight: 600; width: 36%; padding-right: 20px; }
@media (max-width: 519px) { .doc th, .doc td { display: block; width: auto; } .doc th { border: 0; padding-bottom: 0; } .doc td { padding-top: 4px; } }
.doc .docfoot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: .8125rem; color: var(--ink3); }

/* Motion: fade in and rise (DESIGN.md §9). Content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .9s var(--spring); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .phrases .w { opacity: 0; transform: translateY(.5em); transition: opacity .45s var(--ease), transform .7s var(--spring); }
.js .phrases .in .w { opacity: 1; transform: none; }
.js .stage .phone { animation: land 1.1s var(--spring) both; }
.js .stage .p-back { animation-delay: .12s; }
@keyframes land { from { opacity: 0; transform: translateY(32px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .phrases .w { opacity: 1; transform: none; }
  .btn:active, .tasbih:active { transform: none; opacity: .75; }
}
@media (prefers-contrast: more) { :root { --ink3: var(--ink2); --hairline: var(--sage); } }
@media print { .top, .foot nav { display: none; } }

/* The arch fades out below the phones instead of ending in a hard edge. */
.stage .arch { -webkit-mask-image: linear-gradient(#000 55%, transparent 98%); mask-image: linear-gradient(#000 55%, transparent 98%); }

/* Devices: a current iPhone (Dynamic Island, titanium rim) and a current Android (punch-hole camera,
   flat thin bezel). Sizes are in cqw, so both stay true at every width. */
.phone { container-type: inline-size; --screen: #FFF9EB; --on-screen: #1D2415; }
.phone.s-azan { --screen: #F4EEDB; }
.phone.s-night { --screen: #141832; --on-screen: #F4EFE0; }
:where(:root[data-theme="dark"]) .phone, :where(:root[data-theme="dark"]) .phone.s-azan { --screen: #171813; --on-screen: #F4EFE0; }
:where(:root[data-theme="dark"]) .phone.s-light { --screen: #FFF9EB; --on-screen: #1D2415; }
:where(:root[data-theme="dark"]) .phone.s-night { --screen: #141832; }

.phone .sb { position: absolute; display: flex; justify-content: space-between; align-items: center; pointer-events: none; color: var(--on-screen); z-index: 1; }
.phone .sb svg { fill: currentColor; height: auto; }
.phone img { aspect-ratio: auto; height: auto; background: var(--screen); }
.phone::after { display: none; }
.phone .island, .phone .hole { position: absolute; left: 50%; translate: -50% 0; background: #050604; z-index: 2; }
.phone::before { content: ""; position: absolute; right: -1.1cqw; top: 24%; width: 1.2cqw; height: 13%; border-radius: 0 1cqw 1cqw 0; background: var(--rim, #6D6F66); }

.phone.iphone { --rim: #8B8A80; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.phone.iphone > .body { position: relative; z-index: 1; padding: 3.2cqw; border-radius: 17cqw; background: #050604; border: 1.1cqw solid var(--rim); box-shadow: inset 0 0 0 .35cqw #2A2B26, 0 0 0 1px rgb(255 255 255 / .22), 0 30px 60px -30px rgb(25 30 14 / .5); }
.phone.iphone img { border-radius: 12.8cqw; padding-top: 11cqw; }
.phone.iphone .island { top: 7cqw; width: 28cqw; height: 8.2cqw; border-radius: 5cqw; }
.phone.iphone .island::after { content: ""; position: absolute; right: 2.4cqw; top: 2.6cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #24324A, #07090D 70%); }
.phone.iphone .sb { top: 7.4cqw; height: 7.4cqw; left: 11cqw; right: 9.5cqw; font: 600 4.4cqw/1 Inter, system-ui, sans-serif; }
.phone.iphone .sb svg { width: 17cqw; }

.phone.android { --rim: #4A4D44; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.phone.android > .body { position: relative; z-index: 1; padding: 2.2cqw; border-radius: 11cqw; background: #07080A; border: .8cqw solid var(--rim); box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 30px 60px -30px rgb(25 30 14 / .5); }
.phone.android::before { top: 19%; height: 7%; box-shadow: 0 26cqw 0 var(--rim); }
.phone.android img { border-radius: 8.6cqw; padding-top: 8.5cqw; }
.phone.android .hole { top: 5.2cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; box-shadow: 0 0 0 .5cqw #1B1D1A; }
.phone.android .sb { top: 4.2cqw; height: 6.4cqw; left: 8cqw; right: 7.5cqw; font: 500 3.8cqw/1 Inter, system-ui, sans-serif; }
.phone.android .sb svg { width: 15cqw; }

.stage .phone.iphone { width: 50%; }
.stage { perspective: 1400px; }

/* Motion (DESIGN.md §9): transform and opacity only, springs without bounce. */
@keyframes land { from { opacity: 0; transform: translateY(40px) scale(.94); } }
.js .visual.reveal, .js .pair.reveal { transform: translateY(26px) scale(.965); }
.js .visual.reveal.in, .js .pair.reveal.in { transform: none; }
.pair .phone { transition: transform .9s var(--spring); }
.js .pair.reveal:not(.in) .phone:first-child { transform: translateX(14%) rotate(2deg); }
.js .pair.reveal:not(.in) .phone + .phone { transform: translateX(-14%) rotate(-2deg); }
.stage .phone { will-change: translate; }
.btn { transition: transform .5s var(--spring), opacity .2s; }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .42s var(--spring), content-visibility .42s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) { .js .visual.reveal, .js .pair.reveal, .js .pair.reveal:not(.in) .phone { transform: none; } }
.phone.s-dark { --screen: #171813; --on-screen: #F4EFE0; }

/* ── Theme switch ─────────────────────────────────────────────── */
.theme { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: transform .5s var(--spring), background-color .2s; }
.theme:hover { background: color-mix(in srgb, var(--sage) 22%, transparent); }
.theme:active { transform: scale(.92); transition-duration: .1s; }
.theme svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
html:not(.js) .theme { display: none; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: open-theme .62s cubic-bezier(.2, .8, .2, 1); }
@keyframes open-theme { from { clip-path: circle(0 at var(--tx) var(--ty)); } to { clip-path: circle(150% at var(--tx) var(--ty)); } }

/* ── Brand and top space ──────────────────────────────────────── */
.brand { font-size: 1.25rem; letter-spacing: -.01em; }
@media (min-width: 900px) { .hero > .wrap { min-height: min(760px, calc(100svh - 68px)); padding-top: 0; } .hero { padding-top: 16px; } }

/* ── The tour: one phone stays, the sections pass it ──────────── */
.tour { position: relative; }
.tour-rail { display: none; }
@media (min-width: 900px) {
  .tour-rail { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .tour-rail > .wrap { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
  .tour-col { grid-column: 2; height: 100%; }
  .tour-phone { --w: min(310px, calc((100svh - 130px) / 2.16)); position: sticky; top: max(92px, calc(50svh - var(--w) * 1.04)); width: var(--w); height: calc(var(--w) * 2.14); margin: 56px auto; }
  .tour-phone .phone { position: absolute; inset: 0 0 auto; width: 100%; max-width: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(26px) scale(.96); transition: opacity .35s var(--ease), transform .8s var(--spring), visibility .35s; }
  .tour-phone .phone.past { transform: translateY(-22px) scale(.96); }
  .tour-phone .phone.on { opacity: 1; visibility: visible; transform: none; }
  .tour section > .wrap > .split > .visual, .tour section > .wrap.split > .visual { visibility: hidden; min-height: 560px; }
  .tour section { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; }
  .tour .phrases { width: calc(50% - 36px); }
  .tour .phrases ol { grid-template-columns: 1fr 1fr; }
}

/* ── Inked Arabic ─────────────────────────────────────────────── */
.has-ink { position: relative; overflow: clip; }
.has-ink > .wrap { position: relative; z-index: 1; }
.ink { position: absolute; z-index: 0; top: 2%; inset-inline-start: -1%; font-family: Amiri, serif; font-size: clamp(7rem, 22vw, 20rem); line-height: 1.5; padding: 0 .2em; color: var(--sandstone); opacity: .09; pointer-events: none; user-select: none; white-space: nowrap; clip-path: inset(0 0 0 100%); translate: 24px 0; }
.ink.drawn { clip-path: inset(0 0 0 0); translate: 0; transition: clip-path 1.9s cubic-bezier(.45, .05, .25, 1), translate 2.4s var(--spring); }
.band .ink, .night .ink { color: #D2CF9A; opacity: .11; }

/* ── Live screens (390 × 844 design, sized in cqw of the phone) ─ */
.live { --bg: #FFF8EA; --ink: #323D25; --ink2: #5A6147; --line: #E6DEC0; --tint: #EDE8CA; --acc: #56643F; --card: #FFFDF6; position: relative; overflow: hidden; border-radius: 12.8cqw; aspect-ratio: 390 / 844; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 3.6cqw; line-height: 1.35; text-align: left; }
.android .live { border-radius: 8.6cqw; }
:root[data-theme="dark"] :where(.live) { --bg: #171813; --ink: #F4EFE0; --ink2: #BFC2A4; --line: #33362B; --tint: #2A2E20; --acc: #D2CF9A; --card: #21231B; }
.s-night .live { --bg: #141832; --ink: #F4EFE0; --ink2: #B9BCD6; --line: #2C3157; --tint: #232850; --acc: #D9B66A; --card: #1C2145; }
.live > div { position: absolute; inset: 0; padding: 17cqw 6cqw 6cqw; display: flex; flex-direction: column; }
.live p, .live h4, .live ul { margin: 0; padding: 0; }
.live h4 { font: 700 8cqw/1.1 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; }
.live .ar { font-family: Amiri, serif; }
.live .k { font-size: 2.9cqw; font-weight: 600; letter-spacing: .08em; color: var(--ink2); }
.live .chip { align-self: flex-start; margin-top: 2cqw; padding: 1.4cqw 3.4cqw; border-radius: 9cqw; background: var(--tint); font-variant-numeric: tabular-nums; }
.live ul { list-style: none; margin-top: auto; }
.live li { display: flex; justify-content: space-between; padding: 3.3cqw 3cqw; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.live li.on { background: var(--tint); border-radius: 3.5cqw; border-color: transparent; font-weight: 600; }
.live .row.big { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2cqw; font: 700 12cqw/1.05 "Inter Tight", Inter, sans-serif; letter-spacing: -.03em; }
.live .sky { width: 100%; margin-top: 7cqw; color: var(--acc); }
.live .orb { transition: cx 1s linear, cy 1s linear; }

.s-azan-live .h { font: 600 6cqw/1.2 "Inter Tight", Inter, sans-serif; }
.s-azan-live .say { margin-top: 15cqw; min-height: 68cqw; }
.s-azan-live .say .ar { font-size: 8cqw; text-align: right; line-height: 1.7; }
.s-azan-live h4 { font-size: 11.5cqw; line-height: 1.06; margin-top: 2cqw; }
.s-azan-live h4 span { display: inline-block; }
.s-azan-live .go .ar { animation: fade .5s var(--ease) both; }
.s-azan-live .go h4 span { animation: up .8s var(--spring) both; animation-delay: calc(.12s + var(--i) * .09s); }
.s-azan-live .mat { align-self: flex-end; width: 33cqw; margin-top: auto; filter: drop-shadow(0 3cqw 3cqw rgb(0 0 0 / .18)); }
.s-azan-live .roll { transform-origin: 60px 4px; transition: transform 2.4s cubic-bezier(.3, .6, .2, 1); }
.live .btns { display: flex; gap: 3cqw; margin-top: 7cqw; }
.live .btns span { flex: 1; text-align: center; padding: 4cqw; border-radius: 12cqw; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.live .btns .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.s-quran .k { text-align: center; }
.s-quran .frame { margin-top: 4cqw; border: 1px solid #B8924A; border-radius: 2cqw; text-align: center; background: var(--tint); }
.s-quran .frame .ar { font-size: 7cqw; line-height: 2; }
.s-quran .verse { margin-top: 8cqw; font-size: 9.2cqw; line-height: 2.15; text-align: center; }
.s-quran .verse span { color: var(--ink); opacity: .32; transition: opacity .35s, color .35s; }
.s-quran .verse span.done { opacity: 1; }
.s-quran .verse span.now { opacity: 1; color: #B8873B; }
.s-quran .tr { margin-top: 6cqw; color: var(--ink2); text-align: center; }
.s-quran .player { position: relative; margin-top: auto; display: flex; align-items: center; gap: 3cqw; padding: 3.5cqw 4cqw; border-radius: 6cqw; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.s-quran .player i { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--acc); }
.s-quran .player b { position: absolute; left: 0; bottom: 0; height: .8cqw; width: 100%; background: #B8873B; transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s linear; }

.s-duas h4 { font-size: 6.6cqw; }
.s-duas .feel { display: flex; flex-wrap: wrap; gap: 2.4cqw; margin-top: 5cqw; }
.s-duas .feel span { padding: 2.6cqw 4.4cqw; border-radius: 9cqw; background: var(--card); border: 1px solid var(--line); transition: background-color .15s, color .15s; }
.s-duas .feel span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.s-duas .dua { margin-top: 6cqw; padding: 6cqw 5cqw; border-radius: 6cqw; background: var(--card); border: 1px solid var(--line); }
.s-duas .dua .ar { font-size: 6.4cqw; line-height: 2; text-align: right; }
.s-duas .dua p:not(.ar) { margin-top: 4cqw; color: var(--ink2); }
.s-duas .dua small { display: block; margin-top: 4cqw; font-size: 3cqw; color: var(--acc); font-weight: 600; }
.s-duas .dua.go { animation: pop .28s var(--ease) both; }

.live .s-qibla { align-items: center; text-align: center; }
.s-qibla h4 { align-self: flex-start; }
.s-qibla .k { align-self: flex-start; margin-top: 1cqw; }
.s-qibla .msg { margin-top: 13cqw; font-size: 4.8cqw; font-weight: 600; transition: color .3s; }
.s-qibla svg { width: 82cqw; margin-top: 10cqw; color: var(--ink2); }
.s-qibla .dial { transform-origin: 100px 100px; transition: transform 1.5s var(--spring); }
.s-qibla .kaaba { fill: var(--ink2); transition: fill .4s; }
.s-qibla.facing .msg { color: #4C8A45; }
.s-qibla.facing .kaaba { fill: #3F6B3A; }

.s-ram .lamps { position: absolute; left: 0; right: 0; top: 9cqw; width: 100%; }
.s-ram .lamp { animation: sway 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
.s-ram .k { margin-top: 38cqw; }
.s-ram h4 { font-size: 15cqw; margin-top: 2cqw; }
.s-ram .t { font: 700 10cqw/1.2 "Inter Tight", Inter, sans-serif; color: var(--acc); }

@keyframes up { from { opacity: 0; transform: translateY(.55em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.985); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

/* ── The founder's note ───────────────────────────────────────── */
.story .wrap { max-width: 800px; text-align: center; }
.story h2 { margin-inline: auto; }
.story p.body { margin: 22px auto 0; max-width: 62ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.75; color: var(--ink2); }
.story strong { color: var(--ink); font-weight: 600; }
.story .sign { margin: 34px 0 0; font: 400 clamp(2.4rem, 5vw, 3.2rem)/1.1 "Snell Roundhand", "Segoe Script", "Dancing Script", cursive; color: var(--ink); }
.story .role { margin: 6px 0 0; font-size: .9375rem; color: var(--ink3); }
.story .ink { inset-inline: 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .ink { clip-path: none; translate: 0; }
  ::view-transition-new(root) { animation: none; }
}

.s-today .sky { margin-top: 5cqw; padding: 3cqw 2cqw 0; border-radius: 6cqw; background: var(--tint); box-sizing: border-box; }
.live .date { margin: 5cqw 0 2cqw; text-align: center; font-size: 3.1cqw; color: var(--ink2); }
.live .date b { display: block; font-size: 3.7cqw; color: var(--ink); }
.live .s-today ul { margin-top: 1cqw; }
.live .s-today li { padding: 4.1cqw 3cqw; font-size: 3.9cqw; }
.live .tabs { display: flex; justify-content: space-around; margin-top: auto; padding-top: 3cqw; border-top: 1px solid var(--line); font-size: 3cqw; color: var(--ink2); }
.live .tabs span { padding: 1.6cqw 4cqw; border-radius: 6cqw; }
.live .tabs .on { background: var(--tint); color: var(--ink); font-weight: 600; }

/* ── The pinned showcase: the whole composition holds still ───── */
.show { --step: 72svh; position: relative; height: calc(100svh - 68px + (var(--n) - 1) * var(--step) + var(--step) * .35); }
.pin { position: sticky; top: 68px; height: calc(100svh - 68px); overflow: clip; background: var(--marble); transition: background-color .6s var(--ease); }
.pin > .wrap { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.show header { align-self: start; padding-top: clamp(40px, 12svh, 112px); }
.show h2 { margin: 12px 0 0; }
.show .count { margin: 24px 0 0; color: var(--ink3); font-variant-numeric: tabular-nums; }
.show .count b { color: var(--ink); font-size: 1.5rem; font-weight: 600; }
.device { --w: min(320px, calc((100svh - 130px) / 2.16)); width: var(--w); }
.device .phone { width: 100%; max-width: none; margin: 0; }
.device .live { position: relative; }
.device .page { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(14%); transition: opacity .32s var(--ease), transform .6s var(--spring), visibility .32s; }
.device .page.before { transform: translateX(-8%); }
.device .page.on { opacity: 1; visibility: visible; transform: none; }
.device .page > .live { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.device .page > .live > div { padding-top: 6cqw; }
.device > .phone > .body > .live { aspect-ratio: auto; height: 0; padding-bottom: 216%; background: var(--screen); transition: background-color .4s; }
.device .page.s-night { --screen: #141832; }

.show ol { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 420px; justify-self: end; }
.show ol > li { border-bottom: 1px solid var(--hairline); }
.show ol > li:first-child { border-top: 1px solid var(--hairline); }
.show ol > li button { position: relative; display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--ink3); font: 500 1.125rem/1.3 "Inter Tight", Inter, sans-serif; text-align: start; cursor: pointer; transition: color .25s, transform .5s var(--spring); }
.show ol > li button:hover { color: var(--ink); }
.show ol > li button:active { transform: scale(.985); transition-duration: .1s; }
.show ol > li.on button { color: var(--ink); font-size: 1.375rem; font-weight: 600; }
.show ol > li i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; overflow: hidden; }
.show ol > li i b { display: block; height: 100%; background: var(--sandstone); transform: scaleX(0); transform-origin: 0 50%; }
.show ol > li.on i { opacity: 1; }
.body-text { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .5s var(--spring), opacity .3s var(--ease), visibility .3s; }
.body-text > div { overflow: hidden; }
.show ol > li.on .body-text { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.body-text h3 { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.body-text p { margin: 6px 0 18px; color: var(--ink2); font-size: 1rem; line-height: 1.6; }

.show .ink { left: 50%; top: 50%; inset-inline-start: 50%; translate: -50% -50%; font-size: clamp(9rem, 30vw, 28rem); }
.show .ink:not(.drawn) { clip-path: inset(0 0 0 100%); }
.show .ink.drawn { translate: -50% -50%; transition: clip-path 1.5s cubic-bezier(.45, .05, .25, 1); }
.show.dusk .pin { background: #141832; --ink: #F4EFE0; --ink2: #C3C6DE; --ink3: #9CA0BF; --hairline: #2E3359; --sandstone: #D9B66A; color: var(--ink); }
.show.dusk h2, .show.dusk .ink { color: var(--ink); }

@media (max-width: 899px) {
  .show { --step: 66svh; }
  .pin > .wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-content: start; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .show header { display: none; }
  .device { --w: min(270px, 66vw, calc((100svh - 300px) / 2.16)); min-width: 150px; align-self: center; }
  .show ol { justify-self: center; max-width: 480px; min-height: 158px; text-align: center; }
  .show ol > li, .show ol > li:first-child { border: 0; }
  .show ol > li:not(.on) { display: none; }
  .show ol > li.on button { justify-content: center; min-height: 48px; }
  .show ol > li i { left: 30%; right: 30%; bottom: 2px; }
  .body-text h3 { display: none; }
  .body-text p { margin: 8px 0 0; font-size: .9375rem; }
}

/* ── The details, as even cards ───────────────────────────────── */
.details .cards { display: grid; gap: 16px; margin-top: 32px; align-items: start; }
@media (min-width: 760px) { .details .cards { grid-template-columns: 1fr 1fr; } .details article.wide { grid-column: 1 / -1; } }
.details article { min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--hairline); background: color-mix(in srgb, var(--sage) 9%, transparent); scroll-margin-top: 88px; }
.details article > h3 { margin: 0 0 8px; font-size: 1.375rem; }
.details .platforms, .details .duo { margin-top: 12px; }
.details ul.rows { margin: 8px 0 0; }
.details .phrases { width: auto; margin-top: 24px; }
.details article.wide ul.rows { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Dhikr and language screens ───────────────────────────────── */
.live .s-dhikr { align-items: center; text-align: center; }
.s-dhikr h4 { align-self: flex-start; }
.s-dhikr .ar { margin-top: 20cqw; font-size: 11cqw; line-height: 1.8; }
.s-dhikr .ring { position: relative; width: 62cqw; height: 62cqw; margin-top: 10cqw; display: grid; place-content: center; }
.s-dhikr svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.s-dhikr circle { fill: none; stroke: var(--tint); stroke-width: 7; }
.s-dhikr .v { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .3s var(--ease); }
.s-dhikr .ring b { position: relative; font: 700 19cqw/1 "Inter Tight", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.s-dhikr .ring small { position: relative; color: var(--ink2); }
.s-dhikr .tap b { animation: pop .22s var(--ease); }
.s-dhikr .hint { margin-top: auto; color: var(--ink2); }
.s-lang .view { flex: 1; overflow: hidden; margin-top: 5cqw; }
.live .s-lang ul { margin: 0; transition: transform .7s var(--spring); }
.live .s-lang li { align-items: center; padding: 3cqw 4cqw; height: 15cqw; box-sizing: border-box; }
.s-lang li b { font-size: 4.6cqw; font-weight: 600; }
.s-lang li small { color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { .show .ink:not(.drawn) { clip-path: none; } .device .page { transform: none; } }
.device .page > .live > div { padding-top: 17cqw; }
.device .page .s-ram .lamps { top: 0; }
.device .page .s-ram .lamps path:first-child { stroke-width: 1; }
.show ol > li { position: relative; }
.show ol > li button { position: static; }
.details .phrases .ar { color: var(--sandstone); }
.details .phrases strong, .details .phrases .eyebrow { color: var(--ink); }
.details .phrases .w { opacity: 1; transform: none; }
.details .phrases li { border-color: var(--hairline); }
@media (max-width: 899px) { .show ol > li i { top: 45px; bottom: auto; } }
