/* ============================================================
   MAARIFAT-UL-ULOOM ACADEMY — HOMEPAGE  (Step 3)
   Built on assets/css/tokens.css. Loaded only by index.html.
   Order: fonts · base · header · hero · trust · why · pathway ·
          world · teachers · how · testimonials · cta · footer ·
          sticky bar · motion safety
   ============================================================ */

/* ---------- Self-hosted fonts (Latin subsets; SIL OFL, licences in assets/fonts) ---------- */
@font-face { font-family: 'Cinzel';  font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cinzel';  font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
/* Bismillah-only subset of Amiri (20 KB instead of 108 KB). Add the full file if more Arabic is used later. */
@font-face { font-family: 'Amiri';   font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/amiri-bismillah-subset.woff2") format("woff2"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }

.label { display: inline-flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .label { margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--center { text-align: center; }
.section-head--center h2, .section-head--center .lead { margin-inline: auto; }

.reveal { transition-delay: calc(var(--i, 0) * var(--stagger)); }

/* placeholder marker (dev-facing; delete data-placeholder to remove) */
[data-placeholder] { position: relative; }
[data-placeholder]::after {
  content: attr(data-placeholder);
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 5;
  padding: 5px 10px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  background: var(--ivory-50); color: var(--gold-800); box-shadow: var(--shadow-sm);
}

/* ============================================================
   01 · HEADER + NAVIGATION
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  height: var(--header-h-mobile); color: var(--text);
  transition: background-color var(--dur-4) var(--ease-out), box-shadow var(--dur-4) var(--ease-out);
}
.site-header.is-scrolled, .menu-open .site-header {
  background: rgb(14, 21, 38);
  box-shadow: 0 1px 0 rgba(232, 216, 181, .12), 0 10px 28px rgba(0, 0, 0, .22);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); min-height: var(--tap-min); min-width: 0; }
.logo-img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.logo-img--lg { width: 64px; height: 64px; }
.brand__text { display: grid; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .03em; color: var(--ivory-50); white-space: nowrap; }
.brand__sub { font-size: .68rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-400); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--tap-min);
  font-size: var(--fs-nav); font-weight: 500; text-decoration: none; color: var(--text-soft);
  transition: color var(--dur-2) var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold-400);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--ivory-50); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-menu li a[aria-current="page"] { color: var(--gold-400); }

.header__cta { --_h: 44px; padding: 0 14px; font-size: .8125rem; }

.nav-toggle {
  display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ivory-50); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out);
}
.nav-toggle:hover { background: rgba(232, 216, 181, .1); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* below 400px there is no room for a header CTA; the sticky bar carries it from first paint */
@media (max-width: 399px) {
  .header__cta { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: .95rem; }
}
@media (min-width: 520px) {
  .header__cta { --_h: 44px; padding: 0 18px; font-size: .875rem; }
}
/* No-JS: the desktop nav becomes a wrapping row so links are always reachable */
html:not(.js) .site-header { position: absolute; height: auto; padding-block: 8px; background: var(--navy-950); }
html:not(.js) .header__inner { flex-wrap: wrap; }
html:not(.js) .nav { display: block; order: 3; width: 100%; }
html:not(.js) .nav ul { flex-wrap: wrap; gap: 4px 18px; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .hero { padding-top: 160px; }

/* Desktop nav from 1024px */
@media (min-width: 1024px) {
  .site-header { height: var(--header-h); }
  .header__inner { width: min(100% - 2 * var(--gutter), 1280px); }
  .nav { display: block; }
  .nav-toggle { display: none; }
  .brand__name { font-size: 1.1rem; }
  html:not(.js) .site-header { position: fixed; height: var(--header-h); padding-block: 0; }
  html:not(.js) .nav { order: 0; width: auto; }
  html:not(.js) .header__inner { flex-wrap: nowrap; }
  html:not(.js) .hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (min-width: 1200px) { .nav ul { gap: 30px; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  padding: calc(var(--header-h-mobile) + 12px) var(--gutter) 24px; overflow-y: auto;
  background: var(--navy-950); color: var(--text);
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; max-width: 520px; margin-inline: auto; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li a { display: flex; align-items: center; min-height: 58px; font-size: 1.25rem; font-weight: 500; text-decoration: none; color: var(--heading); }
.mobile-menu li a:hover { color: var(--gold-400); }
.mobile-menu__cta { display: grid; gap: 12px; }
.mobile-menu__cta .btn { width: 100%; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============================================================
   02 · CINEMATIC HERO
   ============================================================ */
.hero {
  position: relative; overflow: clip; color: var(--text);
  padding: calc(var(--header-h-mobile) + 40px) 0 128px;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(216, 190, 138, .15), transparent 70%),
    radial-gradient(50% 45% at 8% 0%, rgba(44, 58, 92, .6), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 72%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__rosette { position: absolute; inset: 0; display: grid; place-items: center; justify-items: end; }
.hero__rosette svg { width: min(880px, 130vw); height: auto; margin-right: -22%; opacity: .2; animation: rosette-in 2.6s var(--ease-out) .15s both; }

.hero__inner { position: relative; display: grid; gap: 56px; align-items: center; }
.hero__copy { max-width: 640px; }

.hero__bismillah { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font-size: 1.1rem; }
.hero__bismillah .arabic { color: var(--gold-300); line-height: 1.7; }
.hero__rule { flex: none; width: 40px; height: 1px; background: var(--gold-400); opacity: .7; transform-origin: left; animation: rule-in 1.2s var(--ease-out) .5s both; }
.hero__rule:last-child { transform-origin: right; }
.hero__eyebrow { margin-bottom: 18px; }
.hero__title { max-width: none; margin-bottom: 26px; }
.hero__line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__line-in { display: block; }
.hero__lead { max-width: 54ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
@media (max-width: 519px) { .hero__actions .btn { width: 100%; } }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9375rem; color: var(--text-soft); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 18px; height: 18px; color: var(--gold-400); }

/* Entrance sequence (one-time, ~1.9s total). Order: photo -> bismillah -> headline (line by line) -> paragraph -> CTAs -> trust points.
   Transform + opacity only, ease-out, no overshoot. Delays are literal so the order is easy to audit. */
.hero__bismillah { animation: rise 900ms var(--ease-out) 500ms both; }
.hero__eyebrow   { animation: rise 900ms var(--ease-out) 700ms both; }
.hero__line-in   { animation: line-up 1000ms var(--ease-out) calc(850ms + var(--i, 0) * 150ms) both; }
.hero__lead      { animation: rise 900ms var(--ease-out) 1300ms both; }
.hero__actions   { animation: rise 900ms var(--ease-out) 1500ms both; }
.hero__points    { animation: rise 900ms var(--ease-out) 1700ms both; }

.hero__art { position: relative; width: 100%; max-width: 420px; justify-self: center; }
.hero__art::before {
  content: ""; position: absolute; inset: -14px; border: 1px solid rgba(216, 190, 138, .4);
  border-radius: 999px 999px 28px 28px; pointer-events: none; animation: fade-in 1.2s var(--ease-out) .5s both;
}
.hero__frame {
  position: relative; overflow: hidden; border-radius: var(--radius-arch);
  box-shadow: 0 0 0 1px rgba(216, 190, 138, .45), 0 32px 80px rgba(0, 0, 0, .5);
  background: var(--navy-800); animation: fade-in 1.4s var(--ease-out) 0s both;
}
.hero__frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; animation: img-settle 2.2s var(--ease-out) 0s both; }

/* parallax wrappers: JS sets --mx/--my/--sy only on desktop + fine pointer + no reduced motion */
/* Photographic depth (Step 5 correction). The REAL photo is never cut, rebuilt or re-lit: three layers of the same picture
   (outline, frame, photo inside the frame) shift by a few px against each other, plus a <=1.1deg perspective lean.
   JS adds .is-depth to the hero only on desktop + fine pointer + motion allowed, so phones, reduced motion and no-JS keep the static photo.
   Individual translate/scale properties are used so they never fight the entrance animations (which use opacity/transform). */
.hero.is-depth .hero__art {
  transform: perspective(1400px) translate3d(calc(var(--mx, 0) * 5px), calc(var(--my, 0) * 4px + var(--sy, 0) * .25px), 0)
             rotateY(calc(var(--mx, 0) * 1.1deg)) rotateX(calc(var(--my, 0) * -.9deg));
}
.hero.is-depth .hero__frame { translate: calc(var(--mx, 0) * 2px) calc(var(--my, 0) * 1.5px); }
.hero.is-depth .hero__frame img {
  translate: calc(var(--mx, 0) * -6px) calc(var(--my, 0) * -5px);
  scale: var(--ds, 1);
  transition: scale 700ms var(--ease-out);
}
.parallax { transform: translate3d(calc(var(--mx, 0) * var(--d, 0) * 8px), calc(var(--my, 0) * var(--d, 0) * 6px + var(--sy, 0) * var(--d, 0) * 1px), 0); will-change: auto; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes line-up { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes img-settle { from { transform: scale(1.02); } to { transform: none; } }
@keyframes rosette-in { from { opacity: 0; clip-path: circle(0% at 50% 50%); } to { opacity: .2; clip-path: circle(72% at 50% 50%); } }

@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 56px) 0 152px; min-height: min(100svh, 880px); display: grid; align-items: center; }
  .hero__inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 72px; }
  .hero__art { max-width: 460px; justify-self: end; margin-right: 14px; }
}
@media (max-width: 1023px) { .parallax { transform: none; } .hero__rosette svg { margin-right: -40%; } }

/* ============================================================
   03 · TRUST / PROOF STRIP
   ============================================================ */
.trust { position: relative; z-index: 2; margin-top: -72px; }
.trust__grid {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
/* mobile: each fact is a compact row (figure left, text right) so three facts never leave an orphan cell */
.trust__cell { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.trust__cell:last-child { border-bottom: 0; }
.trust__num { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1; color: var(--heading); }
.trust__label { font-weight: 600; font-size: .95rem; color: var(--heading); align-self: end; }
.trust__sub { margin-top: 2px; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); align-self: start; }
@media (min-width: 900px) {
  .trust__grid { grid-template-columns: repeat(3, 1fr); }
  .trust__cell { display: block; padding: 34px 36px 36px; border-bottom: 0; border-right: 1px solid var(--border); }
  .trust__cell:last-child { border-right: 0; }
  .trust__num { margin-bottom: 12px; }
}

/* ============================================================
   04 · WHY FAMILIES CHOOSE US
   ============================================================ */
.why__grid { display: grid; gap: 56px; align-items: center; }
.why__art { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.why__body .section-head { margin-bottom: 20px; }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--border); }
.benefit:last-child { border-bottom: 1px solid var(--border); }
.benefit__num { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.2; color: var(--gold-700); }
.benefit h3 { margin-bottom: 8px; font-size: 1.25rem; }
.benefit p { color: var(--text-soft); }
@media (min-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 96px; }
  .benefit { grid-template-columns: 72px 1fr; gap: 24px; }
}

/* ============================================================
   05 · COURSE PATHWAY
   ============================================================ */
.pathway { background: var(--bg-alt); }
.pathway__stage { position: relative; }
.pathway__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.pathway__track { fill: none; stroke: var(--gold-500); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.pathway__draw { fill: none; stroke: var(--emerald-500); stroke-width: 3; stroke-linecap: round; }
.pathway__steps { position: relative; z-index: 1; display: grid; gap: 22px; }
.pstep { position: relative; padding-left: 48px; }
.pstep__node {
  position: absolute; left: 0; top: 26px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ivory-50); border: 2px solid var(--gold-500);
  transition: background var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.pstep__node.is-reached { background: var(--emerald-700); border-color: var(--gold-400); box-shadow: 0 0 0 5px rgba(31,42,68, .16); }
html:not(.js) .pstep__node { background: var(--emerald-700); border-color: var(--gold-400); }

/* Step 5: sequence = line draws, point appears, then its card. Hidden only while the script has marked the stage live;
   without JS (or with reduced motion) every point and card is simply visible. Once shown they stay static. */
.pathway__stage.is-live .pstep__node { opacity: 0; transform: scale(.7); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), background var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.pathway__stage.is-live .pstep:not(.is-shown) .card { opacity: 0; }
.pathway__stage.is-live .pstep.is-shown .card { animation: card-in var(--dur-4) var(--ease-out) 160ms backwards; }
.pathway__stage.is-live .pstep.is-shown .pstep__node { opacity: 1; transform: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(var(--reveal-distance)); } to { opacity: 1; transform: none; } }

.card {
  position: relative; display: block; padding: 26px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p:not(.card__num):not(.card__tag) { color: var(--text-soft); font-size: .975rem; line-height: 1.65; }
.card__num { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; color: var(--gold-700); margin-bottom: 14px; }
.card__tag { margin-bottom: 12px; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-700); }
.card__link { margin-top: 14px; font-size: .9rem; }
.card--flat { background: transparent; box-shadow: none; border-left: 3px solid var(--gold-500); border-radius: var(--radius-sm); padding: 22px 22px 24px; }

.alongside { margin-top: clamp(56px, 7vw, 88px); }
.alongside .label { margin-bottom: 22px; }
.alongside__grid { display: grid; gap: 16px; }

@media (min-width: 720px) { .alongside__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) {
  .pathway__steps { grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
  .pstep { padding-left: 0; padding-top: calc((3 - var(--i)) * 56px); }
  .pstep__node { position: relative; top: auto; left: 26px; display: block; margin-bottom: 22px; }
  .pathway__stage { padding-top: 12px; }
}

/* ============================================================
   06 · LEARNING WITHOUT BORDERS
   ============================================================ */
.world {
  position: relative; overflow: clip; color: var(--text);
  background: radial-gradient(60% 70% at 70% 50%, rgba(44, 58, 92, .55), transparent 72%), linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.world__grid { display: grid; gap: 48px; align-items: center; }
.world__copy { display: grid; gap: 20px; justify-items: start; }
.world h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
.world__points { display: grid; gap: 14px; margin: 6px 0 12px; }
.world__points li { display: flex; align-items: center; gap: 14px; color: var(--text); }
.world__points svg { flex: none; width: 24px; height: 24px; }
.map { position: relative; }
.map figcaption { margin-top: 14px; text-align: center; color: var(--text-soft); font-size: .8125rem; }
.map__svg { width: 100%; height: auto; }
.map__node circle { transform-box: fill-box; transform-origin: center; }

.js .map__arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-in-out) calc(var(--i) * 110ms + 400ms); }
.js .map__node { opacity: 0; transition: opacity .8s var(--ease-out) calc(var(--i) * 90ms + 1000ms); }
.js .map.is-visible .map__arc { stroke-dashoffset: 0; }
.js .map.is-visible .map__node { opacity: 1; }

@media (min-width: 960px) {
  .world__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
}

/* ============================================================
   07 · TEACHERS (text-only; the photo cards were removed in Step 4)
   ============================================================ */

/* ============================================================
   08 · HOW IT WORKS
   ============================================================ */
.how { background: var(--bg-alt); }
.how__grid { display: grid; gap: 48px; }
.how__head { margin-bottom: 0; }
.how__head > p:last-of-type { margin-top: 28px; }

.steps { position: relative; --p: 0; --rail-end: 60px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: var(--rail-end); width: 2px; }
.steps::before { background: rgba(31, 42, 68, .16); }
.steps::after { background: var(--emerald-500); transform-origin: top; transform: scaleY(var(--p)); }
html:not(.js) .steps { --p: 1; }
/* Step 5: the number and its text appear when the rail reaches them (only while the script has marked the list live) */
.steps.is-live .step:not(.is-done) .step__body { opacity: 0; transform: translateY(16px); }
.steps.is-live .step__body { transition: opacity var(--dur-4) var(--ease-out) 120ms, transform var(--dur-4) var(--ease-out) 120ms; }
.steps.is-live .step:not(.is-done) .step__node { opacity: .55; }
.steps.is-live .step__node { transition: background var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out); }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 22px; padding-bottom: 42px; }
.step:last-child { padding-bottom: 0; }
.step__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold-500);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--heading);
  transition: background var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.step.is-done .step__node, html:not(.js) .step__node { background: var(--emerald-700); border-color: var(--gold-400); color: var(--ivory-50); }
.step__body .label { margin-bottom: 6px; font-size: .72rem; }
.step__body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step__body p:not(.label) { color: var(--text-soft); }
@media (min-width: 960px) {
  .how__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; align-items: start; }
  .how__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .step { grid-template-columns: 40px 1fr; gap: 28px; padding-bottom: 52px; }
}

/* ============================================================
   09 · TESTIMONIALS
   ============================================================ */
.testi__shell { max-width: 760px; margin-inline: auto; }
.testi__stage { display: grid; gap: 16px; }
.tcard {
  position: relative; padding: clamp(28px, 4.5vw, 52px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.tcard__mark { position: absolute; top: 20px; left: clamp(24px, 4.5vw, 52px); font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--gold-500); opacity: .55; }
.tcard blockquote { position: relative; padding-top: 34px; }
.tcard blockquote p { max-width: none; font-size: var(--fs-lead); line-height: 1.65; color: var(--heading); }
.tcard figcaption { position: relative; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-700); }

.js .testi__stage { gap: 0; padding-bottom: 44px; }
.js .tcard {
  grid-area: 1 / 1; transform-origin: 50% 100%;
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-4) var(--ease-out), visibility 0s linear var(--dur-4);
}
.js .tcard[data-pos="0"] { z-index: 4; opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.js .tcard[data-pos="1"] { z-index: 3; opacity: 1; transform: translateY(22px) scale(.955); visibility: visible; transition-delay: 0s; }
.js .tcard[data-pos="2"] { z-index: 2; opacity: 1; transform: translateY(44px) scale(.91); visibility: visible; transition-delay: 0s; }
.js .tcard[data-pos="out"] { z-index: 5; opacity: 0; transform: translateX(-48px) scale(.98); visibility: hidden; pointer-events: none; }
.js .tcard[data-pos="wait"] { z-index: 1; opacity: 0; transform: translateY(60px) scale(.88); visibility: hidden; pointer-events: none; }
.js .tcard[data-pos="1"] > *, .js .tcard[data-pos="2"] > * { visibility: hidden; }  /* text of the back layers never shows through */

.testi__controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
html:not(.js) .testi__controls { display: none; }
.testi__count { min-width: 56px; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: var(--tap-min); height: var(--tap-min);
  border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--heading);
  font: 600 .875rem var(--font-body); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.icon-btn:hover { background: var(--heading); color: var(--ivory-50); border-color: var(--heading); }
.icon-btn--text { width: auto; padding: 0 18px; margin-left: 10px; }
.icon-btn[aria-pressed="true"] .i-pause, .icon-btn[aria-pressed="false"] .i-play { display: none; }

/* ============================================================
   10 · FINAL CTA
   ============================================================ */
.cta {
  position: relative; overflow: clip; text-align: center; padding-block: var(--section-y); color: var(--text);
  background: radial-gradient(70% 90% at 50% 105%, rgba(216, 190, 138, .18), transparent 70%), linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.cta__geo { position: absolute; left: 50%; top: 50%; width: min(1000px, 130vw); transform: translate(-50%, -50%); opacity: .13; pointer-events: none; }
.cta__geo svg { width: 100%; height: auto; }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.cta h2 { max-width: 22ch; font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem); }
.cta .lead { max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 14px; }

/* ============================================================
   11 · FOOTER
   ============================================================ */
.footer { background: var(--navy-950); color: var(--text-soft); padding-top: clamp(64px, 8vw, 104px); padding-bottom: calc(28px + var(--sticky-bar-h) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 40px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; }
.footer__brand .small { max-width: 38ch; color: var(--text-soft); }
.footer__h { margin-bottom: 14px; font-family: var(--font-body); font-size: .78rem; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); }
.footer__col a { display: inline-flex; align-items: center; min-height: var(--tap-min); text-decoration: none; color: var(--text-soft); transition: color var(--dur-2) var(--ease-out); }
.footer__col a:hover { color: var(--ivory-50); text-decoration: underline; text-underline-offset: 4px; }
.footer__contact li { display: grid; margin-bottom: 12px; }
.footer__k { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.social-btn {
  display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min); border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--ivory-200);
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.social-btn:hover { background: var(--gold-400); color: var(--navy-800); border-color: var(--gold-400); }
.social-btn svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); }
.footer__bottom p { max-width: none; color: var(--text-soft); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 56px; } .footer__brand { grid-column: auto; } }
@media (min-width: 768px) { .footer { padding-bottom: 28px; } }

