/* Fitrah website: the app's own palette (Noor Teal), type and calm. */
@font-face { font-family: "Readex"; src: url("/fonts/ReadexPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex"; src: url("/fonts/ReadexPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex"; src: url("/fonts/ReadexPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/fonts/Amiri-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5EFE0; --surface: #FFFBF1; --text: #13262B; --text2: #4F6166;
  --primary: #0B5560; --on-primary: #FFFFFF; --accent: #B8923F; --divider: #E6DCC6;
  --deep: #083C46; --glow: #1D7C84; --gold: #D9B76E; --ink: #FFF8E8;
  --shadow: 0 18px 50px -24px rgba(8, 60, 70, .35), 0 2px 8px -4px rgba(8, 60, 70, .12);
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081417; --surface: #0F1F23; --text: #ECE6D6; --text2: #A5B8BC;
    --primary: #56C2C4; --on-primary: #052428; --accent: #D9B76E; --divider: #1B2D31;
    --deep: #052A30; --glow: #0E5A62;
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7), 0 2px 8px -4px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081417; --surface: #0F1F23; --text: #ECE6D6; --text2: #A5B8BC;
  --primary: #56C2C4; --on-primary: #052428; --accent: #D9B76E; --divider: #1B2D31;
  --deep: #052A30; --glow: #0E5A62;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, .7), 0 2px 8px -4px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Readex", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.75; overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
html[lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.amiri { font-family: "Amiri", "Readex", serif; font-weight: 700; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--divider); padding: 8px 0;
}
.nav .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 26px; }
.nav.solid .brand, .page .brand { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(217, 183, 110, .5); }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { color: color-mix(in srgb, var(--ink) 85%, transparent); font-size: 15px; }
.nav.solid .links a, .page .links a { color: var(--text2); }
.links a:hover { color: var(--accent); text-decoration: none; }
.tools { display: flex; gap: 8px; }
.chip-btn {
  border: 1px solid rgba(217, 183, 110, .45); background: transparent; color: var(--ink);
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 500 14px "Readex", sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .3s, transform .3s var(--ease);
}
.nav.solid .chip-btn, .page .chip-btn { color: var(--text); border-color: var(--divider); }
.chip-btn:hover { background: rgba(217, 183, 110, .14); text-decoration: none; transform: translateY(-1px); }
.chip-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .links { display: none; } .tools { margin-inline-start: auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 110px 0 80px; color: var(--ink); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(29, 124, 132, .55), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(217, 183, 110, .18), transparent 60%),
    linear-gradient(160deg, #04252B 0%, #083C46 45%, #0C4F58 100%);
}
.hero .pattern { position: absolute; inset: -20%; z-index: -2; opacity: .13; animation: drift 120s linear infinite; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .5; animation: float 18s ease-in-out infinite; }
.orb.a { width: 340px; height: 340px; background: #1D7C84; top: 10%; inset-inline-start: 55%; }
.orb.b { width: 260px; height: 260px; background: #B8923F; bottom: 5%; inset-inline-start: 8%; opacity: .25; animation-delay: -6s; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; text-align: center; } .hero .cta { justify-content: center; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(217, 183, 110, .45); color: var(--gold); font-size: 14px; background: rgba(255, 248, 232, .04);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.hero h1 { font-family: "Amiri", serif; font-weight: 700; font-size: clamp(64px, 11vw, 124px); line-height: 1.15; margin: 18px 0 6px; letter-spacing: 0; }
.hero h1 .shine {
  background: linear-gradient(100deg, #FFF8E8 20%, #F3D58A 40%, #FFF8E8 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out infinite;
}
html[lang="en"] .hero h1 { font-size: clamp(54px, 9vw, 104px); }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: rgba(255, 248, 232, .86); max-width: 560px; margin: 0 0 30px; }
@media (max-width: 900px) { .hero .lead { margin-inline: auto; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  font: 500 16px "Readex", sans-serif; cursor: pointer; border: 0; text-decoration: none !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn.gold { background: linear-gradient(135deg, #F3D58A, #C9A04D); color: #2A1E07; box-shadow: 0 10px 30px -10px rgba(217, 183, 110, .7); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(217, 183, 110, .85); }
.btn.ghost { background: rgba(255, 248, 232, .06); color: var(--ink); border: 1px solid rgba(255, 248, 232, .25); }
.btn.ghost:hover { background: rgba(255, 248, 232, .12); transform: translateY(-2px); }
.btn.solid { background: var(--primary); color: var(--on-primary); }
.btn.solid:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: rgba(255, 248, 232, .75); font-size: 14px; }
@media (max-width: 900px) { .trust { justify-content: center; } }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--gold); }
.scroll-hint { position: absolute; bottom: 24px; inset-inline: 0; margin: auto; width: 26px; height: 42px; border: 1.5px solid rgba(255, 248, 232, .4); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 2.2s ease-in-out infinite; }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #1a2b2e, #050c0d); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(217, 183, 110, .35), inset 0 0 0 2px rgba(255, 255, 255, .05);
  transform: rotateY(-14deg) rotateX(6deg); transition: transform 1.2s var(--ease); animation: bob 9s ease-in-out infinite;
}
html[dir="ltr"] .phone { transform: rotateY(14deg) rotateX(6deg); }
.phone:hover { transform: rotateY(0) rotateX(0); }
@media (max-width: 900px) { .phone { width: 270px; height: 560px; } }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #F5EFE0; color: #13262B; font-size: 12px; line-height: 1.5; }
.notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 24px; margin-left: -45px; background: #050c0d; border-radius: 14px; z-index: 3; }
.sky { position: relative; height: 230px; padding: 46px 18px 0; color: var(--ink); background: linear-gradient(180deg, #04252B, #0C4F58 65%, #1D7C84); overflow: hidden; }
.sky .star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
.sky .moon { position: absolute; top: 46px; inset-inline-end: 22px; width: 34px; height: 34px; border-radius: 50%; box-shadow: -8px 4px 0 0 #F3D58A; transform: rotate(-20deg); }
html[dir="ltr"] .sky .moon { box-shadow: 8px 4px 0 0 #F3D58A; }
.sky small { opacity: .8; font-size: 11px; }
.sky .next { font-family: "Amiri", serif; font-size: 30px; margin: 2px 0 0; }
.sky .count { font-size: 26px; letter-spacing: 1px; font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.ring { position: absolute; bottom: -60px; inset-inline-start: 50%; width: 220px; height: 220px; margin-inline-start: -110px; border-radius: 50%; border: 1px dashed rgba(217, 183, 110, .45); animation: drift 60s linear infinite; }
.prayers { padding: 12px; display: grid; gap: 7px; }
.prow { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; background: #FFFBF1; box-shadow: 0 1px 0 #E6DCC6; }
.prow b { font-weight: 500; }
.prow.now { background: linear-gradient(135deg, #0B5560, #1D7C84); color: #FFF8E8; box-shadow: 0 8px 20px -10px rgba(11, 85, 96, .8); }
.prow span { font-variant-numeric: tabular-nums; direction: ltr; }
.tabbar { position: absolute; bottom: 0; inset-inline: 0; height: 58px; display: flex; justify-content: space-around; align-items: center; background: #FFFBF1; border-top: 1px solid #E6DCC6; }
.tabbar i { width: 22px; height: 22px; border-radius: 7px; background: #E6DCC6; display: block; }
.tabbar i.on { background: #0B5560; }


/* ---------- Real screens ---------- */
.screen.shot { background: #F5EFE0; }
.screen.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.sm { width: 220px; height: 450px; border-radius: 36px; padding: 9px; animation: none; transform: none; }
html[dir="ltr"] .phone.sm { transform: none; }
.phone.sm .screen { border-radius: 28px; }
.duo { position: relative; height: 480px; display: grid; place-items: center; }
.duo .back { position: absolute; transform: translateX(-34%) rotate(-7deg) scale(.9); opacity: .9; filter: saturate(.9); }
.duo .front { position: absolute; transform: translateX(26%) rotate(4deg); animation: bob 9s ease-in-out infinite; }
html[dir="ltr"] .duo .back { transform: translateX(34%) rotate(7deg) scale(.9); }
html[dir="ltr"] .duo .front { transform: translateX(-26%) rotate(-4deg); }
.art:hover .duo .back { transform: translateX(-40%) rotate(-9deg) scale(.9); }
html[dir="ltr"] .art:hover .duo .back { transform: translateX(40%) rotate(9deg) scale(.9); }
.duo .phone { transition: transform .9s var(--ease); }
@media (max-width: 480px) { .phone.sm { width: 180px; height: 370px; } .duo { height: 400px; } }
.art .player { z-index: 2; }
.dhikr.float { position: absolute; bottom: 20px; inset-inline-start: 20px; z-index: 2; }
.dhikr.float .counter { width: 96px; height: 96px; font-size: 30px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { overflow: hidden; }
.gtrack {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 20px max(16px, calc(50vw - 560px)) 30px; scrollbar-width: none;
}
.gtrack::-webkit-scrollbar { display: none; }
.gshot { flex: none; margin: 0; scroll-snap-align: center; text-align: center; transition: transform .6s var(--ease); }
.gshot:hover { transform: translateY(-8px); }
.gshot .phone { box-shadow: 0 30px 60px -30px rgba(8, 60, 70, .55), 0 0 0 1px rgba(217, 183, 110, .35); }
.gshot figcaption { margin-top: 16px; color: var(--text2); font-size: 15px; font-weight: 500; }
.gnav { display: flex; justify-content: center; gap: 10px; }
.gnav .chip-btn { color: var(--text); border-color: var(--divider); font-size: 22px; width: 48px; height: 48px; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.kicker { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
h2 { font-family: "Amiri", serif; font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.3; margin: 10px 0 14px; }
html[lang="en"] h2 { font-family: "Readex", sans-serif; font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--text2); max-width: 640px; margin: 0 0 44px; font-size: 18px; }
.center { text-align: center; } .center .sub { margin-inline: auto; }
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--accent); margin: 0 auto 8px; }
.rule::before, .rule::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.rule::after { transform: scaleX(-1); }
.rule svg { width: 14px; height: 14px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pillar .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(135deg, var(--deep), var(--glow)); margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(217, 183, 110, .4); }
.pillar .ic svg { width: 26px; height: 26px; }
.pillar h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.pillar p { margin: 0; color: var(--text2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; overflow: hidden;
}
.feat::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 160px at var(--mx, 50%) var(--my, 0%), rgba(217, 183, 110, .14), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, var(--divider)); }
.feat:hover::after { opacity: 1; }
.feat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); margin-bottom: 14px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.feat p { margin: 0; color: var(--text2); font-size: 15.5px; }

/* Showcase: alternating panels */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 110px; }
.show.flip .art { order: -1; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; gap: 32px; } .show.flip .art { order: 0; } }
.show ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.show li { display: flex; gap: 12px; align-items: flex-start; }
.show li svg { flex: none; width: 20px; height: 20px; margin-top: 5px; color: var(--accent); }
.art {
  position: relative; border-radius: 28px; min-height: 380px; padding: 30px; overflow: hidden; color: var(--ink);
  background: linear-gradient(150deg, #04252B, var(--deep, #083C46) 50%, #0C4F58); box-shadow: var(--shadow); border: 1px solid rgba(217, 183, 110, .45);
}
.art .pattern { position: absolute; inset: -30%; opacity: .1; animation: drift 160s linear infinite; }

/* mushaf mock */
.mushaf { position: relative; margin: auto; max-width: 330px; aspect-ratio: 3/4.3; border-radius: 10px; padding: 22px; background: #FFFBF1; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(217, 183, 110, .25); }
.mushaf .frame { position: absolute; inset: 10px; border: 2px solid #B8923F; border-radius: 6px; }
.mushaf .frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(184, 146, 63, .5); border-radius: 4px; }
.mushaf .head { position: relative; margin: 14px auto 16px; width: 70%; height: 26px; border-radius: 13px; background: linear-gradient(90deg, #0B5560, #1D7C84); }
.mushaf .line { position: relative; height: 7px; margin: 0 8px 12.5px; border-radius: 4px; background: linear-gradient(90deg, #13262B 0 30%, transparent 30% 33%, #13262B 33% 58%, transparent 58% 61%, #13262B 61%); opacity: .75; }
.mushaf .line.hl { background: none; }
.mushaf .line.hl::before { content: ""; position: absolute; inset: -6px -4px; border-radius: 6px; background: rgba(29, 124, 132, .18); animation: read 6s ease-in-out infinite; transform-origin: right; }
html[dir="ltr"] .mushaf .line.hl::before { transform-origin: left; }
.mushaf .line.hl::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, #0B5560 0 40%, transparent 40% 44%, #0B5560 44%); opacity: .9; }
.player { position: absolute; bottom: 22px; inset-inline: 22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 248, 232, .1); backdrop-filter: blur(10px); border: 1px solid rgba(217, 183, 110, .35); font-size: 14px; }
.player .play { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #F3D58A, #C9A04D); display: grid; place-items: center; color: #2A1E07; flex: none; }
.player .play svg { width: 16px; height: 16px; }
.bars { display: flex; gap: 3px; align-items: center; height: 22px; margin-inline-start: auto; }
.bars i { width: 3px; border-radius: 2px; background: var(--gold); animation: eq 1.2s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.2s } .bars i:nth-child(3) { animation-delay: -.5s } .bars i:nth-child(4) { animation-delay: -.8s } .bars i:nth-child(5) { animation-delay: -.3s }

/* adhkar counter mock */
.dhikr { position: relative; max-width: 360px; margin: auto; display: grid; gap: 14px; }
.dcard { background: rgba(255, 248, 232, .06); border: 1px solid rgba(217, 183, 110, .3); border-radius: 18px; padding: 16px 18px; backdrop-filter: blur(8px); }
.dcard .t { height: 8px; border-radius: 4px; background: rgba(255, 248, 232, .55); margin-bottom: 9px; }
.dcard .t.s { width: 60%; }
.dcard .meta { display: flex; gap: 8px; margin-top: 12px; }
.dcard .tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(217, 183, 110, .5); color: var(--gold); }
.counter { width: 128px; height: 128px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; font: 700 40px "Readex"; color: var(--ink); background: radial-gradient(circle at 30% 30%, #1D7C84, #083C46); box-shadow: 0 0 0 6px rgba(217, 183, 110, .18), 0 20px 40px -16px rgba(0, 0, 0, .6); position: relative; cursor: pointer; user-select: none; transition: transform .2s; }
.counter:active { transform: scale(.96); }
.counter svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.counter circle { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .5s var(--ease); }

/* sermon mock */
.sermon { max-width: 360px; margin: auto; display: grid; gap: 12px; }
.sermon .title { text-align: center; font-family: "Amiri", serif; font-size: 26px; color: var(--gold); }
.sermon .sec { padding: 14px 16px; border-radius: 16px; background: rgba(255, 248, 232, .06); border: 1px solid rgba(217, 183, 110, .25); }
.sermon .sec b { display: block; color: var(--gold); font-family: "Amiri", serif; font-size: 18px; margin-bottom: 6px; }
.sermon .sec .t { height: 7px; border-radius: 4px; background: rgba(255, 248, 232, .5); margin-bottom: 8px; }
.sermon .sec .t.v { background: linear-gradient(90deg, #56C2C4, #9FD8C2); }
.sermon .sec .t.h { width: 35%; animation: hide 5s ease-in-out infinite; }

/* languages marquee */
.langs { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
html[dir="rtl"] .track { animation-name: marquee-rtl; }
.langs:hover .track { animation-play-state: paused; }
.lang { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--divider); white-space: nowrap; font-size: 16px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider); }
.stat b { display: block; font-size: clamp(30px, 4vw, 42px); color: var(--primary); font-variant-numeric: tabular-nums; }
.stat span { color: var(--text2); font-size: 14.5px; }

/* privacy band */
.band { color: var(--ink); background: linear-gradient(160deg, #04252B, #083C46 55%, #0C4F58); overflow: hidden; isolation: isolate; }
.band .pattern { position: absolute; inset: -20%; z-index: -1; opacity: .08; animation: drift 200s linear infinite reverse; }
.band h2 { color: var(--ink); } .band .sub { color: rgba(255, 248, 232, .8); }
.band .kicker { color: var(--gold); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }
.check { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 248, 232, .05); border: 1px solid rgba(217, 183, 110, .25); }
.check svg { flex: none; width: 24px; height: 24px; color: var(--gold); margin-top: 3px; }
.check b { display: block; } .check span { color: rgba(255, 248, 232, .75); font-size: 15px; }

/* download */
.dl { text-align: center; border-radius: 32px; padding: clamp(36px, 6vw, 64px) 24px; background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.dl img { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 26px; box-shadow: 0 16px 40px -14px rgba(8, 60, 70, .6); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px; background: var(--text); color: var(--bg); min-width: 200px; text-align: start; position: relative; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; opacity: .75; font-size: 12px; line-height: 1.2; }
.store b { font-size: 17px; line-height: 1.3; }
.store .soon { position: absolute; top: -10px; inset-inline-end: -8px; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #1a1205; }
.note { color: var(--text2); font-size: 14.5px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; margin: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; padding: 4px 22px; transition: box-shadow .3s; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform .3s var(--ease); line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--text2); }

/* footer */
footer { padding: 54px 0 40px; border-top: 1px solid var(--divider); color: var(--text2); font-size: 15px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--text2); }
footer .brand { color: var(--text); }
footer .verse { margin-top: 26px; text-align: center; font-size: 13.5px; }

/* simple pages */
.page main { padding: 120px 0 70px; }
.page .nav { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--divider); }
.doc { max-width: 820px; margin: auto; }
.doc h1 { font-family: "Amiri", serif; font-size: clamp(36px, 6vw, 54px); margin: 0 0 6px; line-height: 1.3; }
html[lang="en"] .doc h1 { font-family: "Readex"; }
.doc h2 { font-size: 26px; margin: 38px 0 8px; font-family: "Readex"; }
.doc .meta { color: var(--text2); margin-bottom: 30px; }
.doc .card { background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
.lic { display: grid; gap: 10px; }
.lic .card { margin: 0; }
.lic .card b { font-size: 16.5px; }
.lic .card .tag { display: inline-block; font-size: 12.5px; padding: 1px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); margin-inline-start: 8px; }
.lic .card p { margin: 4px 0 0; color: var(--text2); font-size: 15px; overflow-wrap: anywhere; }
.lic-filter { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--divider); background: var(--surface); color: var(--text); padding: 0 18px; font: 16px "Readex"; margin-bottom: 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes drift { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes read { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
@keyframes hide { 0%, 40% { opacity: 1; } 55%, 85% { opacity: 0; } 100% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

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

/* adhan guide */
.doc ol { margin: 6px 0 4px; padding-inline-start: 22px; display: grid; gap: 8px; }
.doc ol li::marker { color: var(--accent); font-weight: 700; }
.guide-first { border-color: color-mix(in srgb, var(--accent) 55%, var(--divider)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface)); }
.guide-first h2 { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.guide-first h2 svg { width: 26px; height: 26px; color: var(--accent); }
.faq.guide { max-width: none; margin-bottom: 18px; }
.faq.guide details ol { margin-bottom: 18px; }
html[lang="ar"] .doc ol { list-style: arabic-indic; }

/* =================== v2: navigation, motion, feature pages =================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #C9A04D, #F3D58A); }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* language picker */
.langpick { position: relative; }
.langpick summary { list-style: none; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary span { font-size: 13.5px; }
.langpick .menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow); display: grid; z-index: 70; animation: pop .25s var(--ease); }
.langpick .menu a { padding: 9px 14px; border-radius: 10px; color: var(--text); font-size: 15px; }
.langpick .menu a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); text-decoration: none; }
.langpick .menu a[aria-current] { color: var(--primary); font-weight: 700; }
@media (max-width: 560px) { .langpick summary span { display: none; } }
.links a[aria-current] { color: var(--accent) !important; }

/* mobile menu */
.menu-btn { display: none; flex-direction: column; gap: 4px; width: 40px; padding: 0; }
.menu-btn span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .links { display: flex; position: fixed; top: 64px; inset-inline: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; margin: 0;
    background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .links a { color: var(--text) !important; padding: 13px 16px; border-radius: 12px; font-size: 17px; }
  .links a:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav.open .brand, .nav.open .chip-btn { color: var(--text); border-color: var(--divider); }
  .tools { margin-inline-start: auto; }
}
@media (min-width: 961px) { .links { display: flex; } }

/* hero rotating words */
.rot { margin: 0 0 18px; font-size: clamp(20px, 2.6vw, 26px); color: var(--gold); display: flex; gap: .35em; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 900px) { .rot { justify-content: center; } }
.rot .words { position: relative; display: inline-grid; }
.rot .words span { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); animation: word 10s infinite; font-weight: 700; color: #FFF8E8; }
.rot .words span:nth-child(2) { animation-delay: 2.5s; } .rot .words span:nth-child(3) { animation-delay: 5s; } .rot .words span:nth-child(4) { animation-delay: 7.5s; }
@keyframes word { 0% { opacity: 0; transform: translateY(14px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .rot .words span:first-child { opacity: 1; transform: none; } }
html[dir="rtl"] .also > svg, html[dir="rtl"] .btn.solid svg:last-child { transform: scaleX(-1); }

.totop { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; z-index: 40;
  background: var(--primary); color: var(--on-primary); font-size: 20px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { text-decoration: none; }

/* hero phone follows the pointer a little */
.phone-stage .phone { transform: rotateY(calc(-14deg + var(--tx, 0deg))) rotateX(calc(6deg + var(--ty, 0deg))); }
html[dir="ltr"] .phone-stage .phone { transform: rotateY(calc(14deg + var(--tx, 0deg))) rotateX(calc(6deg + var(--ty, 0deg))); }

/* feature hero */
.feature main { padding-top: 0; }
.fhero { position: relative; color: var(--ink); overflow: hidden; isolation: isolate; padding: 130px 0 70px;
  background: radial-gradient(900px 500px at 85% -10%, rgba(29, 124, 132, .5), transparent 60%), linear-gradient(160deg, #04252B 0%, #083C46 50%, #0C4F58 100%); }
.fhero .pattern { position: absolute; inset: -20%; z-index: -1; opacity: .1; animation: drift 160s linear infinite; }
.fhero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.fhero h1 { font-family: "Amiri", serif; font-size: clamp(40px, 6vw, 66px); line-height: 1.25; margin: 16px 0 12px; }
html[lang="en"] .fhero h1 { font-family: "Readex"; letter-spacing: -.015em; }
.fhero .lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 248, 232, .85); max-width: 560px; margin: 0 0 26px; }
@media (max-width: 900px) { .fhero .grid { grid-template-columns: 1fr; text-align: center; } .fhero .lead { margin-inline: auto; } .fhero .cta { justify-content: center; } }

/* story: a phone that stays while the steps go by */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.stage { position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 700px; display: grid; place-items: center; }
.stage .phone { width: 290px; height: 600px; transform: none; animation: none; }
.stage .layer { position: absolute; inset: 12px; border-radius: 36px; overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.stage .layer.on { opacity: 1; transform: none; }
.stage .layer .screen { height: 100%; }
.steps { display: grid; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: var(--ink); background: linear-gradient(135deg, var(--deep), var(--glow)); box-shadow: 0 0 0 1px rgba(217, 183, 110, .45); margin-bottom: 14px; transition: background .4s; }
.step h2 { margin: 0 0 10px; }
.step p { color: var(--text2); font-size: 18px; max-width: 520px; margin: 0; }
.step.active .num { background: linear-gradient(135deg, #C9A04D, #F3D58A); color: #2A1E07; }
.inline-shot { display: none; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .stage { display: none; }
  .step { min-height: 0; padding: 26px 0 40px; text-align: center; align-items: center; }
  .inline-shot { display: block; margin-top: 26px; }
}

/* related pages */
.alsos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .alsos { grid-template-columns: 1fr; } }
.also { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--divider); color: var(--text); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.also:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.also .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.also .ic svg { width: 22px; height: 22px; }
.also small { display: block; color: var(--accent); font-size: 13px; }
.also b { font-size: 16px; line-height: 1.5; }
.also > svg { width: 20px; height: 20px; margin-inline-start: auto; color: var(--text2); flex: none; }
.band.small { padding: 70px 0; }

/* news */
.timeline { position: relative; display: grid; gap: 18px; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 31px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.rel { display: flex; gap: 18px; align-items: flex-start; }
.rel .badge { position: relative; flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); background: linear-gradient(135deg, var(--deep), var(--glow)); box-shadow: 0 0 0 1px rgba(217, 183, 110, .5), var(--shadow); direction: ltr; }
.rel .body { flex: 1; background: var(--surface); border: 1px solid var(--divider); border-radius: 18px; padding: 14px 20px; }
.rel time { color: var(--accent); font-size: 14px; }
.rel ul { margin: 6px 0 0; padding-inline-start: 18px; }
.rel li { margin: 4px 0; }

/* press */
.logos { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-card { display: grid; gap: 10px; justify-items: center; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--divider); color: var(--text2); font-size: 14px; }
.logo-card img { border-radius: 26px; width: 128px; height: 128px; object-fit: cover; }
.logo-card.wide img { width: 240px; height: 126px; border-radius: 12px; }
.logo-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.swatch { display: grid; gap: 6px; text-align: start; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--divider); color: var(--text); cursor: pointer; font: 14px "Readex"; }
.swatch span { height: 64px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch code { color: var(--text2); font-size: 13px; }
.swatch.done code::after { content: " ✓"; color: var(--accent); }
.copyrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.copyrow h2 { margin: 0; font-size: 18px; }
.copy { color: var(--text); border-color: var(--divider); }
.pshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pshot img { border-radius: 16px; width: 100%; height: auto; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.pshot:hover img { transform: translateY(-4px); }

/* drawn screens (mocks) */
.mock { height: 100%; padding: 22px 14px; background: #F5EFE0; color: #13262B; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; overflow: hidden; }
.mock.dark { background: #0E1412; color: #F4EEDF; }
.mock.center { align-items: center; }
.m-title { font-weight: 700; font-size: 20px; margin: 6px 4px 4px; }
.m-title.gold { color: #D9B76E; font-size: 22px; text-align: center; }
.m-sub { color: #4F6166; margin: -4px 4px 4px; }
.m-search { height: 34px; border-radius: 12px; background: #FFFBF1; box-shadow: 0 1px 0 #E6DCC6; flex: none; }
.m-chips { display: flex; gap: 6px; }
.m-chips span { width: 46px; height: 22px; border-radius: 999px; background: #FFFBF1; border: 1px solid #E6DCC6; }
.m-chips span.on { background: #B8923F; border-color: #B8923F; }
.m-chips.wide { flex-wrap: wrap; } .m-chips.wide span { width: 70px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #FFFBF1; box-shadow: 0 1px 0 #E6DCC6; }
.av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 85, 96, .12); color: #0B5560; font-weight: 700; }
.m-col { flex: 1; display: grid; gap: 6px; }
.ln { display: block; height: 6px; width: var(--w, 90%); border-radius: 4px; background: rgba(19, 38, 43, .55); margin: 0 0 7px; }
.ln.g { background: rgba(244, 238, 223, .75); height: 9px; margin-bottom: 12px; }
.ln.v { background: linear-gradient(90deg, #0B5560, #1D7C84); }
.mock .m-col .ln { margin: 0; }
.meter { height: 5px; border-radius: 3px; background: #E6DCC6; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, #B3443A, #B8923F 50%, #3F7D5A); }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgba(63, 125, 90, .14); color: #3F7D5A; font-weight: 700; }
.juzmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 2px; }
.juzmap i { aspect-ratio: 1; border-radius: 9px; background: color-mix(in srgb, #3F7D5A calc(var(--v) * 10%), #B3443A); opacity: .85; }
.juzmap i.e { background: #E6DCC6; }
.att { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.att span { flex: 1; text-align: center; font-size: 10.5px; padding: 4px 2px; border-radius: 8px; background: #F5EFE0; color: #4F6166; }
.att span.on { color: #fff; } .att .s0 { background: #3F7D5A; } .att .s1 { background: #B7791F; } .att .s2 { background: #B3443A; } .att .s3 { background: #0B5560; }
.m-panel { position: relative; overflow: hidden; border-radius: 16px; padding: 22px 14px; text-align: center; color: #D9B76E; font-size: 22px; background: linear-gradient(150deg, #04252B, #083C46 55%, #0C4F58); border: 1px solid rgba(217, 183, 110, .5); }
.m-panel em { display: block; width: 90px; height: 1px; margin: 8px auto 0; background: #D9B76E; opacity: .7; }
.m-sec { padding: 12px; border-radius: 14px; background: #FFFBF1; box-shadow: 0 1px 0 #E6DCC6; }
.m-sec b { display: block; text-align: center; color: #0B5560; font-family: "Amiri", serif; font-size: 16px; margin-bottom: 8px; }
.m-rule { width: 110px; height: 1px; margin: 0 auto 10px; background: #D9B76E; opacity: .7; }
.m-para { padding: 2px 6px; }
.dots { display: block; width: 60%; height: 9px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(244, 238, 223, .35) 0 6px, transparent 6px 12px); }
.m-tag { margin-top: auto; align-self: center; font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(217, 183, 110, .55); color: #D9B76E; }
.m-shield { width: 96px; height: 96px; margin: 8px auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #1D7C84, #083C46); box-shadow: 0 0 0 8px rgba(63, 125, 90, .15); color: #F3D58A; font-size: 40px; }
.m-check { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #FFFBF1; box-shadow: 0 1px 0 #E6DCC6; font-size: 13px; }
.m-check .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3F7D5A; color: #fff; font-size: 12px; flex: none; }
.m-btn { margin-top: 6px; padding: 12px; border-radius: 999px; text-align: center; background: linear-gradient(135deg, #0B5560, #1D7C84); color: #FFF8E8; font-weight: 700; font-size: 13px; }
.m-counter { position: relative; width: 170px; height: 170px; margin: 40px auto 20px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #1D7C84, #083C46); box-shadow: 0 0 0 8px rgba(217, 183, 110, .15); }
.m-counter b { font-size: 54px; color: #FFF8E8; }
.m-counter svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.m-counter circle { fill: none; stroke: #D9B76E; stroke-width: 4; stroke-dasharray: 390; stroke-dashoffset: 40; stroke-linecap: round; }
.beads { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 200px; }
.beads i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3F7D5A; }
.beads i:nth-child(4n) { background: #B8923F; border-color: #B8923F; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.langpick { background: none; border: 0; padding: 0; border-radius: 0; box-shadow: none !important; }
.langpick summary { padding: 0 12px; }
.langpick summary::after { content: none; }

/* ---- Reviewers' test download ---------------------------------------------- */
.beta { display: grid; gap: 14px; }
.beta label[for], .beta legend { font-weight: 700; }
.beta input[type=password] {
  font: inherit; font-size: 22px; letter-spacing: .4em; text-align: center;
  padding: 14px 16px; min-height: 52px; border-radius: 14px;
  border: 1.5px solid var(--divider); background: var(--bg); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.beta input[type=password]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.beta fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.beta .opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--divider); border-radius: 14px; cursor: pointer; }
.beta .opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.beta .opt input { accent-color: var(--primary); width: 18px; height: 18px; }
.beta .btn { justify-content: center; min-height: 52px; }
.beta-err { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #C0392B 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, #C0392B 45%, transparent); }
