/* Mizan website. Midnight Mushaf palette, 1:1 with app/src/theme/tokens.ts. */
:root {
  --page: #050A08;
  --ink: #0A1310;
  --ink-deep: #070F0C;
  --surface: #111E19;
  --surface2: #172822;
  --line: #22322B;
  --line2: #2E4038;
  --gold: #D9B26F;
  --gold-hi: #F0D49A;
  --gold-dim: #5C5235;
  --on-gold: #1B1407;
  --teal: #7FC8B6;
  --rose: #E3A587;
  --ivory: #F3ECDD;
  --mist: #C9D3CC;
  --muted: #A3B0A8;
  --faint: #8E9C94;

  --display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --arabic: 'Amiri', 'Geeza Pro', 'Traditional Arabic', serif;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-card: 22px;
  --r-lg: 28px;
  color-scheme: dark;
}
html[lang="ar"] {
  --display: 'Amiri', 'Geeza Pro', serif;
  --ui: 'IBM Plex Sans Arabic', 'Geeza Pro', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--mist);
  font: 400 17px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: rgba(217, 178, 111, .32); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; color: var(--ivory); margin: 0; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
h2 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.02; }
html[lang="ar"] h2 { line-height: 1.35; font-size: clamp(2rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.12; }
html[lang="ar"] h3 { line-height: 1.45; font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
em, .it { font-style: italic; color: var(--gold); }
html[lang="ar"] em, html[lang="ar"] .it { font-style: normal; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--mist); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; text-transform: none; }
.muted { color: var(--muted); }
.ar { font-family: var(--arabic); direction: rtl; }
.small { font-size: .88rem; }

/* ---------- background ornament ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 85% -10%, rgba(127, 200, 182, .07), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(217, 178, 111, .05), transparent 60%),
    var(--page);
}
.pattern {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23D9B26F' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(5, 10, 8, .78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: rgba(34, 50, 43, .7);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(217, 178, 111, .25); }
.brand-name { font: 400 1.65rem/1 var(--display); letter-spacing: .005em; }
.brand-ar { font: 400 1.05rem/1 var(--arabic); color: var(--gold); opacity: .9; padding-top: 4px; }
html[lang="ar"] .brand-ar { display: none; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .25s; }
.nav-links a:hover { color: var(--ivory); }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { text-decoration: none; font-size: .78rem; padding: 6px 10px; border-radius: 999px; color: var(--muted); line-height: 1; letter-spacing: .04em; }
.lang a[lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; font-size: .85rem; padding-block: 5px; }
.lang a[aria-current="true"] { background: var(--surface2); color: var(--gold-hi); }
.lang a:hover { color: var(--ivory); }
.nav-cta { flex-shrink: 0; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 14px; height: 64px; }
  .lang { margin-inline-start: auto; }
  .nav .nav-cta { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 16px;
  font: 600 .95rem/1 var(--ui); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-gold { color: var(--on-gold); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%); box-shadow: 0 8px 28px -10px rgba(217, 178, 111, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(217, 178, 111, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { color: var(--ivory); background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-dim); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 13px; font-size: .86rem; }

/* store "coming soon" badges: deliberately not links */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; min-height: 56px;
  border-radius: 16px; background: rgba(17, 30, 25, .7); box-shadow: inset 0 0 0 1px var(--line2);
  color: var(--ivory); cursor: default; user-select: none;
}
.store svg { width: 24px; height: 24px; color: var(--mist); flex-shrink: 0; }
.store small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
html[lang="ar"] .store small { letter-spacing: 0; font-size: .75rem; }
.store b { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.25; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 7rem); line-height: .92; letter-spacing: -.02em; margin-bottom: 28px; }
html[lang="ar"] .hero h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); line-height: 1.25; letter-spacing: 0; }
.hero h1 em { display: inline-block; padding-inline-end: .06em; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-note { font-size: .86rem; color: var(--faint); display: flex; gap: 10px; align-items: center; }
.hero-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(127, 200, 182, .15); }

.arch-stage { position: relative; justify-self: center; width: min(100%, 470px); }
.star {
  position: absolute; z-index: -1; inset: -16% -22%; width: 144%; height: auto; margin: auto;
  color: var(--gold); opacity: .22; animation: spin 180s linear infinite;
}
.arch {
  position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 30px 30px; overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 178, 111, .28);
  background: var(--ink);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; transform: scale(1.22); transform-origin: 50% 88%; }
