/* ==========================================================================
   programs.css — Programs page (البرامج)
   --------------------------------------------------------------------------
   Page-scoped styles. Reuses the global token system + shared components
   (nav, footer, buttons, glass, reveals). Each section has a distinct layout
   per the no-redundancy rule, in the Home page's calm/premium language.
   Background alternation: light ↔ deep so no two adjacent sections match.
   ========================================================================== */

/* ==========================================================================
   SECTION 1 — HERO (asymmetric split: copy + blended lifestyle image)
   ========================================================================== */
.pg-hero {
  position: relative;
  background:
    radial-gradient(65% 55% at 88% 4%, #ece3f1 0%, rgba(236, 227, 241, 0) 55%),
    radial-gradient(55% 60% at 4% 100%, #efeaf6 0%, rgba(239, 234, 246, 0) 55%),
    var(--grad-field);
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  overflow: hidden;
}
.pg-hero__blob--1 {
  inset-block-start: -130px;
  inset-inline-end: -90px;
  inline-size: 420px;
  block-size: 420px;
  background: radial-gradient(circle at 30% 30%, #e6d8ea, rgba(230, 216, 234, 0));
}
.pg-hero__blob--2 {
  inset-block-end: -160px;
  inset-inline-start: -120px;
  inline-size: 380px;
  block-size: 380px;
  background: radial-gradient(circle at 50% 50%, var(--color-accent-200), rgba(var(--color-accent-rgb), 0));
  opacity: 0.4;
}

/* Two-column: copy + media. Tablet keeps two columns; mobile stacks. */
.pg-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .pg-hero__inner { grid-template-columns: 1.02fr 0.98fr; }
}

/* --- Copy column --- */
.pg-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pg-hero__title {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-heading);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-inline-size: 18ch;
}
.pg-hero__lead {
  margin-block-start: var(--space-md);
  max-inline-size: 54ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.pg-hero__lead p {
  font-size: var(--fs-lead);
  color: var(--color-body);
  line-height: var(--lh-body);
}
.pg-hero__cta { margin-block-start: var(--space-lg); }
.pg-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-block-start: var(--space-lg);
  font-size: var(--fs-body);
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.pg-hero__hint:hover { color: var(--color-primary); }
.pg-hero__hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 30px;
  block-size: 30px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: #25d366;
  flex-shrink: 0;
}

/* --- Media column (image blended into the palette) --- */
.pg-hero__media {
  position: relative;
  justify-self: center;
  inline-size: 100%;
  max-inline-size: 560px;
}
.pg-hero__frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--color-surface);
  box-shadow: var(--shadow-deep);
  background: var(--color-secondary-200);
}
.pg-hero__frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 58%;       /* keep the notebook + coffee in frame */
}
/* Palette tint so the photo harmonizes with the brand colors and grounds
   into the lavender background (deep-blue from the top, lavender at the base). */
.pg-hero__frame-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(30, 32, 83, 0.34) 0%, rgba(30, 32, 83, 0) 48%),
    linear-gradient(0deg, rgba(230, 216, 234, 0.5) 0%, rgba(230, 216, 234, 0) 42%),
    radial-gradient(120% 95% at 50% 42%, rgba(244, 239, 248, 0) 60%, rgba(244, 239, 248, 0.9) 100%);
}

