/* ============================================================================
   PharmaFacts Academy — Home v8 "Clinic Panorama"
   Layered on studio-v6 tokens (--pf-blue #2457a6 / --pf-green #17a567 / Schibsted Grotesk).
   Signature: a centred, cinematic hero with a curved perspective gallery of real
   pharmacy scenes, then editorial marketing acts. No invented numbers or reviews.
   Prefix: .ph-  (isolated from the retired .pf-* / studio-v6 home layers)
   ============================================================================ */

@font-face {
  font-family: "Schibsted Grotesk Local";
  src: url("../fonts/SchibstedGrotesk-Variable.536501a5d76d.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic Local";
  src: url("../fonts/NotoNaskhArabic-Variable.3a7ec93ba230.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

.ph {
  --edge: clamp(20px, 5vw, 64px);
  --band: clamp(72px, 9vw, 132px);
  --ink-soft: color-mix(in srgb, var(--pf-ink) 66%, #fff);
  --glow-blue: color-mix(in srgb, var(--pf-blue) 22%, transparent);
  --glow-green: color-mix(in srgb, var(--pf-green) 20%, transparent);
  background: var(--pf-white);
  font-family: "Schibsted Grotesk Local", var(--font-ui);
}
.ph h1, .ph h2, .ph h3 { text-wrap: balance; }
.ph p { text-wrap: pretty; }
.ph em { color: var(--pf-green); font-style: normal; }
.ph .ph-wrap { width: min(calc(100% - 2 * var(--edge)), 1200px); margin-inline: auto; }

/* Buttons: pill radius (matches the reference the owner wants). studio-v6 pins
   .btn transform to none!important, so motion here is colour/shadow only. */
.ph .btn { border-radius: 999px; }
.ph .btn--lg { min-height: 56px; padding: 16px 32px; font-size: 1rem; border-radius: var(--button-radius); }
.ph .btn svg { width: 18px; height: 18px; }
/* Clean flat pills — no hard 3D lip, no heavy outline. */
.ph .btn--primary { box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--pf-blue) 62%, transparent); }
.ph .btn--primary:hover { background: var(--pf-blue-dark); box-shadow: 0 18px 34px -12px color-mix(in srgb, var(--pf-blue) 66%, transparent); }
.ph .btn--secondary { background: #fff; border-color: var(--pf-line); box-shadow: none; }
.ph .btn--secondary:hover { border-color: var(--pf-blue); color: var(--pf-blue); }
.ph .btn--light { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .3); }

/* --- Homepage floating nav: white pill. The blue/green logo belongs on white
   (DESIGN.md), so no dark bar — keep the reference pill shape, recoloured white. --- */
.site-nav__inner {
  border-radius: 999px;
  padding: 8px 10px 8px 22px;
  box-shadow: 0 16px 40px -20px rgba(16, 35, 63, .3);
}
.site-nav .btn--nav { border-radius: var(--button-radius); box-shadow: 0 12px 24px -13px rgba(216, 154, 28, .7); }
.site-nav .btn--nav:hover { box-shadow: 0 16px 30px -13px rgba(216, 154, 28, .75); }
.mobile-nav__actions .btn { border-radius: var(--button-radius); }
.mobile-nav__actions .btn--primary { box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--pf-blue) 55%, transparent); }
.mobile-nav__actions .btn--secondary { box-shadow: none; border-color: var(--pf-line); }
.page-home .site-nav__mark, .page-home .site-nav__word { filter: drop-shadow(0 2px 3px rgba(16, 35, 63, .16)) !important; }

