/* Ikra · ikralive.com (the Apple direction, docs/design/looks/website-apple.md)
   A product page that tells the app's story as the visitor scrolls. Light first: the warm paper ground, forest as the
   one accent, gold only on the small labels and, on the home page, where it means "recited" (IKR-162). One dark
   moment: the call's own forest wipes up over How it works while the call is on screen. The app is shown as its own
   screens: whole phones where the whole screen matters (the call, the mushaf), its cards drawn in HTML from the app's
   tokens elsewhere (docs/design/looks/ikr-162-website-film-visuals.md). System fonts only, no third-party code.
   Motion animates transform, opacity and clip-path only. The page is complete, stacked and still, when site.js has
   not run or the visitor asks for reduced motion: the scroll story lives under html.story, which site.js sets. */

:root {
  /* Brand constants (the device frames and the call pane look the same in light and dark). */
  --forest: #1F3D2B;
  --forest-deep: #16301F;
  --forest-raised: #274636;
  --sand: #E8DCC4;
  --cream: #F4EEDF;
  --mist: #CAD3C7;
  --gold: #B89B5E;
  --gold-soft: #D9C08A;

  /* Light (the app's Light appearance). */
  --bg: #F6F1E5;
  --surface: #FFFCF6;
  --surface-2: #EFE6D0;
  --ink: #17261D;
  --ink-2: #46574D;
  --line: #DDD3BD;
  --gold-text: #7A6230;
  --gold-line: #B89B5E;
  --accent: #1F3D2B;
  --on-accent: #F4EEDF;
  --bar: rgba(246, 241, 229, .86);
  --notice-bg: #FFE8C6;
  --notice-ink: #6B3A00;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -24px rgba(23, 38, 29, .35);
  --device-shadow: 0 50px 80px -40px rgba(10, 22, 15, .5), 0 16px 32px -20px rgba(10, 22, 15, .35);
  --device-ring: rgba(184, 155, 94, .22);
  /* IKR-162: the drawn app cards (ios/App/DesignSystem/Tokens/ColorTokens.swift: the classic palette in light, the
     dark palette in dark), the 604-page grid and the two grounds of How it works. */
  --pm-bg: #E8DCC4; --pm-ink: #1F3D2B;
  --pf-bg: #1F3D2B; --pf-ink: #EFE9DB; --pf-av: #2E5039; --pf-av-ink: #E8DCC4;
  --cell: rgba(23, 38, 29, .14); --cell-gold: #B89B5E; --track: rgba(23, 38, 29, .09);
  --chip: #E8DCC4; --chip-ink: #1F3D2B; --listen-bg: rgba(61, 122, 80, .14); --listen-ink: #2F6B3F;
  --scene-dark: #16301F; --scene-light: #F6F1E5; --sl-ink: #17261D; --sl-ink-2: #46574D; --sl-line: #DDD3BD;
  --c-bg: #E8DCC4; --c-ink: #1F3D2B; --c-ink-2: #4C5F52; --c-line: rgba(31, 61, 43, .16); --c-edge: transparent;
  --c-ok: #3B7A3A; --c-ring: #A9BEA3; --c-btn: #1F3D2B; --c-btn-ink: #E8DCC4; --c-ico: #E8DCC4; --c-ico-ink: #1F3D2B;
  --b-bg: #274636; --b-ink: #F4EEDF; --b-ink-2: #CAD3C7; --b-line: rgba(244, 238, 223, .14); --b-st: #E0B85A;
  --b-btn: #E8DCC4; --b-btn-ink: #1F3D2B; --b-ico: #1F3D2B; --b-ico-ink: #E8DCC4;
  --p-bg: #1F3D2B; --p-play: #E8DCC4; --p-play-ink: #1F3D2B; --p-ink: #E3E8DF; --p-trk: rgba(232, 220, 196, .3);
  --n-bg: #1F3D2B; --n-edge: transparent;
  --card-shadow: 0 30px 50px -30px rgba(10, 22, 15, .45), 0 10px 20px -14px rgba(10, 22, 15, .25);

  --wordmark: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --bar-h: 52px;
  --ease: cubic-bezier(.16, 1, .3, 1); /* the one arrival curve, site-wide (IKR-162) */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11211A; --surface: #1A3125; --surface-2: #213C2E;
    --ink: #F4EEDF; --ink-2: #CAD3C7; --line: #2B4A3A; --gold-text: #D9C08A; --gold-line: #B89B5E;
    --accent: #E8DCC4; --on-accent: #1F3D2B; --bar: rgba(17, 33, 26, .86);
    --notice-bg: #4D3711; --notice-ink: #FFD98A;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -24px rgba(0, 0, 0, .6);
    --device-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7), 0 16px 32px -20px rgba(0, 0, 0, .5);
    --device-ring: rgba(244, 238, 223, .16);
    --pm-bg: #2E5039; --pm-ink: #EFE9DB;
  --pf-bg: #E8DCC4; --pf-ink: #1F3D2B; --pf-av: #D3C4A5; --pf-av-ink: #1F3D2B;
  --cell: rgba(244, 238, 223, .11); --cell-gold: #D9C08A; --track: rgba(244, 238, 223, .1);
    --chip: #213C2E; --chip-ink: #F4EEDF; --listen-bg: rgba(140, 203, 72, .12); --listen-ink: #A9D879;
    --scene-dark: #1F3D2B; --scene-light: #11211A; --sl-ink: #F4EEDF; --sl-ink-2: #CAD3C7; --sl-line: #2B4A3A;
    --c-bg: #1C2A22; --c-ink: #EFE9DB; --c-ink-2: #B4BDB3; --c-line: #27382E; --c-edge: #27382E;
    --c-ok: #8CCB48; --c-ring: #4E6B55; --c-btn: #E8DCC4; --c-btn-ink: #14201A; --c-ico: #14201A; --c-ico-ink: #E8DCC4;
    --b-bg: #141F19; --b-ink: #EFE9DB; --b-ink-2: #B4BDB3; --b-line: #27382E; --b-st: #D4BC87;
    --b-btn: #26332B; --b-btn-ink: #EFE9DB; --b-ico: #E8DCC4; --b-ico-ink: #14201A;
    --p-bg: #0C1410; --p-play: #E8DCC4; --p-play-ink: #14201A; --p-ink: #B4BDB3; --p-trk: rgba(239, 233, 219, .2);
    --n-bg: #141F19; --n-edge: #27382E;
    --card-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11211A; --surface: #1A3125; --surface-2: #213C2E;
  --ink: #F4EEDF; --ink-2: #CAD3C7; --line: #2B4A3A; --gold-text: #D9C08A; --gold-line: #B89B5E;
  --accent: #E8DCC4; --on-accent: #1F3D2B; --bar: rgba(17, 33, 26, .86);
  --notice-bg: #4D3711; --notice-ink: #FFD98A;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -24px rgba(0, 0, 0, .6);
  --device-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7), 0 16px 32px -20px rgba(0, 0, 0, .5);
  --device-ring: rgba(244, 238, 223, .16);
  --pm-bg: #2E5039; --pm-ink: #EFE9DB;
  --pf-bg: #E8DCC4; --pf-ink: #1F3D2B; --pf-av: #D3C4A5; --pf-av-ink: #1F3D2B;
  --cell: rgba(244, 238, 223, .11); --cell-gold: #D9C08A; --track: rgba(244, 238, 223, .1);
  --chip: #213C2E; --chip-ink: #F4EEDF; --listen-bg: rgba(140, 203, 72, .12); --listen-ink: #A9D879;
  --scene-dark: #1F3D2B; --scene-light: #11211A; --sl-ink: #F4EEDF; --sl-ink-2: #CAD3C7; --sl-line: #2B4A3A;
  --c-bg: #1C2A22; --c-ink: #EFE9DB; --c-ink-2: #B4BDB3; --c-line: #27382E; --c-edge: #27382E;
  --c-ok: #8CCB48; --c-ring: #4E6B55; --c-btn: #E8DCC4; --c-btn-ink: #14201A; --c-ico: #14201A; --c-ico-ink: #E8DCC4;
  --b-bg: #141F19; --b-ink: #EFE9DB; --b-ink-2: #B4BDB3; --b-line: #27382E; --b-st: #D4BC87;
  --b-btn: #26332B; --b-btn-ink: #EFE9DB; --b-ico: #E8DCC4; --b-ico-ink: #14201A;
  --p-bg: #0C1410; --p-play: #E8DCC4; --p-play-ink: #14201A; --p-ink: #B4BDB3; --p-trk: rgba(239, 233, 219, .2);
  --n-bg: #141F19; --n-edge: #27382E;
  --card-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
/* The one dark chapter: while the call is on screen, How it works is covered by the call's ground (a hard-edged wipe in
   the scene itself) and, only while it is covered, the page's tokens flip too, so the bar and the step's text match it
   (site.js sets data-chapter). On the light page that is the deep forest; on the dark page, the lighter forest of the
   call screen itself. The --scene-* grounds and the card tokens do not flip. */