/* Floating glass chip: many paths → one goal */
.pg-hero__chip {
  position: absolute;
  inset-block-end: clamp(-16px, -1vw, -8px);
  inset-inline-start: clamp(-14px, -1vw, -6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 92px;
  block-size: 92px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-raised);
}
.pg-hero__chip-line {
  stroke: var(--color-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  fill: none;
}
.pg-hero__chip-goal {
  fill: var(--color-accent);
}

/* ==========================================================================
   SECTION 2 — MINDSET (deep)  from → to + foundation
   ========================================================================== */
.mindset {
  position: relative;
  padding-block: var(--space-section);
  background: var(--grad-deep);
  color: var(--color-on-dark);
  overflow: hidden;
}
.mindset__glow {
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -5%;
  inline-size: 50%;
  block-size: 150%;
  background: var(--grad-accent-glow);
  pointer-events: none;
  z-index: 0;
}
.mindset > .container { position: relative; z-index: 1; }
.mindset .section-title { color: #fff; }
.mindset__intro {
  margin-block-start: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.mindset__intro p {
  font-size: var(--fs-lead);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-body);
}
.mindset__intro-strong {
  color: var(--color-secondary);
  font-weight: var(--fw-bold);
}
.mindset__shift-lead {
  margin-block-start: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  color: #fff;
}

/* From → To: comparative transition cards (state → bridge → state) */
.shifts {
  margin-block-start: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(0.4rem, 0.2rem + 0.8vw, 0.9rem);
  padding: clamp(0.75rem, 0.55rem + 0.7vw, 1.15rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
}
.shift__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-xs);
  padding: clamp(1rem, 0.8rem + 0.8vw, 1.5rem) var(--space-sm);
  border-radius: var(--radius-lg);
}
.shift__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: var(--radius-pill);
}
.shift__text {
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  max-inline-size: 18ch;
}
/* FROM = dim, cool, "stuck" */
.shift__state--from {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shift__state--from .shift__icon {
  color: var(--color-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
}
.shift__state--from .shift__text { color: var(--color-on-dark-muted); }
/* TO = bright, warm, "arrived" */
.shift__state--to {
  background: linear-gradient(160deg, rgba(var(--color-accent-rgb), 0.16) 0%, rgba(var(--color-accent-rgb), 0.04) 100%);
  border: 1px solid rgba(var(--color-accent-rgb), 0.35);
  box-shadow: 0 12px 30px rgba(var(--color-accent-rgb), 0.14);
}
.shift__state--to .shift__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
  box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), 0.4);
}
.shift__state--to .shift__text { color: #fff; font-weight: var(--fw-bold); }
/* Bridge connector */
.shift__bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}
.shift__bridge-svg { inline-size: 60px; block-size: auto; }

/* Belief — emphasized quote */
.mindset__belief {
  display: flex;
  gap: var(--space-md);
  margin-block-start: clamp(2rem, 1.4rem + 2vw, 3rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  background: rgba(255, 255, 255, 0.05);
  border-inline-start: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
}
.mindset__belief-mark { flex-shrink: 0; color: rgba(var(--color-accent-rgb), 0.65); }
.mindset__belief > span:last-child {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: #fff;
  line-height: var(--lh-body);
}

.mindset__foundation-lead {
  margin-block-start: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  color: #fff;
}
/* Foundation — icon tiles */
.foundation {
  margin-block-start: var(--space-md);
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .foundation { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .foundation { grid-template-columns: repeat(3, 1fr); } }
.foundation__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.foundation__item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}
.foundation__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: var(--radius);
  color: var(--color-secondary);
  background: rgba(230, 216, 234, 0.12);
}
.foundation__text {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-on-dark);
  line-height: var(--lh-snug);
}

/* Mobile — stack each shift vertically; the bridge points downward. */
@media (max-width: 560px) {
  .shift { grid-template-columns: 1fr; gap: 0; }
  .shift__bridge { padding-block: var(--space-2xs); }
  .shift__bridge-svg { transform: rotate(-90deg); inline-size: 40px; }
}
.mindset__close {
  margin-block-start: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: var(--lh-body);
}

/* ==========================================================================
   SECTION 3 — ONE QUESTION
   ========================================================================== */