/* --- Hero headline: line-by-line rise + focus-in (calm, once, not a typewriter) --- */
.js-motion .ph-hero h1 .ln { opacity: 0; }
.js-motion .ph-hero.is-loaded h1 .ln { opacity: 1; animation: phLineIn .9s var(--ease) both; }
.js-motion .ph-hero.is-loaded h1 .ln:nth-child(1) { animation-delay: .10s; }
.js-motion .ph-hero.is-loaded h1 .ln:nth-child(2) { animation-delay: .24s; }
.js-motion .ph-hero.is-loaded h1 .ln:nth-child(3) { animation-delay: .38s; }
@keyframes phLineIn { from { opacity: 0; transform: translateY(32px); filter: blur(9px); } }
@media (prefers-reduced-motion: reduce) {
  .js-motion .ph-hero h1 .ln { opacity: 1 !important; animation: none !important; }
}

/* Shared arrow-link */
.ph-link { display: inline-flex; align-items: center; gap: 8px; color: var(--pf-blue); font-weight: 650; text-decoration: none; }
.ph-link svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.ph-link:hover svg { transform: translateX(4px); }

/* ============================================================ 1. HERO ===== */
.ph-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(132px, 15vh, 184px);
  background:
    radial-gradient(120% 78% at 50% -8%, var(--glow-blue), transparent 46%),
    radial-gradient(80% 60% at 50% 118%, var(--glow-green), transparent 60%),
    linear-gradient(180deg, var(--pf-paper), var(--pf-white) 42%);
  overflow: hidden;
}
.ph-hero__aura {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 22%, color-mix(in srgb, var(--pf-blue) 10%, transparent), transparent 70%),
    radial-gradient(34% 28% at 84% 30%, color-mix(in srgb, var(--pf-green) 9%, transparent), transparent 70%);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.ph-hero__stage { position: relative; text-align: center; }

.ph-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--pf-line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  color: var(--pf-ink-2); font-size: .8rem; font-weight: 550; letter-spacing: -.01em;
}
.ph-badge__dot { position: relative; display: grid; place-items: center; width: 20px; height: 20px; }
.ph-badge__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pf-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pf-green) 20%, transparent); }
.ph-badge b { color: var(--pf-ink); font-weight: 650; }
.ph-badge__pill { padding: 4px 10px; border-radius: 999px; background: var(--pf-amber-soft); color: var(--pf-amber-ink); font-size: .72rem; font-weight: 700; }

.ph-hero h1 {
  max-width: none; margin: clamp(18px, 3vw, 28px) auto 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -.04em; font-weight: 550;
}
.ph-hero h1 .ln { display: block; }
@media (min-width: 620px) { .ph-hero h1 .ln { white-space: nowrap; } }
.ph-hero__lede {
  max-width: 60ch; margin: clamp(18px, 2.4vw, 26px) auto 0;
  color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55;
}
.ph-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(24px, 3vw, 34px); }

