/* Round 68: contrast — dark navy on light sections, white on dark, readable badges.
   Fixes class leakage from the hybrid (r60) and landing dark-theme (landing.css) rules. */

/* ----- Launch badge: always readable ----- */
.cx-launch-badge{
  background:#fff;
  border:1px solid #fff;
  color:#2E1A87 !important;
}
.cx-page-hero .cx-launch-badge,
.lp-hero .cx-launch-badge,
.t-feat-hero .cx-launch-badge,
.cx-sec.cx-dark .cx-launch-badge{
  background:#fff;
  border-color:#fff;
  color:#2E1A87 !important;
}
.cx-sec.cx-light:not(.cx-page-hero) .cx-launch-badge,
.lp-sec .cx-launch-badge{
  background:#EDEAF7;
  border:1px solid #C4B5FD;
  color:#2E1A87 !important;
}

/* Eyebrows on purple heroes: light, not dark navy */
.cx-page-hero .cx-eyebrow,
.t-feat-hero .cx-eyebrow,
.t-feat-hero .eyebrow,
.lp-hero .lp-eyebrow,
.lp-hero .eyebrow,
body.home-v7 .cx-page-hero .cx-eyebrow,
body.pc-touches .cx-page-hero .cx-eyebrow{
  color:#F3EAFE !important;
}

/* ----- Light feature / demo / trade sections: dark navy headings ----- */
.cx-page .cx-sec.cx-light:not(.cx-page-hero) h1,
.cx-page .cx-sec.cx-light:not(.cx-page-hero) h2,
.cx-page .cx-sec.cx-light:not(.cx-page-hero) h3,
.cx-page .cx-sec.cx-light:not(.cx-page-hero) h4,
.cx-page .cx-sec.cx-light:not(.cx-page-hero) .cx-h2,
.cx-demo-step h2,
.cx-demo-step h3,
.cx-row h2,
.cx-row h3,
.cx-also h3,
.cx-feat-card h3,
.cx-legal-stub h1,
.cx-legal-stub h2,
.cx-legal-stub h3{
  color:var(--hy-ink,#101828) !important;
}
.cx-page .cx-sec.cx-light:not(.cx-page-hero) p:not(.cx-launch-badge):not(.cx-eyebrow):not(.cx-soon),
.cx-page .cx-sec.cx-light:not(.cx-page-hero) li,
.cx-demo-step p:not(.cx-launch-badge):not(.cx-eyebrow):not(.cx-soon),
.cx-row p:not(.cx-soon):not(.cx-eyebrow){
  color:var(--hy-body,#3A4458);
}
.cx-page .cx-sec.cx-light:not(.cx-page-hero) .cx-eyebrow,
.cx-demo-step .cx-eyebrow,
.cx-row .cx-eyebrow{
  color:#6B21C8 !important;
}

/* Dark / purple bands keep white type */
.cx-sec.cx-dark h1,
.cx-sec.cx-dark h2,
.cx-sec.cx-dark h3,
.cx-sec.cx-dark .cx-h2,
.cx-page-hero h1,
.cx-page-hero .cx-h2,
.t-feat-hero h1{
  color:#fff !important;
}
.cx-sec.cx-dark p:not(.cx-launch-badge):not(.cx-launch-note),
.cx-sec.cx-dark .cx-intro,
.cx-sec.cx-dark .cx-note,
.cx-page-hero .cx-intro,
.cx-page-hero .cx-note{
  color:rgba(255,255,255,.92) !important;
}
.cx-sec.cx-dark .cx-launch-note,
.cx-next .cx-launch-note{
  color:rgba(255,255,255,.9) !important;
}

/* ----- Landing pages: r60 made .lp-sec light, but landing.css left headings white ----- */
.lp-page .lp-sec h1,
.lp-page .lp-sec h2,
.lp-page .lp-sec h3,
.lp-page .lp-sec h4{
  color:var(--hy-ink,#101828) !important;
}
.lp-page .lp-sec p:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
.lp-page .lp-sec li{
  color:var(--hy-body,#3A4458) !important;
}
.lp-page .lp-sec .lp-eyebrow{
  color:#6B21C8 !important;
}
.lp-page .lp-sec .cx-soon{
  color:#5A6478 !important;
}

/* Dark surfaces inside light landing sections keep their own type */
.lp-page .lp-sec .lp-trade,
.lp-page .lp-sec .lp-trade p,
.lp-page .lp-sec .lp-why-list li,
.lp-page .lp-sec .lp-steps li,
.lp-page .lp-sec .lp-faq-item summary,
.lp-page .lp-sec .lp-ph,
.lp-page .lp-sec .lp-ph strong{
  color:#fff !important;
}
.lp-page .lp-sec .lp-ph small,
.lp-page .lp-sec .lp-faq-item .t-faq-a p{
  color:#D6D6DE !important;
}
.lp-page .lp-sec .lp-demo-label,
.lp-page .lp-sec .lp-demo-tag{
  color:#5B21B6 !important;
  background:#F3EAFE;
  border-color:#DDD6FE;
}

/* Hero, CTA band, fire section, register band stay dark with light type */
.lp-page .lp-hero h1,
.lp-page .lp-hero h2,
.lp-page .lp-hero h3,
.lp-page .lp-cta-band p,
.lp-page .lp-cta-band h2,
.lp-page section#firestopping h2,
.lp-page section#firestopping h3,
.lp-page .lp-register > .wrap > h2,
.lp-page #register > .wrap > h2,
.lp-page #register h2{
  color:#fff !important;
}
.lp-page .lp-hero .lp-sub,
.lp-page .lp-hero p:not(.cx-launch-badge):not(.lp-eyebrow){
  color:rgba(255,255,255,.92) !important;
}
.lp-page section#firestopping p{
  color:#F3DCDC !important;
}
.lp-page section#firestopping p.lp-disclaimer{
  color:#F0C4C4 !important;
}
.lp-page section#firestopping .lp-eyebrow{
  color:#FFB4B4 !important;
}
.lp-page .lp-register p:not(.t-form-card p):not(.lp-preview-note),
.lp-page #register > .wrap > p{
  color:rgba(255,255,255,.92) !important;
}