.arch::after {
  content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 22px 22px;
  box-shadow: inset 0 0 0 1px rgba(240, 212, 154, .22); pointer-events: none;
}
.arch-fade::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(5, 10, 8, .55)); pointer-events: none; }

.glass {
  background: linear-gradient(180deg, rgba(23, 40, 34, .82), rgba(10, 19, 16, .86));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(217, 178, 111, .22), 0 24px 60px -24px rgba(0, 0, 0, .9);
  border-radius: 20px;
}
.balance-card { position: absolute; z-index: 2; inset-inline-start: -12%; bottom: 9%; width: 250px; padding: 18px 20px 20px; }
.balance-card .k { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .balance-card .k { letter-spacing: 0; font-size: .8rem; }
.balance-card .v { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.balance-card .v b { font: 400 3.6rem/1 var(--display); color: var(--ivory); font-weight: 400; }
html[lang="ar"] .balance-card .v b { font-family: 'Instrument Serif', serif; }
.balance-card .v span { color: var(--mist); font-size: .92rem; white-space: nowrap; }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 80%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; animation: grow 1.8s .6s var(--ease) both; }
html[dir="rtl"] .bar i { transform-origin: right; }
.balance-card .row { display: flex; justify-content: space-between; margin-top: 9px; font-size: .74rem; color: var(--muted); }
.prayer-chip { position: absolute; z-index: 2; inset-inline-end: -8%; top: 15%; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--mist); }
.prayer-chip .ar { font-size: 1.35rem; color: var(--gold-hi); line-height: 1; }
.prayer-chip b { display: block; color: var(--ivory); font-weight: 500; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .arch-stage { width: min(78%, 380px); margin-top: 18px; }
  .balance-card { inset-inline-start: -16%; width: 210px; padding: 14px 16px 16px; }
  .balance-card .v b { font-size: 2.9rem; }
  .prayer-chip { inset-inline-end: -14%; }
}
@media (max-width: 420px) {
  .arch-stage { width: 72%; }
  .balance-card { inset-inline-start: -18%; bottom: 6%; width: 196px; }
  .balance-card .v { gap: 8px; }
  .balance-card .v span { font-size: .8rem; }
  .prayer-chip { inset-inline-end: -20%; top: 10%; padding: 10px 12px; font-size: .76rem; }
}

/* ---------- verse ---------- */
.verse { text-align: center; padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); position: relative; }
.verse::before, .verse::after { content: ""; display: block; width: min(420px, 60%); height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); }
.verse .ar { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--gold-hi); line-height: 1.7; margin: 44px 0 14px; }
.verse blockquote { margin: 0 auto 10px; max-width: 26em; font: italic 400 clamp(1.4rem, 2.8vw, 2.1rem)/1.25 var(--display); color: var(--ivory); }
html[lang="ar"] .verse blockquote { display: none; }
.verse cite { display: block; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 44px; }
html[lang="ar"] .verse cite { letter-spacing: 0; font-size: .95rem; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 20px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 32px; border-radius: var(--r-card); background: linear-gradient(180deg, var(--surface), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.step .num { font: 400 4.8rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--gold-dim); position: absolute; inset-inline-end: 22px; top: 16px; }
.step .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(217, 178, 111, .08); box-shadow: inset 0 0 0 1px rgba(217, 178, 111, .25); color: var(--gold-hi); margin-bottom: 52px; }
.step .icon svg { width: 22px; height: 22px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }
.step-arrow { display: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step .icon { margin-bottom: 26px; } }