/* --- Curved perspective gallery (the signature) --- */
.ph-wall {
  position: relative;
  margin-top: clamp(28px, 4.5vw, 54px);
  padding-bottom: clamp(14px, 3vw, 34px);
  perspective: 1500px;
  perspective-origin: 50% 32%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ph-wall__track {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(36px, 5.4vw, 80px);
  transform-style: preserve-3d;
  transform: rotateX(8deg) translateZ(-10px);
  will-change: transform;
}
.ph-wall__panel {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(150px, 16vw, 250px);
  aspect-ratio: 3 / 4;
  border-radius: clamp(16px, 1.9vw, 24px);
  overflow: hidden;
  background: var(--pf-ink);
  transform: rotateY(var(--ry)) translateZ(var(--tz)) translateY(var(--ty)) scale(var(--s, 1));
  box-shadow: 0 26px 60px -30px rgba(16, 35, 63, .5);
}
.ph-wall__panel img { width: 100%; height: 100%; object-fit: cover; }
.ph-wall__panel img.ph-wall__inclusive { object-position: 62% center; }
.ph-wall__panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgba(16, 35, 63, .22));
}
.ph-wall__panel--mid { z-index: 2; }
.ph-wall__panel--hero { z-index: 3; }
.ph-wall__base {
  position: absolute; left: 50%; bottom: 6px; z-index: 4; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid var(--pf-line);
  box-shadow: var(--shadow-small); backdrop-filter: blur(10px);
  color: var(--pf-ink); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.ph-wall__base svg { width: 16px; height: 16px; color: var(--pf-green); }

/* ============================================================ 2. PROOF ==== */
.ph-proof { background: var(--pf-ink); }
.ph-proof__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.ph-proof__item { padding: clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 30px); }
.ph-proof__item + .ph-proof__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.ph-proof__k { display: block; margin-bottom: 10px; color: var(--pf-green-mint); font-family: var(--font-brand); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.ph-proof__item p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 1.55; }
.ph-proof__item b { color: #fff; font-weight: 650; }

/* ============================================================ 3. GAP ====== */
.ph-gap { padding-block: var(--band); background: var(--pf-white); }
.ph-gap__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.ph-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--pf-green-dark); font-size: .78rem; font-weight: 650; letter-spacing: .02em; }
.ph-kicker::before { content: ""; width: 26px; height: 2px; background: var(--pf-green); }
.ph-kicker--light { color: var(--pf-green-mint); }
.ph-kicker--light::before { background: var(--pf-green-mint); }
.ph-h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; }
.ph-gap__lede { margin: 24px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
.ph-gap__media { position: relative; }
.ph-gap__media figure { margin: 0; border-radius: var(--r-4); overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 40px 80px -40px rgba(16,35,63,.5); }
.ph-gap__media img { width: 100%; height: 100%; object-fit: cover; }
.ph-gap__tag {
  position: absolute; left: -14px; bottom: 26px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  max-width: 260px; padding: 14px 18px; border-radius: var(--r-3);
  background: #fff; box-shadow: 0 20px 50px -22px rgba(16,35,63,.4); border: 1px solid var(--pf-line);
}
.ph-gap__tag i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--pf-green-soft); color: var(--pf-green-dark); }
.ph-gap__tag i svg { width: 18px; height: 18px; }
.ph-gap__tag b { display: block; font-size: .9rem; }
.ph-gap__tag span { display: block; color: var(--pf-muted); font-size: .78rem; line-height: 1.4; }

.ph-substance { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 68px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--pf-line-strong); }
.ph-substance__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 40px); list-style: none; margin: 0; padding: 0; }
.ph-substance__list li { min-width: 0; }
.ph-substance__list h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 1.12rem; letter-spacing: -.02em; }
.ph-substance__list h3 svg { width: 20px; height: 20px; color: var(--pf-green); flex: none; }
.ph-substance__list p { margin: 0; font-size: .9rem; line-height: 1.55; }

/* ============================================================ 4. METHOD === */
.ph-method { padding-block: var(--band); background: var(--pf-blue-soft); }
.ph-method__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.ph-method__head p { margin: 20px 0 0; max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; }
.ph-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); position: relative; }
.ph-flow__step { position: relative; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-4); background: #fff; border: 1px solid var(--pf-line); }
.ph-flow__step--accent { background: var(--pf-ink); border-color: var(--pf-ink); }
.ph-flow__n { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-brand); }
.ph-flow__n b { font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; color: var(--pf-blue); line-height: 1; }
.ph-flow__n span { color: var(--pf-muted); font-size: .82rem; font-weight: 600; }
.ph-flow__step h3 { margin: 20px 0 10px; font-size: 1.55rem; letter-spacing: -.03em; }
.ph-flow__step p { margin: 0; font-size: .96rem; line-height: 1.55; }
.ph-flow__step--accent .ph-flow__n b { color: var(--pf-green-mint); }
.ph-flow__step--accent .ph-flow__n span { color: rgba(255,255,255,.6); }
.ph-flow__step--accent h3 { color: #fff; }
.ph-flow__step--accent p { color: rgba(255,255,255,.72); }
.ph-flow__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--pf-line); color: var(--pf-blue); transform: translate(-50%, -50%); }
.ph-flow__arrow svg { width: 16px; height: 16px; }

