:root {
  --pms2-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --pms2-bg: #ffffff;
  --pms2-ink: #111827;
  --pms2-muted: #6b7280;
  --pms2-border: #e5e7eb;
  --pms2-card: #ffffff;
  --pms2-soft: #f8fafc;
  --pms2-blue: #1d4ed8;
  --pms2-green: #059669;
  --pms2-dark: #0f172a;
}

body.pms2 {
  font-family: var(--pms2-font);
  background: var(--pms2-bg);
  color: var(--pms2-ink);
}

body.pms2 .site-header,
body.pms2 .site-header.mc-nav,
body.pms2.is-scrolled .site-header.mc-nav,
body.pms2.home-page .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--pms2-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.pms2 .nav-shell {
  min-height: 80px;
}

body.pms2 .brand img {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: grayscale(1) brightness(0.25);
  box-shadow: none;
}

body.pms2 .brand-title,
body.pms2 .mc-lockup__wordmark {
  color: #111827;
  font-family: var(--pms2-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.pms2 .brand-sub,
body.pms2 .mc-lockup__tag {
  color: #6b7280;
  border: 0;
  background: transparent;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}

body.pms2 .main-nav a,
body.pms2 .site-header.mc-nav .main-nav a {
  color: #4b5563;
  font-family: var(--pms2-font);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

body.pms2 .main-nav a:hover,
body.pms2 .main-nav a[aria-current='page'] {
  color: #111827;
  border-color: var(--pms2-border);
  background: #f9fafb;
}

body.pms2 .main-nav .nav-utility {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pms2-blue), var(--pms2-green));
  border-color: transparent !important;
  font-weight: 600;
}

body.pms2 .main-nav .nav-utility:hover,
body.pms2 .main-nav .nav-utility[aria-current='page'] {
  color: #fff !important;
  filter: brightness(0.95);
}

body.pms2 .nav-cta.btn,
body.pms2 .btn-primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

body.pms2 .nav-cta.btn:hover,
body.pms2 .btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
}

body.pms2 .btn-secondary {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

body.pms2 .btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

body.pms2 main {
  padding-top: 80px;
}

.pms2-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
}

.pms2-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.32;
  pointer-events: none;
}

.pms2-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pms2-hero-media video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(-7%);
  filter: saturate(0.78) contrast(0.85) brightness(0.88);
}

.pms2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78) 44%, rgba(255, 255, 255, 0.45));
}

.pms2-hero-grid {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.pms2-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  font-size: 0.82rem;
  font-weight: 500;
}

.pms2-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.13);
}

.pms2-hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5.3rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 300;
  color: #111827;
}

.pms2-hero h1 .strong {
  font-weight: 700;
  color: #111827;
}

.pms2-hero p {
  color: #4b5563;
  font-size: 1.08rem;
  max-width: 56ch;
}

.pms2-hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pms2-stat-row {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 560px;
}

.pms2-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.pms2-stat .value {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.1;
}

.pms2-stat .label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.73rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pms2-course-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 1.45rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.pms2-course-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.35rem;
}

.pms2-course-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  color: #6b7280;
  font-weight: 600;
  cursor: pointer;
}

.pms2-course-tab.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.pms2-course-panel {
  display: none;
}

.pms2-course-panel.active {
  display: block;
}

.pms2-course-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1.42rem;
  color: #111827;
  font-weight: 700;
}

.pms2-course-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.8rem;
}

.pms2-chip {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
}

.pms2-course-panel p {
  font-size: 0.94rem;
  color: #4b5563;
  margin: 0.45rem 0 0.8rem;
}

.pms2-course-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.pms2-course-list li { margin-bottom: 0.33rem; }

.pms2-course-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

body.pms2 .section,
body.pms2 .section-muted,
body.pms2 .section-light,
body.pms2 .hero-mini {
  background: #fff;
  color: #111827;
  border: 0;
  padding: 5.3rem 0;
}