/* ============================================================
   STICKY MOBILE BAR (Free Trial + WhatsApp)
   ============================================================ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 21, 38, .96); border-top: 1px solid var(--border);
  transform: translateY(110%); visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.sticky-bar .btn { --_h: 48px; padding: 0 12px; font-size: .9rem; }
.js .sticky-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
html:not(.js) .sticky-bar { display: none; }
@media (min-width: 768px) { .sticky-bar { display: none !important; } }

/* ============================================================
   STEP 4 · QURAN VISUALS (V1 hero, V2 why, V3 pathway strip, V4 reading, V5 closing CTA, course thumbnails)
   REAL PHOTOGRAPHS ONLY (see assets/img/README-IMAGES.md). No generated/3D imagery. Motion: masked reveal only; hero has the existing subtle parallax.
   ============================================================ */

.card__media picture, .card__thumb picture, .why__frame picture, .pathway__visual picture, .how__visual picture, .cta__bg { display: block; }
.card__media picture, .card__thumb picture, .why__frame picture, .pathway__visual picture, .how__visual picture { width: 100%; height: 100%; }

/* masked reveal: the picture wipes in from the bottom once it scrolls into view (only while JS runs; reduced motion shows it at once) */
.js .reveal--mask img { clip-path: inset(0 0 100% 0); transform: scale(1.02); transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out); }
.js .reveal--mask.is-visible img { clip-path: inset(0); transform: none; }