:root:root[data-chapter="dark"] {
  --bg: #16301F; --surface: #1F3D2B; --surface-2: #274636;
  --ink: #F4EEDF; --ink-2: #CAD3C7; --line: #2F5240; --gold-text: #D9C08A; --gold-line: #B89B5E;
  --accent: #E8DCC4; --on-accent: #1F3D2B; --bar: rgba(22, 48, 31, .86);
  --device-shadow: 0 50px 80px -40px rgba(0, 0, 0, .7), 0 16px 32px -20px rgba(0, 0, 0, .5);
  --device-ring: rgba(244, 238, 223, .16);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:root:not([data-theme="light"])[data-chapter="dark"] { --bg: #1F3D2B; --bar: rgba(31, 61, 43, .86); }
}
:root:root[data-theme="dark"][data-chapter="dark"] { --bg: #1F3D2B; --bar: rgba(31, 61, 43, .86); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--sand); color: var(--forest); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:lang(de) :is(h1, h2, h3), :lang(tr) :is(h1, h2, h3), :lang(fr) :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }
/* ﷺ at text size and in the text's colour (system fonts draw the ligature very small). */
.saw { font-family: "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif; font-size: 1.9em; line-height: 0; vertical-align: -.1em; font-style: normal; }
/* The small label over a headline: the one place gold is used. */
.kicker, .label { font: 600 clamp(1.0625rem, 1.5vw, 1.3125rem)/1.3 var(--display); color: var(--gold-text); }

/* ---------- The bar: slim, full width, sticky ----------
   Clear over the top of the page, frosted once the page has moved (site.js adds .is-condensed; without site.js it is
   always frosted). Its colours come from the page's tokens, so it turns with the dark chapter. On narrow screens
   site.js turns the links into a sheet; without it the bar simply wraps. */
.topbar { position: sticky; top: 0; z-index: 30; }
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bar); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav-js .topbar::before { opacity: 0; }
.nav-js .topbar.is-condensed::before, .nav-js .topbar.is-open::before { opacity: 1; }
.nav { display: flex; align-items: center; gap: 8px 26px; min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; margin-inline-end: auto; text-decoration: none; color: var(--ink); }
/* The app's own lockup (ikra beside اقرأ, the book over the ق), as on its launch screen and Home. A logo: never mirrored. */
.lockup { display: block; height: 30px; width: auto; aspect-ratio: 276.44 / 131; flex: none; direction: ltr; }
.links { display: flex; align-items: center; gap: 4px 26px; }
.links a { display: block; position: relative; padding: 8px 1px; text-decoration: none; white-space: nowrap; font: 400 .9375rem/1.2 var(--sans); color: var(--ink); opacity: .86; }
.links a:hover, .links a:focus-visible { opacity: 1; }
.links a.is-current, .links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; position: relative; min-height: 34px; padding: 7px 16px; border-radius: 999px; flex: none;
  background: var(--accent); color: var(--on-accent); font: 600 .875rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
}
.pill::after, .theme-btn::after, .menu-btn::after { content: ""; position: absolute; inset: -6px -2px; } /* a 44px touch target around a small control */
.pill .more { white-space: pre; }
.menu-btn { display: none; }

/* Language menu */

.links .lang { position: relative; } /* the open menu hangs under its own button, not the page edge */

.lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; cursor: pointer; list-style: none;
  border: 1px solid var(--line); color: var(--ink-2); font: 600 .8125rem/1 var(--sans); letter-spacing: .06em;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu summary:focus-visible { color: var(--ink); border-color: var(--gold-line); }
.lang-menu .chev { width: 10px; height: 7px; flex: none; transition: transform .3s var(--ease); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 12px); z-index: 5; min-width: 11.5rem; padding: 8px;
  border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(10, 22, 15, .45);
}
.links .lang-menu a { display: block; padding: 10px 14px; border-radius: 12px; font: 500 1.0625rem/1.2 var(--display); white-space: nowrap; }
.links .lang-menu a:hover, .links .lang-menu a:focus-visible { background: var(--surface-2); color: var(--ink); }
.links .lang-menu a[aria-current="true"] { color: var(--gold-text); }

/* ---------- Buttons ---------- */
.btn-sand { /* the one confident action: forest on the light ground, sand on the dark */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease);
}
.btn-sand:hover, .btn-sand:focus-visible { transform: scale(1.03); }
.btn-sand:active { transform: scale(.98); }
.store { font: 400 .9375rem/1.3 var(--sans); color: var(--ink-2); } /* information, not a button */
.store b { font-weight: 600; color: var(--ink); }

/* ---------- Devices: real screenshots only ----------
   Every size of the phone comes from --pw (its width), so the frame keeps its proportions wherever it is used. */