.question {
  position: relative;
  background: var(--grad-field);
}
.question__blob {
  inset-block-start: -80px;
  inset-inline-end: -100px;
  inline-size: 320px;
  block-size: 320px;
  background: radial-gradient(circle at 50% 50%, #e2dcf2, rgba(226, 220, 242, 0));
  opacity: 0.5;
}
.question__ask {
  text-align: center;
  font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  line-height: 1.4;
  max-inline-size: 22ch;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 1.2rem + 2.5vw, 3rem);
}
.answers {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-inline-size: 880px;
  margin-inline: auto;
}
.answer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-inline-start: 4px solid var(--color-secondary-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.answer:hover {
  transform: translateX(-4px);
  border-inline-start-color: var(--color-accent);
  box-shadow: var(--shadow-raised);
}
.answer__if {
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-body);
}
.answer__then {
  font-size: var(--fs-lead);
  color: var(--color-heading);
}
.answer__then strong { color: var(--color-accent-600); font-weight: var(--fw-extrabold); }
/* Each answer's program name is an internal anchor → its card below. */
.answer__link {
  text-decoration: none;
  cursor: pointer;
}
.answer__link strong {
  border-block-end: 2px solid rgba(var(--color-accent-rgb), 0.35);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.answer__link:hover strong,
.answer__link:focus-visible strong {
  color: var(--color-accent);
  border-block-end-color: var(--color-accent);
}

/* ==========================================================================
   SECTION 4 — PROGRAM CARDS (wide; description + fit checklist)
   ========================================================================== */
.programs {
  background:
    radial-gradient(50% 40% at 100% 0%, #f1eaf4 0%, rgba(241, 234, 244, 0) 55%),
    var(--grad-field);
}
/* overflow:visible so the GSAP stacked-pin doesn't jam (pinning inside an
   overflow-hidden ancestor causes the scroll-freeze). The section has no blob
   to clip, so this is safe. */
.programs.section { overflow: visible; }
.programs__list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
}
.program {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;             /* clean rounded corners + collapsing body */
  /* Stacking-deck pin (≥860): GSAP drives transform, so it is NOT transitioned
     here. transform-origin keeps the shrink anchored to the card's pinned top. */
  transform-origin: top center;
  scroll-margin-block-start: clamp(84px, 9vh, 112px);
  transition: box-shadow var(--dur) var(--ease-out);
}
.program:hover { box-shadow: var(--shadow-raised); }

/* Header — a plain title bar on desktop; the accordion toggle on mobile. */
.program__head-wrap { margin: 0; }
.program__head {
  inline-size: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem) clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  text-align: start;
  font-family: var(--font-primary);
  cursor: default;
}
.program__chevron {
  flex-shrink: 0;
  display: none;                /* desktop: title only, no toggle affordance */
  color: var(--color-accent-600);
  transition: transform var(--dur) var(--ease-out);
}

/* Body — always open on desktop; collapsible accordion on mobile. */
.program__body { display: block; }
.program__body-inner {
  padding: 0 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem) clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}
.program__grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 860px) {
  .program__grid { grid-template-columns: 1.65fr 1fr; align-items: start; }
}

/* Mobile (≤859) — accordion: collapsed shows just the header. */
@media (max-width: 859px) {
  .program__head { cursor: pointer; }
  .program__head:hover { background: rgba(30, 32, 83, 0.025); }
  .program__chevron { display: inline-flex; }
  .program.is-open .program__chevron { transform: rotate(180deg); }
  .program__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-out);
  }
  .program.is-open .program__body { grid-template-rows: 1fr; }
  .program__body-inner { overflow: hidden; }
  .program:not(.is-open) .program__body-inner {padding-bottom: 0;}
}
.program__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 60px;
  block-size: 60px;
  border-radius: var(--radius);
  color: var(--color-primary);
  background: var(--color-secondary-200);
  margin-block-end: var(--space-md);
}
.program__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  line-height: var(--lh-snug);
}
.program__slogan {
  margin-block-start: var(--space-2xs);
  margin-block-end: var(--space-md);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-600);
}
.program__main p {
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-body);
  margin-block-start: var(--space-sm);
}
.program__note {
  margin-block-start: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-200);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--color-accent-600);
  line-height: var(--lh-body);
}
.program__note-label { font-weight: var(--fw-bold); }

/* Fit checklist sidebar — now leads with the relocated program icon. */
.program__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  background: linear-gradient(180deg, #f8f6fc 0%, #f1ecf6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  align-self: start;
}
/* Relocated icon: prominent white tile that pops on the tinted aside.
   transform-origin centers the GSAP entry scale/slide from the main column. */
.program__aside .program__icon {
  inline-size: 64px;
  block-size: 64px;
  background: var(--color-surface);
  box-shadow: 0 8px 20px rgba(30, 32, 83, 0.10);
  margin-block-end: var(--space-sm);
  transform-origin: center;
}
.program__fit-label {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}
.program__fit {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.program__fit li {
  position: relative;
  padding-inline-start: 1.75rem;
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-snug);
}
.program__fit li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.15em;
  inline-size: 18px;
  block-size: 18px;
  border-radius: var(--radius-pill);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--color-primary);
}
.program__btn { margin-block-start: var(--space-2xs); inline-size: 100%; }

/* Featured (VIP) */
.program--featured {
  border-color: rgba(var(--color-accent-rgb), 0.45);
  box-shadow: 0 18px 48px rgba(var(--color-accent-rgb), 0.16);
}
.program--featured .program__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-600) 100%);
}
.program--featured .program__fit li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--color-accent-600);
}
.program__flag {
  position: absolute;
  inset-block-start: 14px;
  /* top-inline-start so it never collides with the header chevron (end). */
  inset-inline-start: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  padding-block: 0.3rem;
  padding-inline: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  z-index: 2;
}
/* Featured header clears the flag badge that sits above its title. */
.program--featured .program__head { padding-block-start: 3rem; }