/* ============================================================ 5. COURSES == */
.ph-courses { padding-block: var(--band); background: var(--pf-white); }
.ph-courses__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.ph-courses__head h2 { max-width: 20ch; }
.ph-courses__grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.ph-feature { display: block; text-decoration: none; color: inherit; }
.ph-feature__media { position: relative; border-radius: var(--r-4); overflow: hidden; aspect-ratio: 16/11; background: var(--pf-ink); box-shadow: 0 30px 60px -34px rgba(16,35,63,.5); }
.ph-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.ph-feature:hover .ph-feature__media img { transform: scale(1.04); }
.ph-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(16,35,63,.42)); }
.ph-feature__flag { position: absolute; z-index: 1; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--pf-amber); color: var(--pf-ink); font-size: .74rem; font-weight: 700; }
.ph-feature__body { padding-top: 24px; }
.ph-feature__cat { color: var(--pf-blue); font-size: .78rem; font-weight: 650; }
.ph-feature__body h3 { margin: 10px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.35rem); letter-spacing: -.03em; }
.ph-feature__body > p { max-width: 60ch; margin: 0; color: var(--ink-soft); }
.ph-feature__meta { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pf-line); }
.ph-feature__price { font-family: var(--font-brand); font-size: 1.5rem; font-weight: 650; letter-spacing: -.03em; }
.ph-feature__price small { font-size: .68rem; font-weight: 600; color: var(--pf-muted); }
.ph-feature__facts { display: flex; gap: 18px; color: var(--pf-muted); font-size: .82rem; }
.ph-feature__facts span { display: inline-flex; align-items: center; gap: 6px; }
.ph-feature__facts svg { width: 16px; height: 16px; color: var(--pf-blue); }
.ph-feature__go { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 12px 22px; border-radius: 999px; background: var(--pf-blue); color: #fff; font-weight: 650; font-size: .85rem; box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--pf-blue) 55%, transparent); transition: background 180ms var(--ease), box-shadow 180ms var(--ease); }
.ph-feature__go svg { width: 17px; height: 17px; transition: transform 200ms var(--ease); }
.ph-feature:hover .ph-feature__go { background: var(--pf-blue-dark); box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--pf-blue) 62%, transparent); }
.ph-feature:hover .ph-feature__go svg { transform: translateX(3px); }