.phone {
  --pw: 300px; position: relative; display: block; width: var(--pw); max-width: 100%; padding: calc(var(--pw) * .033); border-radius: calc(var(--pw) * .16); flex: none;
  background: linear-gradient(160deg, #2a2f2c, #0c0f0d 40%, #050706);
  box-shadow: 0 0 0 1px #000 inset, 0 0 0 1px var(--device-ring), var(--device-shadow);
}
.phone img { display: block; width: 100%; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .127); background: var(--forest); object-fit: cover; object-position: top; }
.phone::after { content: ""; position: absolute; top: calc(var(--pw) * .063); left: 50%; width: 28%; height: calc(var(--pw) * .08); margin-left: -14%; border-radius: 99px; background: #000; z-index: 2; }
/* The iPhone Duo fully open, held sideways, in split view: the live call on one half, the mushaf on the other
   (docs/design/looks/website-hero-duo.md). Each half is its own body, hinged in the middle, so the scroll story can
   open it flat; at rest (and without site.js) it lies flat. The call pane is drawn in HTML; container units keep it
   in proportion at every size. The split stays call | mushaf in every language. */
.duo-flat {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); direction: ltr;
  width: min(100%, 820px); aspect-ratio: 2853 / 2007; margin-inline: auto; perspective: 2400px; --edge: 14px; --r: 52px;
}
.duo-flat::before { content: ""; position: absolute; inset: 2% 3% 0; z-index: -1; border-radius: var(--r); box-shadow: var(--device-shadow); }
.duo-flat .half { position: relative; min-height: 0; background: #070b09; box-shadow: inset 0 0 0 1.5px #59605b, inset 0 0 0 3px #161a18; }
.duo-flat .half.l { padding: var(--edge) 3px var(--edge) var(--edge); border-radius: var(--r) 0 0 var(--r); transform-origin: 100% 50%; }
.duo-flat .half.r { padding: var(--edge) var(--edge) var(--edge) 3px; border-radius: 0 var(--r) var(--r) 0; transform-origin: 0 50%; }
.duo-flat .half::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.duo-flat .pane { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--r) - var(--edge)) 10px 10px calc(var(--r) - var(--edge)); background: #1F3D2B; container-type: size; }
.duo-flat .pane.m { border-radius: 10px calc(var(--r) - var(--edge)) calc(var(--r) - var(--edge)) 10px; }
.duo-flat .pane.m img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.call { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; color: #F4EEDF;
  background: radial-gradient(80% 50% at 50% 30%, #2A4D3A, transparent 70%), linear-gradient(180deg, #1F3D2B, #16301F);
  padding: 5.5cqw 6.5cqw 8cqw; font-family: var(--sans); }
html[lang="ar"] .call { direction: rtl; }
.call .pills { display: flex; justify-content: space-between; width: 100%; font-size: 3.1cqw; font-weight: 600; }
.call .pills span { padding: 1.4cqw 3cqw; border-radius: 99px; background: rgba(244, 238, 223, .10); color: #CAD3C7; display: inline-flex; gap: 1.6cqw; align-items: center; }
.call .pills .ok::before, .call .pills .rec::before { content: ""; width: 2cqw; height: 2cqw; border-radius: 50%; background: #8FD18F; }
.call .pills .rec::before { background: #F08A7E; }
.call .reading { margin-top: 3cqw; font-size: 3.6cqw; color: #D9C08A; }
.call .photo { width: 27cqw; height: 27cqw; border-radius: 50%; margin-top: 5cqw; padding: 1.3cqw; background: #E8DCC4; }
.call .photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.call .name { margin-top: 4.5cqw; font: 600 5.6cqw/1.2 var(--display); }
.call .mode { font-size: 3.6cqw; color: #CAD3C7; margin-top: 1cqw; }
.call .left { margin-top: 4.5cqw; font-size: 3.4cqw; color: #CAD3C7; }
.call .clock { font: 600 12cqw/1 var(--display); margin-top: 1cqw; direction: ltr; }
.call .ctrls { display: flex; gap: 9cqw; margin-top: 5cqw; }
.call .ctrls span { display: grid; justify-items: center; gap: 1.5cqw; font-size: 3cqw; color: #CAD3C7; }
.call .ctrls i { width: 11cqw; height: 11cqw; border-radius: 50%; background: rgba(244, 238, 223, .12); display: grid; place-items: center; }
.call .ctrls i svg { width: 5cqw; height: 5cqw; }
.call .ctrls .on i { background: #E8DCC4; color: #1F3D2B; }
.call .end { margin-top: auto; width: 100%; padding: 3.2cqw; border-radius: 99px; background: #F08A7E; color: #3B0E08; font-weight: 700; font-size: 3.8cqw; }

/* ---------- Home: the page at rest ----------
   What follows is the whole page with no scroll story: stacked, still, every screen and every line visible. The
   story (pinned scenes, progress-driven motion) is in the motion section at the end, under html.story. */
.hero { text-align: center; }
.hero-copy { padding-top: clamp(48px, 8vh, 88px); }
.hero h1 { font-size: clamp(2.5rem, 5.7vw, 5rem); line-height: 1.05; letter-spacing: -.03em; margin: 14px auto 0; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold-text); }
.hero .lead { max-width: 36rem; margin: 20px auto 0; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.stage { display: flex; flex-direction: column; align-items: center; margin-top: 56px; padding: 0 var(--gutter-r) 24px var(--gutter-l); }
.duo-cap { margin-top: 28px; font: 600 clamp(1.125rem, 1.9vw, 1.5rem)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink-2); }

/* Chapters a third tighter than the first Apple layout (IKR-162). */
.chapter { padding-block: clamp(64px, 10vh, 112px); }
/* Every section boundary on the home page is the same: the chapter padding on both sides and a hairline between. */
#main > section { position: relative; }
#main > section::before { content: ""; position: absolute; top: 0; left: 50%; width: calc(min(72rem, 100%) - var(--gutter-l) - var(--gutter-r)); height: 1px; transform: translateX(-50%); background: var(--line); }
.chapter[id], #main, .closing[id] { scroll-margin-top: var(--bar-h); }
.chapter-head { text-align: center; }
.chapter h2, .closing h2 { font-size: clamp(2.25rem, 4.9vw, 4rem); line-height: 1.06; letter-spacing: -.028em; }
.chapter-head h2 { max-width: 18ch; margin-inline: auto; }
.kicker + h2, .label + h2 { margin-top: 12px; }

/* ---------- Home below the hero (IKR-162, docs/design/looks/ikr-162-website-film-visuals.md) ----------
   The walkthrough film's pictures instead of six phones: the app's cards are drawn here in HTML from its own tokens
   (no screenshot crops); the call and the mushaf stay whole phones. Gold is used only where it means "recited": the
   604-page grid and the Prophet's node in the chain; the labels over those two chapters are ink. */
.kicker.ink { color: var(--ink-2); }
.chapter .lead { max-width: 38rem; margin: 22px auto 0; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }

/* Arabic is drawn, never live text in a Quran font (Chrome sets the dagger alif wrongly): each word is an SVG from
   assets/arabic/ (HarfBuzz + Amiri Quran) used as a mask over the text colour, so it takes the colour and size of the
   text around it. The box gets its shape from the SVG's own proportions. */
.gl { display: inline-block; flex: none; background-color: currentColor; vertical-align: middle;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gl-saw { aspect-ratio: 111 / 103; -webkit-mask-image: url(arabic/saw.svg); mask-image: url(arabic/saw.svg); }
.gl-arabiyya { aspect-ratio: 202 / 160; -webkit-mask-image: url(arabic/arabiyya.svg); mask-image: url(arabic/arabiyya.svg); }
.gl-tajwid { aspect-ratio: 176 / 160; -webkit-mask-image: url(arabic/tajwid.svg); mask-image: url(arabic/tajwid.svg); }
.gl-makharij { aspect-ratio: 193 / 160; -webkit-mask-image: url(arabic/makharij.svg); mask-image: url(arabic/makharij.svg); }
.gl-cue1 { aspect-ratio: 498 / 225; -webkit-mask-image: url(arabic/cue1.svg); mask-image: url(arabic/cue1.svg); }
.gl-cue2 { aspect-ratio: 339 / 225; -webkit-mask-image: url(arabic/cue2.svg); mask-image: url(arabic/cue2.svg); }
.gl-mark { aspect-ratio: 136 / 225; -webkit-mask-image: url(arabic/mark.svg); mask-image: url(arabic/mark.svg); }
.gl-d1, .gl-d2, .gl-d3, .gl-d4 { aspect-ratio: 59 / 225; }
.gl-d1 { -webkit-mask-image: url(arabic/d1.svg); mask-image: url(arabic/d1.svg); }
.gl-d2 { -webkit-mask-image: url(arabic/d2.svg); mask-image: url(arabic/d2.svg); }
.gl-d3 { -webkit-mask-image: url(arabic/d3.svg); mask-image: url(arabic/d3.svg); }
.gl-d4 { -webkit-mask-image: url(arabic/d4.svg); mask-image: url(arabic/d4.svg); }
.gl-w0 { aspect-ratio: 82 / 225; -webkit-mask-image: url(arabic/w0.svg); mask-image: url(arabic/w0.svg); }
.gl-w1 { aspect-ratio: 97 / 225; -webkit-mask-image: url(arabic/w1.svg); mask-image: url(arabic/w1.svg); }
.gl-w2 { aspect-ratio: 122 / 225; -webkit-mask-image: url(arabic/w2.svg); mask-image: url(arabic/w2.svg); }
.gl-w3 { aspect-ratio: 126 / 225; -webkit-mask-image: url(arabic/w3.svg); mask-image: url(arabic/w3.svg); }
.gl-w4 { aspect-ratio: 122 / 225; -webkit-mask-image: url(arabic/w4.svg); mask-image: url(arabic/w4.svg); }
.gl-w5 { aspect-ratio: 149 / 225; -webkit-mask-image: url(arabic/w5.svg); mask-image: url(arabic/w5.svg); }
.gl-w6 { aspect-ratio: 89 / 225; -webkit-mask-image: url(arabic/w6.svg); mask-image: url(arabic/w6.svg); }
.gl-w7 { aspect-ratio: 170 / 225; -webkit-mask-image: url(arabic/w7.svg); mask-image: url(arabic/w7.svg); }
.gl-w8 { aspect-ratio: 141 / 225; -webkit-mask-image: url(arabic/w8.svg); mask-image: url(arabic/w8.svg); }
/* The salawat sign in running text: on the baseline, at the size of the text. */
.saw-svg { display: inline-block; height: 1.3em; vertical-align: -.24em; margin-inline: .2em .04em; }
.saw-svg .gl { display: block; height: 100%; }
.nowrap { white-space: nowrap; }
/* An Arabic word inside Latin UI text (the card's languages, the lesson's focus chips). */
.arin { height: 1.75em; vertical-align: -.56em; margin-block: -.4em; }

/* 1. The daily minutes: the ring draws and counts up to 15. */
.ring-sec { display: grid; grid-template-columns: auto minmax(0, 31rem); gap: clamp(48px, 8vw, 128px); align-items: center; justify-content: center; }
.ring { position: relative; width: clamp(240px, 25vw, 320px); aspect-ratio: 1; transform: scale(calc(1 + .03 * var(--d, 0))); }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .trk { fill: none; stroke: var(--track); stroke-width: 13; }
.ring .arc { fill: none; stroke: var(--accent); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: calc(100 - 100 * var(--q, 1)); opacity: min(1, calc(var(--q, 1) * 30)); }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.ring-c .n { display: flex; align-items: baseline; gap: .12em; font: 600 clamp(4rem, 7vw, 5.5rem)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ring-c .n b { font-weight: inherit; direction: ltr; }
.ring-c .n small { font-size: .3em; letter-spacing: -.01em; }
.ring-c .l { margin-top: 8px; font: 500 .9375rem/1.2 var(--sans); color: var(--ink-2); }
.ring-copy h2 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); max-width: 14ch; }
.ring-copy .lead { margin: 20px 0 0; max-width: 29rem; }
.refill { display: flex; align-items: center; gap: 10px; margin-top: 22px; font: 500 1.0625rem/1.4 var(--sans); color: var(--ink); }
.refill svg { width: 22px; height: 22px; flex: none; color: var(--ink-2); }

/* 2. How it works. At rest (no script, or reduced motion): three rows, each picture beside its text, the call's row on
   its forest ground. As a story (html.story, in the motion section): pinned, one place for the picture and one for
   the text. */
.hiw-ch { padding-bottom: 0; }
.hiw-list > li:last-child { padding-bottom: clamp(64px, 10vh, 112px); }
.hiw-list > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); gap: 40px clamp(56px, 8vw, 120px); align-items: center; padding-block: 56px; }
.hiw-list > li:nth-child(2) { background: var(--scene-dark); box-shadow: 0 0 0 100vmax var(--scene-dark); clip-path: inset(0 -100vmax); }
.hiw-list > li:nth-child(2) { --ink: #F4EEDF; --ink-2: #CAD3C7; --gold-text: #D9C08A; --line: #2F5240; color: var(--ink); }
.hiw .vis { display: flex; justify-content: center; }
.hiw .n { display: block; font: 600 1.0625rem/1 var(--sans); color: var(--ink-2); }
.hiw h3 { margin-top: 14px; font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.07; letter-spacing: -.028em; color: var(--ink); }
.hiw .txt p { margin-top: 16px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); max-width: 29rem; }
.hiw-wipe, .hiw-rail { display: none; }

/* A teacher's card as on Home, drawn (step 1's deck below, and the teacher list). */
.tc { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 30px; background: var(--c-bg); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-edge) inset; }
.tc.busy { background: var(--b-bg); color: var(--b-ink); --c-ink: var(--b-ink); --c-ink-2: var(--b-ink-2); --c-line: var(--b-line); box-shadow: 0 0 0 1px var(--b-line) inset; }
.tc-top { display: flex; justify-content: space-between; gap: 12px; }
.tc-st { display: flex; align-items: center; gap: 7px; font: 600 1rem/1.2 var(--sans); color: var(--c-ok); }
.tc.busy .tc-st { color: var(--b-st); }
.tc-st svg { width: 19px; height: 19px; flex: none; }
.tc-name { margin-top: 6px; font: 700 1.5rem/1.15 var(--display); letter-spacing: -.02em; }
.tc-av { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; background: var(--sand); box-shadow: 0 0 0 3px var(--c-bg), 0 0 0 5px var(--c-ring); flex: none; margin-block-start: 2px; margin-inline-end: 2px; }
.tc.busy .tc-av { box-shadow: 0 0 0 3px #E8DCC4; }
.tc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 12px; font-size: .9375rem; line-height: 1.3; color: var(--c-ink-2); }
.tc-meta .flag { width: 21px; height: 15px; flex: none; }
.tc hr { width: 100%; border: 0; height: 1px; background: var(--c-line); margin: 14px 0 12px; }
.tc-ij { font-size: .9375rem; line-height: 1.35; color: var(--c-ink-2); }
.tc-ij b { color: var(--c-ink); font-weight: 650; }
.tc-ij .nw { white-space: nowrap; }
.tc-yrs { margin-top: 6px; font: 650 .9375rem/1.3 var(--sans); }
.tc-btn { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-block: 8px; padding-inline: 24px 8px; min-height: 66px; border-radius: 99px; background: var(--c-btn); color: var(--c-btn-ink); }
.tc-btn span { flex: 1; font: 700 1.1875rem/1.15 var(--display); letter-spacing: -.01em; }
.tc-btn small { font: 600 .875rem/1 var(--sans); opacity: .85; white-space: nowrap; }
.tc-btn i { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c-ico); color: var(--c-ico-ink); }
.tc-btn i svg { width: 22px; height: 22px; }
.tc.busy .tc-btn { background: var(--b-btn); color: var(--b-btn-ink); }
.tc.busy .tc-btn span { font-size: 1.0625rem; }
.tc.busy .tc-btn i { background: var(--b-ico); color: var(--b-ico-ink); }

/* Step 1 as the app's Home deck and its swipe (IKR-314). Three teacher cards, as the app's CallDeckView draws three:
   the front one whole, two behind it showing their small headers. Every number is the app's (ios CallDeckView,
   CallCardView, CallDeck.Swipe, IkraCardTokens), with the app's point taken as 1/350 of the card's width (the app's
   card is 335 to 362 pt wide), written here as --u. So on a 350 px card a point is a pixel.
   At rest (no script, Reduce Motion) both swipes are done: Hafiz Morad, free, in front; Hafiz Habib, in a lesson,
   behind him; Hafiz Ibrahim at the back. The scroll story (FX.hiw in site.js) plays the two swipes from the start
   (Habib in front, then Ibrahim, then Morad) and writes, on each card:
     --s  its place in the deck: 0 in front, 1 and 2 behind (anything between while it moves)
     --r  its tilt in degrees on a left-to-right screen (mirrored here in right-to-left pages)
     --x  px moved towards the side the front card is thrown to (left; right in right-to-left pages)
     --y  px risen, so a tilted card's lower corner never drops below where it rests (the app's IKR-94)
     --o  opacity
   and the class "front" on the card that shows the whole face (the others show the small header). */
.dk { --dir: 1; --vis: 3; --a0: -3; --a1: -1; --a2: 3; --u: calc(100cqw / 350); --peek: calc(53 * var(--u));
  --dk-behind: #D8CBAF; --dk-sh0: 0 20px 48px rgba(31, 61, 43, .22); --dk-sh1: 0 8px 24px rgba(31, 61, 43, .154);
  width: min(440px, 100%); container-type: inline-size; text-align: start; font-family: var(--sans); }
[dir="rtl"] .dk { --dir: -1; }
/* Dark: the app's Dark look for the free cards, sand on the dark page (the one behind a shade darker), no shadows.
   The web's own: the app's dark busy card (#141F19 with a hairline) cannot be told from this page's dark ground
   (#11211A; the app's own ground is #0C1410), so the busy card keeps the forest face it has in light, which is the
   app's Classic look. */
:root[data-theme="dark"] .dk { --dk-behind: #CFC2A7; --dk-sh0: none; --dk-sh1: none;
  --c-bg: #E8DCC4; --c-ink: #14201A; --c-ink-2: #3A4A40; --c-line: rgba(20, 32, 26, .16); --c-edge: transparent; --c-ok: #2D6A35; --c-ring: rgba(20, 32, 26, .18);
  --c-btn: #14201A; --c-btn-ink: #E8DCC4; --c-ico: #E8DCC4; --c-ico-ink: #14201A; 
  --b-bg: #274636; --b-ink: #F4EEDF; --b-ink-2: #CAD3C7; --b-line: rgba(232, 220, 196, .22); --b-st: #E0B85A; --b-btn: #E8DCC4; --b-btn-ink: #1F3D2B; --b-ico: #1F3D2B; --b-ico-ink: #E8DCC4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dk { --dk-behind: #CFC2A7; --dk-sh0: none; --dk-sh1: none;
  --c-bg: #E8DCC4; --c-ink: #14201A; --c-ink-2: #3A4A40; --c-line: rgba(20, 32, 26, .16); --c-edge: transparent; --c-ok: #2D6A35; --c-ring: rgba(20, 32, 26, .18);
  --c-btn: #14201A; --c-btn-ink: #E8DCC4; --c-ico: #E8DCC4; --c-ico-ink: #14201A; 
  --b-bg: #274636; --b-ink: #F4EEDF; --b-ink-2: #CAD3C7; --b-line: rgba(232, 220, 196, .22); --b-st: #E0B85A; --b-btn: #E8DCC4; --b-btn-ink: #1F3D2B; --b-ico: #1F3D2B; --b-ico-ink: #E8DCC4; } }
.dk-in { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: calc((var(--vis) - 1) * var(--peek)); }
.dk .tc { --s: 0; --r: 0; --x: 0; --y: 0; --o: 1; position: relative; min-width: 0; clip-path: none; opacity: var(--o);
  transform: translate(calc(var(--x) * var(--dir) * -1px), calc(var(--y) * -1px - var(--s) * var(--peek))) rotate(calc(var(--r) * var(--dir) * 1deg));
  box-shadow: 0 0 0 1px var(--c-edge) inset, var(--dk-sh1); }
.dk .tc.busy { box-shadow: 0 0 0 1px var(--b-line) inset, var(--dk-sh1); }
.dk .tc.front { box-shadow: 0 0 0 1px var(--c-edge) inset, var(--dk-sh0); }
.dk .tc.busy.front { box-shadow: 0 0 0 1px var(--b-line) inset, var(--dk-sh0); }
.dk .tc.free:not(.front) { background: var(--dk-behind); }
/* The deck at rest, both swipes done: Morad (m) in front, Habib (h) behind him, Ibrahim (i) at the back. */
.dk .tc.m { --s: 0; --r: var(--a0); z-index: 3; }
.dk .tc.h { --s: 1; --r: var(--a1); z-index: 2; }
.dk .tc.i { --s: 2; --r: var(--a2); z-index: 1; }
/* A card shows one of its two headers, changed at once as in the app: the whole one in front, the small one behind
   (status and name, a 30 pt photo; 10 pt from the top, 18 and 16 from the sides). The rest of a card behind stays
   drawn, so the card under a dragged one is never blank. */
.dk .tc:not(.front) .tc-top, .dk .tc.front .tc-sm { visibility: hidden; }
.dk .tc-sm { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: calc(12 * var(--u));
  padding-block: calc(10 * var(--u)) 0; padding-inline: calc(18 * var(--u)) calc(16 * var(--u)); }
.dk .tc-sm > div { min-width: 0; }
.dk .tc-sm .tc-st { gap: calc(6 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); }
.dk .tc-sm .tc-st svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.dk .tc-sm .tc-name { margin-top: calc(4 * var(--u)); font-size: calc(16.5 * var(--u)); line-height: calc(20 * var(--u)); letter-spacing: -.01em; }
/* A long Latin name (Hafiz Habib Abdulqadir Al-Huraibi): higher and a little smaller, so the back card's tilt does not cut its end. */
.dk .tc-sm.xl { padding-block-start: calc(7 * var(--u)); }
.dk .tc-sm.xl .tc-name { margin-top: calc(2 * var(--u)); font-size: calc(15.5 * var(--u)); line-height: calc(19 * var(--u)); }
.dk .tc-sm .tc-av { width: calc(30 * var(--u)); height: calc(30 * var(--u)); margin: 0; box-shadow: 0 0 0 calc(2 * var(--u)) var(--c-ring); }
.dk .tc.busy .tc-sm .tc-av { box-shadow: 0 0 0 calc(2 * var(--u)) rgba(232, 220, 196, .3); }
/* Arabic sets taller lines, so the header sits higher with the lines closer, as in the app (9 pt from the top and a
   point between the lines there; 7 pt and none here, so the dots under a long name's last letters clear the card in
   front where the two tilts bring the edges together). */
[dir="rtl"] .dk .tc-sm { padding-block-start: calc(7 * var(--u)); }
[dir="rtl"] .dk .tc-sm .tc-st { line-height: calc(17.5 * var(--u)); }
[dir="rtl"] .dk .tc-sm .tc-name { margin-top: 0; line-height: calc(22 * var(--u)); }
/* Names stay on one line: their size, the photo's and the long button's follow the card's width (the app shrinks a
   long name to 80% before it drops a word). */
.dk .tc-name { white-space: nowrap; }
.dk .tc-top .tc-name { font-size: min(1.5rem, 5.8cqw); }
.dk .tc-top .tc-name.long { font-size: min(1.3125rem, 4.6cqw); line-height: 1.31; }
.dk .tc-top .tc-av { width: min(82px, 19cqw); height: min(82px, 19cqw); }
.dk .tc.busy .tc-btn span { font-size: min(1.0625rem, 4.05cqw); }
/* Every card is as tall as the tallest (the app measures the same); a card with a line less shares the spare room
   above and below its last line, and the button keeps to the foot. */
.dk .tc hr + .tc-ij { margin-top: auto; }
.dk .tc-ij + .tc-ij { margin-top: 4px; }
.dk .tc > p:last-of-type { margin-bottom: 18px; }
.dk .tc-btn { margin-top: auto; }
/* The app's slow float: each card rises 6 pt and settles, six seconds a cycle, the cards two seconds apart. Only
   while the scroll story runs (never under Reduce Motion). */
@media (prefers-reduced-motion: no-preference) {
  .story .dk .tc { animation: dk-float 3s ease-in-out infinite alternate; }
  .story .dk .tc.h { animation-delay: 2s; }
  .story .dk .tc.i { animation-delay: 4s; }
}
@keyframes dk-float { to { translate: 0 calc(-6 * var(--u)); } }
/* The app's small screen (667 pt tall or less there): one card behind, and the outer tilts are 2 degrees. The third
   teacher waits unseen. The web's own: here it starts under 800 px of height on a phone-wide window, because the step's
   text stands under the deck in the same window, which the app's Home does not have. */
@media (max-height: 799px) and (max-width: 800px) {
  .dk { --vis: 2; --a0: -2; --a2: 2; }
  .dk .tc.i { --o: 0; }
}
/* The web's own: a phone window under 650 px tall, or under 350 px wide, has no room for a header behind (the step's
   text sits under the picture). One card, straight; the swipe still plays, the front card thrown off the next one. */
@media (max-height: 649px) and (max-width: 800px), (max-width: 349px) {
  .dk { --vis: 1; --a0: 0; --a1: 0; --a2: 0; }
  .dk .tc.i, .dk .tc.h { --o: 0; }
}

/* The call inside a phone (drawn like the hero's call pane, 11:24 left). */
.phone .scr { display: block; width: 100%; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .127); background: var(--forest); overflow: hidden; container-type: inline-size; }
.hiw .s2 .phone { --pw: min(300px, 74vw); }
.hiw .s2 .phone-wrap { transform: scale(calc(1 + .03 * var(--d2, 0))); }
.scr .call { background: #1F3D2B; padding: 17cqw 7cqw 8cqw; }
.scr .call .pills { justify-content: center; gap: 2.5cqw; font-size: 3.6cqw; }
.scr .call .pills span { padding: 1.6cqw 3.2cqw; gap: 1.8cqw; }
.scr .call .pills .ok::before, .scr .call .pills .rec::before { width: 2.2cqw; height: 2.2cqw; }
.scr .call .reading { margin-top: 3.5cqw; font-size: 4cqw; }
.scr .call .photo { width: 46cqw; height: 46cqw; margin-top: 7cqw; padding: 1.6cqw; }
.scr .call .name { margin-top: 5cqw; font: 700 7cqw/1.15 var(--display); letter-spacing: -.02em; }
.scr .call .mode { font-size: 4.2cqw; }
.scr .call .left { margin-top: 7cqw; font-size: 4cqw; }
.scr .call .clock { font: 700 17cqw/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.scr .call .ctrls { margin-top: auto; }
.scr .call .ctrls span { gap: 2cqw; font-size: 3.5cqw; }
.scr .call .ctrls i { width: 15cqw; height: 15cqw; }
.scr .call .ctrls i svg { width: 6.5cqw; height: 6.5cqw; }
.scr .call .end { margin-top: 7cqw; padding: 4cqw; font-size: 4.6cqw; }

/* Your Quran, step 3's picture, as the app's welcome map draws it (IkraPageMap, IKR-212): the 604 pages, 28 to a row;
   pages 1 and 2, then 582 to 592 turn gold one by one in that order; 593, the next lesson, is outlined; each juz's
   first page is a shade darker. Empty pages stay visible. */
/* A mushaf runs right to left in every language: page 1 at the top right, each row filling leftward, the short last
   row (604 = 21 x 28 + 16) at the right; the gold follows page order, so it fills from the right too. */
.juz { direction: rtl; --c: 15px; --gap: 4px; display: grid; grid-template-columns: repeat(28, var(--c)); gap: var(--gap); justify-content: center; }
.juz i { width: var(--c); height: var(--c); border-radius: 3px; background: var(--cell); position: relative; }
.juz i.g::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cell-gold); opacity: clamp(0, calc(var(--g, 1) * 14 - var(--k)), 1); }
.juz i.j { box-shadow: inset 0 0 0 99px var(--cell); }
.juz i.n { box-shadow: inset 0 0 0 1.5px var(--ink); }
.juz-cap { margin-top: 18px; text-align: center; font: 500 .9375rem/1.4 var(--sans); color: var(--ink-2); }
.juz-cap b { color: var(--ink); font-weight: 600; }
.juz-cap .sub { display: block; margin-top: 2px; font-size: .875rem; }

/* 3. After the lesson: the lesson card and the teacher's notes, drawn, side by side. */
.after2 { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 22px 32px; margin-top: 48px; }
.after2 > * { transform: translate3d(0, calc((1 - var(--a, 1)) * 48px), 0); opacity: var(--a, 1); }
.after2 > .notes { --a: var(--b, 1); }
.lc { display: flex; flex-direction: column; padding: 24px; border-radius: 28px; background: var(--c-bg); color: var(--c-ink); box-shadow: 0 0 0 1px var(--c-edge) inset, var(--card-shadow); font-family: var(--sans); text-align: start; }
.lc-top { display: flex; align-items: center; gap: 14px; }
.lc-top img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--sand); box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 4px var(--c-ring); flex: none; }
.lc-name { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.015em; }
.lc-when { font-size: .9375rem; color: var(--c-ink-2); }
.lc-vl { margin-top: 18px; font-size: .9375rem; color: var(--c-ink-2); }
.lc-v { margin-top: 2px; font: 800 3.25rem/1.05 var(--display); letter-spacing: -.05em; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lc-chips > span { display: inline-flex; align-items: center; gap: .3em; padding: 6px 12px; border-radius: 99px; box-shadow: 0 0 0 1.5px var(--c-line) inset; font: 600 .875rem/1.2 var(--sans); }
.lc-chips .arin { height: 1.7em; vertical-align: 0; margin-block: -.5em -.35em; }
.lc-player { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-block: 10px; padding-inline: 10px 14px; border-radius: 99px; background: var(--p-bg); color: var(--p-ink); }
.lc-player .play { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--p-play); color: var(--p-play-ink); }
.lc-player .play svg { width: 22px; height: 22px; margin-left: 3px; }
.lc-player .bar { flex: 1; min-width: 0; }
.lc-player .trk { position: relative; height: 4px; border-radius: 2px; background: var(--p-trk); margin-top: 4px; }
.lc-player .trk i { position: absolute; inset-inline-start: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #E8DCC4; }
.lc-player .t { display: flex; justify-content: space-between; margin-top: 8px; font: 600 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.lc-player .t span { direction: ltr; unicode-bidi: isolate; }
.lc-player .sk { width: 30px; height: 30px; flex: none; color: var(--p-ink); }
.lc-player .sk svg { width: 100%; height: 100%; }
.lc-keep { margin-top: 14px; font-size: .8125rem; line-height: 1.4; color: var(--c-ink-2); }
.notes { display: flex; flex-direction: column; border-radius: 28px; padding: 28px 28px 24px; background: var(--n-bg); color: #F4EEDF; box-shadow: 0 0 0 1px var(--n-edge) inset, var(--card-shadow); font-family: var(--sans); text-align: start; }
.notes .l { font: 600 .875rem/1.2 var(--sans); color: #B9C6BB; }
.notes .v { margin-top: 6px; font: 650 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.notes .t { margin-top: 10px; font-size: 1.0625rem; line-height: 1.4; color: #E3E8DF; }
.notes .gap { height: 22px; }
.notes hr { border: 0; height: 1px; background: rgba(244, 238, 223, .14); margin: 22px 0; }
.notes .b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.notes .b span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 99px; box-shadow: 0 0 0 1.5px rgba(244, 238, 223, .3) inset; font: 600 .875rem/1 var(--sans); white-space: nowrap; }
.notes .b svg { width: 16px; height: 16px; flex: none; }

/* 4. Between lessons: the mushaf phone and the memory test, drawn; the two captions share one baseline. */
.between2 { --bh: clamp(360px, calc(100vh - var(--bar-h) - 250px), 500px); --bh: clamp(360px, calc(100svh - var(--bar-h) - 250px), 500px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 72px; margin-top: 48px; }
.between2 figure { display: grid; grid-row: span 3; grid-template-rows: subgrid; text-align: center; justify-items: center; }
.between2 .vis { align-self: start; display: flex; justify-content: center; width: 100%; height: var(--bh); }
.between2 .phone { --pw: calc(var(--bh) / 2.1); }
/* The memory test as tall as the phone: its question in the middle, Hint and Next word at the foot, like the app. */
.between2 .tcard { width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; }
.between2 .tcard .cue, .between2 .tcard .trow { margin-top: auto; }
.between2 h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin-top: 28px; }
.between2 p { color: var(--ink-2); font-size: 1.125rem; margin: 12px auto 0; max-width: 27rem; }
.reciters { max-width: 40rem; margin: 44px auto 0; text-align: center; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); }
.reciters b { color: var(--ink); font-weight: 600; }
.tcard { width: min(440px, 100%); padding: 18px 20px; border-radius: 30px; background: var(--surface); box-shadow: 0 0 0 1px var(--c-edge) inset, var(--card-shadow); text-align: start; font-family: var(--sans); }
.tbar { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; font: 600 .9375rem/1 var(--sans); }
.tbar .x { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.tbar .x svg { width: 12px; height: 12px; }
.tbar .c { text-align: center; }
.tbar .e { justify-self: end; text-align: end; font-weight: 500; font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.tprog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.tprog i { height: 4px; border-radius: 2px; background: var(--cell); }
.tprog i:first-child { background: var(--accent); }
.tref { display: flex; justify-content: space-between; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); }
/* The Quran lines always run right to left, whatever the page's direction. */
.cue, .ans { direction: ltr; display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: center; align-items: center; }
.cue { margin-top: 2px; color: var(--ink-2); }
.cue .gl { height: 42px; }
.task { display: flex; justify-content: center; margin-top: 2px; }
.task span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--chip); color: var(--chip-ink); font: 600 .8125rem/1.2 var(--sans); text-align: center; }
.ans { margin-top: -2px; color: var(--ink); }
.ans .gl { height: 64px; }
/* Each hidden word is a blurred layer and a sharp layer in one place; coming into focus crossfades their opacity, so
   the blur is drawn once and nothing but opacity changes while scrolling. The blur sits on a wrapper (on the masked
   word itself the mask would cut it back to the sharp glyph). */
.ans .w { display: grid; }
.ans .w > * { grid-area: 1 / 1; transition: opacity .6s var(--ease); }
.ans .wb { display: flex; filter: blur(4.5px); opacity: .62; }
.ans .ws { opacity: 0; }
.ans .w.on .wb { opacity: 0; }
.ans .w.on .ws { opacity: 1; }
.mk { position: relative; display: flex; color: var(--ink-2); }
.mk .d { position: absolute; inset: 0; display: flex; justify-content: center; }
.mk .d .gl { height: 100%; transform: scale(.56); }
.listen { display: flex; justify-content: center; }
.listen > span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 99px; background: var(--listen-bg); color: var(--listen-ink); font: 600 .75rem/1.2 var(--sans); }
.lv { display: inline-flex; align-items: center; gap: 1.5px; height: 9px; }
.lv i { width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform: scaleY(.5); }
.lv i:nth-child(2) { transform: scaleY(1); }
.trow { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.trow span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 99px; font: 600 .9375rem/1 var(--sans); }
.trow .h { box-shadow: 0 0 0 1.5px var(--line) inset; color: var(--ink); }
.trow .nx { background: var(--accent); color: var(--on-accent); }

/* 5. Teachers: the ijazah chain drawn down to Hafiz Ibrahim (his photo; the line stops at its edge), then You; his
   teacher, Shaykh Muhammad Ayyub, the one filled mark among the middle nodes. site.js gives each node --t, where the
   line reaches it. */
.chain { position: relative; max-width: 34rem; margin: 56px auto 0; padding-inline-start: 64px; }
.chain::before, .chain::after { content: ""; position: absolute; z-index: 0; inset-inline-start: 23px; top: 22px; bottom: 30px; width: 2px; border-radius: 1px; background: var(--line); }
.chain::after { background: var(--ink-2); transform: scaleY(var(--c, 1)); transform-origin: 50% 0; opacity: .7; }
.node { position: relative; z-index: 1; padding-block: 12px; --o: clamp(0, calc((var(--c, 1) - var(--t, 0)) * 14), 1); opacity: var(--o); transform: translate3d(0, calc((1 - var(--o)) * 12px), 0); }
.node .m { position: absolute; inset-inline-start: -64px; top: 50%; width: 48px; display: grid; place-items: center; transform: translateY(-50%); }
.node .m i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--ink-2) inset; }
.node.pro .m i { width: 22px; height: 22px; background: var(--gold); box-shadow: none; }
/* The line starts at the Prophet's dot, not above it: the first row is two lines tall, so its dot sits below the
   line's fixed top. The page's colour covers the line from the row's top to the dot's centre. */
.node.pro::before { content: ""; position: absolute; z-index: 0; inset-inline-start: -42px; top: 0; height: 50%; width: 4px; background: var(--bg); }
.node.tchr .m img { position: relative; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sand); box-shadow: 0 0 0 3px var(--sand), 0 0 0 8px var(--bg); }
.node.you .m::before { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); }
.node.you .m i { position: relative; width: 30px; height: 30px; background: repeating-conic-gradient(var(--bg) 0 10deg, transparent 10deg 20deg), var(--ink-2); -webkit-mask: radial-gradient(circle, transparent 12.5px, #000 13px); mask: radial-gradient(circle, transparent 12.5px, #000 13px); box-shadow: none; }
.node b { display: block; font: 600 1.1875rem/1.3 var(--display); letter-spacing: -.01em; }
.node > span:not(.m) { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.node.pro b, .node.tchr b { font-size: 1.375rem; }
.node.tchr { padding-block: 24px; }
.node.key .m i { width: 14px; height: 14px; background: var(--ink-2); box-shadow: none; }
.node.key b { font-size: 1.25rem; }
.node.gap { padding-block: 22px; }
.node.gap::before { content: ""; position: absolute; z-index: 1; inset-inline-start: -41px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--bg) 0 5px, transparent 5px 11px); }
.node.gap > span { margin: 0; font-style: italic; }
html[lang="ar"] .node.gap > span { font-style: normal; }
.pair-line { max-width: 52rem; margin: 0 auto; text-align: center; font: 700 clamp(1.625rem, 5vw, 3.5rem)/1.55 var(--display); letter-spacing: -.03em; }
/* Hafiz and hafiza (IKR-212): the rule as one sentence, "hafiz" and "hafiza" on the two grounds, and under it how the
   three facts (Yll, 27 Nov): 20+ countries, the app in your language, an ijazah each. No real people here. */
.pair-line .chip { display: inline-block; padding: 0 .34em .04em; border-radius: .38em; line-height: 1.2; }
.chip.m { background: var(--pm-bg); color: var(--pm-ink); }
.chip.f { background: var(--pf-bg); color: var(--pf-ink); }
.tpills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.tpill { padding: 11px 20px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line) inset; font: 500 1.0625rem/1.25 var(--sans); color: var(--ink-2); }
.tpill b { font-weight: 700; color: var(--ink); }

@media (max-width: 800px) {
  .ring-sec { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 44px; }
  .ring-copy h2, .ring-copy .lead { margin-inline: auto; }
  .refill { display: block; text-wrap: balance; } /* centred like text, the moon beside its first word */
  .refill svg { display: inline-block; vertical-align: -5px; margin-inline-end: 8px; }
  .hiw-list > li { grid-template-columns: minmax(0, 1fr); text-align: center; padding-block: 48px; gap: 32px; }
  .hiw .txt p { margin-inline: auto; }
  .juz { --c: max(6px, min(12px, calc((100vw - 40px) / 28 - 3px))); --gap: 3px; }
  .after2 { grid-template-columns: minmax(0, 400px); gap: 20px; margin-top: 40px; }
  .between2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; margin-top: 44px; gap: 64px; }
  .between2 figure { grid-row: auto; grid-template-rows: none; }
  /* Phones: stacked, each picture whole on one screen, the test card its own height. */
  .between2 .vis { height: auto; }
  .between2 .phone { --pw: min(250px, 62vw, calc((100vh - var(--bar-h) - 300px) / 2.1)); --pw: min(250px, 62vw, calc((100svh - var(--bar-h) - 300px) / 2.1)); } /* the phone and its caption together well inside one screen */
  .between2 .tcard { width: min(440px, 100%); height: auto; }
  .between2 h3 { margin-top: 26px; }
  .chain { margin-top: 44px; }
}
@media (max-width: 420px) {
  .tc { padding: 20px 18px 18px; }
  .tc-name { font-size: 1.3125rem; }
  .tc-av { width: 66px; height: 66px; }
  .tc-btn { padding-inline-start: 18px; min-height: 58px; }
  .tc-btn span { font-size: 1.0625rem; }
  .tc.busy .tc-btn span { font-size: .9375rem; }
  .tc-btn i { width: 44px; height: 44px; }
  .lc { padding: 20px; }
  .notes { padding: 24px 22px 22px; }
  .tcard { padding: 16px 14px; }
  .ans .gl { height: 52px; }
  .cue .gl { height: 38px; }
}


/* The closing: the one thing the page asks for. The field and its button are one pill. */
.closing { text-align: center; padding-block: clamp(64px, 10vh, 112px); }
.closing h2 { margin-inline: auto; max-width: 16ch; }
.closing .intro { color: var(--ink-2); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; max-width: 36rem; margin: 18px auto 0; }
.closing .notify { width: min(100%, 34rem); margin: 40px auto 0; }
.closing .req { margin-top: 0; }
.closing .req .row { display: flex; gap: 0; align-items: center; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 55%, var(--ink-2)); }
.closing .req .row:focus-within { box-shadow: 0 0 0 2px var(--gold-text); }
.closing .req .row .field { flex: 1; gap: 0; }
.closing .req .row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.closing .req .row input[type="email"] { border: 0; background: none; outline: none; padding: 12px 22px; min-height: 56px; font-size: 1.125rem; }
.closing .req .row button { margin: 0; min-height: 56px; padding-inline: 26px; white-space: nowrap; }
.closing .req .sent { text-align: center; }