/* ==========================================================================
   SECTION 5 — MATCHER (quote → service)
   ========================================================================== */
.matcher {
  position: relative;
  /* overflow MUST stay visible so the mobile position:sticky rail can pin —
     an overflow:hidden ancestor silently disables sticky. The decorative blob
     is clipped by its own layer (.matcher__bg) instead. */
  overflow: visible;
  background: var(--grad-field);
}
/* Dedicated clip layer for the blob (keeps the section overflow:visible). */
.matcher__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.matcher .container { position: relative; z-index: 1; }
.matcher__blob {
  inset-block-end: 6%;
  inset-inline-start: -110px;
  inline-size: 360px;
  block-size: 360px;
  background: radial-gradient(circle at 50% 50%, #e7e1f5, rgba(231, 225, 245, 0));
  opacity: 0.5;
}
.matcher__hscroll { position: relative; }
.matcher__stage { position: relative; }
.matcher__grid {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .matcher__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: a horizontal rail pinned by NATIVE position:sticky. The browser owns
   the pin, so it self-corrects to any reflow above it (e.g. a program accordion
   opening/closing). programs.js only translates the rail from a live scroll
   reading — nothing is cached, so nothing ever needs recalculating. */
@media (max-width: 767px) {
  .matcher__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    inline-size: max-content;
    gap: var(--space-md);
    will-change: transform;
  }
  .matcher__grid > .match-card {
    flex: 0 0 82vw;
    max-inline-size: 340px;
    scroll-snap-align: center;
  }

  /* Fallback before JS / reduced-motion: native horizontal swipe. */
  .matcher__hscroll:not(.is-pinning) .matcher__stage {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .matcher__hscroll:not(.is-pinning) .matcher__stage::-webkit-scrollbar { display: none; }

  /* Active pin: JS adds .is-pinning, sets --matcher-top + the wrapper height. */
  .matcher__hscroll.is-pinning .matcher__stage {
    position: sticky;
    inset-block-start: var(--matcher-top, 64px);
    min-block-size: calc(100vh - var(--matcher-top, 64px));
    min-block-size: calc(100svh - var(--matcher-top, 64px));
    display: flex;
    align-items: center;
    overflow: hidden;            /* clip the off-screen cards horizontally */
  }
}
.match-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.match-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-raised);
}
.match-card__quote {
  position: relative;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  line-height: var(--lh-snug);
  padding-inline-start: 1.75rem;
}
.match-card__quote::before {
  content: "”";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.35em;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--color-secondary-400);
  font-family: Georgia, "Times New Roman", serif;
}
.match-card__result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, #f8f4fb 0%, #f1eaf4 100%);
  border-radius: var(--radius);
  border-inline-start: 3px solid var(--color-accent);
}
.match-card__result-label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-muted);
}
.match-card__service {
  font-size: var(--fs-body);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
}
.match-card__why {
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-body);
}
.match-card__why-label { font-weight: var(--fw-bold); color: var(--color-heading); }
.matcher__close {
  margin-block-start: clamp(2rem, 1.2rem + 2.5vw, 3rem);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--color-body);
  line-height: var(--lh-body);
  max-inline-size: 60ch;
  margin-inline: auto;
}
.matcher__close a {
  color: var(--color-accent-600);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   SECTION 6 — COMPARISON TABLE
   ========================================================================== */
.compare {
  background: var(--grad-field);
}
.compare__wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.compare__table {
  inline-size: 100%;
  border-collapse: collapse;
  text-align: start;
}
.compare__table thead th {
  background: var(--color-primary);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  padding: var(--space-md);
  text-align: start;
  vertical-align: middle;
}
.compare__table tbody th,
.compare__table tbody td {
  padding: var(--space-md);
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-snug);
  vertical-align: middle;
  border-block-start: 1px solid var(--color-border);
  text-align: start;
}
.compare__table tbody th {
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}
.compare__table tbody tr:nth-child(even) {
  background: #faf8fc;
}
.compare__row--featured {
  background: linear-gradient(135deg, #fff 0%, var(--color-accent-200) 100%) !important;
}
.compare__row--featured th {
  color: var(--color-accent-600);
}

/* Shared pagination-dot styling (slider.js adds .slider-dot). Hidden until
   the mobile slider shows them. */
.compare__dots { display: none; }
.slider-dot {
  inline-size: 24px;
  block-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
}
.slider-dot::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary-400);
  transition: inline-size var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out);
}
.slider-dot.is-active::before { inline-size: 26px; background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .slider-dot::before { transition: none; } }

