/* The school's home page. Colours, type and parts come from the app
   (mobile/lib/app/theme.dart, features/home/trail/stone_view.dart) and the
   Figma frames they were built from: the splash night 2233:13937, the
   onboarding slides 2233:13945–13969, the trail 2225:8120, the ustaz
   screen 2236:17519. The other public pages keep their own style.css. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-bold.woff2") format("woff2"); }

:root {
  --primary: #1971ff;
  --primary-dark: #0b5ad9;
  --night: #0f0a0e;
  --on-night: #a1a1a1;
  --ink: #121214;
  --ink-2: #4b5058;
  --ink-3: #6e737d;
  --ground: #fcfcfc;
  --sky: #f6faff;
  --card-line: #e8e8eb;
  --icon-bg: #e7f0ff;
  --wrap: 1160px;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  /* Motion: a quick start that settles slowly (the app's emphasized
     decelerate), and a light spring for things that land or pop. */
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.103, 1.085 30.6%, 1.04 35.4%, 1.011 39.8%, .996 43.9%, .991 48.2%, .999 61.2%, 1);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(.34, 1.4, .64, 1); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
/* The traced icons of the Figma file are stored upside down; the app flips them too (FlippedSvg). */
.flip { transform: scaleY(-1); }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #8cb6ff; outline-offset: 3px; border-radius: 8px; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.9rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.035em;
}
h2 {
  font-size: clamp(2rem, 1.35rem + 2.5vw, 3.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.03em;
}
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.eyebrow-blue { color: var(--primary); }
.eyebrow-gold { color: #b26b05; }
.accent { color: var(--primary); }
/* On the night the blue word sank into the blue light (owner, 26.10): gold, as «Дать садака». */
.night .accent { color: #ffd140; }
.lead { font-size: clamp(1.06rem, .98rem + .4vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, .74); max-width: 34rem; }
.head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.head .sub, .sub { margin-top: 16px; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); max-width: 40rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, scale .5s var(--spring), box-shadow .2s;
}
.btn:active { scale: .96; transition-duration: .2s, .12s, .2s; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 8.3px rgba(0, 0, 0, .15); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
/* The «Начать» callout of the trail as a button: gold, with a pressable edge. */
.btn-gold {
  height: 54px; padding: 0 28px; border-radius: 16px; background: #ffc72c; color: #4d3305; font-size: 16px; font-weight: 700;
  box-shadow: inset 0 0 0 1px #ffe07a, 0 10px 12px rgba(178, 107, 5, .18), 0 5px 0 #d48a08;
  transition: background-color .2s, translate .25s var(--spring), box-shadow .25s var(--spring);
}
.btn-gold:hover { background: #ffd140; }
.btn-gold:active { scale: 1; translate: 0 4px; box-shadow: inset 0 0 0 1px #ffe07a, 0 4px 6px rgba(178, 107, 5, .18), 0 1px 0 #d48a08; transition-duration: .2s, .1s, .1s; }

/* Store buttons. Until a store link exists (links.js) they are plain text
   «Скоро в App Store», never the official badges: Apple and Google allow
   their badges only for an app that can be downloaded. With a link and the
   official badge file in assets/img/badges/, the badge picture is shown. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; height: 58px; padding: 0 20px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: scale .5s var(--spring), box-shadow .25s, background-color .25s;
}
.store-small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .78; line-height: 1.2; }
.store-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; background: rgba(0, 0, 0, .42); }
.store[aria-disabled="true"] .store-small { color: #ffd633; opacity: 1; }
.store[href]:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.store[href]:active { scale: .97; transition-duration: .12s; }
.store.badge { background: none; box-shadow: none; padding: 0; min-width: 0; }
.store.badge img { height: 54px; width: auto; }
.is-android .stores [data-store="googlePlay"] { order: -1; }

/* ---------- header: a floating capsule of night glass ---------- */
.bar {
  position: fixed; z-index: 40; top: max(10px, env(safe-area-inset-top)); left: 0; right: 0;
  padding-inline: 12px; pointer-events: none;
  transition: translate .6s var(--out);
}
.bar.away { translate: 0 calc(-100% - 20px); }
.bar-in {
  pointer-events: auto; display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--wrap) + 24px); margin-inline: auto; height: 58px; padding: 0 10px 0 18px;
  border-radius: 18px; background: rgba(15, 10, 14, .5);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 30px -12px rgba(0, 0, 0, .35);
  transition: background-color .4s;
}
.bar.solid .bar-in { background: rgba(15, 10, 14, .88); }
.bar-logo img { height: 21px; width: auto; }
.bar-nav { display: none; gap: 4px; margin-right: auto; }
.bar-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.bar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bar-act { display: flex; gap: 8px; margin-left: auto; }
.nav-sadaka::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #ffc72c; box-shadow: 0 0 0 3px rgba(255, 199, 44, .2); vertical-align: 1px; }
.bar-sadaka { color: #ffd140; }
@media (min-width: 960px) { .bar-sadaka { display: none; } }
@media (min-width: 960px) { .bar-nav { display: flex; } .bar-act { margin-left: 0; } }

/* ---------- night sections: the splash light, flowing slowly ---------- */
.night { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow .g { position: absolute; max-width: none; will-change: transform; animation: var(--flow) ease-in-out infinite alternate; }
.night.paused .glow .g { animation-play-state: paused; }
/* The layers of frame 2233:13937 (two blue waves, two pale ellipses), laid
   out for a wide screen and moving between the moments of the slides. */
.g-wave-a { width: max(900px, 78vw); left: -22%; top: -62%; --flow: flowA 23s; }
.g-wave-b { width: max(820px, 68vw); right: -26%; bottom: -78%; rotate: 165deg; --flow: flowB 29s; }
.g-ell-a { width: max(300px, 26vw); left: -6%; bottom: -34%; rotate: -18deg; --flow: flowC 19s; opacity: .85; }
.g-ell-b { width: max(300px, 24vw); right: 6%; top: -30%; rotate: -18deg; --flow: flowD 31s; }
.g-wave-c { width: max(860px, 66vw); left: -40%; top: -112%; rotate: -13deg; --flow: flowA 27s; }
.g-ell-c { width: max(280px, 22vw); left: -9%; top: -52%; rotate: -32deg; --flow: flowC 21s; }
.g-wave-d { width: max(900px, 74vw); left: 50%; bottom: -128%; translate: -50% 0; rotate: 172deg; --flow: flowB 25s; }
.g-ell-d { width: max(300px, 22vw); right: -4%; top: -36%; rotate: -18deg; --flow: flowD 23s; }
@media (max-width: 959px) {
  .hero .g-wave-a { width: 231vw; left: -65.6vw; top: -175.6vw; }
  .hero .g-wave-b { width: 231vw; left: -53.2vw; right: auto; top: 150vw; bottom: auto; }
  .hero .g-ell-a { width: 105vw; left: -5.9vw; top: 215vw; bottom: auto; }
  .hero .g-ell-b { width: 105vw; left: 9.9vw; right: auto; top: -98.8vw; }
  .g-wave-c { width: 231vw; left: -130vw; top: -150vw; }
  .g-ell-c { width: 105vw; left: -60vw; top: -95vw; }
  .g-wave-d { width: 231vw; bottom: -170vw; }
  .g-ell-d { width: 105vw; right: -62vw; top: -88vw; }
}
@keyframes flowA { from { transform: translate(0, 0) rotate(0) scale(1); } to { transform: translate(8%, 10%) rotate(9deg) scale(1.1); } }
@keyframes flowB { from { transform: translate(0, 0) rotate(0) scale(1.05); } to { transform: translate(-10%, -8%) rotate(-7deg) scale(.95); } }
@keyframes flowC { from { transform: translate(0, 0) scale(1); opacity: .9; } to { transform: translate(30%, -18%) scale(1.18); opacity: .55; } }
@keyframes flowD { from { transform: translate(0, 0) scale(.95); } to { transform: translate(-26%, 16%) scale(1.12); } }

/* ---------- 1. hero ---------- */
.hero { min-height: min(100svh, 1000px); display: flex; flex-direction: column; justify-content: center; }
.hero-in {
  display: grid; gap: 48px; align-items: center;
  padding-top: calc(110px + env(safe-area-inset-top)); padding-bottom: 0;
}
.hero-text { max-width: 36rem; }
.hero h1 { margin-bottom: 22px; }
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.dot-free { width: 8px; height: 8px; border-radius: 50%; background: #42b563; box-shadow: 0 0 0 4px rgba(66, 181, 99, .22); }
.hero-phone { margin: 0; display: flex; justify-content: center; }
.hero-give { display: inline-block; margin-top: 20px; color: rgba(255, 255, 255, .66); font-size: 15px; text-decoration: none; }
.hero-give b { color: #ffd140; font-weight: 600; white-space: nowrap; }
.hero-give b::after { content: "\00a0→"; display: inline-block; transition: translate .4s var(--spring); }
.hero-give:hover b::after { translate: 4px 0; }

/* The old site's strip of what the school gives, moving slowly. */
.ticker {
  display: flex; overflow: hidden; margin-top: 56px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-row { flex: none; display: flex; gap: 40px; margin: 0; padding: 0 20px; list-style: none; animation: marquee 46s linear infinite; }
.ticker li { display: flex; align-items: center; gap: 40px; white-space: nowrap; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 500; }
.ticker li::after { content: ""; width: 12px; height: 12px; background: url("img/sparkle.svg") center / contain no-repeat; }
.night.paused .ticker-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: 120px 80px; }
  .hero-phone { justify-content: flex-end; padding-right: 4%; }
}
@media (max-width: 959px) {
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-in { padding-bottom: 8px; }
}

/* First appearance: each line rises into place, one after another. */
.rise { opacity: 0; translate: 0 22px; }
.ready .rise { opacity: 1; translate: 0 0; transition: opacity .9s var(--out), translate 1.1s var(--out); transition-delay: calc(var(--d, 0) * 90ms + 80ms); }

/* ---------- the phone with the app's trail ---------- */
.phone {
  --pw: 300; --s: calc((var(--pw) - 22) / 393);
  position: relative; width: calc(var(--pw) * 1px); padding: 11px; border-radius: calc(var(--pw) * .165px);
  background: linear-gradient(145deg, #2a2b31, #0b0b0f 40%, #1b1c22);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 40px 80px -24px rgba(5, 20, 70, .8),
    0 0 120px -10px rgba(48, 99, 227, .45);
  transform-style: preserve-3d;
}
@media (min-width: 420px) { .phone { --pw: 320; } }
@media (min-width: 1200px) { .phone { --pw: 340; } }
/* A laptop screen that is wide but not tall: the whole phone still fits. */
@media (min-width: 960px) and (max-height: 860px) { .phone { --pw: 300; } .hero-in { padding-block: 96px 40px; } }
.phone-screen {
  position: relative; overflow: hidden;
  width: calc((var(--pw) - 22) * 1px); height: calc((var(--pw) - 22) * 852 / 393 * 1px);
  border-radius: calc(var(--pw) * .128px); background: #fff;
}
.hero-phone .phone { opacity: 0; translate: 0 80px; }
.ready .hero-phone .phone { opacity: 1; translate: 0 0; transition: opacity 1s var(--out) .25s, translate 1.4s var(--spring) .25s; }
.hero-phone.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* The trail screen of frame 2225:8120, at its own 393 × 852 size. */
.app {
  position: absolute; left: 0; top: 0; width: 393px; height: 852px;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: linear-gradient(#f6faff, #fff); overflow: hidden; color: #000;
  font-family: "Inter", sans-serif;
}
.app > * { position: absolute; }
.sc { max-width: none; }
.sc-lt { left: -82px; top: 277px; width: 158px; height: 82px; rotate: 5deg; }
.sc-rt { left: 328px; top: 344px; width: 138px; height: 92px; rotate: -6deg; }
.sc-lb { left: -84px; top: 517px; width: 154px; height: 94px; rotate: -5deg; }
.sc-rb { left: 322px; top: 594px; width: 142px; height: 86px; rotate: 5deg; }
.app-time { left: 45px; top: 21px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.app-island { left: 133.8px; top: 11px; width: 126px; height: 37px; border-radius: 19.5px; background: #000; }
.app-home { left: 125.7px; bottom: 8.4px; width: 141.65px; height: 5.25px; border-radius: 99px; background: #000; }
.app-title { left: 25px; top: 65px; font-size: 22px; font-weight: 700; line-height: 27px; color: #0d0d14; }
.app-streak {
  left: 261px; top: 60px; width: 107px; height: 36px; border-radius: 18px;
  background: #fff6d6; box-shadow: inset 0 0 0 1.5px #ffd140, 0 3px 6px rgba(240, 148, 20, .18);
}
.app-streak img { position: absolute; left: 14px; top: 9px; }
.app-streak b { position: absolute; left: 40px; top: 9px; font-size: 14px; font-weight: 600; line-height: 17px; color: #634005; white-space: nowrap; }
.app-banner {
  left: 25px; top: 110px; width: 343px; height: 106px; border-radius: 22px; color: #fff;
  background: linear-gradient(90deg, #1a70ff, #3354f5);
  box-shadow: 0 12px 18px -4px rgba(26, 89, 242, .28), 0 6px 0 rgba(13, 61, 184, .95);
}
.app-banner > * { position: absolute; }
.ab-eyebrow { left: 20px; top: 14px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.ab-title { left: 20px; top: 34px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.ab-icon { left: 277px; top: 14px; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ab-icon img { position: absolute; left: 11px; top: 11px; }
.ab-track { left: 20px; top: 77px; width: 238px; height: 10px; border-radius: 5px; background: rgba(8, 46, 140, .36); }
.ab-fill { position: absolute; left: 0; top: 0; height: 10px; width: 126px; border-radius: 5px; background: #ffd633; box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45); transform-origin: 0 50%; transition: width .9s var(--spring); }
.ab-count { left: 278px; top: 76px; font-size: 11px; font-weight: 600; line-height: 14px; color: rgba(255, 255, 255, .88); }
.td {
  left: var(--x); top: var(--y); width: 8px; height: 5px; rotate: var(--r); border-radius: 50%;
  background: rgba(122, 166, 217, .72); box-shadow: 0 2px 2px rgba(26, 89, 191, .16);
}
.app-book { left: 37px; top: 257px; width: 88px; height: 90px; filter: drop-shadow(-8px 5px 4.8px #adbdcf); }
.app-rug { left: 251px; top: 374px; width: 103px; height: 96px; filter: drop-shadow(-8px 5px 4.8px #adbdcf); }
.lbl { left: var(--x); top: var(--y); font-size: 13px; line-height: 16px; color: var(--ink-3); white-space: nowrap; transition: opacity .35s; }
.lbl-cur b { display: block; font-size: 15px; font-weight: 700; line-height: 18px; color: #000; }
.lbl-cur small { display: block; margin-top: 3px; font-size: 12px; line-height: 15px; color: var(--ink-2); }
.lbl-done { font-weight: 600; color: #2b8c4a; }
.callout {
  left: var(--x); top: var(--y); width: 104px; height: 34px; border-radius: 18px;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #4d3305;
  background: #ffc72c; box-shadow: inset 0 0 0 1px #ffe07a, 0 10px 12px rgba(178, 107, 5, .18), 0 5px 0 #d48a08;
  transition: left .8s var(--spring), top .8s var(--spring);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -4px; } }
.spark { pointer-events: none; }
.spark-a { left: 140px; top: 506px; animation: twinkle 2.4s ease-in-out infinite; }
.spark-b { left: 244px; top: 557px; animation: twinkle 2.4s ease-in-out 1.1s infinite; }
@keyframes twinkle { 0%, 100% { scale: .6; rotate: 0deg; } 50% { scale: 1.15; rotate: 45deg; } }
.app .spark { opacity: 0; transition: opacity .6s 1.8s; }
.app.play .spark { opacity: 1; }
.reward-pill {
  left: 76px; top: 686px; width: 242px; height: 38px; border-radius: 19px; background: #e5faeb;
  box-shadow: inset 0 0 0 1px #ade5bd, 0 5px 12px rgba(20, 107, 48, .12);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #338c4f;
}
.tabbar {
  left: 45.5px; top: 743px; width: 302px; height: 62px; border-radius: 296px;
  background: rgba(247, 247, 247, .94); box-shadow: 0 8px 40px rgba(0, 0, 0, .12);
}
.tab { position: absolute; top: 4px; width: 102px; height: 54px; font-size: 10px; font-weight: 600; line-height: 12px; text-align: center; color: #000; }
.tab:nth-child(1) { left: 6px; } .tab:nth-child(2) { left: 100px; } .tab:nth-child(3) { left: 194px; }
.tab.on { color: var(--primary); letter-spacing: -.1px; }
.tab.on::before { content: ""; position: absolute; inset: 0 -2px; border-radius: 100px; background: #ededed; }
.tab > span { position: absolute; left: 0; right: 0; top: 35px; }
/* The traced icons are drawn upside down in the file and tinted (home_tab_bar.dart). */
.ti { position: absolute; background: currentColor; transform: scaleY(-1);
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.ti-path { --m: url("img/tab-path.svg"); left: 39.77px; top: 8.28px; width: 22.47px; height: 22.45px; }
.ti-messages { --m: url("img/tab-messages.svg"); left: 37.01px; top: 6.67px; width: 27.99px; height: 26.65px; }
.ti-profile { --m: url("img/tab-profile.svg"); left: 40.55px; top: 8px; width: 20.87px; height: 24.99px; }
.tab em { position: absolute; left: 57.5px; top: 3px; width: 13px; height: 13px; border-radius: 22px; background: #eb4444; color: #fff; font: 700 8px/13px "Inter"; text-align: center; font-style: normal; }

/* A stone of the path (stone_view.dart: done, current, locked). */
.stone {
  --k: 1; --w: 66; --h: 42; --fs: 25;
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r, 0deg);
  width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px);
  --grad: linear-gradient(#fff, #e0edff); --line: #99b8e5; --shade: 0 calc(5px * var(--k)) calc(4px * var(--k)) rgba(31, 61, 107, .12);
  --base: #7891b3; --base-shade: rgba(120, 145, 179, .16); --fg: #6e7d99;
}
.stone::before {
  content: ""; position: absolute; left: calc(-2px * var(--k)); right: calc(-2px * var(--k)); top: calc(6px * var(--k)); height: 100%;
  border-radius: 50%; background: var(--base); box-shadow: 0 calc(6px * var(--k)) calc(10px * var(--k)) var(--base-shade);
}
.stone i {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 999px;
  background: var(--grad); box-shadow: inset 0 0 0 calc(2px * var(--k)) var(--line), var(--shade);
  font: 700 calc(var(--fs) * var(--k) * 1px)/1 "Inter", sans-serif; font-style: normal; color: var(--fg);
  letter-spacing: -.02em;
}
.stone.done {
  --grad: linear-gradient(#3dab7a, #147a57); --line: #80f0a1; --shade: 0 calc(6px * var(--k)) calc(5px * var(--k)) rgba(10, 82, 51, .16);
  --base: #0a5c40; --base-shade: rgba(10, 92, 64, .16); --fg: #fff;
}
.stone.current {
  --w: 80; --h: 54; --fs: 30;
  --grad: linear-gradient(90deg, #1a7aff, #244ff5); --line: #73adff; --shade: 0 calc(7px * var(--k)) calc(6px * var(--k)) rgba(8, 51, 140, .2);
  --base: #0d3d8c; --base-shade: rgba(13, 61, 140, .16); --fg: #fff;
}
.ring {
  left: var(--x); top: var(--y); width: 96px; height: 68px; translate: -50% -50%; rotate: -1deg; border-radius: 50%;
  background: #c9defa; box-shadow: 0 8px 18px rgba(26, 99, 240, .22);
  transition: left .8s var(--spring), top .8s var(--spring);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.07; box-shadow: 0 10px 24px rgba(26, 99, 240, .3); } }

/* The trail builds itself when the phone appears. */
.app [data-in] { opacity: 0; }
.app.play [data-in] { animation: appIn .7s var(--spring) both; animation-delay: calc(var(--t) * 1ms); }
.app.play .stone[data-in], .app.play .ring[data-in] { animation-name: stoneIn; }
.app.play .td[data-in] { animation: dotIn .4s var(--out) both; animation-delay: calc(var(--t) * 1ms); }
.app.play .ab-fill[data-in] { animation: fillIn 1.2s var(--spring) both; animation-delay: calc(var(--t) * 1ms); opacity: 1; }
@keyframes appIn { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes stoneIn { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes dotIn { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes fillIn { from { width: 0; } }
.app.play .callout[data-in] { animation: calloutIn .8s var(--spring) both, bob 2.6s ease-in-out 2.6s infinite; animation-delay: calc(var(--t) * 1ms), calc(var(--t) * 1ms + 800ms); }
@keyframes calloutIn { from { opacity: 0; translate: 0 -18px; scale: .7; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- the mission ---------- */
.mission { padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); background: #fff; }
.mission-text { max-width: 17em; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); letter-spacing: -.035em; }

/* ---------- 2. the path of steps ---------- */
.path { position: relative; padding: clamp(80px, 10vw, 150px) 0; background: linear-gradient(#f6faff, #fff 70%); overflow: hidden; }
.path .wrap { position: relative; }
.steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 96px); }
.step { position: relative; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 16px; }
/* The stone keeps one box whatever its state, so nothing around it moves. */
.step .stone { --k: 1.05; position: relative; left: auto; top: auto; translate: none; justify-self: center;
  margin: calc((54 - var(--h)) * var(--k) * .5px) calc((80 - var(--w)) * var(--k) * .5px); }
.step-card {
  background: #fff; border: 1px solid var(--card-line); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  opacity: .5; translate: 0 10px; transition: opacity .6s var(--out), translate .8s var(--spring), box-shadow .4s, border-color .4s;
}
.step-card h3 { color: var(--ink); margin-bottom: 6px; }
.step-card p { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.step.on .step-card { opacity: 1; translate: 0 0; }
.step.now .step-card { border-color: #b9d3ff; box-shadow: 0 14px 30px -14px rgba(25, 113, 255, .35); }
.path-line { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.path-line path { fill: none; stroke: none; }
.path-line ellipse { fill: rgba(122, 166, 217, .3); transition: fill .35s; }
.path-line ellipse.on { fill: rgba(122, 166, 217, .95); }
/* The book and the rug of the trail screen sit in the free side of the track. */
.step-art { display: none; filter: drop-shadow(-10px 7px 6px #adbdcf); pointer-events: none; }
@media (min-width: 960px) {
  .steps { max-width: 1080px; margin-inline: auto; gap: 30px; }
  .step { grid-template-columns: 1fr 300px 1fr; gap: 0 40px; }
  .step > .stone, .step > .goal { grid-column: 2; grid-row: 1; }
  .step .stone { --k: 1.5; }
  .step-card { grid-row: 1; width: 100%; max-width: 380px; }
  .step:nth-child(odd) > .stone { justify-self: start; }
  .step:nth-child(odd) .step-card { grid-column: 1; justify-self: end; }
  .step:nth-child(even) > .stone { justify-self: end; }
  .step:nth-child(even) .step-card { grid-column: 3; justify-self: start; }
  .step-goal > .goal { justify-self: center; }
  .step-art { display: block; grid-column: 2; grid-row: 1; width: 124px; height: auto; }
  .art-book { justify-self: start; rotate: -6deg; }
  .art-rug { justify-self: end; width: 136px; rotate: 5deg; }
}

/* The goal at the end of the path: the reward star lights up. */
.goal {
  position: relative; justify-self: center; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; background: #e5faeb; box-shadow: inset 0 0 0 1.5px #ade5bd, 0 8px 20px rgba(20, 107, 48, .14);
  transition: scale .7s var(--spring), box-shadow .6s;
}
@media (min-width: 960px) { .goal { width: 104px; height: 104px; } }
.goal > img:first-child { width: 40%; height: auto; transition: scale .8s var(--spring), filter .6s; filter: saturate(.4) opacity(.6); }
.goal .spark { position: absolute; width: 14px; height: 14px; opacity: 0; left: 50%; top: 50%; }
.step.lit .goal { scale: 1.06; box-shadow: inset 0 0 0 1.5px #80d99a, 0 0 0 10px rgba(66, 181, 99, .1), 0 18px 40px rgba(20, 107, 48, .25); }
.step.lit .goal > img:first-child { scale: 1.25; filter: none; }
.step.lit .goal .spark { animation: burst 1.1s var(--out) both; }
.step.lit .goal .s1 { --bx: -58px; --by: -46px; }
.step.lit .goal .s2 { --bx: 60px; --by: -38px; animation-delay: .08s; }
.step.lit .goal .s3 { --bx: -50px; --by: 48px; animation-delay: .14s; }
.step.lit .goal .s4 { --bx: 56px; --by: 44px; animation-delay: .2s; }
@keyframes burst {
  0% { opacity: 0; translate: -50% -50%; scale: .2; }
  35% { opacity: 1; }
  100% { opacity: 0; translate: calc(-50% + var(--bx)) calc(-50% + var(--by)); scale: 1.2; rotate: 90deg; }
}

/* ---------- why many give up: each reason is crossed out, the answer comes in ---------- */
.why { padding: clamp(80px, 10vw, 140px) 0; background: var(--sky); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-row { display: grid; gap: 10px; padding: 18px 20px; background: #fff; border: 1px solid var(--card-line); border-radius: 18px; }
.why-pain, .why-fix { display: flex; align-items: flex-start; gap: 12px; }
.why-pain { color: var(--ink-2); text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 1.5px; transition: text-decoration-color .6s, color .6s; }
.why-fix { color: var(--ink); font-weight: 600; opacity: 0; translate: -14px 0; transition: opacity .6s var(--out), translate .8s var(--spring); }
.why-pain::before, .why-fix::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background-position: center; background-repeat: no-repeat; }
.why-pain::before { background-color: #fdecea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23d92d20' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.why-fix::before { background-color: #42b563; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); scale: .4; transition: scale .6s var(--spring); }
.why-row.in .why-pain { color: var(--ink-3); text-decoration-color: rgba(217, 45, 32, .55); }
.why-row.in .why-fix { opacity: 1; translate: 0 0; transition-delay: .35s; }
.why-row.in .why-fix::before { scale: 1; transition-delay: .5s; }
@media (min-width: 860px) {
  .why-row { grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 20px 26px; }
}

/* ---------- 3. courses ---------- */
.courses { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.course-row { display: grid; gap: 16px; align-items: stretch; }
.course {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 24px; border-radius: 22px; color: #fff;
  background: linear-gradient(90deg, #1a70ff, #3354f5);
  box-shadow: 0 12px 18px -4px rgba(26, 89, 242, .28), 0 6px 0 rgba(13, 61, 184, .95);
}
.course h3 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.course p { color: rgba(255, 255, 255, .88); font-size: 16px; }
.course-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .85) !important; }
.course-icon { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.course-icon img { width: auto; height: 22px; }
.course-tag { align-self: flex-start; margin-top: auto; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.course-next { color: var(--ink); background: linear-gradient(#fff, #e0edff); box-shadow: inset 0 0 0 2px #99b8e5, 0 5px 4px rgba(31, 61, 107, .12), 0 6px 0 #7891b3; }
.course-next p { color: var(--ink-2); }
.course-next .course-eyebrow { color: #6e7d99 !important; }
.course-next .course-icon { background: var(--icon-bg); }
.course-next .course-tag { background: #fff; color: #6e7d99; box-shadow: inset 0 0 0 1px #c9d7ec; }
.course-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 14px; }
.course-foot .course-tag { margin-top: 0; }
.course-price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.course-next .course-price { color: var(--ink); }
.bundle {
  display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 22px; border-radius: 22px;
  background: var(--sky); border: 1px solid #dfe8f6;
}
.bundle .course-icon { position: static; flex: none; background: var(--icon-bg); }
.bundle h3 { font-size: 20px; font-weight: 700; color: var(--ink); }
.bundle p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.course-lang a { color: var(--primary); font-weight: 600; }
/* The grant as a third card, the same as the courses (owner, 26.10), in the
   green of a done stone of the trail (stone_view.dart): open, free. */
.course-grant { margin-top: 10px; text-decoration: none; background: linear-gradient(90deg, #3dab7a, #147a57); box-shadow: 0 12px 18px -4px rgba(20, 107, 48, .28), 0 6px 0 #0a5c40; }
.course-grant .course-tag::after { content: "\00a0→"; display: inline-block; transition: translate .4s var(--spring); }
.course-grant:hover .course-tag::after { translate: 4px 0; }
.course-grant .course-icon img { width: 26px; height: auto; }
.course-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 4px 0; }
.course-arrow i { width: 8px; height: 5px; border-radius: 50%; background: rgba(122, 166, 217, .72); box-shadow: 0 2px 2px rgba(26, 89, 191, .16); }
.course-arrow i:nth-child(even) { rotate: -5deg; } .course-arrow i:nth-child(odd) { rotate: 5deg; }
.course-lang { margin-top: 30px; color: var(--ink-2); }
.course-lang b { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .course-row { grid-template-columns: 1fr 72px 1fr; }
  .course-grant { grid-column: 1 / -1; min-height: 0; }
  .course { padding: 32px 32px 30px; min-height: 260px; }
  .course-arrow { flex-direction: row; gap: 8px; }
  .course-arrow i { width: 7px; height: 5px; }
}
/* A wide screen: the two courses and the grant in one row. */
@media (min-width: 1100px) {
  .course-row { grid-template-columns: 1fr 56px 1fr 1fr; column-gap: 12px; }
  .course-grant { grid-column: auto; min-height: 260px; margin: 0 0 0 20px; }
}
.in .course-arrow i, .course-row.in .course-arrow i { animation: dotRun 1.8s ease-in-out infinite; }

/* ---------- 4. ustaz ---------- */
.ustaz { padding: clamp(80px, 10vw, 140px) 0; background: var(--sky); }
.ustaz-in { display: grid; gap: 48px; align-items: center; }
.ustaz h2 { color: var(--ink); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 30rem; }
.points li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--card-line); border-radius: 14px; }
.pt-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--icon-bg); display: grid; place-items: center; }
.points h3 { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.points p { margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 960px) { .ustaz-in { grid-template-columns: 1.05fr .95fr; gap: 64px; } }

.chat {
  margin: 0; justify-self: center; width: min(100%, 420px); background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 0 var(--card-line), 0 30px 60px -30px rgba(25, 70, 160, .35);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eef0f4; }
.chat-head b { display: block; font-size: 15px; font-weight: 600; }
.chat-head small { display: block; font-size: 12px; color: var(--ink-3); }
.chat-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--icon-bg); display: grid; place-items: center; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; min-height: 360px; background: linear-gradient(#fbfcff, #f4f7fc); }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.msg small { display: block; margin-top: 4px; font-size: 11px; opacity: .8; }
.msg b { display: block; font-size: 12px; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.msg-me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg-them { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.voice { display: flex; align-items: center; gap: 10px; }
.voice-play { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; position: relative; }
.voice-play::after { content: ""; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid var(--primary); border-right: 0; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .15s; }
.wave i.on { background: #fff; }
.voice-time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .9; }
.msg-check { position: relative; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9c2d0; animation: typing 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -4px; opacity: 1; } }
.chat figcaption { padding: 10px 18px 14px; font-size: 12px; color: var(--ink-3); background: #f4f7fc; }
[data-chat-step] { display: none; }
[data-chat-step].shown { display: block; animation: msgIn .55s var(--spring) both; }
.typing.shown { display: flex; }
.msg-me.shown { transform-origin: 100% 100%; }
.msg-them.shown { transform-origin: 0 100%; }
@keyframes msgIn { from { opacity: 0; scale: .7; translate: 0 12px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* ---------- 5. grant ---------- */
.grant { padding: clamp(90px, 11vw, 150px) 0; }
.grant-in { display: grid; gap: 40px; align-items: center; }
.grant h2 { margin-bottom: 18px; }
.grant-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 26px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -16px rgba(48, 99, 227, .7); }
.grant-icon img { width: 46px; height: auto; }
.grant-small { margin-top: 16px; color: rgba(255, 255, 255, .62); font-size: 15px; }
.grant-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.grant-steps li {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 500;
}
.grant-steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); font-weight: 700; font-size: 15px; }
@media (min-width: 960px) { .grant-in { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* ---------- sadaka jariah: warm light, the candle of the app's promo screen ---------- */
.sadaka {
  position: relative; padding: clamp(84px, 10vw, 150px) 0; overflow: hidden;
  background: radial-gradient(70% 60% at 85% 10%, rgba(255, 199, 44, .2), transparent 70%), linear-gradient(#fff9f0, #fff4e4);
}
.sadaka h2 { color: var(--ink); }
.sadaka .sub { color: #5b4a34; }
.sadaka-in { display: grid; gap: 40px; align-items: center; }
.hadith { margin: 30px 0 0; padding: 22px 24px; background: #fff; border-radius: 18px; box-shadow: inset 4px 0 0 #ffc72c, 0 10px 30px -18px rgba(178, 107, 5, .45); max-width: 36rem; }
.hadith p { font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.hadith cite { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; color: #b26b05; }
.hadith cite::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: #ffc72c; }
.hadith .w { opacity: .12; transition: opacity .5s; transition-delay: calc(var(--i) * 45ms + 200ms); }
.hadith.in .w { opacity: 1; }
.candle { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(178, 107, 5, .55); }
.candle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.candle-glow {
  position: absolute; left: 51.5%; top: 48%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 170, .9), rgba(255, 190, 90, .35) 45%, transparent);
  mix-blend-mode: screen; animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { scale: 1; opacity: .85; } 30% { scale: 1.08; opacity: 1; } 55% { scale: .96; opacity: .8; } 80% { scale: 1.05; opacity: .95; } }
.sadaka-why { margin: 64px 0 18px; font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.give-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.give-points li { padding: 20px; background: #fff; border-radius: 18px; border: 1px solid #f3e3c9; }
.give-points h3 { margin: 14px 0 6px; color: var(--ink); }
.give-points p { color: #5b4a34; font-size: 15px; }
.gp-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff6d6; box-shadow: inset 0 0 0 1.5px #ffd140; }
.gp-mark img { width: 20px; height: auto; }
@media (min-width: 760px) { .give-points { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .sadaka-in { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

/* The relay: your sadaka, a student's grant, a student who reads. */
.relay { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 40px 0 0; padding: 26px 18px; border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px dashed #efd6ad; }
.relay { align-items: flex-start; }
.relay-step { display: grid; grid-template-rows: 58px auto; justify-items: center; align-items: center; gap: 8px; min-width: 96px; text-align: center; }
.relay-dots { margin-top: 27px; }
.relay-step b { font-size: 14px; font-weight: 600; color: var(--ink); }
.relay .stone { --k: .8; position: relative; left: auto; top: auto; translate: none; }
.relay-dots { display: flex; gap: 7px; }
.relay-dots i { width: 8px; height: 5px; border-radius: 50%; background: rgba(122, 166, 217, .3); transition: background-color .3s; }
.relay-dots i.on { background: rgba(122, 166, 217, .95); }
.relay-star { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #e5faeb; box-shadow: inset 0 0 0 1.5px #ade5bd; transition: scale .7s var(--spring), box-shadow .5s; }
.relay-star img { width: 22px; height: auto; filter: saturate(.3) opacity(.55); transition: filter .5s; }
.relay.lit .relay-star { scale: 1.12; box-shadow: inset 0 0 0 1.5px #80d99a, 0 0 0 8px rgba(66, 181, 99, .12); }
.relay.lit .relay-star img { filter: none; }
@media (max-width: 560px) {
  .relay { flex-direction: column; align-items: center; gap: 10px; }
  .relay-dots { flex-direction: column; gap: 6px; margin-top: 0; }
  .relay-dots i { width: 5px; height: 8px; }
}
.give {
  display: flex; flex-direction: column; gap: 22px; margin-top: 24px; padding: 28px 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(90% 160% at 100% 0%, rgba(255, 170, 60, .4), transparent 60%), var(--night);
  box-shadow: 0 30px 60px -30px rgba(15, 10, 14, .6);
}
.give h3 { font-size: 1.5rem; font-weight: 700; }
.give p { margin-top: 8px; color: rgba(255, 255, 255, .72); max-width: 36rem; }
.give .btn-gold { align-self: flex-start; }
@media (min-width: 760px) { .give { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; } .give .btn-gold { align-self: center; flex: none; } }

/* The sadaka page (sadaka/index.html): the same block as on the home page, on its own. */
.page-sadaka .bar-in { background: rgba(15, 10, 14, .86); }
.page-sadaka .bar-act { margin-left: auto; }
.btn-gold.btn-sm { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; box-shadow: inset 0 0 0 1px #ffe07a, 0 3px 0 #d48a08; }
.sadaka-top { padding-top: calc(120px + env(safe-area-inset-top)); }
.sadaka-top h1 { color: var(--ink); font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem); margin-bottom: 18px; }
.give-now { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.give-now p { color: #5b4a34; font-size: 14px; max-width: 18rem; }
.hadith-wide { max-width: 52rem; margin-top: clamp(40px, 6vw, 72px); padding: 28px 30px; }
.hadith-wide p { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

/* ---------- 6. inside the app ---------- */
.inside { padding: clamp(80px, 10vw, 140px) 0; background: #fff; }
.bento { display: grid; gap: 16px; }
.tile { padding: 14px 14px 22px; border-radius: 24px; background: #fff; border: 1px solid #edf0f5; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.tile h3 { margin: 18px 8px 6px; color: var(--ink); }
.tile p { margin: 0 8px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.tile-art { position: relative; height: 160px; border-radius: 18px; background: var(--sky); display: flex; align-items: center; justify-content: center; gap: 18px; overflow: hidden; }
@media (min-width: 720px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.tile-art .app-streak { position: relative; left: auto; top: auto; flex: none; }
.mini-stones { display: flex; align-items: center; gap: 10px; }
.mini-stones .stone, .pc-stones .stone { position: relative; left: auto; top: auto; translate: none; --k: .72; }
.mini-stones .stone:nth-child(odd) { rotate: 2deg; } .mini-stones .stone:nth-child(even) { rotate: -2deg; }
.art-streak { flex-direction: column; gap: 22px; }
.art-offline { flex-direction: column; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #dfe6f1, 0 4px 10px rgba(25, 70, 160, .08); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip-soft { padding: 0 14px; height: 30px; font-size: 12px; font-weight: 500; color: var(--ink-3); box-shadow: inset 0 0 0 1px #e4e9f2; }
.chip-check { position: relative; width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#42b563 calc(var(--p, 1) * 360deg), #e3ece6 0); }
.chip-check::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; rotate: 45deg; opacity: var(--ok, 1); transition: opacity .3s; }
.chip-check::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #42b563; opacity: var(--ok, 1); transition: opacity .3s; }
.postcard {
  position: relative; width: 184px; height: 112px; border-radius: 16px; padding: 12px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #3063e3 0%, #1b2f7a 45%, #0f0a0e 100%);
  box-shadow: 0 16px 30px -12px rgba(15, 10, 14, .6); rotate: -3deg;
}
.postcard b { position: absolute; left: 12px; bottom: 28px; font-size: 14px; font-weight: 700; }
.postcard small { position: absolute; left: 12px; bottom: 12px; font-size: 11px; color: rgba(255, 255, 255, .75); }
.pc-stones { display: flex; gap: 5px; }
.pc-stones .stone { --k: .44; }
.seg { position: relative; display: flex; padding: 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #dfe6f1, 0 4px 10px rgba(25, 70, 160, .08); }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--primary); transition: translate .6s var(--spring); }
.seg.kk::before { translate: 100% 0; }
.seg span { position: relative; z-index: 1; width: 104px; text-align: center; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.seg span.on { color: #fff; }

.numbers { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; gap: 24px; }
.numbers li { border-top: 1px solid #e6eaf0; padding-top: 18px; }
.numbers b { display: block; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.numbers b.plus::after { content: "+"; color: var(--primary); }
.numbers span { display: block; margin-top: 8px; color: var(--ink-2); }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- 7. FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; background: var(--sky); }
.faq-in { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-in { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq .head { position: sticky; top: 110px; } }
.qa { display: grid; gap: 10px; }
.ask { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }
.ask p { color: var(--ink-2); }
.qa details { background: #fff; border: 1px solid var(--card-line); border-radius: 16px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.qa details[open] { border-color: #cfe0ff; box-shadow: 0 14px 30px -18px rgba(25, 113, 255, .35); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16px; font-weight: 600; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--icon-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231971ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: rotate .5s var(--spring), background-color .3s;
}
.qa details[open] summary::after { rotate: 45deg; }
.qa-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- 8. final ---------- */
.final { padding: clamp(100px, 12vw, 170px) 0; text-align: center; }
/* The light fades into the night of the footer instead of ending on a line. */
.final::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(rgba(15, 10, 14, 0), var(--night)); pointer-events: none; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-logo { width: 170px; height: auto; margin-bottom: 34px; }
.final h2 { max-width: 14em; }
.final .lead { margin: 18px auto 0; }
.final .stores { justify-content: center; margin-top: 34px; }
.final-soon { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.final .btn-ghost { margin-top: 22px; }
.final-give { margin-top: 26px; color: rgba(255, 255, 255, .7); }
.final-give a { color: #ffd140; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 209, 64, .4); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .06); }
.foot-in { display: grid; gap: 36px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 22rem; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
.foot-col a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .45); }
@media (min-width: 760px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- the store bar at the bottom of a phone ---------- */
.dock {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 10, 14, .82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .08);
  translate: 0 110%; transition: translate .6s var(--spring);
}
.dock .stores { flex-wrap: nowrap; justify-content: center; gap: 10px; }
.dock .store { flex: 1; min-width: 0; height: 50px; max-width: 220px; }
.dock .store-name { font-size: 16px; }
@media (max-width: 719px) { .has-store .dock { display: block; } }
.dock.up { translate: 0 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--out), translate 1s var(--out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; translate: 0 0; }
@keyframes dotRun { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.course-row.in .course-arrow i:nth-child(2) { animation-delay: .15s; }
.course-row.in .course-arrow i:nth-child(3) { animation-delay: .3s; }
.course-row.in .course-arrow i:nth-child(4) { animation-delay: .45s; }
.course-row.in .course-arrow i:nth-child(5) { animation-delay: .6s; }

/* No script: everything is simply there. */
.no-js .rise, .no-js .reveal, .no-js .hero-phone .phone, .no-js .app [data-in] { opacity: 1; translate: none; }
.no-js .step-card { opacity: 1; translate: none; }
.no-js .why-fix { opacity: 1; translate: none; }
.no-js .why-fix::before { scale: 1; }
.no-js [data-chat-step] { display: block; }
.no-js .typing { display: none; }

/* Calm motion: the page is still, the states still change. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .glow .g { animation: none !important; }
  .rise, .reveal, .hero-phone .phone { opacity: 1; translate: none; }
}