/* Inner pages: a quiet head on the ground. */
.band { background: none; color: var(--ink); }
.page-head { padding-block: 72px 24px; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; max-width: 18ch; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); max-width: 36rem; margin-top: 16px; font-size: 1.125rem; }

/* ---------- The footer: compact and quiet ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 0; color: var(--ink-2); font-size: .9375rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--gold-text); }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px 18px; }
.foot-brand { display: flex; align-items: center; gap: 24px; }
/* "Ikra" in running text is drawn as the logo's own lower-case ikra; the word stays in the page (.vh) for screen
   readers, search and copying. Its x-height matches the type; the stroke is lighter in body text, full in headings. */
.ikra { display: inline-block; direction: ltr; white-space: nowrap; margin-inline: .04em .1em; }
.ikra svg { display: inline-block; height: 1.12em; width: auto; aspect-ratio: 89.2 / 45.2; vertical-align: -.11em; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.ikra svg circle { fill: currentColor; stroke: none; }
:is(h1, h2, h3, h4, strong, b, .pill, button) .ikra svg { stroke-width: 7; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The nav and the footer show the Arabic mark alone (اقرأ, the book over the ق), like the app's Home top bar. */
.lockup.mark { height: 32px; aspect-ratio: 154 / 131; }
.foot-mark { display: inline-flex; align-items: center; }
.foot-mark .lockup { height: 34px; }
.foot-line, .foot-mail { display: none; } /* said by the page above and by the Support link */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-group { display: contents; }
.foot-group ul { display: contents; }
.foot-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot-group a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 500; }
.foot-group a[aria-current="page"] { color: var(--gold-text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-block: 16px 28px; background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - var(--gutter-l) - var(--gutter-r)) 1px; }
.foot-lang { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot .foot-lang a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); }
.foot .foot-lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.foot-girih, .frieze { display: none; }
/* The footer, second round: the brand with its one line and the main links on top; one quiet base row below with
   the copyright, the legal links and the language menu (it opens upward). */