/* Photo slots that still wait for a verified real photograph (tag REAL_PHOTO_REQUIRED, see PLACEHOLDERS.md) */
.photo-slot {
  position: relative; display: block; width: 100%; height: 100%; min-height: 100%;
  background: linear-gradient(160deg, var(--navy-700, #2C3A5C), var(--navy-800, #1F2A44));
  box-shadow: inset 0 0 0 1px rgba(216, 190, 138, .35);
}
.photo-slot::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(216, 190, 138, .35); border-radius: inherit; pointer-events: none; }
.hero__frame .photo-slot { aspect-ratio: 4 / 5; height: auto; }
.card__thumb [data-placeholder]::after, .card__media [data-placeholder]::after { display: none; }
.cta.cta--nophoto { padding-bottom: var(--section-y); }

/* V2 why */
.why__art::before {
  content: ""; position: absolute; inset: -12px; border: 1px solid rgba(191, 160, 112, .55);
  border-radius: 999px 999px 28px 28px; pointer-events: none;
}
.why__frame { position: relative; overflow: hidden; border-radius: var(--radius-arch); aspect-ratio: 4 / 5; background: var(--ivory-200); box-shadow: var(--shadow-md); }
.why__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* V3 pathway strip */
.pathway__visual {
  position: relative; overflow: hidden; margin: 0 0 clamp(28px, 4vw, 48px); aspect-ratio: 4 / 3;
  border-radius: var(--radius-md); background: var(--navy-800); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.pathway__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .pathway__visual { aspect-ratio: 24 / 7; } .pathway__visual img { object-position: 50% 45%; } }

/* course thumbnails: full-bleed at the top of the four pathway cards, small square on the "alongside" cards */
.card--media { padding-top: 0; overflow: hidden; }
.card__media { margin: 0 -24px 22px; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy-800); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card__link svg, .card--media .card__arrow { transition: transform var(--dur-2) var(--ease-out); }
/* hover polish: real hover pointers on desktop only. Elevation + image 1.03 + arrow nudge. No rotate, flip, 3D or jump. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .pathway__stage .card--media:hover, .pathway__stage .card--media:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
  .card--media:hover .card__media img, .card--media:focus-within .card__media img { transform: scale(1.03); }
  .card--media:hover .card__link svg, .card--media:focus-within .card__link svg { transform: translateX(4px); }
  .js .why__frame.is-visible:hover img, .js .pathway__visual.is-visible:hover img, .why__frame:hover img, .pathway__visual:hover img { transform: scale(1.02); }
  .card--thumb:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
}
.card--thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.card__thumb { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-800); }
.card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__text .card__tag { margin-bottom: 8px; }
/* stacked thumbnail above the text whenever the card is narrow: phones, and the 3-column tablet grid (720-1099px) */
@media (max-width: 479px), (min-width: 720px) and (max-width: 1099px) {
  .card--thumb { grid-template-columns: 1fr; gap: 14px; }
  .card__thumb { width: 100%; aspect-ratio: 16 / 8; }
}
.card__text { min-width: 0; overflow-wrap: anywhere; }

/* V4 how it works */
.how__visual { margin-top: 32px; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius-md); background: var(--navy-800); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.how__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (min-width: 1024px) and (max-height: 800px) { .how__head { position: static; } }

/* V5 closing CTA: cinematic background, art-directed (wide on desktop, portrait on phones) */
.cta { isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; }
.cta__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }
.js .cta__bg.reveal--mask img { clip-path: none; opacity: 0; transform: scale(1.02); transition: opacity 1.6s var(--ease-out), transform 2s var(--ease-out); }
.js .cta__bg.reveal--mask.is-visible img { opacity: 1; transform: none; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 21, 38, .94) 0%, rgba(14, 21, 38, .84) 34%, rgba(14, 21, 38, .32) 62%, rgba(14, 21, 38, .06) 100%),
              linear-gradient(0deg, rgba(14, 21, 38, .55), transparent 30%);
}
.cta__geo { opacity: .07; }
/* linework settles once as the section enters: soft radial mask reveal, no rotation */
.js .cta__geo.reveal-geo svg { clip-path: circle(0% at 50% 50%); transition: clip-path 2.4s var(--ease-out); }
.js .cta__geo.reveal-geo.is-visible svg { clip-path: circle(72% at 50% 50%); }
@media (min-width: 768px) {
  .cta { text-align: left; }
  .cta__inner { justify-items: start; }
  .cta__actions { justify-content: flex-start; }
  .cta h2 { max-width: 18ch; }
  .cta .lead { max-width: 44ch; }
  /* Real photo sits on the right and fades out to the left, so no text or overlay ever lies over the Qur'an cover */
  .cta__bg { inset: 0 0 0 auto; width: 56%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%); mask-image: linear-gradient(to right, transparent 0, #000 32%); }
  .cta__bg img { object-position: 50% 50%; }
  .cta::after { background: linear-gradient(0deg, rgba(14, 21, 38, .35), transparent 22%); }
}
@media (max-width: 767px) {
  .cta { padding-bottom: calc(var(--section-y) + 88vw); }
  .cta__bg { inset: auto 0 0 0; height: 122vw; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 46%); mask-image: linear-gradient(to bottom, transparent 0, #000 46%); }
  .cta__bg img { object-position: 50% 100%; }
  .cta::after { background: linear-gradient(0deg, rgba(14, 21, 38, .5), transparent 24%); }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .parallax, .hero.is-depth .hero__art { transform: none !important; }
  .hero.is-depth .hero__frame, .hero.is-depth .hero__frame img { translate: none !important; scale: none !important; transition: none !important; }
  .hero__rosette svg, .hero__frame, .hero__frame img, .hero__art::before { animation: none !important; }
  .hero__rosette svg { clip-path: none; opacity: .2; }
  .js .reveal--mask img, .js .cta__bg.reveal--mask img { clip-path: none; opacity: 1; transform: none; transition: none; }
  .js .cta__geo.reveal-geo svg { clip-path: none; transition: none; }
  .card--media, .card--media:hover, .card--media:focus-within { transform: none !important; }
  .card--media:hover .card__media img, .why__frame:hover img, .pathway__visual:hover img { transform: none !important; }
  .pathway__stage.is-live .pstep__node, .pathway__stage.is-live .pstep .card, .steps.is-live .step__body { opacity: 1 !important; transform: none !important; animation: none !important; }
  .steps.is-live .step__node { opacity: 1; }
  .js .map__arc { stroke-dashoffset: 0; transition: none; }
  .js .map__node { opacity: 1; transition: none; }
}

/* No-JS: nothing may stay hidden or half-drawn */
html:not(.js) .reveal-geo svg, html:not(.js) .reveal--mask img { clip-path: none; opacity: 1; transform: none; }
html:not(.js) .map__arc { stroke-dashoffset: 0; }
html:not(.js) .map__node { opacity: 1; }

/* ============================================================
   3D GEOMETRY LAYER (assets/js/lattice3d.js) — code-drawn, no imagery
   ============================================================ */
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s var(--ease-out, ease); }
.lattice.is-on { opacity: 1; }
.hero__bg { overflow: hidden; }
.hero__bg::after { /* keep copy legible over the geometry */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 21, 38,.92) 0%, rgba(14, 21, 38,.62) 38%, rgba(14, 21, 38,0) 70%),
              linear-gradient(0deg, rgba(14, 21, 38,.9) 0%, rgba(14, 21, 38,0) 22%);
}
@media (max-width: 1023px) { .hero__bg::after { background: linear-gradient(0deg, rgba(14, 21, 38,.85), rgba(14, 21, 38,.55)); } }
.js .lattice.is-on ~ .hero__rosette, .hero__bg .lattice.is-on + .hero__rosette { display: none; }
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__film.is-on { opacity: .55; }
.has-hero-film .hero__bg .lattice { opacity: .55; }
.hero__art .hero__frame { box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(216,190,138,.35), 0 0 80px -10px rgba(216,190,138,.25); }
.band-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .35; }
.world { position: relative; isolation: isolate; }
.world > .container { position: relative; z-index: 1; }