/* Secondary course cards — real thumbnailed cards, not a text index */
.ph-cc-list { display: grid; gap: 14px; }
.ph-cc { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--pf-line); border-radius: var(--r-3); background: #fff; text-decoration: none; color: inherit; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease); }
.ph-cc:hover { border-color: var(--pf-blue); box-shadow: var(--shadow-small); transform: translateY(-2px); }
.ph-cc__thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-2); overflow: hidden; background: var(--pf-ink); }
.ph-cc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-cc__cat { color: var(--pf-blue); font-size: .72rem; font-weight: 650; }
.ph-cc h3 { margin: 4px 0 8px; font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.2; }
.ph-cc__row { display: flex; align-items: center; gap: 10px; }
.ph-cc__price { font-family: var(--font-brand); font-weight: 650; color: var(--pf-ink); font-size: .98rem; }
.ph-cc__row small { display: inline-flex; align-items: center; gap: 5px; color: var(--pf-muted); font-size: .74rem; }
.ph-cc__row small::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--pf-line-strong); }
.ph-index__cta { margin-top: 18px; padding: 22px; border-radius: var(--r-3); background: var(--pf-blue-soft); border: 1px solid color-mix(in srgb, var(--pf-blue) 18%, #fff); }
.ph-index__cta b { display: block; font-size: 1.02rem; }
.ph-index__cta p { margin: 8px 0 14px; color: var(--pf-ink-2); font-size: .88rem; }

/* ============================================================ 6. SUPPORT == */
.ph-support { position: relative; padding-block: var(--band); background: linear-gradient(158deg, var(--pf-blue-dark) 0%, #12325f 100%); color: #fff; overflow: hidden; }
.ph-support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.ph-support h2 { color: #fff; }
.ph-support h2 em { color: var(--pf-green-mint); }
.ph-support__lede { margin: 24px 0 0; max-width: 56ch; color: rgba(255,255,255,.72); font-size: 1.08rem; line-height: 1.6; }
.ph-support__points { list-style: none; margin: clamp(28px,3vw,40px) 0 0; padding: 0; }
.ph-support__points li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); }
.ph-support__points li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.ph-support__points i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--pf-green-mint); }
.ph-support__points i svg { width: 20px; height: 20px; }
.ph-support__points b { display: block; font-size: 1.02rem; }
.ph-support__points span { color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.5; }
.ph-support__media { position: relative; border-radius: var(--r-4); overflow: hidden; aspect-ratio: 4/5; }
.ph-support__media img { width: 100%; height: 100%; object-fit: cover; }
.ph-support__media img.ph-support__inclusive { object-position: 62% center; }
.ph-support__quote {
  position: absolute; inset: auto 20px 20px; padding: 16px 18px; border-radius: var(--r-3);
  background: rgba(255,255,255,.94); color: var(--pf-ink); backdrop-filter: blur(6px);
}
.ph-support__quote b { display: block; font-size: 1rem; }
.ph-support__quote span { color: var(--pf-muted); font-size: .82rem; }

/* ============================================================ 7. EXPERIENCE */
/* One focused instructional-design story — deliberately not a card grid. */
.ph-exp { padding-block: var(--band); background: var(--pf-green-soft); }
.ph-exp__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(40px, 6vw, 92px); align-items: center; }
.ph-exp__lead h2 { margin-top: 6px; }
.ph-exp__statement { margin: 24px 0 0; max-width: 46ch; color: var(--pf-ink-2); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; }
.ph-exp__checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ph-exp__checks li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; color: var(--pf-ink); font-weight: 550; }
.ph-exp__checks svg { width: 20px; height: 20px; color: var(--pf-green-dark); }
.ph-exp__media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-4); box-shadow: 0 22px 44px -30px rgba(16, 35, 63, .35); }
.ph-exp__media img { width: 100%; height: 100%; object-fit: cover; }
.ph-exp__media figcaption { position: absolute; inset: auto 18px 18px; padding: 14px 16px; border-radius: var(--r-3); background: rgba(255,255,255,.94); color: var(--pf-ink-2); font-size: .86rem; line-height: 1.45; box-shadow: var(--shadow-small); }

/* ============================================================ 8. VOICES === */
.ph-voices { padding-block: var(--band); background: var(--pf-white); }
.ph-voices__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.ph-voices__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2vw, 28px); }
.ph-quote { display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 34px); border-radius: var(--r-4); background: var(--pf-paper); border: 1px solid var(--pf-line); }
.ph-quote__mark { font-family: var(--font-brand); font-size: 3rem; line-height: .6; color: var(--pf-green); }
.ph-quote blockquote { margin: 18px 0 24px; color: var(--pf-ink-2); font-size: 1.08rem; line-height: 1.55; }
.ph-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ph-quote figcaption span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pf-blue-soft); color: var(--pf-blue); font-weight: 700; }
.ph-quote figcaption b { display: block; font-size: .92rem; }
.ph-quote figcaption small { color: var(--pf-muted); }

/* ============================================================ 9. FAQ ====== */
.ph-faq { padding-block: var(--band); background: var(--pf-paper); }
.ph-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 5vw, 90px); align-items: start; }
.ph-faq__aside p { margin: 20px 0 26px; color: var(--ink-soft); font-size: 1.05rem; max-width: 42ch; }
.ph-faq__list { border-top: 2px solid var(--pf-ink); }
.ph-faq__item { border-bottom: 1px solid var(--pf-line-strong); }
.ph-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 18px 0; list-style: none; cursor: pointer; font-family: var(--font-brand); font-size: 1.08rem; font-weight: 600; letter-spacing: -.02em; }
.ph-faq__item summary::-webkit-details-marker { display: none; }
.ph-faq__item summary i { position: relative; flex: none; width: 22px; height: 22px; }
.ph-faq__item summary i::before, .ph-faq__item summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--pf-blue); border-radius: 2px; }
.ph-faq__item summary i::after { transform: rotate(90deg); transition: transform 220ms var(--ease); }
.ph-faq__item[open] summary i::after { transform: rotate(0); }
.ph-faq__body { overflow: hidden; }
.ph-faq__body p { margin: 0 0 22px; max-width: 66ch; color: var(--pf-muted); line-height: 1.6; }