.foot { padding-block: 0; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 44px 32px; }
.foot-brand { display: grid; gap: 8px; }
.foot .foot-line { display: block; margin: 0; max-width: 30rem; font-size: .9375rem; color: var(--ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-nav a[aria-current="page"] { color: var(--gold-text); }
.foot-base { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 14px 26px; font-size: .875rem; color: var(--ink-2); background: none; }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter-l); right: var(--gutter-r); height: 1px; background: var(--line); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 22px; margin-inline-start: auto; }
.foot .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 400; }
.foot .foot-legal a:hover, .foot .foot-legal a:focus-visible, .foot .foot-legal a[aria-current="page"] { color: var(--ink); }
.foot-langs { position: relative; }
.foot-langs summary { min-height: 40px; background: none; color: var(--ink-2); letter-spacing: 0; font-weight: 500; font-size: .875rem; padding: 8px 12px; border: 1px solid var(--line); }
.foot-langs .globe { width: 16px; height: 16px; }
.foot-langs[open] .chev { transform: rotate(180deg); }
.foot-langs ul { top: auto; bottom: calc(100% + 10px); inset-inline-end: 0; }
.foot-langs a { display: block; padding: 10px 14px; border-radius: 12px; font: 500 1rem/1.2 var(--display); color: var(--ink); white-space: nowrap; }
.foot-langs a:hover, .foot-langs a:focus-visible { background: var(--surface-2); }
.foot-langs a[aria-current="true"] { color: var(--gold-text); }
@media (max-width: 560px) {
  .foot-top { flex-direction: column; align-items: flex-start; padding-block: 36px 20px; }
  .foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 32px; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 2px; }
  .foot-legal { margin-inline-start: 0; }
  .foot-langs { margin-top: 8px; }
  .foot-langs ul { inset-inline-end: auto; inset-inline-start: 0; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .topbar { position: static; }
  .nav { flex-wrap: wrap; }
  .links { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 0 22px; padding-bottom: 8px; }
  .nav-js .topbar { position: sticky; }
  .nav-js .nav { flex-wrap: nowrap; }
  .nav-js .menu-btn {
    display: grid; place-items: center; position: relative; order: 3; flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer;
  }
  .bars { position: relative; width: 16px; height: 9px; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease); }
  .bars::before { top: 0; }
  .bars::after { bottom: 0; }
  .is-open .bars::before { transform: translateY(3.75px) rotate(45deg); }
  .is-open .bars::after { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-js .links {
    position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: calc(100% + 8px); display: block;
    padding: 10px 22px 22px; border-radius: 24px; background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 30px 40px -24px rgba(5, 12, 8, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav-js .topbar.is-open .links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-js .links li + li { border-top: 1px solid var(--line); }
  .nav-js .links a { font: 600 1.375rem/1.2 var(--display); letter-spacing: -.015em; padding: 16px 0; white-space: normal; opacity: 1; }
  .links .lang { padding-block: 12px 4px; }
  .lang-menu ul { position: static; min-width: 0; margin-top: 10px; padding: 0; box-shadow: none; background: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .nav-js .links .lang-menu a { font-size: 1.125rem; font-weight: 500; padding: 12px 4px; min-height: 46px; }
  .nav-js .links .lang-menu li + li { border-top: 0; }
  .nav-js .theme-btn { order: 2; }
}
@media (max-width: 800px) {
  .duo-flat { --edge: 7px; --r: 26px; }
  .duo-flat .half.l { padding-right: 2px; }
  .duo-flat .half.r { padding-left: 2px; }
  .duo-flat .pane, .duo-flat .pane.m { --c: 6px; }
  .duo-flat .pane { border-radius: calc(var(--r) - var(--edge)) 6px 6px calc(var(--r) - var(--edge)); }
  .duo-flat .pane.m { border-radius: 6px calc(var(--r) - var(--edge)) calc(var(--r) - var(--edge)) 6px; }
  .stage { margin-top: 44px; }
  .page-head { padding-block: 48px 8px; }
}
@media (max-width: 560px) {
  .pill .more { display: none; }
  .nav { gap: 8px; }
  .card { padding: 22px; }
  .card .address { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .closing .req .row { flex-direction: column; border-radius: 28px; align-items: stretch; }
  .closing .req .row button { width: 100%; white-space: normal; } /* long labels (German) wrap instead of widening the page */
}


/* ---------- Inner pages, legal texts, cards (kept from the previous design) ---------- */

.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 64px; padding-block: 56px 96px; align-items: start; }
.doc.single { grid-template-columns: minmax(0, 46rem); }
.toc { position: sticky; top: 24px; font-size: .9375rem; }
.toc h2 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--ink); border-left-color: var(--gold-line); }
.prose { min-width: 0; max-width: 44rem; }
.prose > section { padding-block: 26px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.prose > section:first-of-type { border-top: 0; padding-top: 8px; }
.prose h2 { font-size: 1.625rem; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; margin-top: 20px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; color: var(--ink-2); }
.prose p strong, .prose li strong { color: var(--ink); }
.prose a { color: var(--gold-text); font-weight: 600; }
.prose ul.dots { display: grid; gap: 8px; }
.prose ul.dots li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.prose ul.dots li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-line); margin-top: .72em; justify-self: center; }
.todo { font-style: italic; color: var(--ink-2); opacity: .85; }