/* Course plates while real photos are pending: gilded rosette on navy instead of an empty dashed box */
.photo-slot {
  background:
    radial-gradient(circle at 50% 50%, rgba(216,190,138,.22), rgba(216,190,138,0) 60%),
    linear-gradient(160deg, #2C3A5C, #141D33);
  overflow: hidden;
}
.photo-slot::before { inset: 0; border: 0; background: url("../img/rosette-gold.svg") center / 78% no-repeat; opacity: .75; transition: transform 1.2s var(--ease-out, ease); }
.card:hover .photo-slot::before { transform: rotate(22.5deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .card:hover .photo-slot::before { transform: none; } .lattice { transition: none; } }

/* Pathway pin (desktop): stage sticks under the header while the path draws and the cards arrive */
.pathway__pin.is-pinned { height: calc(100vh + 150vh); margin-top: 8px; }
.pathway__pin.is-pinned .pathway__sticky {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
}
.pathway__pin.is-pinned .pathway__stage { width: 100%; transform-origin: 50% 50%; }
.pathway__pin.is-pinned .pstep.is-shown .card__media img { animation: pimg-in 1.4s var(--ease-out) both; }
@keyframes pimg-in { from { transform: scale(1.12); filter: saturate(.6); } to { transform: none; filter: none; } }

/* ============================================================
   SCROLL SCENES (assets/js/scroll-scenes.js). --sp runs 0 → 1; unset = static.
   Individual `scale` / `translate` properties are used so existing transforms and reveal masks keep working.
   ============================================================ */
/* Hero: copy lifts and fades, photo drifts back as you leave */
.hero[data-sp] .hero__copy { translate: 0 calc(max(var(--sp, 0) - .5, 0) * -160px); opacity: calc(1 - max(var(--sp, 0) - .5, 0) * 1.6); }
.hero[data-sp] .hero__art { scale: calc(1 - max(var(--sp, 0) - .5, 0) * .16); }
/* Wide photo strips and single photos: slow zoom-out + parallax while crossing the screen */
.pathway__visual[data-sp] img, .how__visual[data-sp] img, [data-sp].why__frame img, .course__plate[data-sp] img {
  scale: calc(1.16 - var(--sp, .5) * .16); translate: 0 calc((var(--sp, .5) - .5) * -36px);
}
.cta[data-sp] .cta__bg img { scale: calc(1.18 - min(var(--sp, 1) * 1.6, 1) * .18); }
.page-hero[data-sp] .page-hero__photo picture { display: block; height: 100%; translate: 0 calc(var(--sp, 0) * 90px); scale: calc(1 + var(--sp, 0) * .08); }

/* Pinned "Why" scene (desktop): section sticks, the photo slowly zooms and each benefit takes the light in turn */
.why.is-scene { height: 260vh; padding: 0; }
.why.is-scene > .container { position: sticky; top: var(--scene-top, var(--header-h)); transform-origin: 50% 0; }
.why.is-scene .reveal { opacity: 1 !important; transform: none !important; }
.why.is-scene .why__frame img { scale: calc(1.14 - var(--sp, 0) * .14); transition: scale .2s linear; }
.why.is-scene .benefit { opacity: .32; transition: opacity .6s var(--ease-out), background-color .6s var(--ease-out), padding-left .6s var(--ease-out); }
.why.is-scene .benefit.is-past { opacity: .6; }
.why.is-scene .benefit.is-active { opacity: 1; padding-left: 18px; background: linear-gradient(90deg, rgba(216,190,138,.18), rgba(216,190,138,0) 70%); box-shadow: inset 3px 0 0 var(--gold-500); }
.why.is-scene .benefit.is-active .benefit__num { color: var(--emerald-700); }
/* A thin progress rail on the photo */
.why.is-scene .why__art::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 160px; height: 3px; translate: -50% 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald-500) calc(var(--sp, 0) * 114%), rgba(31, 42, 68,.14) 0); }