/* ledger + rates */
.scale { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { border-radius: var(--r-card); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; }
.panel h3 { font-size: 1.5rem; margin-bottom: 6px; }
html[lang="ar"] .panel h3 { font-size: 1.4rem; }
.panel > p { color: var(--muted); font-size: .94rem; }
.ledger { list-style: none; margin: 18px 0 0; padding: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ledger li span:last-child { color: var(--gold-hi); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.rate { text-align: center; padding: 18px 8px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line2); background: var(--surface); }
.rate b { display: block; font: 400 2rem/1 'Instrument Serif', serif; color: var(--ivory); margin-bottom: 8px; direction: ltr; }
.rate span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.rate.on { background: linear-gradient(180deg, rgba(217, 178, 111, .16), rgba(217, 178, 111, .04)); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.rate.on b { color: var(--gold-hi); }
.example { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(127, 200, 182, .06); box-shadow: inset 0 0 0 1px rgba(127, 200, 182, .18); font-size: .92rem; color: var(--mist); }
.example b { color: var(--teal); font-weight: 500; }
@media (max-width: 860px) { .scale { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rates { grid-template-columns: repeat(2, 1fr); } .panel { padding: 22px; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; }
.feature.flip .feature-media { order: 2; }
.feature h3 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; margin-bottom: 20px; }
html[lang="ar"] .feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.4; }
.feature p { color: var(--mist); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 28px; color: var(--mist); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }
.ticks li b { color: var(--ivory); font-weight: 500; }
.tag { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-dim); vertical-align: 2px; }
html[lang="ar"] .tag { letter-spacing: 0; font-size: .74rem; }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(217, 178, 111, .2), 0 40px 100px -40px rgba(0, 0, 0, .9); background: var(--ink); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 3 / 2; }
.frame .overlay { position: absolute; inset-inline: 18px; top: 18px; padding: 18px 20px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* salah shield mock */
.shield { text-align: center; }
.shield .ar { font-size: 2.2rem; color: var(--gold-hi); line-height: 1.2; }
.shield .t { font: italic 400 1.7rem/1.1 var(--display); color: var(--ivory); margin: 4px 0 6px; }
html[lang="ar"] .shield .t { font-style: normal; font-size: 1.5rem; line-height: 1.5; }
.shield .s { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.shield .btn { width: 100%; min-height: 44px; border-radius: 14px; font-size: .9rem; cursor: default; }

/* mushaf mock */
.mushaf { padding: 28px 26px 22px; border-radius: var(--r-lg); background: radial-gradient(120% 80% at 50% 0%, #10201a, var(--ink) 70%); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 100px -40px rgba(0, 0, 0, .9); position: relative; }
.mushaf::before { content: ""; position: absolute; inset: 10px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(217, 178, 111, .16); pointer-events: none; }
.surah-title { display: block; margin: 0 auto 20px; width: fit-content; padding: 6px 26px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gold-dim); font-size: 1.4rem; color: var(--gold-hi); }
.ayah { font-family: var(--arabic); direction: rtl; text-align: right; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 2.1; color: var(--ivory); margin: 0; padding: 4px 10px; border-radius: 12px; transition: background .6s; }
.ayah .n { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; font-size: .7em; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 50%; margin-inline: 6px; vertical-align: middle; line-height: 1; }
.ayah.playing { background: rgba(217, 178, 111, .1); box-shadow: inset 0 0 0 1px rgba(217, 178, 111, .22); }
.ayah-tr { color: var(--muted); font-size: .9rem; margin: 2px 10px 14px; text-align: left; direction: ltr; }
html[lang="ar"] .ayah-tr { display: none; }
.player { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.play { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); }
.play svg { width: 14px; height: 14px; }
.player .meta { flex: 1; min-width: 0; font-size: .8rem; color: var(--muted); }
.player .meta b { display: block; color: var(--ivory); font-weight: 500; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .prog { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.player .prog i { display: block; height: 100%; width: 38%; background: var(--gold); }
.player .speed { font-size: .78rem; color: var(--gold-hi); padding: 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--gold-dim); }
.reciters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.reciters span { padding: 7px 13px; border-radius: 999px; font-size: .84rem; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line2); background: rgba(17, 30, 25, .6); }

/* dhikr counter mock */
.counter { position: relative; aspect-ratio: 1; width: min(100%, 420px); margin-inline: auto; display: grid; place-items: center; }
.counter svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.counter .ring circle.d { fill: var(--line2); }
.counter .ring circle.d.lit { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(217, 178, 111, .7)); }
.counter .core { text-align: center; width: 54%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; background: radial-gradient(circle at 50% 30%, var(--surface2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line2), 0 0 80px -10px rgba(217, 178, 111, .25); }
.counter .core .ar { font-size: clamp(1.4rem, 3.4vw, 1.9rem); color: var(--gold-hi); line-height: 1.4; }
.counter .core b { display: block; font: 400 clamp(3.6rem, 9vw, 5.4rem)/1 'Instrument Serif', serif; color: var(--ivory); }
.counter .core span { font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.widget { position: absolute; inset-inline-end: -4%; bottom: 2%; width: 150px; aspect-ratio: 1; border-radius: 30px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.widget small { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .widget small { letter-spacing: 0; font-size: .74rem; }
.widget b { font: 400 2.6rem/1 'Instrument Serif', serif; color: var(--ivory); }
.widget span { font-size: .72rem; color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--r-card); background: linear-gradient(180deg, var(--surface), var(--ink) 80%); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; overflow: hidden; display: flex; flex-direction: column; }
.card h3 { font-size: 1.65rem; margin-bottom: 10px; }
html[lang="ar"] .card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .k { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
html[lang="ar"] .card .k { letter-spacing: 0; font-size: .82rem; }
.card.span2 { grid-column: span 2; }
.card.span3 { grid-column: span 3; }
.card.span4 { grid-column: span 4; }
.card.img { padding: 0; min-height: 380px; justify-content: flex-end; }
.card.img > picture { position: absolute; inset: 0; }
.card.img > picture img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card.img:hover > picture img { transform: scale(1.03); }
.card.img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 10, 8, 0) 25%, rgba(5, 10, 8, .72) 60%, rgba(5, 10, 8, .96)); }
.card.img .body { position: relative; z-index: 2; padding: 28px; }
.card.img p { color: var(--mist); }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; flex: 1; }
.lessons figure { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); min-height: 120px; }
.lessons figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 10, 8, .85)); }
.lessons figure { margin: 0; }
.lessons img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lessons figcaption { position: absolute; z-index: 1; inset-inline-start: 14px; bottom: 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
html[lang="ar"] .lessons figcaption { letter-spacing: 0; font-size: .82rem; }
.week { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 24px; }
.week i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #2c4a3f, #1a2c25); box-shadow: inset 0 0 0 1px rgba(127, 200, 182, .12); }
.week i.today { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.week-l { display: flex; gap: 8px; margin-top: 8px; }
.week-l span { flex: 1; text-align: center; font-size: .66rem; color: var(--faint); }
.streak { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: .86rem; color: var(--gold-hi); }
.protect-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.protect-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: rgba(5, 10, 8, .55); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; color: var(--mist); }
.protect-list li b { font: 400 1.6rem/1 'Instrument Serif', serif; color: var(--gold-hi); min-width: 2.4em; }
.duas { display: grid; gap: 8px; margin-top: 20px; }
.duas span { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--mist); }
.duas span::after { content: "\203A"; color: var(--faint); }
html[dir="rtl"] .duas span::after { content: "\2039"; }
.adhkar-ar { font-family: var(--arabic); direction: rtl; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.9; color: var(--gold-hi); margin: 22px 0 8px; padding: 14px 0; border-block: 1px solid var(--line); text-align: center; }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span2, .card.span3, .card.span4 { grid-column: span 2; }
  .card.half { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card.span2, .card.span3, .card.span4, .card.half { grid-column: span 1; }
  .card { padding: 24px; }
  .card.img { min-height: 340px; }
  .card.img .body { padding: 24px; }
}