.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--notice-bg); color: var(--notice-ink); border: 1px solid currentColor;
  border-radius: 16px; padding: 16px 20px; margin-bottom: 28px;
}
.notice svg { width: 22px; height: 22px; margin-top: 2px; }
.notice b { display: block; font: 600 1.125rem/1.3 var(--display); }
.notice span { display: block; font-size: .9375rem; line-height: 1.5; margin-top: 2px; }

/* ---------- Legal texts: the dates line, the placeholder, the data table, the provider list ---------- */

.toc { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.prose > .meta { margin: -8px 0 8px; font-size: .9375rem; color: var(--ink-2); }
.placeholder { background: var(--notice-bg); color: var(--notice-ink); border-radius: 6px; padding: 2px 8px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose table.data { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .9375rem; line-height: 1.5; }
.prose table.data th, .prose table.data td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 400; }
.prose table.data th:last-child, .prose table.data td:last-child { padding-right: 0; }
.prose table.data thead th { font: 600 .75rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); border-top: 0; padding-block: 0 10px; }
.prose table.data tbody th { width: 40%; }
.prose table.data td:last-child { width: 24%; color: var(--ink); }
.prose dl.providers { margin-top: 14px; border-top: 1px solid var(--line); }
.prose dl.providers dt { font: 600 1.0625rem/1.3 var(--display); color: var(--ink); padding-top: 14px; }
.prose dl.providers dd { color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 1.5rem; }
.card .address { color: var(--ink); display: inline-block; margin-top: 12px; font-size: 1.5rem; overflow-wrap: anywhere; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; transition: transform .3s var(--ease);
}
.prose a.btn { color: var(--on-accent); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.path { counter-reset: path; display: grid; gap: 0; margin-top: 18px; }
.path li { counter-increment: path; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); color: var(--ink); }
.path li:first-child { border-top: 0; }
.path li::before {
  content: counter(path); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold-line);
  display: grid; place-items: center; font: 600 1.0625rem/1 var(--display); color: var(--gold-text);
}
.path li span { display: block; color: var(--ink-2); font-size: .9375rem; }