/* Mobile: the table becomes a high-end touch slider (core/slider.js) —
   each program row is a slide. Autoplay, infinite loop, dots, swipe. */
@media (max-width: 767px) {
  .compare__wrap {
    position: relative;            /* offsetParent for precise slide centering */
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }
  .compare__table { display: block; inline-size: 100%; }
  .compare__table thead { display: none; }

  .compare__track {                /* tbody = horizontal flex track */
    display: flex;
    gap: var(--space-md);
    align-items: stretch;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .compare__track.is-dragging { cursor: grabbing; }

  .compare__track > tr {           /* each program = one slide card */
    display: flex;
    flex-direction: column;
    flex: 0 0 84%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    scroll-snap-align: center;
  }
  .compare__track > tr th,
  .compare__track > tr td { display: block; inline-size: 100%; border-block-start: none; }
  .compare__track > tr th {
    background: var(--color-primary);
    color: #fff;
    font-size: var(--fs-h4);
    padding: var(--space-md);
  }
  .compare__track > tr td {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    border-block-start: 1px solid var(--color-border);
  }
  .compare__track > tr td::before {
    content: attr(data-label);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: var(--color-muted);
  }
  .compare__row--featured { background: var(--color-surface) !important; }
  .compare__row--featured th { color: #fff; }

  /* No-JS / no-GSAP fallback: native horizontal scroll-snap. */
  .compare__slider:not(.slider-ready) .compare__wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .compare__slider:not(.slider-ready) .compare__wrap::-webkit-scrollbar { display: none; }
  .compare__slider:not(.slider-ready) .compare__track { will-change: auto; }

  .compare__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-block-start: var(--space-lg);
  }
}

/* ==========================================================================
   SECTION 7 — CLOSENESS DEGREES (proximity scale)
   ========================================================================== */
.closeness {
  position: relative;
  background: var(--grad-field);
}
.closeness__blob {
  inset-block-start: 10%;
  inset-inline-end: -120px;
  inline-size: 340px;
  block-size: 340px;
  background: radial-gradient(circle at 50% 50%, #e0dbf3, rgba(224, 219, 243, 0));
  opacity: 0.5;
}
.degrees {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  counter-reset: degree;
}
.degree {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.degree:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }

/* Vertical proximity meter — fill height encodes the closeness level. */
.degree__meter {
  position: relative;
  inline-size: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary-200);
  overflow: hidden;
}
.degree__fill {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: calc(var(--level) / 4 * 100%);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
  transform: scaleY(1);
  transform-origin: bottom;
  will-change: transform;
}
.degree__body { display: flex; flex-direction: column; gap: 4px; }
.degree__tier {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--color-accent-600);
  letter-spacing: 0.01em;
}
.degree__name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}
.degree__desc {
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-body);
}
.degree--clarity .degree__fill {
  background: linear-gradient(180deg, #8e7bd6 0%, var(--color-primary) 100%);
}

/* ==========================================================================
   SECTION 8 — SHARED METHOD (constant core pillars)
   ========================================================================== */
.approach {
  position: relative;
  background:
    radial-gradient(50% 40% at 0% 0%, #f1eaf4 0%, rgba(241, 234, 244, 0) 55%),
    var(--grad-field);
}
.approach__blob {
  inset-block-end: -120px;
  inset-inline-start: -100px;
  inline-size: 360px;
  block-size: 360px;
  background: radial-gradient(circle at 50% 50%, #e7e1f5, rgba(231, 225, 245, 0));
  opacity: 0.5;
}
.approach__intro {
  margin-block-start: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.approach__intro p {
  font-size: var(--fs-lead);
  color: var(--color-body);
  line-height: var(--lh-body);
}
.approach__intro-strong { font-weight: var(--fw-bold); color: var(--color-heading); }
.pillars {
  display: grid;
  gap: var(--space-sm);
  /* Two per row from mobile up; three on wide screens. */
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 940px) {
  .pillars { gap: var(--space-md); grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-raised); }
.pillar__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-300) 100%);
  box-shadow: 0 8px 18px rgba(30, 32, 83, 0.2);
}
.pillar__text {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  line-height: var(--lh-snug);
}
.approach__close {
  margin-block-start: clamp(2rem, 1.4rem + 2vw, 3rem);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--color-body);
  line-height: var(--lh-body);
  max-inline-size: 64ch;
  margin-inline: auto;
}
.approach__close strong { color: var(--color-heading); font-weight: var(--fw-extrabold); }