/* ============================================================ 10. CLOSE === */
.ph-close { position: relative; padding-block: clamp(76px, 10vw, 130px); text-align: center; overflow: hidden;
  background: radial-gradient(88% 120% at 50% -12%, #16915d, transparent 58%), linear-gradient(180deg, var(--pf-green-dark) 0%, #0a5230 100%);
  color: #fff; }
.ph-close__aura { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(40% 60% at 82% 110%, rgba(255,255,255,.14), transparent 60%); }
.ph-close__inner { position: relative; z-index: 1; }
.ph-close__check { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 26px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.06); }
.ph-close__check svg { width: 28px; height: 28px; }
.ph-close h2 { margin: 0 auto; max-width: 16ch; color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.04em; }
.ph-close h2 em { color: #fff; opacity: .78; }
.ph-close p { margin: 22px auto 34px; max-width: 52ch; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.ph-close__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ph-close .btn--light { color: var(--pf-green-dark); }

/* Arabic uses a more refined reading face and mirrors directional details. */
.ph[dir="rtl"] { font-family: "Noto Naskh Arabic Local", "Noto Sans Arabic", sans-serif; }
.ph[dir="rtl"] h1,
.ph[dir="rtl"] h2,
.ph[dir="rtl"] h3,
.ph[dir="rtl"] .ph-proof__k,
.ph[dir="rtl"] .ph-flow__n,
.ph[dir="rtl"] .ph-feature__price,
.ph[dir="rtl"] .ph-cc__price,
.ph[dir="rtl"] .ph-faq__item summary { font-family: inherit; letter-spacing: 0; }
.ph[dir="rtl"] .ph-proof__item + .ph-proof__item { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .14); }
.ph[dir="rtl"] .ph-gap__tag { left: auto; right: -14px; }
.ph[dir="rtl"] .ph-feature__flag { left: auto; right: 16px; }
.ph[dir="rtl"] .ph-feature__go { margin-left: 0; margin-right: auto; }
.ph[dir="rtl"] .ph-link svg,
.ph[dir="rtl"] .btn svg,
.ph[dir="rtl"] .ph-flow__arrow svg,
.ph[dir="rtl"] .ph-feature__go svg { transform: scaleX(-1); }
.ph[dir="rtl"] .ph-link:hover svg,
.ph[dir="rtl"] .ph-feature:hover .ph-feature__go svg { transform: scaleX(-1) translateX(4px); }

/* ============================================================ MOTION ======
   Reveal on scroll, varied by role: text blocks rise + focus in, media scales
   in, a couple of surfaces wipe. Each fires when it enters view. */
@keyframes phRise  { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
@keyframes phScale { from { opacity: 0; transform: scale(.93);        filter: blur(5px); } }
@keyframes phWipe  { from { opacity: 0; clip-path: inset(0 0 0 20%); transform: translateX(26px); }
                     to   { clip-path: inset(0 0 0 0); } }
@keyframes phPanel { from { opacity: 0; transform: translateY(52px) rotateX(16deg) scale(.9); } }

.js-motion .ph-reveal { opacity: 0; }
.js-motion .ph-reveal.is-in { opacity: 1; animation: phRise .9s var(--ease) both; animation-delay: var(--rd, 0s); }
.js-motion .ph-reveal.rv-scale.is-in { animation: phScale 1s var(--ease) both; animation-delay: var(--rd, 0s); }
.js-motion .ph-reveal.rv-wipe.is-in  { animation: phWipe .95s var(--ease) both; animation-delay: var(--rd, 0s); }

/* Hero fold: badge/lede/cta fade up, gallery panels fan in. */
.js-motion .ph-hero .ph-anim { opacity: 0; }
.js-motion .ph-hero.is-loaded .ph-anim { opacity: 1; animation: phRise .85s var(--ease) both; animation-delay: var(--d, 0s); }
.js-motion .ph-hero .ph-wall__panel { opacity: 0; }
.js-motion .ph-hero.is-loaded .ph-wall__panel { opacity: 1; animation: phPanel .95s var(--ease) both; animation-delay: calc(.4s + var(--d, 0s)); }

@media (prefers-reduced-motion: reduce) {
  .js-motion .ph-reveal,
  .js-motion .ph-reveal.rv-scale,
  .js-motion .ph-reveal.rv-wipe,
  .js-motion .ph-hero .ph-anim,
  .js-motion .ph-hero .ph-wall__panel { opacity: 1 !important; animation: none !important; clip-path: none !important; filter: none !important; }
  .ph-feature__media img, .ph-feature:hover .ph-feature__media img { transition: none; }
}

/* ============================================================ RESPONSIVE = */
@media (max-width: 1080px) {
  .ph-gap__grid { grid-template-columns: 1fr; }
  .ph-gap__media { max-width: 560px; }
  .ph-substance__list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .ph-courses__grid { grid-template-columns: 1fr; }
  .ph-exp__grid { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
  .ph-exp__media { max-width: 560px; aspect-ratio: 16 / 12; }
  .ph-support__grid { grid-template-columns: 1fr; }
.ph-support__media { max-width: 520px; aspect-ratio: 16/11; }
  .ph-faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ph-proof__row { grid-template-columns: 1fr 1fr; }
  .ph-proof__item:nth-child(3) { border-left: 0; }
  .ph[dir="rtl"] .ph-proof__item:nth-child(3) { border-right: 0; }
  .ph-proof__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .ph-flow { grid-template-columns: 1fr; }
  .ph-flow__arrow { display: none; }
  .ph-wall__panel { width: clamp(116px, 30vw, 180px); }
  .ph-wall__track { gap: clamp(18px, 3.4vw, 40px); }
}
@media (max-width: 560px) {
  /* Shorter, tighter hero on phones. */
  .ph-hero { padding-top: 100px; }
  .ph-hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); line-height: 1.04; }
  .ph-hero__lede { margin-top: 14px; font-size: .98rem; line-height: 1.5; }
  .ph-hero__cta { margin-top: 20px; gap: 10px; }
  .ph-hero__cta .btn { min-height: 50px; }
  .ph-badge { padding: 6px 6px 6px 12px; font-size: .72rem; }
  .ph-wall { margin-top: 22px; }

  .ph-substance__list { grid-template-columns: 1fr; }
  .ph-exp__grid { grid-template-columns: 1fr; }
  .ph-proof__row { grid-template-columns: 1fr; }
  .ph-proof__item + .ph-proof__item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .ph[dir="rtl"] .ph-proof__item + .ph-proof__item { border-right: 0; }
  .ph-courses__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ph-feature__meta { flex-wrap: wrap; }
  .ph-feature__go { margin-left: 0; }
  .ph-cc { grid-template-columns: 76px 1fr; }
  /* Mobile gallery: drop 3D, scroll a clean strip — first image full, a peek of the second. */
  .ph-wall { perspective: none; -webkit-mask-image: none; mask-image: none; }
  .ph-wall__track { transform: none; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--edge) 14px; gap: 14px; -ms-overflow-style: none; scrollbar-width: none; }
  .ph-wall__track::-webkit-scrollbar { display: none; }
  .ph-wall__panel { transform: none !important; width: min(76vw, 320px); scroll-snap-align: start; box-shadow: 0 20px 44px -24px rgba(16, 35, 63, .5); }
  .ph-wall__base { display: none; }
}