.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center;
  padding-block: 18px; font: 600 1.1875rem/1.35 var(--display); color: var(--ink);
}
.faq summary:hover { color: var(--gold-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); justify-self: center; transition: transform .25s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 36px 20px 0; color: var(--ink-2); }

/* The FAQ: one readable column, every answer closed until asked. */
.ask { display: block; }
.ask > div:first-child { margin-bottom: 28px; }
.ask .faq { max-width: 46rem; margin-top: 0; }


/* ---------- Request forms (support, data, deletion, "tell me when it is ready") ---------- */

.req { display: grid; gap: 16px; margin-top: 20px; text-align: start; }
.req .field { display: grid; gap: 6px; }
.req label { font: 600 .9375rem/1.3 var(--sans); color: var(--ink); }
.req input[type="email"], .req textarea {
  width: 100%; font: 400 1.0625rem/1.5 var(--sans); color: var(--ink); background: var(--surface-2);
  border: 1px solid transparent; border-radius: 14px; padding: 13px 16px; appearance: none; -webkit-appearance: none;
}
.req textarea { resize: vertical; min-height: 7rem; }
.req input[type="email"]:focus, .req textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold-line); }
.req [aria-invalid="true"] { border-color: var(--notice-ink); }
.req .check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.req .check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.req { position: relative; }
.req .hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.req button { justify-self: start; border: 0; cursor: pointer; font-family: var(--sans); font-size: 1rem; margin-top: 2px; }
.req button.btn-sand { font-size: 1.0625rem; }
.req button[disabled] { opacity: .65; cursor: progress; transform: none; }
.req .status {
  margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--notice-bg); color: var(--notice-ink);
  font-size: .9375rem; line-height: 1.5; font-weight: 500;
}
.req .sent { padding: 4px 0; outline: 0; }
.req .sent b { display: block; font: 600 1.375rem/1.3 var(--display); color: var(--ink); }
.req .sent b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-inline-end: 12px; border: 1px solid var(--gold-line); background: var(--gold-line); transform: rotate(45deg); vertical-align: .1em; }
.req .sent p { margin: 8px 0 0; color: var(--ink-2); }
.req.is-sent > :not(.sent) { display: none; }

/* ---------- Right to left (Arabic) ----------
   dir="rtl" mirrors flex and grid by itself; what is mirrored here is what the rules above set with physical
   sides (left/right margins, borders, paddings, transform origins). Arabic letters join, so no letter-spacing and no
   italics; line heights get a little more room for the diacritics. */

:lang(ar) {
    --sans: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", system-ui, "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }
/* Latin names inside Arabic (iPhone, Android, App Store, the wordmark) are set a little smaller, so they sit at the
   size of the Arabic around them instead of looking larger; each is isolated left to right. */
html[lang="ar"] .lat { font-size: .88em; unicode-bidi: isolate; }
html[lang="ar"] .ikra { font-size: .9em; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] em, html[lang="ar"] .label, html[lang="ar"] i { font-style: normal; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35 !important; }
html[lang="ar"] .hero h1, html[lang="ar"] .page-head h1 { max-width: none; }
html[lang="ar"] .hero h1 em { font-weight: 700; }
[dir="rtl"] .skip { left: auto; right: 12px; }
[dir="rtl"] .toc ol { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .toc a { padding: 5px 14px 5px 0; margin-left: 0; margin-right: -1px; border-left: 0; border-right: 1px solid transparent; }
[dir="rtl"] .toc a:hover, [dir="rtl"] .toc a:focus-visible { border-right-color: var(--gold-line); }
[dir="rtl"] .prose table.data th, [dir="rtl"] .prose table.data td { text-align: right; padding: 14px 0 14px 16px; }
[dir="rtl"] .prose table.data th:last-child, [dir="rtl"] .prose table.data td:last-child { padding-left: 0; }
[dir="rtl"] .faq details p { padding: 0 0 20px 36px; }
[dir="rtl"] .req input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] bdi, [dir="rtl"] .address { unicode-bidi: isolate; }

/* Inner pages on narrow screens (after the kept rules, so it wins). */
@media (max-width: 800px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 72px; }
  .toc { position: static; max-height: none; overflow: visible; }
}

/* ---------- Fixes after the design critic (IKR-51) ---------- */
html[lang="ar"] .kicker { font-style: normal; }
html[lang="ar"] body { font-size: 1.125rem; }
.req input[type="email"], .req textarea { border: 1px solid color-mix(in srgb, var(--line) 55%, var(--ink-2)); background: var(--surface); }
.req input[type="email"]:focus, .req textarea:focus { outline-color: var(--gold-text); border-color: var(--gold-text); }
/* No ring inside the bar's frame: the language chip and the menu button are fills, not outlines. */
.lang-menu summary { border: 0; background: var(--surface-2); min-height: 32px; padding-block: 6px; }
.foot-base { background: none; padding-top: 4px; }
.foot-group a, .foot .foot-lang a { min-height: 44px; }

/* The Questions page (faq/): the list, then one line to write to us. */
.faq-more { margin-top: 28px; color: var(--ink-2); }

/* ---------- The light / dark switch (in the bar, beside the language chip) ---------- */
.theme-btn {
  display: inline-grid; place-items: center; position: relative; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease);
}
.theme-btn[hidden] { display: none; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity .3s ease, transform .4s var(--ease); }
.theme-btn .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
  :root:not([data-theme="light"]) .theme-btn .sun { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .theme-btn, .theme-btn svg { transition: none; } .theme-btn:hover { transform: none; } }
@media (max-width: 560px) { .theme-btn { width: 34px; height: 34px; } }

/* Arabic: the same system faces for headings as for text; the wordmark stays Latin. */
:lang(ar) { --display: var(--sans); }
html[lang="ar"] .hero h1 { max-width: 20ch; }