body.pms2 .hero-mini {
  background: #f5f7fb;
  border-bottom: 1px solid #e2e8f0;
}

body.pms2 .section-dark,
body.pms2 .section.section-dark.grid-bg {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(5, 150, 105, 0.2), transparent 60%),
    linear-gradient(180deg, #0f2345 0%, #0b1e3d 100%);
  color: #eaf2ff;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.pms2 .section-dark h1,
body.pms2 .section-dark h2,
body.pms2 .section-dark h3,
body.pms2 .section-dark h4,
body.pms2 .section-dark .section-header h2 {
  color: #ffffff !important;
}

body.pms2 .section-dark p,
body.pms2 .section-dark li,
body.pms2 .section-dark .section-intro,
body.pms2 .section-dark .section-header p,
body.pms2 .section-dark label {
  color: rgba(232, 242, 255, 0.82) !important;
}

body.pms2 .section-dark .section-label {
  color: #34d399 !important;
}

body.pms2 .section-dark [style*="color:#0f172a"],
body.pms2 .section-dark [style*="color: #0f172a"] {
  color: #eef4ff !important;
}

body.pms2 .section-dark .glass-card,
body.pms2 .section-dark .glass-card-static,
body.pms2 .section-dark .feature-card,
body.pms2 .section-dark .pricing-card,
body.pms2 .section-dark .faq-item,
body.pms2 .section-dark .instructor-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 18px 48px rgba(3, 8, 25, 0.35);
}

body.pms2 .section-alt {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

body.pms2 .section-label {
  color: #2563eb;
}

body.pms2 .glass-card,
body.pms2 .glass-card-static,
body.pms2 .feature-card,
body.pms2 .pricing-card,
body.pms2 .faq-item,
body.pms2 .instructor-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

body.pms2 .footer {
  background: #111827;
  color: #cbd5e1;
  border-top: 0;
}

body.pms2 .footer a { color: #9ca3af; }
body.pms2 .footer a:hover { color: #fff; }
body.pms2 .footer-logo { filter: brightness(0) invert(1); }

.pms2-course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .pms2-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 3rem 0 2.6rem;
  }

  .pms2-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .pms2-stat-row {
    max-width: none;
  }

  body.pms2 .nav-cta.btn {
    display: none;
  }

  body.pms2 .main-nav {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--pms2-border);
  }
}

@media (max-width: 760px) {
  .pms2-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .pms2-stat-row {
    grid-template-columns: 1fr;
  }

  .pms2-course-actions .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   PMS2 Contrast + Palette Cleanup (light theme authoritative)
---------------------------------------------------------- */

/* Remove bright white hero wash; keep video visible and atmospheric */
body.pms2 .pms2-hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(248, 250, 252, 0.10),
    rgba(248, 250, 252, 0.04) 44%,
    rgba(248, 250, 252, 0.08)
  );
}

/* Prevent legacy mc-mode dark-theme rules from forcing white text */
body.pms2 .hero-mini,
body.pms2 .hero-mini::after {
  background: #f5f7fb !important;
  border-bottom: 1px solid var(--pms2-border) !important;
}

body.pms2 .hero-mini::after {
  content: none !important;
}

/* Default readable content colors */
body.pms2 main .section h1,
body.pms2 main .section h2,
body.pms2 main .section h3,
body.pms2 main .section h4,
body.pms2 main .hero-mini h1,
body.pms2 main .hero-mini h2,
body.pms2 main .hero-mini h3,
body.pms2 main .hero-mini h4,
body.pms2 main .section-header h2 {
  color: #111827 !important;
}

body.pms2 main .section p,
body.pms2 main .section li,
body.pms2 main .hero-mini p,
body.pms2 main .hero-mini li,
body.pms2 main .section-intro,
body.pms2 main .section-header p,
body.pms2 main label {
  color: #334155 !important;
}

body.pms2 main a:not(.btn):not(.nav-utility) {
  color: var(--pms2-blue);
}