/* Form card on the purple register band stays dark-on-white */
.lp-page .t-form-card,
.lp-page .t-form-card p,
.lp-page .t-form-card li,
.lp-page .t-form-card h2,
.lp-page .t-form-card h3,
.lp-page .t-form-card label,
.lp-page .t-form-card span,
.lp-page .t-form-h,
.lp-page .lp-preview-note,
.lp-page .t-form-card .t-note{
  color:var(--hy-ink,#101828) !important;
}
.lp-page .t-form-card a{color:#5B21B6 !important}
.lp-page .t-form-card .t-req,
.lp-page .lp-err{color:#B42323 !important}

/* Thank-you: light page, dark card */
.lp-thanks-sec{color:var(--hy-ink,#101828)}
.lp-thanks-sec .lp-thanks-card,
.lp-thanks-sec .lp-thanks-card h1,
.lp-thanks-sec .lp-thanks-card h2,
.lp-thanks-sec .lp-thanks-card p,
.lp-thanks-sec .lp-ref{
  color:#fff !important;
}
.lp-thanks-sec .lp-thanks-card .lp-preview-note,
.lp-thanks-sec .lp-thanks-card p.lp-preview-note{
  color:#D6D6DE !important;
}

/* ----- Elite / custom pricing card: bright CREWNEX treatment ----- */
#pricing .t-plan.t-plan-elite,
.t-plan.t-plan-elite,
.t-plans.is-fire .t-plan-elite{
  background:linear-gradient(165deg,#6B21C8 0%,#5B21B6 38%,#2E1065 100%) !important;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 18px 40px rgba(46,16,101,.28),0 0 0 1px rgba(142,30,244,.35);
  color:#fff;
}
#pricing .t-plan-elite h4,
.t-plan-elite h4,
.t-plan-elite .t-plan-custom,
.t-plan-elite .t-plan-price,
.t-plan-elite .t-elite-eyebrow,
.t-plans.is-fire .t-elite-eyebrow,
.t-plan-elite .t-what-h,
.t-plans.is-fire .t-plan-elite .t-what-h{
  color:#fff !important;
}
.t-plan-elite .t-elite-avail,
.t-plans.is-fire .t-elite-avail,
.t-plan-elite .t-what li,
.t-plan-elite .t-what li span,
.t-plan-elite .t-what li.t-what-line span,
.t-plan-elite .t-what li.t-what-sp,
.t-plan-elite .t-what li.t-what-sp span,
.t-plans.is-fire .t-plan-elite .t-what li,
.t-plans.is-fire .t-plan-elite .t-what li span,
.t-plans.is-fire .t-plan-elite .t-what li.t-what-sp,
.t-plans.is-fire .t-plan-elite .t-what li.t-what-sp span{
  color:#fff !important;
}
.t-plan-elite .t-what li{
  border-color:rgba(255,255,255,.22);
}
.t-plan-elite .t-elite-btn,
.t-plans.is-fire .t-plan-elite .t-elite-btn{
  background:#fff !important;
  color:#2E1065 !important;
  border-color:#fff !important;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  font-weight:700;
}
.t-plan-elite .t-elite-btn:hover,
.t-plans.is-fire .t-plan-elite .t-elite-btn:hover{
  background:#F3EAFE !important;
  color:#2E1065 !important;
}

/* Links on light backgrounds: #8E1EF4 can sit under AA for small text */
.cx-sec.cx-light a:not(.btn):not(.t-pill),
.lp-sec a:not(.btn):not(.lp-btn):not(.lp-chip),
.cx-textlink,
.cx-more-links a{
  color:#5B21B6;
}
.cx-sec.cx-dark a:not(.btn):not(.t-pill),
.cx-sec.cx-dark .cx-textlink{
  color:#F3EAFE;
}

/* Legal stubs live inside the purple page hero — keep type light */
.cx-page-hero .cx-legal-stub,
.cx-page-hero .cx-legal-stub h1,
.cx-page-hero .cx-legal-stub h2,
.cx-page-hero .cx-legal-stub h3,
.cx-page-hero p:not(.cx-launch-badge):not(.cx-eyebrow){
  color:rgba(255,255,255,.92) !important;
}
.cx-page-hero .cx-legal-stub h1,
.cx-page-hero .cx-legal-stub h2,
.cx-page-hero .cx-legal-stub h3{
  color:#fff !important;
}
.cx-page-hero a:not(.btn):not(.t-pill),
.cx-sec.cx-dark a:not(.btn):not(.t-pill),
.lp-thanks-card a,
.lp-thanks-card .lp-link{
  color:#F3EAFE !important;
}
.cx-page-hero a:not(.btn):not(.t-pill):hover,
.lp-thanks-card a:hover{
  color:#fff !important;
}

/* Landing pricing / text links on light sections */
.lp-page .lp-sec .lp-link,
.lp-page .lp-sec a.lp-link{
  color:#5B21B6 !important;
}
.lp-page .lp-sec .lp-link-note{
  color:#4A4458 !important;
  font-weight:500;
}

/* Homepage hero: purple band is a sibling glow — give the section its own gradient so type sits on dark */
.cx-hero{
  background:
    radial-gradient(ellipse 90% 48% at 50% 18%, rgba(142,30,244,.4), transparent 64%),
    linear-gradient(180deg,#1E0B3A 0%,#2E1065 38%,#3B0764 68%, #F5F4F8 100%) !important;
  color:#fff;
}
.cx-hero h1,
.cx-hero .cx-hero-kicker{color:#fff !important}
.cx-hero .cx-hero-accent{color:#E9D5FF !important}
.cx-hero .cx-hero-sub,
.cx-hero .cx-hero-support,
body.home-v7 .cx-hero p.cx-hero-support,
body.pc-touches .cx-hero p.cx-hero-support{
  color:rgba(255,255,255,.92) !important;
}

/* Wordmark accent on dark header / footer */
.pc-touches .header .wordmark .nex,
.t-footer .wordmark .nex,
.t-foot-logo .wordmark .nex,
.t-foot-brand .nex,
.t-gate-brand .nex,
.t-plat-brand .nex{
  color:#8B5CF6 !important;
}

/* Featured plan pill */
.t-plan-tag,
.t-plans.is-fire .t-plan-tag{color:#fff !important}

/* Landing FAQ cards are also .t-faq-item, which r60 made white — dark type on white */
.lp-page .lp-faq-item,
.lp-page .t-faq-item.lp-faq-item{
  background:#fff !important;
  border:1px solid #E5E4EC;
  box-shadow:var(--hy-shadow,0 10px 28px rgba(46,16,101,.08));
}
.lp-page .lp-faq-item summary,
.lp-page .t-faq-item.lp-faq-item summary{
  color:#101828 !important;
}
.lp-page .lp-faq-item summary::after{color:#5B21B6 !important}
.lp-page .lp-faq-item .t-faq-a p{
  color:#3A4458 !important;
}

/* Trade cards stay dark with white type (beat .lp-sec heading/body !important) */
.lp-page .lp-trade,
.lp-page .lp-trade h2,
.lp-page .lp-trade h3,
.lp-page .lp-trade p,
.lp-page .lp-trade.is-fire,
.lp-page .lp-trade.is-fire h2,
.lp-page .lp-trade.is-fire h3,
.lp-page .lp-trade.is-fire p{
  color:#fff !important;
}

/* Placeholder frames are light — always dark type, even inside dark or fire sections */
.cx-ph-frame,
.cx-ph-body,
.cx-ph-id,
.cx-ph-title,
.cx-ph-meta,
.cx-ph-drop,
.cx-films .cx-ph-frame p,
.cx-page-hero .cx-ph-frame p,
.lp-page .cx-ph-frame p,
.lp-page section#firestopping .cx-ph-frame p,
.cx-sec.cx-dark .cx-ph-frame p{
  color:#101828 !important;
}
.cx-ph-id,
.cx-ph-drop,
.cx-films .cx-ph-id,
.cx-films .cx-ph-drop,
.lp-page section#firestopping .cx-ph-id,
.lp-page section#firestopping .cx-ph-drop{
  color:#2E1A87 !important;
}
.cx-ph-meta,
.cx-films .cx-ph-meta,
.lp-page section#firestopping .cx-ph-meta{
  color:#5A6478 !important;
}

/* Launch note in a purple hero: same readable pill as the badge */
.cx-page-hero .cx-launch-note,
.lp-hero .cx-launch-note{
  background:#fff;
  border:1px solid #fff;
  color:#2E1A87 !important;
  padding:.28rem .7rem;
  border-radius:999px;
}

/* Form card type (avoid leaking white from the purple register band) */
.t-form-card,
.t-form-card p,
.t-form-card .t-note,
.t-form-card .lp-preview-note,
.lp-page .t-form-card,
.lp-page .t-form-card p,
.lp-page .t-form-card .t-note,
.lp-page .lp-register .t-form-card p,
.lp-page #register .t-form-card p{
  color:#101828 !important;
}

/* Hero typography stays on purple; fade into grey sits below the copy */
.cx-hero{
  background:
    radial-gradient(ellipse 90% 48% at 50% 18%, rgba(142,30,244,.4), transparent 64%),
    linear-gradient(180deg,#1E0B3A 0%,#2E1065 48%,#3B0764 100%) !important;
  color:#fff;
}
.cx-hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:72px;
  background:linear-gradient(180deg,rgba(59,7,100,0),#F5F4F8);
  pointer-events:none;
  z-index:0;
}
.cx-hero .cx-hero-inner,
.cx-hero .wrap{position:relative;z-index:1}

/* Beat high-specificity light-section body colour on dark trade cards */
.lp-page .lp-sec .lp-trade p:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
.lp-page .lp-sec .lp-trade.is-fire p:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
.lp-page .lp-sec .lp-trade li{
  color:#fff !important;
}

/* Placeholder labels beat dark-section / hero paragraph colour */
.cx-ph-frame .cx-ph-id,
.cx-ph-frame .cx-ph-title,
.cx-ph-frame .cx-ph-meta,
.cx-ph-frame .cx-ph-drop,
.cx-ph-body .cx-ph-id,
.cx-ph-body .cx-ph-title,
.cx-ph-body .cx-ph-meta,
.cx-ph-body .cx-ph-drop,
.cx-sec.cx-dark .cx-ph-frame .cx-ph-id,
.cx-sec.cx-dark .cx-ph-frame .cx-ph-title,
.cx-sec.cx-dark .cx-ph-frame .cx-ph-meta,
.cx-sec.cx-dark .cx-ph-frame .cx-ph-drop,
.cx-films .cx-clip .cx-ph-id,
.cx-films .cx-clip .cx-ph-title,
.cx-films .cx-clip .cx-ph-meta,
.cx-films .cx-clip .cx-ph-drop,
.cx-page-hero .cx-ph-frame .cx-ph-id,
.cx-page-hero .cx-ph-frame .cx-ph-title,
.cx-page-hero .cx-ph-frame .cx-ph-meta,
.cx-page-hero .cx-ph-frame .cx-ph-drop{
  color:#101828 !important;
}
.cx-ph-body .cx-ph-id,
.cx-ph-frame .cx-ph-id,
.cx-films .cx-clip .cx-ph-id,
.cx-ph-body .cx-ph-drop,
.cx-ph-frame .cx-ph-drop,
.cx-films .cx-clip .cx-ph-drop{
  color:#2E1A87 !important;
}
.cx-ph-body .cx-ph-meta,
.cx-ph-frame .cx-ph-meta,
.cx-films .cx-clip .cx-ph-meta{
  color:#5A6478 !important;
}

/* Launch note under Book a demo on a dark band: no white pill */
.cx-next .cx-launch-note,
.cx-sec.cx-dark .cx-next .cx-launch-note,
.cx-page-hero .cx-next .cx-launch-note{
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  color:rgba(255,255,255,.92) !important;
}

/* Form footnote on the white card (beat .t-contact.t-closing p) */
.t-contact .t-form-card p,
.t-contact.t-closing .t-form-card p,
.t-closing .t-form-card p,
.t-form-card p.t-note,
.t-form .t-note,
.t-contact .t-form-card .t-note,
.t-closing .t-form-card .t-note{
  color:#101828 !important;
}

/* Placeholder type: beat .cx-sec.cx-dark p:not() / .cx-page-hero p:not() */
body.pc-touches .cx-sec.cx-dark p.cx-ph-id,
body.pc-touches .cx-sec.cx-dark p.cx-ph-title,
body.pc-touches .cx-sec.cx-dark p.cx-ph-meta,
body.pc-touches .cx-sec.cx-dark p.cx-ph-drop,
body.pc-touches .cx-page-hero p.cx-ph-id,
body.pc-touches .cx-page-hero p.cx-ph-title,
body.pc-touches .cx-page-hero p.cx-ph-meta,
body.pc-touches .cx-page-hero p.cx-ph-drop,
body.pc-touches .cx-films p.cx-ph-id,
body.pc-touches .cx-films p.cx-ph-title,
body.pc-touches .cx-films p.cx-ph-meta,
body.pc-touches .cx-films p.cx-ph-drop,
body.lp-page .lp-sec p.cx-ph-id:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page .lp-sec p.cx-ph-title:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page .lp-sec p.cx-ph-meta:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page .lp-sec p.cx-ph-drop:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page section#firestopping p.cx-ph-id,
body.lp-page section#firestopping p.cx-ph-title,
body.lp-page section#firestopping p.cx-ph-meta,
body.lp-page section#firestopping p.cx-ph-drop{
  color:#101828 !important;
}
body.pc-touches .cx-sec.cx-dark p.cx-ph-id,
body.pc-touches .cx-page-hero p.cx-ph-id,
body.pc-touches .cx-films p.cx-ph-id,
body.lp-page .lp-sec p.cx-ph-id:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page section#firestopping p.cx-ph-id,
body.pc-touches .cx-sec.cx-dark p.cx-ph-drop,
body.pc-touches .cx-page-hero p.cx-ph-drop,
body.pc-touches .cx-films p.cx-ph-drop,
body.lp-page .lp-sec p.cx-ph-drop:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page section#firestopping p.cx-ph-drop{
  color:#2E1A87 !important;
}
body.pc-touches .cx-sec.cx-dark p.cx-ph-meta,
body.pc-touches .cx-page-hero p.cx-ph-meta,
body.pc-touches .cx-films p.cx-ph-meta,
body.lp-page .lp-sec p.cx-ph-meta:not(.cx-launch-badge):not(.lp-eyebrow):not(.cx-soon),
body.lp-page section#firestopping p.cx-ph-meta{
  color:#5A6478 !important;
}

/* Hero launch note that still has a filled pill */
body.pc-touches .cx-page-hero > .wrap > p.cx-launch-note,
body.pc-touches .cx-page-hero .cx-legal-stub > p.cx-launch-note,
body.pc-touches p.cx-launch-badge{
  background:#fff !important;
  border:1px solid #fff !important;
  color:#2E1A87 !important;
  padding:.28rem .7rem !important;
  border-radius:999px;
}

/* Landing hero placeholders */
body.lp-page .lp-hero p.cx-ph-id,
body.lp-page .lp-hero p.cx-ph-title,
body.lp-page .lp-hero p.cx-ph-meta,
body.lp-page .lp-hero p.cx-ph-drop,
body.lp-page .lp-hero p.cx-ph-id:not(.cx-launch-badge):not(.lp-eyebrow),
body.lp-page .lp-hero p.cx-ph-title:not(.cx-launch-badge):not(.lp-eyebrow),
body.lp-page .lp-hero p.cx-ph-meta:not(.cx-launch-badge):not(.lp-eyebrow),
body.lp-page .lp-hero p.cx-ph-drop:not(.cx-launch-badge):not(.lp-eyebrow){
  color:#101828 !important;
}
body.lp-page .lp-hero p.cx-ph-id,
body.lp-page .lp-hero p.cx-ph-drop{
  color:#2E1A87 !important;
}
body.lp-page .lp-hero p.cx-ph-meta{
  color:#5A6478 !important;
}