/* ---------- Motion: only when the visitor allows it ----------
   1. The opening: the headline rises, the device arrives.
   2. Text arrives as it enters the window: a rise for paragraphs, a wipe for chapter headlines. Where the browser has
      CSS scroll-driven animations these are tied to the scroll position (view()); elsewhere site.js reveals them once.
   3. The scroll story (html.story, set by site.js): site.js gives every [data-scene] its progress --p (0 to 1, read
      from a damped copy of the scroll position, so it glides), plus a few values worked out from it, and the rules
      below turn them into transforms, opacity and clip-path (IKR-162):
      - the hero is pinned while the iPhone Duo comes up from under the headline and opens flat;
      - the minutes ring draws and counts up to 15;
      - How it works is pinned: the teacher's card turns from "In a lesson" to "Free now"; the call's forest slides up
        over it as one sheet carrying the phone and its text; the cream sheet with the 604 pages slides up over the
        call, and the pages fill with gold;
      - the lesson card and the notes arrive; the hidden words of the memory test come into focus one by one;
      - the ijazah chain is pinned whole while its line is drawn down to Hafiz Ibrahim, then You.
   One subject is whole on screen at every scroll position (Yll, 23 Nov): pinned scenes hold the window, and every
   picture and pair is sized to fit the window under the bar. Arrivals use one ease-out (--ease). Held scenes drift by
   2–4% or float a few pixels. Colours never cross-fade: the dark call moment is a flat ground sliding up over the page,
   and the bar flips only while the scene is covered. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
  .hero .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .stage { animation: stage-in 1.2s ease .5s both; }
  .reveal, .prose > * { transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.pre, .prose > .pre { opacity: 0; transform: translateY(22px); }
  .topbar::before, .nav-js .topbar::before { transition: opacity .35s ease; }
  .pill, .theme-btn, .menu-btn { transition: transform .3s var(--ease); }

  @supports (animation-timeline: view()) {
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
    @keyframes wipe {
      from { opacity: 0; clip-path: inset(-.1em -.1em 100% -.1em); transform: translateY(.3em); }
      to { opacity: 1; clip-path: inset(-.1em -.1em -.3em -.1em); transform: none; }
    }
    .reveal { transition: none; animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 15%; }
    .reveal.wipe { animation-name: wipe; animation-range: entry 0% cover 20%; }
  }

  /* --- The hero: pinned; the Duo rises, grows and opens flat; the headline gives way; the caption arrives. --- */
  .story .hero { height: 190vh; --q: clamp(0, calc(var(--p, 0) / .7), 1); --fold: calc(1 - clamp(0, calc((var(--p, 0) - .05) / .6), 1));
    --cq: clamp(0, calc(var(--p, 0) / .14), 1); --capq: clamp(0, calc((var(--p, 0) - .68) / .16), 1); }
  .story .hero .scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
  .story .hero-copy { position: relative; z-index: 1; opacity: calc(1 - var(--cq)); transform: translate3d(0, calc(var(--cq) * -28px), 0); }
  .story .stage { position: absolute; inset: var(--bar-h) 0 0 0; z-index: 2; margin: 0; padding-bottom: 0; justify-content: center; pointer-events: none; }
  .story .duo-flat {
    width: min(92vw, 1000px, calc((100vh - var(--bar-h) - 150px) * 1.42)); width: min(92vw, 1000px, calc((100svh - var(--bar-h) - 150px) * 1.42));
    transform: translate3d(0, calc(var(--t0, 0px) * (1 - var(--q))), 0) scale(calc(var(--s0, 1) + (1 - var(--s0, 1)) * var(--q)));
    will-change: transform;
  }
  .story .duo-flat .half.l { transform: rotateY(calc(var(--fold) * 24deg)); }
  .story .duo-flat .half.r { transform: rotateY(calc(var(--fold) * -24deg)); }
  .story .duo-flat .half.l::after { opacity: calc(var(--fold) * .12); }
  .story .duo-flat .half.r::after { opacity: calc(var(--fold) * .3); }
  .story .duo-flat::before { opacity: calc(1 - var(--fold) * .6); }
  .story .duo-cap { opacity: var(--capq); transform: translate3d(0, calc((1 - var(--capq)) * 14px), 0); }

  /* --- How it works: pinned. Step 1's front card is swiped aside (the deck, above); then each next step slides up over the one before
     as one sheet, its own ground with a hard top edge and its picture and text riding on it (the sticky-stack), so
     there is never an empty ground between two steps and nothing fades over a ground. The page's colours flip only
     while the scene is fully covered (site.js). Everything here moves by transform alone. --- */
  .story .hiw { height: 540vh; position: relative; }
  .story .hiw-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; background: var(--scene-light); }
  .story .hiw-wipe { display: block; position: absolute; inset: 0; pointer-events: none; }
  .story .hiw-wipe.to-dark { z-index: 2; background: var(--scene-dark); transform: translate3d(0, calc((1 - var(--w1, 0)) * 100%), 0); }
  .story .hiw-wipe.to-light { z-index: 4; background: var(--scene-light); transform: translate3d(0, calc((1 - var(--w2, 0)) * 100%), 0); }
  /* Steps 1 and 3 stand on the light ground whatever the page's tokens say while the call is on screen. */
  .story .hiw :is(.s1, .s3) { --ink: var(--sl-ink); --ink-2: var(--sl-ink-2); --line: var(--sl-line); }
  .story .hiw-list { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 29rem); grid-template-rows: 1fr; justify-content: center; align-items: center; gap: 0 clamp(56px, 8vw, 120px); padding-top: var(--bar-h); }
  .story .hiw-list > li { display: contents; }
  .story .hiw-list > li:nth-child(2) { background: none; box-shadow: none; clip-path: none; }
  .story .hiw .vis { grid-area: 1 / 1; position: relative; }
  .story .hiw .txt { grid-area: 1 / 2; position: relative; }
  .story .hiw .s1 :is(.vis, .txt) { z-index: 1; }
  .story .hiw .s2 :is(.vis, .txt) { z-index: 3; transform: translate3d(0, calc((1 - var(--w1, 0)) * 100vh), 0); transform: translate3d(0, calc((1 - var(--w1, 0)) * 100svh), 0); }
  .story .hiw .s3 :is(.vis, .txt) { z-index: 5; transform: translate3d(0, calc((1 - var(--w2, 0)) * 100vh), 0); transform: translate3d(0, calc((1 - var(--w2, 0)) * 100svh), 0); }
  .story .hiw .s2 .phone { --pw: min(310px, calc((100vh - var(--bar-h) - 96px) / 2.2)); --pw: min(310px, calc((100svh - var(--bar-h) - 96px) / 2.2)); }
  .story .juz { --c: max(8px, min(15px, calc((100vh - var(--bar-h) - 230px) / 22 - 4px))); --c: max(8px, min(15px, calc((100svh - var(--bar-h) - 230px) / 22 - 4px))); }
  .story .hiw-rail { display: block; position: absolute; z-index: 6; left: 50%; bottom: 28px; width: 96px; height: 2px; margin-left: -48px; border-radius: 1px; background: var(--line); }
  .story .hiw-rail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink-2); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
  .story[dir="rtl"] .hiw-rail::after { transform-origin: 100% 50%; }

  /* --- The chain: pinned while its line is drawn, so the whole chain is on screen the whole time; its spacing
     follows the window's height so it fits a laptop. --- */
  .story .chain-scene { height: 220vh; }
  .story .chain-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-top: var(--bar-h); }
  .story .chain { margin-top: 0; }
  .story .node { padding-block: clamp(5px, 1.3vh, 12px); }
  .story .node.tchr { padding-block: clamp(10px, 2.4vh, 24px); }
  .story .node.gap { padding-block: clamp(8px, 2vh, 22px); }

  /* --- Ambient float: the call's phone breathes while its step is held (it shows no Quranic text). --- */
  @keyframes float { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 6px, 0); } }
  .story .hiw .s2 .phone { animation: float 6s ease-in-out infinite alternate; }

  /* --- The memory test listens: three small bars move while the page is on screen. --- */
  @keyframes lv { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
  .story .lv i { animation: lv .55s ease-in-out infinite alternate; }
  .story .lv i:nth-child(2) { animation-delay: -.25s; }
  .story .lv i:nth-child(3) { animation-delay: -.4s; }

  @media (max-width: 800px) {
    .story .hero { height: 165vh; }
    .story .hiw { height: 510vh; }
    .story .hiw-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 24px; padding: calc(var(--bar-h) + 8px) 0 28px; }
    .story .hiw .vis { grid-area: 1 / 1; padding-inline: 20px; }
    .story .hiw .txt { grid-area: 2 / 1; text-align: center; padding-inline: 20px; min-height: 9.5rem; }
    .story .hiw h3 { font-size: 1.625rem; margin-top: 8px; }
    .story .hiw .txt p { font-size: 1.0625rem; margin-top: 10px; }
    .story .hiw .s2 .phone { --pw: min(280px, 66vw, calc((100vh - var(--bar-h) - 230px) / 2.2)); --pw: min(280px, 66vw, calc((100svh - var(--bar-h) - 230px) / 2.2)); }
    .story .juz { --c: max(5px, min(11px, calc((100vw - 40px) / 28 - 3px), calc((100vh - var(--bar-h) - 330px) / 22 - 3px))); --c: max(5px, min(11px, calc((100vw - 40px) / 28 - 3px), calc((100svh - var(--bar-h) - 330px) / 22 - 3px))); }
  }
}

/* IKR-212: a few of the real teachers, in the Teachers section; the best first (30 Nov), every active teacher with an ijazah on their profile since 2 Dec (22). Small cards, the
   photo above the name: four across on a wide screen, three or two on a tablet; on a phone one row that scrolls
   sideways (native scroll and snap, the next card peeking at the edge). A hafiza shows an initial, never a face. */
.roster { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 88px; padding: 0; }
/* compact cards, so the count and as many cards as possible sit on one screen (the skill's rule: one thing fully visible at every scroll position) */
.roster .tc { grid-area: auto; padding: 12px 14px 12px; border-radius: 18px; box-shadow: 0 0 0 1px var(--c-edge) inset, var(--card-shadow); }
.roster .tc-top { flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.roster .tc-name { margin-top: 0; font-size: .9375rem; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: break-word; }
.roster .tc-meta { display: block; margin-top: 2px; font-size: .75rem; } /* text flow: the flag stays with the country */
.roster .tc-meta .flag { display: inline-block; width: 16px; height: 11.4px; vertical-align: -1px; margin-inline-end: 5px; }
.roster .tc-av { width: 40px; height: 40px; margin: 0; box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 3.5px var(--c-ring); }
.roster .tc-av.ini { display: grid; place-items: center; background: var(--pf-av); color: var(--pf-av-ink); font: 700 1.0625rem/1 var(--display); }
.roster .tc hr { margin: 9px 0 7px; }
.roster .tc-ij, .roster .tc-yrs { font-size: .75rem; line-height: 1.35; }
.roster .tc-ij b { display: block; } /* the ijazah, then its source on its own line (no dangling "·") */
.roster .tc-yrs { padding-top: 4px; }
@media (max-width: 1039px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .roster { display: flex; gap: 12px; margin: 28px calc(-1 * var(--gutter-r)) 40px calc(-1 * var(--gutter-l)); padding: 4px var(--gutter-r) 28px var(--gutter-l); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter-l) var(--gutter-r); scrollbar-width: none; }
  .roster::-webkit-scrollbar { display: none; }
  .roster > li { flex: 0 0 min(72vw, 264px); scroll-snap-align: start; }
}
.roster-count { max-width: 40rem; margin: 56px auto 0; text-align: center; font: 500 clamp(1.125rem, 1.8vw, 1.375rem)/1.35 var(--sans); color: var(--ink-2); }
.roster-count b { display: block; margin-bottom: 8px; font: 700 clamp(2.75rem, 7vw, 4.5rem)/1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.who-block { margin-top: 72px; }
/* Short phones (an iPhone SE): the pinned chain, nine nodes since Hafiz Ibrahim's (30 Nov), tightens so it stays whole on one screen. */
@media (max-width: 600px) and (max-height: 760px) {
  .story .node { padding-block: 7px; }
  .story .node.gap { padding-block: 10px; }
  .story .node.tchr { padding-block: 14px; }
  .story .node b { font-size: 1.0625rem; line-height: 1.25; }
  .story .node.pro b, .story .node.tchr b { font-size: 1.1875rem; }
  .story .node.key b { font-size: 1.125rem; }
  .story .node > span:not(.m) { font-size: .8125rem; line-height: 1.3; }
}
/* the roster's small cards (30 Nov review): the Arabic-language glyph on the Latin baseline; readable text on phones */
.roster .tc-meta .arin { vertical-align: -.38em; }
@media (max-width: 600px) { .roster .tc-meta, .roster .tc-ij, .roster .tc-yrs { font-size: .8125rem; } }
/* every card in a row shares its rows (header, rule, ijazah, years), so a two-line name or language list never pushes one
   card's lines below its neighbours' */
@media (min-width: 601px) {
  .roster { grid-auto-rows: auto; row-gap: 12px; }
  .roster .tc { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .roster .tc-yrs { align-self: end; }
}
/* the roster in two groups (2 Dec proposal, Yll's "separate a little between male & female teachers"): a quiet label
   with the same hafiz / hafiza chips as the line below, and a hairline to the edge, above each group */
.roster-label { display: flex; align-items: center; gap: 10px; margin: 44px 0 0; font: 500 1rem/1.3 var(--sans); color: var(--ink-2); }
.roster-count + .roster-label { margin-top: 32px; }
.roster-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.roster-label .chip { padding: 3px 11px 4px; border-radius: 99px; font: 700 .9375rem/1.2 var(--display); letter-spacing: -.01em; }
.roster-label + .roster { margin-top: 14px; }
.roster.r-m { margin-bottom: 0; }
@media (max-width: 600px) { .roster-label { margin-top: 20px; } .roster-label + .roster { margin-top: 6px; } }

/* IKR-278: "Apply to teach" under the last teacher card (docs/design/looks/apply-to-teach.md §1). A plain line, no box. */
.roster:has(+ .teach-join) { margin-bottom: 40px; }
.teach-join { margin: 0 auto 88px; text-align: center; font: 500 clamp(1.0625rem, 1.5vw, 1.25rem)/1.4 var(--sans); color: var(--ink-2); }
.teach-join a { color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; margin-inline-start: .35em; }
.teach-join a::after { content: "\203A"; display: inline-block; margin-inline-start: .3em; transition: transform .25s ease; }
[dir="rtl"] .teach-join a::after { content: "\2039"; }
.teach-join a:hover, .teach-join a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.teach-join a:hover::after { transform: translateX(3px); }
[dir="rtl"] .teach-join a:hover::after { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) { .teach-join a::after { transition: none; } .teach-join a:hover::after { transform: none; } }
@media (max-width: 640px) { .teach-join a { display: block; margin: 4px 0 0; white-space: normal; } }
/* The fourth top-bar link ("Teach on Ikra"): below 1060 px the pill keeps its first words, so the longer French and
   German labels still fit on one line until the menu takes over at 900 px. */
@media (max-width: 1060px) { .pill .more { display: none; } }
/* Between the two, the deck and the step's text stand closer, so the longest text (French, German) clears the foot. */
@media (max-height: 699px) and (max-width: 800px) { .story .hiw .s1 .txt { margin-top: -14px; } }