body.pms2 main a:not(.btn):not(.nav-utility):hover {
  color: #1e40af;
}

/* Accent system: blue + green while keeping black-first readability */
body.pms2 .section-label {
  color: var(--pms2-blue) !important;
}

body.pms2 .pms2-pill,
body.pms2 .pms2-chip {
  color: #1f2937;
  border-color: #cbd5e1;
  background: #f8fafc;
}

body.pms2 .pms2-dot {
  background: var(--pms2-green);
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.16);
}

/* Buttons and navbar actions: always readable */
body.pms2 .nav-cta.btn,
body.pms2 .btn-primary {
  background: var(--pms2-blue) !important;
  color: #ffffff !important;
  border-color: var(--pms2-blue) !important;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.26);
}

body.pms2 .nav-cta.btn:hover,
body.pms2 .btn-primary:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

body.pms2 .btn-secondary {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}

body.pms2 .btn-secondary:hover {
  background: #eff6ff !important;
  color: #0f172a !important;
  border-color: #93c5fd !important;
}

body.pms2 .main-nav .nav-utility {
  background: linear-gradient(135deg, var(--pms2-blue), var(--pms2-green)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* Keep cards in light sections readable */
body.pms2 .glass-card h1,
body.pms2 .glass-card h2,
body.pms2 .glass-card h3,
body.pms2 .glass-card h4,
body.pms2 .feature-card h3,
body.pms2 .pricing-card h3,
body.pms2 .faq-item .faq-q {
  color: #111827 !important;
}

body.pms2 .glass-card p,
body.pms2 .glass-card li,
body.pms2 .feature-card p,
body.pms2 .pricing-card p,
body.pms2 .faq-item .faq-a {
  color: #334155 !important;
}

/* Home composition pass: light architecture section + navy instructor CTA section */
body.home-page.pms2 main > section.section.section-alt {
  background: #f1f5f9;
  border-top: 1px solid #dbe5f1;
  border-bottom: 1px solid #dbe5f1;
}

body.home-page.pms2 main > section.section.section-alt .section-label {
  color: var(--pms2-blue) !important;
}

body.home-page.pms2 main > section.pms2-instructor-band {
  position: relative;
  background:
    radial-gradient(880px 340px at 80% 8%, rgba(5, 150, 105, 0.22), transparent 60%),
    linear-gradient(180deg, #10284f 0%, #0b1f3e 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.home-page.pms2 main > section.pms2-instructor-band::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, transparent 0%, #10b981 22%, #10b981 78%, transparent 100%);
  opacity: 0.92;
}

body.home-page.pms2 main > section.pms2-instructor-band h1,
body.home-page.pms2 main > section.pms2-instructor-band h2,
body.home-page.pms2 main > section.pms2-instructor-band h3,
body.home-page.pms2 main > section.pms2-instructor-band h4,
body.home-page.pms2 main > section.pms2-instructor-band .section-header h2 {
  color: #ffffff !important;
}

body.home-page.pms2 main > section.pms2-instructor-band p,
body.home-page.pms2 main > section.pms2-instructor-band li,
body.home-page.pms2 main > section.pms2-instructor-band .section-header p {
  color: rgba(232, 242, 255, 0.84) !important;
}

body.home-page.pms2 main > section.pms2-instructor-band .section-label {
  color: #34d399 !important;
}

body.home-page.pms2 main > section.pms2-instructor-band .btn-primary {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #05213a !important;
}

body.home-page.pms2 main > section.pms2-instructor-band .btn-primary:hover {
  background: #34d399 !important;
  border-color: #34d399 !important;
}

body.home-page.pms2 main > section.pms2-instructor-band .btn-secondary {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(219, 234, 254, 0.62) !important;
}

body.home-page.pms2 main > section.pms2-instructor-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #ffffff !important;
}

/* Section-dark final lock (must come after global light-text overrides) */
body.pms2 main .section.section-dark h1,
body.pms2 main .section.section-dark h2,
body.pms2 main .section.section-dark h3,
body.pms2 main .section.section-dark h4,
body.pms2 main .section.section-dark .section-header h2,
body.pms2 main .section.section-dark .glass-card h1,
body.pms2 main .section.section-dark .glass-card h2,
body.pms2 main .section.section-dark .glass-card h3,
body.pms2 main .section.section-dark .feature-card h3,
body.pms2 main .section.section-dark .faq-item .faq-q {
  color: #ffffff !important;
}

body.pms2 main .section.section-dark p,
body.pms2 main .section.section-dark li,
body.pms2 main .section.section-dark .section-intro,
body.pms2 main .section.section-dark .section-header p,
body.pms2 main .section.section-dark label,
body.pms2 main .section.section-dark .glass-card p,
body.pms2 main .section.section-dark .glass-card li,
body.pms2 main .section.section-dark .feature-card p,
body.pms2 main .section.section-dark .faq-item .faq-a {
  color: rgba(232, 242, 255, 0.84) !important;
}

body.pms2 main .section.section-dark .section-label {
  color: #34d399 !important;
}

/* ---------------------------------------------------------
   PMS2 Home Strength Pass (hero + richer homepage content)
---------------------------------------------------------- */
body.home-page.pms2 .pms2-hero-overlay {
  background:
    linear-gradient(96deg, rgba(7, 23, 49, 0.84) 0%, rgba(7, 23, 49, 0.62) 46%, rgba(7, 23, 49, 0.24) 100%),
    radial-gradient(820px 420px at 18% 10%, rgba(5, 150, 105, 0.24), transparent 68%);
}

body.home-page.pms2 .pms2-hero-copy {
  max-width: 700px;
  padding: clamp(1.15rem, 2.1vw, 1.8rem);
  border-radius: 20px;
  border: 1px solid rgba(191, 219, 254, 0.26);
  background: linear-gradient(180deg, rgba(10, 35, 73, 0.56), rgba(9, 29, 61, 0.48));
  box-shadow: 0 22px 56px rgba(2, 8, 24, 0.34);
  backdrop-filter: blur(8px);
}

body.home-page.pms2 .pms2-hero-copy .pms2-pill {
  background: rgba(15, 23, 42, 0.54);
  color: #e5eefb;
  border-color: rgba(191, 219, 254, 0.24);
}

body.home-page.pms2 .pms2-hero-copy h1 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

body.home-page.pms2 .pms2-hero-copy h1 .strong {
  color: #dbeafe;
}

body.home-page.pms2 .pms2-hero-copy > p {
  color: rgba(236, 245, 255, 0.92);
  font-size: 1.08rem;
}

body.home-page.pms2 .pms2-hero-copy .pms2-stat {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(191, 219, 254, 0.28);
}

body.home-page.pms2 .pms2-hero-copy .pms2-stat .value {
  color: #f8fbff;
}

body.home-page.pms2 .pms2-hero-copy .pms2-stat .label {
  color: rgba(219, 234, 254, 0.9);
}

body.home-page.pms2 .pms2-hero-copy .btn-secondary {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(219, 234, 254, 0.7) !important;
}

body.home-page.pms2 .pms2-hero-copy .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

body.home-page.pms2 .pms2-learning-stack {
  background: #f7fafc;
  border-top: 1px solid #dbe5f1;
  border-bottom: 1px solid #dbe5f1;
}

.pms2-stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pms2-stack-grid .glass-card {
  padding: 1.25rem;
}

.pms2-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pms2-journey-grid .glass-card {
  padding: 1.25rem;
}

.pms2-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.56);
  background: rgba(52, 211, 153, 0.16);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  body.home-page.pms2 .pms2-hero-copy {
    padding: 1.05rem;
  }

  .pms2-stack-grid,
  .pms2-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pms2-stack-grid,
  .pms2-journey-grid {
    grid-template-columns: 1fr;
  }
}