/* privacy band */
.privacy-band { border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); background: radial-gradient(120% 120% at 100% 0%, rgba(127, 200, 182, .08), transparent 55%), var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.privacy-grid h3 { font-size: 1.35rem; margin: 18px 0 8px; }
html[lang="ar"] .privacy-grid h3 { font-size: 1.3rem; }
.privacy-grid p { color: var(--muted); font-size: .93rem; margin: 0; }
.privacy-grid .icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--teal); background: rgba(127, 200, 182, .07); box-shadow: inset 0 0 0 1px rgba(127, 200, 182, .22); }
.privacy-grid .icon svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; align-items: stretch; }
.plan { border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.plan h3 { font-size: 2.2rem; margin-bottom: 6px; }
.plan .price-lg { font: 400 3.2rem/1 'Instrument Serif', serif; color: var(--ivory); margin: 18px 0 4px; }
.plan .sub { color: var(--muted); font-size: .92rem; }
.plan .ticks { margin-top: 26px; }
.plan.premium { background: linear-gradient(180deg, rgba(10, 19, 16, .55), var(--ink) 52%), var(--ink); box-shadow: inset 0 0 0 1px var(--gold-dim), 0 40px 120px -50px rgba(217, 178, 111, .35); }
.plan.premium > picture { position: absolute; inset: 0 0 auto 0; height: 300px; opacity: .55; }
.plan.premium > picture img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent); }
.plan.premium > *:not(picture) { position: relative; }
.plan .everything { margin: 22px 0 0; color: var(--mist); font-size: .95rem; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.price { padding: 18px 16px; border-radius: 16px; background: rgba(5, 10, 8, .6); box-shadow: inset 0 0 0 1px var(--line2); }
.price small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .price small { letter-spacing: 0; font-size: .82rem; }
.price b { display: block; font: 400 2rem/1.1 'Instrument Serif', serif; color: var(--ivory); margin: 8px 0 4px; direction: ltr; text-align: start; }
html[dir="rtl"] .price b { text-align: right; }
.price span { font-size: .78rem; color: var(--muted); }
.price.best { background: linear-gradient(180deg, rgba(217, 178, 111, .16), rgba(217, 178, 111, .03)); box-shadow: inset 0 0 0 1px var(--gold); }
.price.best small { color: var(--gold-hi); }
.price-note { margin-top: 22px; font-size: .82rem; color: var(--faint); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } .price b { display: inline-block; margin-inline-end: 8px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 18px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line2); background: linear-gradient(180deg, var(--surface), var(--ink)); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ivory); font-size: 1.06rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex-shrink: 0; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .a { padding: 0 24px 22px; color: var(--muted); font-size: .97rem; }
.faq .a p:last-child { margin: 0; }

