/* Qiraat site. One stylesheet for both directions (logical properties), Emerald and Gold tokens from the app's
   design system (docs/design/redesign-2026-10/canvas/system.css). Motion lives only inside
   prefers-reduced-motion: no-preference. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("/assets/fonts/NotoNaskhArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("/assets/fonts/NotoNaskhArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/assets/fonts/Amiri-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #FFFBF1; --s1: #FFFAEF; --s2: #F8EFD9; --s3: #F2E7CC; --s4: #ECDFC0;
  --line: #E6D6AE; --line2: #EFE3C4; --sep: rgba(140, 122, 85, 0.20);
  --ink: #1E2B24; --ink2: #5B6660; --ink3: #8A918C;
  --primary: #0E5A3A; --on-primary: #FFFFFF; --pc: #D5E9DC; --on-pc: #0A3523;
  --gold: #A07A2C; --gold-text: #7A5B1E; --sc: #F1E4C3; --on-sc: #4D3B12;
  --hafs: #546E7A; --shubah: #1565C0; --hisham: #2E7D32; --dhakwan: #C62828;
  --glass: rgba(255, 251, 241, 0.72); --glass-line: rgba(160, 122, 44, 0.22); --glass-solid: #FFFAEF;
  --hi: rgba(255, 255, 255, 0.75);
  --glow-a: rgba(14, 90, 58, 0.10); --glow-b: rgba(217, 184, 104, 0.22);
  --pattern: rgba(160, 122, 44, 0.13);
  --shadow-device: 0 50px 80px -40px rgba(14, 50, 34, 0.45), 0 22px 40px -28px rgba(14, 50, 34, 0.35);
  --shadow-card: 0 1px 0 rgba(30, 43, 36, 0.04), 0 18px 40px -32px rgba(30, 43, 36, 0.30);
  --frame-a: #2A302C; --frame-b: #0A0D0B; --frame-ring: #6E736F;

  --ui: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --naskh: "Noto Naskh Arabic", "Geeza Pro", "Arabic Typesetting", serif;
  --display-ar: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --shell: 72rem;
  --gutter: 16px;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D1411; --s1: #121B17; --s2: #17221D; --s3: #1D2A24; --s4: #24332C;
    --line: #2C3B34; --line2: #24322B; --sep: rgba(230, 226, 214, 0.12);
    --ink: #E6E2D6; --ink2: #B9B4A5; --ink3: #7F8A84;
    --primary: #8FD3AE; --on-primary: #003822; --pc: #1F4A36; --on-pc: #CDEBD9;
    --gold: #D9B868; --gold-text: #D9B868; --sc: #3A3220; --on-sc: #F1E4C3;
    --hafs: #8FA9B5; --shubah: #64A0F0; --hisham: #6CC070; --dhakwan: #F07070;
    --glass: rgba(23, 34, 29, 0.74); --glass-line: rgba(217, 184, 104, 0.18); --glass-solid: #17221D;
    --hi: rgba(255, 255, 255, 0.08);
    --glow-a: rgba(143, 211, 174, 0.10); --glow-b: rgba(217, 184, 104, 0.10);
    --pattern: rgba(217, 184, 104, 0.10);
    --shadow-device: 0 50px 80px -40px rgba(0, 0, 0, 0.75), 0 22px 40px -28px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -32px rgba(0, 0, 0, 0.6);
    --frame-a: #3A403C; --frame-b: #050706; --frame-ring: #59605B;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1411; --s1: #121B17; --s2: #17221D; --s3: #1D2A24; --s4: #24332C;
  --line: #2C3B34; --line2: #24322B; --sep: rgba(230, 226, 214, 0.12);
  --ink: #E6E2D6; --ink2: #B9B4A5; --ink3: #7F8A84;
  --primary: #8FD3AE; --on-primary: #003822; --pc: #1F4A36; --on-pc: #CDEBD9;
  --gold: #D9B868; --gold-text: #D9B868; --sc: #3A3220; --on-sc: #F1E4C3;
  --hafs: #8FA9B5; --shubah: #64A0F0; --hisham: #6CC070; --dhakwan: #F07070;
  --glass: rgba(23, 34, 29, 0.74); --glass-line: rgba(217, 184, 104, 0.18); --glass-solid: #17221D;
  --hi: rgba(255, 255, 255, 0.08);
  --glow-a: rgba(143, 211, 174, 0.10); --glow-b: rgba(217, 184, 104, 0.10);
  --pattern: rgba(217, 184, 104, 0.10);
  --shadow-device: 0 50px 80px -40px rgba(0, 0, 0, 0.75), 0 22px 40px -28px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 18px 40px -32px rgba(0, 0, 0, 0.6);
  --frame-a: #3A403C; --frame-b: #050706; --frame-ring: #59605B;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--ui); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) { font-family: var(--naskh); letter-spacing: 0; }
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
[lang="en"] { font-family: var(--ui); }
html[lang="ar"] [lang="en"] { font-size: 0.94em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pc); color: var(--on-pc); }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--on-primary); text-decoration: none; }
.skip:focus { inset-block-start: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
:lang(ar).display, :lang(ar) .display { font-family: var(--display-ar); font-weight: 700; letter-spacing: 0; line-height: 1.45; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1.4 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-block-end: 14px; }
:lang(ar).eyebrow, :lang(ar) .eyebrow { font: 600 15px/1.6 var(--naskh); letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; inline-size: 12px; block-size: 12px; background: var(--gold); flex: none;
  clip-path: polygon(50% 0%, 64.65% 14.64%, 85.36% 14.64%, 85.36% 35.35%, 100% 50%, 85.36% 64.65%, 85.36% 85.36%, 64.65% 85.36%, 50% 100%, 35.35% 85.36%, 14.64% 85.36%, 14.64% 64.65%, 0% 50%, 14.64% 35.35%, 14.64% 14.64%, 35.35% 14.64%); }
.h2 { font-size: clamp(30px, 4.6vw, 46px); margin-block-end: 18px; text-wrap: balance; }
:lang(ar) .h2 { font-size: clamp(30px, 4.4vw, 44px); }
.lede { font-size: 1.08em; color: var(--ink2); max-inline-size: 34rem; text-wrap: pretty; }
.lede + .lede { margin-block-start: 12px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--sc); color: var(--on-sc); font: 700 11px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.25em; margin-inline-start: 6px; }
:lang(ar) .badge, :lang(ar).badge { font: 600 13px/1 var(--naskh); letter-spacing: 0; text-transform: none; height: 24px; }

/* ---------- header (glass) ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 20; padding-block: 10px; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  block-size: 60px; padding-inline: 10px 8px; border-radius: 30px;
  background: var(--glass-solid); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--hi), 0 10px 30px -24px rgba(14, 50, 34, 0.5);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header .bar { background: linear-gradient(180deg, var(--hi), transparent 120%), var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-block-size: 44px; }
.brand img { inline-size: 36px; block-size: 36px; border-radius: 9px; }
.brand span { font: 700 22px/1 var(--display-ar); padding-block-start: 4px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 12px; border-radius: 22px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
:lang(ar) .nav a { font-size: 16px; }
.nav a:hover { background: var(--s3); }
.nav a.lang { background: var(--pc); color: var(--on-pc); font-weight: 600; padding-inline: 16px; }
@media (max-width: 639px) { .nav a.opt { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-block-start: -80px; padding-block: 108px 64px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 34rem at 78% 8%, var(--glow-a), transparent 70%), radial-gradient(40rem 26rem at 12% 30%, var(--glow-b), transparent 70%); }
html[dir="rtl"] .hero-bg { background: radial-gradient(60rem 34rem at 22% 8%, var(--glow-a), transparent 70%), radial-gradient(40rem 26rem at 88% 30%, var(--glow-b), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--pattern);
  -webkit-mask: url("/assets/pattern.svg") repeat 0 0 / 64px 64px; mask: url("/assets/pattern.svg") repeat 0 0 / 64px 64px; }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, var(--paper) 92%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; min-block-size: 640px; } }
.hero-copy { text-align: center; }
@media (min-width: 960px) { .hero-copy { text-align: start; } }
.hero-icon { inline-size: 88px; block-size: 88px; border-radius: 20px; margin-inline: auto; margin-block-end: 22px; box-shadow: 0 18px 40px -18px rgba(14, 90, 58, 0.55), 0 0 0 1px rgba(160, 122, 44, 0.25); }
@media (min-width: 960px) { .hero-icon { margin-inline: 0; } }
.wordmark { font-size: clamp(56px, 11vw, 96px); color: var(--ink); }
:lang(ar).wordmark { font-size: clamp(64px, 13vw, 112px); line-height: 1.25; }
.wordmark .ar-mark { display: block; font: 700 0.42em/1.4 var(--display-ar); letter-spacing: 0; color: var(--gold-text); margin-block-start: 4px; }
.rule-gold { display: block; inline-size: 72px; block-size: 1px; margin: 22px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
@media (min-width: 960px) { .rule-gold { margin-inline: 0; background: linear-gradient(90deg, var(--gold), transparent); } html[dir="rtl"] .rule-gold { background: linear-gradient(270deg, var(--gold), transparent); } }
.promise { font: 500 clamp(20px, 2.4vw, 26px)/1.45 var(--serif); color: var(--ink); max-inline-size: 32rem; margin-inline: auto; text-wrap: balance; }
:lang(ar).promise, :lang(ar) .promise { font: 400 clamp(20px, 2.4vw, 25px)/1.85 var(--naskh); }
@media (min-width: 960px) { .promise { margin-inline: 0; } }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 28px; min-block-size: 50px; padding: 8px 22px 8px 18px; border-radius: 25px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: clamp(14px, 3.7vw, 16px); text-wrap: balance; box-shadow: 0 14px 30px -18px rgba(14, 90, 58, 0.8); }
.soon svg { inline-size: 20px; block-size: 20px; flex: none; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 18px; }
@media (min-width: 960px) { .facts { justify-content: flex-start; } }
.facts li { display: inline-flex; align-items: center; gap: 6px; min-block-size: 34px; padding-inline: 12px 14px; border-radius: 17px; border: 1px solid var(--line); background: var(--s1); font-size: 14px; color: var(--ink2); }
:lang(ar) .facts li { font-size: 15px; }
.facts svg { inline-size: 15px; block-size: 15px; color: var(--primary); }

.hero-visual { position: relative; display: flex; justify-content: center; padding-block-end: 8px; }
.duo { --fw: min(300px, 58vw); --bw: min(250px, 48vw); position: relative; inline-size: calc(var(--fw) + var(--bw) * 0.5); }
.duo .par { --py: 0px; transform: translate3d(0, var(--py), 0); }
.duo .front { position: relative; z-index: 2; --pw: var(--fw); }
.duo .back { position: absolute; z-index: 1; inset-inline-end: 0; inset-block-start: 9%; --pw: var(--bw); }
.duo .back .phone { transform: rotate(5deg); }
html[dir="rtl"] .duo .back .phone { transform: rotate(-5deg); }
@media (min-width: 960px) { .duo { --fw: 330px; --bw: 280px; } }

/* ---------- devices ---------- */
.phone {
  --r: calc(var(--pw, 300px) * 0.135); --bz: calc(var(--pw, 300px) * 0.034);
  position: relative; inline-size: var(--pw, 300px); padding: var(--bz); border-radius: calc(var(--r) + var(--bz));
  background: linear-gradient(145deg, var(--frame-a), var(--frame-b) 38%, var(--frame-b) 70%, var(--frame-a));
  box-shadow: 0 0 0 1.5px var(--frame-ring), inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-device);
}
.phone::before, .phone::after { content: ""; position: absolute; inline-size: 3px; border-radius: 2px; background: var(--frame-ring); }
.phone::before { inset-inline-start: -3px; inset-block-start: 19%; block-size: 11%; }
.phone::after { inset-inline-end: -3px; inset-block-start: 26%; block-size: 15%; }
.screen { position: relative; overflow: hidden; border-radius: var(--r); background: #000; isolation: isolate; transform: translateZ(0); }
.screen img { inline-size: 100%; block-size: auto; }
.phone .screen::before { content: ""; position: absolute; z-index: 3; left: 35.7%; width: 28.6%; top: 1.15%; height: 3.85%; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 26%, rgba(255, 255, 255, 0) 42%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.tablet {
  --r: calc(var(--tw, 560px) * 0.04); --bz: calc(var(--tw, 560px) * 0.035);
  position: relative; inline-size: var(--tw, 560px); padding: var(--bz); border-radius: calc(var(--r) + var(--bz));
  background: linear-gradient(145deg, var(--frame-a), var(--frame-b) 40%, var(--frame-b) 70%, var(--frame-a));
  box-shadow: 0 0 0 1.5px var(--frame-ring), inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-device);
}
.tablet::before { content: ""; position: absolute; left: 50%; top: calc(var(--bz) * 0.5 - 3px); width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1a2220; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
figcaption.cap { margin-block-start: 16px; text-align: center; font-size: 14px; color: var(--ink2); }
:lang(ar) figcaption.cap { font-size: 15px; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: 72px; }
@media (min-width: 960px) { .section { padding-block: 96px; } }
.section.tint { background: linear-gradient(180deg, var(--paper), var(--s2) 22%, var(--s2) 78%, var(--paper)); }
.feature { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .copy { order: 2; }
}
.feature .copy { max-inline-size: 36rem; }
.feature .visual { display: flex; justify-content: center; align-items: center; gap: 20px; }
.feature .visual .phone { --pw: min(290px, 66vw); }
.feature .visual.pair .phone { --pw: min(250px, 44vw); }
.feature .visual.pair figure:nth-child(2) { margin-block-start: 64px; }
.points { margin-block-start: 26px; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.points .ic { inline-size: 36px; block-size: 36px; border-radius: 18px; display: grid; place-items: center; background: var(--pc); color: var(--on-pc); }
.points .ic svg { inline-size: 18px; block-size: 18px; }
.points h3 { font: 600 17px/1.4 var(--ui); margin-block: 6px 2px; }
:lang(ar) .points h3 { font: 600 18px/1.6 var(--naskh); margin-block: 3px 0; }
.points p { color: var(--ink2); font-size: 16px; }
:lang(ar) .points p { font-size: 17px; }
.promise-line { display: flex; gap: 12px; align-items: center; margin-block-start: 26px; padding: 14px 18px; border-radius: 18px; background: var(--s2); border: 1px solid var(--line2); color: var(--ink); font-weight: 600; }
.promise-line svg { inline-size: 22px; block-size: 22px; color: var(--primary); flex: none; }

/* readers legend */
.readers { margin-block-start: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-inline-size: 30rem; }
.readers li { display: flex; align-items: center; gap: 10px; min-block-size: 54px; padding: 8px 14px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.readers .who { font-weight: 600; line-height: 1.3; }
.readers .via { display: block; font-size: 13px; font-weight: 400; color: var(--ink2); }
:lang(ar) .readers .via { font-size: 14px; }
.dot { inline-size: 12px; block-size: 12px; border-radius: 50%; flex: none; background: var(--c, var(--hafs)); }
.dot.hafs { --c: var(--hafs); } .dot.shubah { --c: var(--shubah); } .dot.hisham { --c: var(--hisham); } .dot.dhakwan { --c: var(--dhakwan); }
.aim { margin-block-start: 22px; padding-inline-start: 16px; border-inline-start: 2px solid var(--gold); color: var(--ink2); max-inline-size: 34rem; }

/* tap demo: the page, a pulse on the word, then the popover */
.demo .screen .layer { position: absolute; inset: 0; }
.demo .screen .layer img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.demo .screen .base { position: relative; }
.demo .pop { opacity: 0; }
.demo .ring { position: absolute; z-index: 2; left: 1.6%; width: 16.2%; top: 70.4%; height: 5%; border-radius: 10px; border: 2px solid var(--gold); opacity: 0; box-shadow: 0 0 0 0 rgba(217, 184, 104, 0.6); }
.demo .tap { position: absolute; z-index: 2; left: 6.5%; width: 7%; aspect-ratio: 1; top: 71.2%; border-radius: 50%; background: rgba(160, 122, 44, 0.45); opacity: 0; }

/* trust */
.trust-grid { display: grid; gap: 16px; margin-block-start: 36px; }
@media (min-width: 820px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.card .ic { inline-size: 44px; block-size: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--sc); color: var(--on-sc); margin-block-end: 16px; }
.card .ic svg { inline-size: 22px; block-size: 22px; }
.card h3 { font: 600 22px/1.25 var(--serif); margin-block-end: 8px; }
:lang(ar) .card h3 { font: 700 24px/1.5 var(--display-ar); margin-block-end: 4px; }
.card p { color: var(--ink2); font-size: 16px; }
:lang(ar) .card p { font-size: 17px; }
.card p + p { margin-block-start: 10px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* iPad */
.ipad-stage { margin-block-start: 44px; }
.ipad-duo { position: relative; display: flex; justify-content: center; padding-block-end: 24px; }
.ipad-duo .tablet { --tw: min(520px, 82vw); }
.ipad-duo .phone { --pw: min(170px, 30vw); position: absolute; inset-block-end: 0; inset-inline-end: max(0px, calc(50% - min(520px, 82vw) / 2 - 48px)); }

/* FAQ */
.faq { max-inline-size: 46rem; margin-inline: auto; margin-block-start: 32px; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 60px; padding: 14px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; inline-size: 12px; block-size: 12px; border-inline-end: 2px solid var(--gold); border-block-end: 2px solid var(--gold); transform: rotate(45deg); margin-block-start: -6px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-block-start: 6px; }
.faq details > p { padding: 0 20px 18px; color: var(--ink2); }

/* closing */
.closing { text-align: center; padding-block: 84px 96px; }
.closing img { inline-size: 76px; block-size: 76px; border-radius: 17px; margin: 0 auto 20px; box-shadow: 0 18px 40px -18px rgba(14, 90, 58, 0.55); }
.closing .line { font-size: clamp(22px, 3vw, 30px); }
:lang(ar) .closing .line { font-size: clamp(24px, 3vw, 32px); }

/* footer */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 28px 40px; color: var(--ink2); font-size: 15px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: center; }
.site-footer a { color: var(--ink2); display: inline-flex; min-block-size: 44px; align-items: center; }
.site-footer a:hover { color: var(--primary); }

/* ---------- document pages (privacy, support, terms, 404) ---------- */
.doc-hero { padding-block: 40px 8px; text-align: center; }
.doc-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.doc-hero h1 .en { display: block; font-family: var(--serif); font-weight: 600; font-size: 0.62em; color: var(--gold-text); }
.jump { display: inline-flex; gap: 6px; margin-block-start: 18px; padding: 4px; border-radius: 26px; background: var(--s3); }
.jump a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 18px; border-radius: 22px; color: var(--ink); text-decoration: none; font-weight: 600; }
.jump a:hover { background: var(--s1); }
.doc { padding-block: 28px 8px; }
.doc article { max-inline-size: 46rem; margin-inline: auto; padding: 32px clamp(18px, 4vw, 44px) 36px; border-radius: 28px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.doc .lang-head { font: 700 12px/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-block-end: 14px; }
.doc .lang-head:lang(ar) { font: 600 15px/1.4 var(--naskh); letter-spacing: 0; }
.doc h2 { font: 600 26px/1.3 var(--serif); margin-block: 0 12px; }
.doc h2:lang(ar), .doc :lang(ar) h2 { font: 700 28px/1.6 var(--display-ar); }
.doc article > h2 ~ h2 { margin-block-start: 34px; padding-block-start: 26px; border-block-start: 1px solid var(--line); }
.doc h3 { font: 600 18px/1.4 var(--ui); margin-block: 28px 8px; color: var(--ink); }
.doc :lang(ar) h3, .doc h3:lang(ar) { font: 600 19px/1.6 var(--naskh); }
.doc p, .doc li { color: var(--ink2); }
.doc p + p { margin-block-start: 12px; }
.doc ul { list-style: disc; padding-inline-start: 1.3em; margin-block: 10px; display: grid; gap: 6px; }
.doc ul li::marker { color: var(--gold); }
.doc code { font-size: 0.88em; background: var(--s3); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.doc .meta { color: var(--ink2); font-size: 15px; }
.doc .contact-card { padding: 16px 18px; border-radius: 16px; background: var(--pc); color: var(--on-pc); }
.doc .contact-card p, .doc .contact-card a { color: var(--on-pc); }
.doc details { border-block-end: 1px solid var(--line); }
.doc details summary { cursor: pointer; padding-block: 14px; font-weight: 600; color: var(--ink); min-block-size: 44px; }
.doc details p { padding-block-end: 14px; }
.notfound { position: relative; isolation: isolate; min-block-size: 70vh; display: grid; place-content: center; text-align: center; gap: 12px; padding-block: 48px; }
.notfound .hero-bg { inset: 0 calc(50% - 50vw); }
.notfound img { inline-size: 80px; block-size: 80px; border-radius: 18px; margin: 0 auto 10px; }
.notfound h1 { font-size: clamp(34px, 6vw, 52px); }
.notfound .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 16px; }
.notfound .links a { display: inline-flex; align-items: center; min-block-size: 46px; padding-inline: 18px; border-radius: 23px; background: var(--pc); color: var(--on-pc); text-decoration: none; font-weight: 600; }

/* ---------- motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 0.08s; } .js .reveal.d2 { transition-delay: 0.16s; } .js .reveal.d3 { transition-delay: 0.24s; }

  .js .hero .front .phone { animation: float-in 1.1s 0.1s var(--ease) both; }
  .js .hero .back .phone { animation: float-in-back 1.2s 0.3s var(--ease) both; }
  @keyframes float-in { from { transform: translate3d(0, 48px, 0) scale(0.97); } to { transform: none; } }
  @keyframes float-in-back { from { opacity: 0; transform: translate3d(0, 64px, 0) rotate(0deg); } to { opacity: 1; transform: rotate(5deg); } }
  html.js[dir="rtl"] .hero .back .phone { animation-name: float-in-back-rtl; }
  @keyframes float-in-back-rtl { from { opacity: 0; transform: translate3d(0, 64px, 0) rotate(0deg); } to { opacity: 1; transform: rotate(-5deg); } }

  .demo .base, .demo .pop, .demo .ring, .demo .tap { animation: 6s var(--ease) infinite paused; }
  .demo .base { animation-name: demo-base; }
  .demo .pop { animation-name: demo-pop; }
  .demo .ring { animation-name: demo-ring; }
  .demo .tap { animation-name: demo-tap; }
  .demo.playing .base, .demo.playing .pop, .demo.playing .ring, .demo.playing .tap { animation-play-state: running; }
  @keyframes demo-base { 0%, 46% { opacity: 1; } 56%, 90% { opacity: 0; } 100% { opacity: 1; } }
  @keyframes demo-pop { 0%, 46% { opacity: 0; transform: translate3d(0, 6%, 0); } 58% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translate3d(0, 4%, 0); } }
  @keyframes demo-ring { 0%, 10% { opacity: 0; transform: scale(1.2); box-shadow: 0 0 0 0 rgba(217, 184, 104, 0.6); } 18% { opacity: 1; transform: none; } 28% { box-shadow: 0 0 0 12px rgba(217, 184, 104, 0); } 30% { box-shadow: 0 0 0 0 rgba(217, 184, 104, 0.6); } 40% { opacity: 1; box-shadow: 0 0 0 12px rgba(217, 184, 104, 0); } 50%, 100% { opacity: 0; } }
  @keyframes demo-tap { 0%, 30% { opacity: 0; transform: scale(1.6); } 36% { opacity: 1; transform: scale(1); } 42% { opacity: 1; transform: scale(0.85); } 50%, 100% { opacity: 0; transform: scale(1.4); } }

  .readers.loop .dot { animation: dot-cycle 6s ease-in-out infinite paused; }
  .readers.loop.playing .dot { animation-play-state: running; }
  .readers.loop li:nth-child(2) .dot { animation-delay: 1.5s; }
  .readers.loop li:nth-child(3) .dot { animation-delay: 3s; }
  .readers.loop li:nth-child(4) .dot { animation-delay: 4.5s; }
  @keyframes dot-cycle { 0%, 30%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } 12% { transform: scale(1.35); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent); } }

  .faq summary::after { transition: transform 0.25s var(--ease), margin 0.25s var(--ease); }
  .nav a, .jump a { transition: background-color 0.2s; }
}
@media (prefers-reduced-motion: reduce) {
  .demo .ring { opacity: 1; }
}
.brand .en-name { font: 600 22px/1 var(--serif); padding-block-start: 0; }