/* Pathway pin: wider stage and taller photos so the cards read large */
.pathway__pin.is-pinned .pathway__sticky { width: min(1440px, 96vw); margin-inline: calc((min(1440px, 96vw) - 100%) / -2); }
.pathway__pin.is-pinned .pstep { padding-top: calc((3 - var(--i)) * 34px); }
.pathway__pin.is-pinned .card__media { aspect-ratio: 4 / 3; }

@media (prefers-reduced-motion: reduce) {
  [data-sp] *, [data-sp] { translate: none !important; scale: none !important; }
  .hero[data-sp] .hero__copy { opacity: 1 !important; }
}
.why.is-scene .why__grid { align-items: center; gap: 72px; }
.why.is-scene .why__art { max-width: 380px; }
.why.is-scene .benefit { padding: 16px 0 16px; }
.why.is-scene .why__body .section-head { margin-bottom: 8px; }

/* ============================================================
   WHATSAPP CHOOSER (assets/js/wa-widget.js)
   ============================================================ */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; justify-items: end; gap: 12px; font-family: var(--font-body); }
@media (max-width: 1023px) { .wa { right: 14px; bottom: calc(var(--sticky-bar-h, 64px) + 14px + env(safe-area-inset-bottom)); } }
.wa__fab {
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: #25D366; color: #fff; font: 600 1rem/1 var(--font-body);
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.18);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.wa__fab::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(37,211,102,.5); animation: wa-ring 2.4s ease-out infinite; pointer-events: none; }
.wa__fab { position: relative; }
.wa__fab:hover { transform: translateY(-2px); background: #1fbe5b; }
.wa__fab:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.wa__fab svg { width: 28px; height: 28px; fill: currentColor; }
.is-open .wa__fab::before { animation: none; opacity: 0; }
@media (max-width: 719px) { .wa__fab { width: 56px; height: 56px; padding: 0; justify-content: center; } .wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@keyframes wa-ring { 0% { transform: scale(.92); opacity: .9; } 80%, 100% { transform: scale(1.25); opacity: 0; } }

.wa__panel {
  width: min(340px, calc(100vw - 28px)); background: #fff; color: #1F2A44; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(14, 21, 38,.45), 0 0 0 1px rgba(14, 21, 38,.06);
  opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom right; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.is-open .wa__panel { opacity: 1; transform: none; }
.wa__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: #075E54; color: #fff; }
.wa__head > svg { width: 30px; height: 30px; flex: none; fill: #fff; }
.wa__head > div { flex: 1; }
.wa__title { font-weight: 600; font-size: 1.02rem; margin: 0; }
.wa__sub { font-size: .82rem; opacity: .85; margin: 2px 0 0; }
.wa__close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wa__close:hover { background: rgba(255,255,255,.28); }
.wa__opt { display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 12px 14px; border-radius: 12px; background: #F3F7F4; color: inherit; text-decoration: none; transition: background .2s, transform .2s; }
.wa__opt:hover, .wa__opt:focus-visible { background: #E2F6E8; transform: translateX(2px); }
.wa__opt:focus-visible { outline: 2px solid #25D366; outline-offset: 2px; }
.wa__opt > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.wa__opt strong { font-size: .98rem; }
.wa__opt small { font-size: .78rem; color: #4A5573; }
.wa__opt > svg { width: 22px; height: 22px; fill: #25D366; flex: none; }
.wa__av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-display); }
.wa__av--m { background: linear-gradient(145deg, #1F2A44, #2C3A5C); }
.wa__av--f { background: linear-gradient(145deg, #7A5C1E, #BFA070); }
.wa__note { margin: 12px 16px 14px; font-size: .78rem; color: #5B6584; text-align: center; max-width: none; }
@media (prefers-reduced-motion: reduce) { .wa__fab::before { animation: none; } .wa__panel { transition: none; } }

/* ============================================================
   SOCIAL ICONS IN THEIR ORIGINAL BRAND COLOURS
   ============================================================ */
.social-btn { color: #fff !important; border: 0 !important; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s; }
.social-btn:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 10px 22px -8px rgba(0,0,0,.6); }
.social-btn[data-social="facebook"]  { background: #1877F2 !important; }
.social-btn[data-social="instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-btn[data-social="linkedin"]  { background: #0A66C2 !important; }
.social-btn[data-social="youtube"]   { background: #FF0000 !important; }
.social-btn[data-social="tiktok"]    { background: #000 !important; }
.social-btn[data-social="tiktok"] svg { filter: drop-shadow(1.5px 1.5px 0 #FE2C55) drop-shadow(-1.5px -1.5px 0 #25F4EE); }
.social-btn[data-social="x"]         { background: #000 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.social-btn[data-social="whatsappChannel"] { background: #25D366 !important; }
.social-btn[data-social="pinterest"] { background: #E60023 !important; }
@media (min-width: 1024px) { .footer { padding-bottom: 96px; } }

/* Social icons v2: official brand marks (Simple Icons), solid brand colours, perfectly centred */
.social-btn, .reach .social-btn {
  display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important;
  width: 46px; height: 46px; border-radius: 50%; color: #fff !important; border: 0 !important; opacity: 1 !important; filter: none;
  box-shadow: 0 6px 16px -6px rgba(14, 21, 38,.45);
}
.social-btn svg { width: 22px !important; height: 22px !important; margin: 0 !important; flex: none; display: block; }
.social-btn:hover, .reach .social-btn:hover { transform: translateY(-3px) scale(1.06); filter: saturate(1.15); color: #fff !important; box-shadow: 0 12px 24px -8px rgba(14, 21, 38,.55); }
.social-btn[data-social="instagram"] { background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%) !important; }
.social-btn[data-social="tiktok"] svg { filter: drop-shadow(1.2px 1.2px 0 #FE2C55) drop-shadow(-1.2px -1.2px 0 #25F4EE); }
.social-btn[data-social="x"] { box-shadow: 0 6px 16px -6px rgba(14, 21, 38,.45); }
.footer .social-btn[data-social="x"], .footer .social-btn[data-social="tiktok"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 6px 16px -6px rgba(0,0,0,.6); }

/* WhatsApp button: always a vivid circle */
.wa__fab { width: 62px; height: 62px; padding: 0 !important; justify-content: center; border-radius: 50%; background: #25D366; }
.wa__fab svg { width: 34px; height: 34px; }
.wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa__fab:hover { background: #20bd5a; transform: scale(1.07); }

/* Step 9 — course card CTAs, home FAQ */
.card__ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.card__ctas .card__link { margin-top: 0; }
.home-faq { background: var(--bg); }
.home-faq__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .home-faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; } .home-faq .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.home-faq .faq { max-width: none; margin: 0; }
.trustlist > li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.trustlist > li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
@media (prefers-reduced-motion: reduce) { .trustlist > li:hover { transform: none; } }
.trustlist { gap: 16px; }
.trustlist > li { padding: 28px 26px 28px 88px; border-top: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; }
.trustlist > li .trustlist__mark { left: 28px; top: 28px; }
@media (min-width: 900px) { .trustlist { grid-template-columns: repeat(3, 1fr); } .trustlist > li { padding: 88px 26px 30px; } .trustlist > li .trustlist__mark { top: 28px; } }

/* Trust cards v2 (Step 9b): icon badge on top, clear padding, equal heights. Higher specificity than pages.css. */
ul.trustlist { display: grid; gap: 18px; }
ul.trustlist > li {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 30px !important;
  background: var(--surface); border: 1px solid var(--border) !important; border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(20,29,51,.35);
}
ul.trustlist > li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--emerald-700), var(--gold-400)); opacity: 0; transition: opacity .3s; }
ul.trustlist > li:hover::before { opacity: 1; }
ul.trustlist .trustlist__mark {
  position: static !important; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 16px;
  background: linear-gradient(145deg, var(--emerald-700), #141D33); color: var(--gold-300); box-shadow: 0 8px 18px -8px rgba(31,42,68,.7);
}
ul.trustlist .trustlist__mark svg { width: 28px; height: 28px; }
ul.trustlist h3 { margin: 0; font-size: 1.18rem; }
ul.trustlist p { margin: 0; }
@media (min-width: 900px) { ul.trustlist { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* WhatsApp buttons: solid brand green, white text, everywhere */
.btn--whatsapp, .theme-dark .btn--whatsapp, .ready .btn--whatsapp { background: #25D366 !important; color: #fff !important; box-shadow: 0 10px 24px -10px rgba(37,211,102,.7) !important; }
.btn--whatsapp:hover, .theme-dark .btn--whatsapp:hover { background: #1ebe5b !important; }
.btn--whatsapp svg { fill: #fff; }

/* ============================================================
   SCROLL-SCRUBBED HERO FILM (assets/js/hero-scrub.js). --hp: 0 → 1 across the runway.
   ============================================================ */
.hero.is-film { height: 280vh; padding: 0; min-height: 0; display: block; overflow: visible; }
.hero.is-film .hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; align-items: center; padding: calc(var(--header-h) + 24px) 0 56px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero.is-film-ready .hero__canvas { opacity: 1; }
.hero.is-film .lattice, .hero.is-film .hero__rosette, .hero.is-film .hero__art { display: none; }
.hero.is-film .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero.is-film .hero__copy { max-width: 600px; opacity: calc(1 - max(var(--hp, 0) - .8, 0) * 4); translate: 0 calc(max(var(--hp, 0) - .8, 0) * -120px); }
.hero.is-film .hero__bg::after {
  background: linear-gradient(90deg, rgba(14,21,38,.9) 0%, rgba(14,21,38,.6) 34%, rgba(14,21,38,0) 62%),
              linear-gradient(0deg, rgba(14,21,38,.85) 0%, rgba(14,21,38,0) 26%);
}
/* scroll hint */
.hero.is-film .hero__stage::after {
  content: "Scroll"; position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding-top: 26px;
  font: 600 .7rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-300);
  background: linear-gradient(var(--gold-400), var(--gold-400)) 50% 0 / 1.5px 18px no-repeat;
  opacity: calc(1 - var(--hp, 0) * 8); animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 50% { background-position: 50% 6px; } }
@media (max-width: 1023px) {
  .hero.is-film { height: 220vh; }
  .hero.is-film .hero__bg::after { background: linear-gradient(0deg, rgba(14,21,38,.95) 0%, rgba(14,21,38,.7) 45%, rgba(14,21,38,.25) 100%); }
  .hero.is-film .hero__stage { align-items: end; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-film { height: auto; }
  .hero.is-film .hero__stage { position: relative; height: auto; min-height: 100svh; }
  .hero.is-film .hero__stage::after { display: none; }
}
/* film hero: fit short screens */
.hero.is-film .hero__title { font-size: clamp(2.4rem, 1.1rem + 5.6vh, 4.6rem); margin-bottom: 18px; }
.hero.is-film .hero__lead { margin-bottom: 24px; }
.hero.is-film .hero__actions { margin-bottom: 22px; }
.hero.is-film .hero__bismillah { margin-bottom: 14px; }
@media (max-width: 1023px) {
  .hero.is-film .hero__bg::after { background: linear-gradient(0deg, rgba(14,21,38,.97) 0%, rgba(14,21,38,.88) 48%, rgba(14,21,38,.1) 78%, rgba(14,21,38,.35) 100%); }
  .hero.is-film .hero__eyebrow, .hero.is-film .hero__points { display: none; }
  .hero.is-film .hero__title { font-size: clamp(1.7rem, 7.4vw, 2.4rem); margin-bottom: 12px; }
  .hero.is-film .hero__lead { font-size: .95rem; line-height: 1.55; margin-bottom: 18px; }
  .hero.is-film .hero__bismillah { margin-bottom: 10px; font-size: 1rem; }
  .hero.is-film .hero__stage { padding-bottom: 28px; }
}
.wa__form { display: block; margin: 12px 12px 0; padding: 11px 14px; border-radius: 12px; border: 1px dashed rgba(31,42,68,.4); color: #1F2A44; font-size: .86rem; text-decoration: none; text-align: center; }
.wa__form:hover, .wa__form:focus-visible { background: #F3F7F4; border-style: solid; }
.wa__form[hidden] { display: none; }

/* Academy portal section (links to the academy's web app) */
.portal { position: relative; background: radial-gradient(70% 80% at 85% 20%, rgba(216,190,138,.12), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.portal__grid { display: grid; gap: 40px; align-items: center; }
.portal .section-head { margin-bottom: 0; }
.portal__actions { margin-top: 28px; }
.portal__cards { display: grid; gap: 16px; }
.portal__card { padding: 24px 24px 26px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(216,190,138,.22); transition: transform .3s var(--ease-out), border-color .3s, background .3s; }
.portal__card:hover { transform: translateY(-4px); border-color: var(--gold-400); background: rgba(255,255,255,.07); }
.portal__card h3 { margin: 14px 0 6px; font-size: 1.15rem; color: var(--ivory-200); }
.portal__card p { color: var(--mist); font-size: .95rem; }
.portal__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(145deg, var(--emerald-700), #141D33); color: var(--gold-300); box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.portal__ic svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .portal__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; } }
@media (prefers-reduced-motion: reduce) { .portal__card:hover { transform: none; } }
.portal-note { margin: 28px 0; padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.portal-note__k { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-700); margin-bottom: 6px; }
.portal-note p { margin-bottom: 12px; color: var(--text-soft); }


/* ============================================================
   PARENT PORTAL PAGE (portal.html)
   ============================================================ */
.portal__cards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .portal__cards { grid-template-columns: 1fr 1fr; } }
.pb-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .pb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pb-grid { grid-template-columns: repeat(4, 1fr); } }
.pb { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px 26px; box-shadow: 0 10px 30px -18px rgba(20,29,51,.35);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s; }
.pb:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: 0 18px 36px -20px rgba(20,29,51,.45); }
.pb__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 14px;
  background: linear-gradient(145deg, var(--emerald-700), #141D33); color: var(--gold-300); box-shadow: 0 8px 18px -8px rgba(31,42,68,.7); }
.pb__ic svg { width: 26px; height: 26px; }
.pb h3 { font-size: 1.08rem; margin: 0 0 6px; }
.pb p { color: var(--text-soft); font-size: .95rem; }

.portal-live { background: var(--bg-alt); }
.portal-live__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .portal-live__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; } }
.how-steps { counter-reset: s; list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 12px; }
.how-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.how-steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--emerald-700); color: var(--ivory-50); }
.portal-live__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* the live app, shown inside a phone frame */
.phone { position: relative; width: min(100%, 400px); margin-inline: auto; padding: 14px; border-radius: 44px;
  background: linear-gradient(160deg, #2C3A5C, #0E1526); box-shadow: 0 40px 80px -30px rgba(14,21,38,.8), inset 0 0 0 2px rgba(216,190,138,.35); }
.phone__notch { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 110px; height: 22px; border-radius: 0 0 14px 14px; background: #0E1526; z-index: 2; }
.phone iframe { display: block; width: 100%; height: min(760px, 78vh); border: 0; border-radius: 32px; background: #F7F1E3; }
@media (max-width: 480px) { .phone { padding: 8px; border-radius: 30px; } .phone iframe { border-radius: 24px; height: 80vh; } .phone__notch { display: none; } }
@media (prefers-reduced-motion: reduce) { .pb:hover { transform: none; } }

/* header nav: 7 links + CTA must stay on one line on small laptops */
.nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1239px) {
  .nav ul { gap: 14px; }
  .nav a { font-size: .86rem; }
  .header__inner { gap: 18px; }
  .brand__name { font-size: .95rem; }
  .header__cta { padding-inline: 14px; }
}


/* ============================================================
   MOBILE TIDY (Step 10): no bottom bar (floating WhatsApp only), compact footer, calmer spacing
   ============================================================ */
.sticky-bar { display: none !important; }
:root { --sticky-bar-h: 0px; }
@media (max-width: 1023px) { .wa { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); } }

@media (max-width: 719px) {
  :root { --section-y: 60px; }
  .section-head { margin-bottom: 28px; }

  .footer { padding-top: 44px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer__brand { grid-column: 1 / -1; gap: 12px; }
  .footer__brand .small { font-size: .88rem; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__h { margin-bottom: 8px; font-size: .72rem; }
  .footer__col ul { display: grid; gap: 2px; }
  .footer__col a { min-height: 34px; font-size: .92rem; }
  .footer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .footer__contact li { margin-bottom: 0; }
  .footer__contact li:last-child { grid-column: 1 / -1; }
  .footer__contact a { min-height: 30px; word-break: break-word; }
  .footer__social { margin-top: 24px; padding-top: 20px; gap: 10px; }
  .footer .social-btn { width: 40px; height: 40px; }
  .footer .social-btn svg { width: 19px !important; height: 19px !important; }
  .footer__bottom { margin-top: 20px; padding-top: 16px; font-size: .8rem; }
}
@media (max-width: 719px) {
  .footer__social { gap: 8px; flex-wrap: nowrap; }
  .footer .social-btn { width: 36px; height: 36px; flex: none; }
  .footer .social-btn svg { width: 17px !important; height: 17px !important; }
  .why__art { max-width: 300px; }
}
@media (max-width: 719px) {
  /* 8 icons share one row and shrink on very small phones instead of overflowing */
  .footer .social-btn { flex: 1 1 0; width: auto; height: auto; max-width: 36px; aspect-ratio: 1; min-width: 0; }
}


/* Contact page: apply through the app */
.apply__ways { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 26px; }
.phone--apply { margin-inline: 0; }
@media (max-width: 719px) { .apply__ways .btn { flex: 1 1 100%; } .phone--apply { margin-inline: auto; } }

/* WhatsApp: smaller button and a compact popup on phones */
@media (max-width: 719px) {
  .wa { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .wa__fab { width: 50px !important; height: 50px !important; }
  .wa__fab svg { width: 27px; height: 27px; }
  .wa__fab::before { inset: -4px; }
  .wa__panel { width: min(290px, calc(100vw - 24px)); border-radius: 16px; }
  .wa__head { padding: 12px 12px 12px 14px; gap: 10px; }
  .wa__head > svg { width: 24px; height: 24px; }
  .wa__title { font-size: .92rem; }
  .wa__sub { font-size: .74rem; }
  .wa__close { width: 28px; height: 28px; font-size: 1.2rem; }
  .wa__opt { margin: 8px 10px 0; padding: 9px 11px; gap: 10px; }
  .wa__av { width: 32px; height: 32px; font-size: .85rem; }
  .wa__opt strong { font-size: .88rem; }
  .wa__opt small { font-size: .72rem; }
  .wa__opt > svg { width: 19px; height: 19px; }
  .wa__form { margin: 8px 10px 0; padding: 9px 12px; font-size: .8rem; }
  .wa__note { margin: 8px 12px 10px; font-size: .72rem; }
}

/* WhatsApp popup v3: tighter on phones */
.wa__form[hidden] { display: block; }
@media (max-width: 719px) {
  .wa__panel { width: min(264px, calc(100vw - 24px)); }
  .wa__head { padding: 10px 10px 10px 12px; }
  .wa__head > svg { width: 22px; height: 22px; }
  .wa__title { font-size: .88rem; }
  .wa__sub { font-size: .7rem; margin-top: 0; }
  .wa__opt { margin: 7px 8px 0; padding: 8px 10px; gap: 9px; border-radius: 10px; }
  .wa__av { width: 28px; height: 28px; font-size: .78rem; }
  .wa__opt strong { font-size: .84rem; line-height: 1.2; }
  .wa__opt small { font-size: .7rem; white-space: nowrap; }
  .wa__opt > svg { width: 17px; height: 17px; }
  .wa__form { margin: 7px 8px 8px; padding: 8px 10px; font-size: .76rem; border-radius: 10px; }
  .wa__note { display: none; }
}