/* closing */
.closing { text-align: center; padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.closing .star { position: absolute; inset: 50% auto auto 50%; width: min(760px, 140vw); transform: translate(-50%, -50%); opacity: .12; animation: spin-c 220s linear infinite; z-index: -1; }
.closing h2 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: 18px; }
.closing .lede { margin: 0 auto 34px; }
.closing .stores { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .9rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 14px; font: 500 .72rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .foot h4 { letter-spacing: 0; font-size: .85rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ivory); }
.foot .about { color: var(--muted); max-width: 26em; margin-top: 16px; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: span 2; } }

/* ---------- document pages (legal, support, credits) ---------- */
.doc-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); position: relative; }
.doc-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1; margin-bottom: 18px; }
html[lang="ar"] .doc-hero h1 { line-height: 1.35; }
.doc-hero .meta { color: var(--faint); font-size: .88rem; }
.doc { padding-bottom: clamp(72px, 10vw, 120px); }
.doc h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.15; margin: 56px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
html[lang="ar"] .doc h2 { line-height: 1.5; }
.doc h3 { font-family: var(--ui); font-size: 1.05rem; font-weight: 600; color: var(--ivory); margin: 28px 0 10px; }
.doc p, .doc li { color: var(--mist); }
.doc ul { padding-inline-start: 1.2em; }
.doc li { margin-bottom: .55em; }
.doc li::marker { color: var(--gold); }
.doc a { color: var(--gold-hi); text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--gold-hi); }
.doc strong { color: var(--ivory); font-weight: 500; }
.callout { margin: 28px 0; padding: 20px 22px; border-radius: 16px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.callout p:last-child { margin: 0; }
.callout.gold { box-shadow: inset 0 0 0 1px var(--gold-dim); background: rgba(217, 178, 111, .05); }
.placeholder { background: rgba(227, 165, 135, .14); color: var(--rose); padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; font-size: .88em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: .82rem; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.toc a:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line2); }
.mail-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: var(--r-card); background: linear-gradient(180deg, var(--surface), var(--ink)); box-shadow: inset 0 0 0 1px var(--gold-dim); margin: 8px 0 20px; }
.mail-card .addr { font: 400 clamp(1.5rem, 3.6vw, 2.2rem)/1.1 'Instrument Serif', serif; color: var(--ivory); user-select: all; -webkit-user-select: all; word-break: break-all; direction: ltr; }
.mail-card small { display: block; color: var(--muted); margin-bottom: 6px; }
table.reciters-t { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.reciters-t th, .reciters-t td { text-align: start; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reciters-t th { font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .reciters-t th { letter-spacing: 0; font-size: .85rem; }
.reciters-t td { color: var(--mist); }
.reciters-t td .ar { font-size: 1.2rem; color: var(--gold-hi); }
@media (max-width: 560px) { .reciters-t .hide-sm { display: none; } }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .big { font: 400 clamp(6rem, 20vw, 12rem)/1 'Instrument Serif', serif; color: transparent; -webkit-text-stroke: 1px var(--gold-dim); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-c { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