/* ==========================================================================
   SECTION 9 — FAQ (accordion)
   ========================================================================== */
.faq {
  background: var(--grad-field);
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out);
}
.faq-item.is-open { box-shadow: var(--shadow-raised); }
.faq-item h3 { margin: 0; }
.faq-item__head {
  inline-size: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.35rem) clamp(1rem, 0.85rem + 0.8vw, 1.5rem);
  text-align: start;
  font-family: var(--font-primary);
  color: var(--color-heading);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq-item__head:hover { background-color: rgba(30, 32, 83, 0.025); }
.faq-item__q {
  flex: 1;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}
.faq-item__chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--color-muted);
  transition: transform var(--dur) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); color: var(--color-accent); }
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel-inner { overflow: hidden; }
.faq-item__panel-inner p {
  padding: 0 clamp(1rem, 0.85rem + 0.8vw, 1.5rem) clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  font-size: var(--fs-body);
  color: var(--color-body);
  line-height: var(--lh-body);
}

/* ==========================================================================
   SECTION 10 — FINAL CTA (deep)
   ========================================================================== */
.pcta {
  position: relative;
  padding-block: clamp(4rem, 3rem + 6vw, 7rem);
  background: var(--grad-deep);
  color: var(--color-on-dark);
  overflow: hidden;
}
.pcta__glow {
  position: absolute;
  inset-block-start: -20%;
  inset-inline-start: -5%;
  inline-size: 55%;
  block-size: 150%;
  background: var(--grad-accent-glow);
  pointer-events: none;
  z-index: 0;
}
.pcta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .pcta__inner { grid-template-columns: 1.3fr 1fr; }
}
.pcta__title {
  font-size: clamp(1.7rem, 1.3rem + 2.2vw, 2.6rem);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-inline-size: 18ch;
}
.pcta__text {
  margin-block-start: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--color-on-dark-muted);
  line-height: var(--lh-body);
  max-inline-size: 52ch;
}
.pcta__text--lead { color: var(--color-secondary); font-weight: var(--fw-semibold); }

.pcta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}
.pcta__btn {
  gap: var(--space-sm);
  padding-inline: 1.5rem;
  background: #25d366;            /* WhatsApp affordance for the primary action */
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);
}
.pcta__btn:hover { background: #1fbe5a; box-shadow: 0 18px 40px rgba(37, 211, 102, 0.4); }
.pcta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.pcta__hint {
  font-size: var(--fs-body);
  color: var(--color-on-dark-muted);
}

/* ==========================================================================
   MOBILE — page-specific centering (global rules cover heads/CTAs/footer)
   ========================================================================== */
@media (max-width: 767px) {
  .pg-hero__content { align-items: center; text-align: center; }
  .pg-hero__title { margin-inline: auto; }
  .pg-hero__lead { margin-inline: auto; text-align: center; }
  .pg-hero__cta { justify-content: center; }
  .pg-hero__media { max-inline-size: 460px; margin-inline: auto; }

  .question__ask { text-align: center; }
  .answer { text-align: center; align-items: center; }
  .answer:hover { transform: translateY(-3px); }

  .program__icon { margin-inline: auto; }
  .program__slogan { text-align: center; }

  /* Center the mindset closing line on mobile. */
  .mindset__close { text-align: center; }

  .match-card__quote { text-align: center; padding-inline-start: 0; padding-block-start: 1.5rem; }
  .match-card__quote::before { inset-inline: 0; text-align: center; inset-inline-start: 50%; transform: translateX(-50%); }

  .pillar { flex-direction: column; text-align: center; }

  /* Final CTA — strictly center every element on mobile. */
  .pcta__inner { text-align: center; justify-items: center; }
  .pcta__content { text-align: center; }
  .pcta__title { margin-inline: auto; }
  .pcta__text { margin-inline: auto; }
  .pcta__action { align-items: center; text-align: center; }
}
