/* Inner pages. Loaded last. Homepage (home-v2.css) stays the source of the header,
   footer, type, and color system. This file only adjusts inner-page content. */

body.hp2.in-page {
  /* Brand palette on inner pages: the homepage's orange warning token is used
     for decoration on inner pages, so point it at the brand blue family. */
  --hp-warn: var(--hp-brand);
  --hp-warn-50: var(--hp-brand-50);
  --ink: var(--hp-ink);
  --muted: var(--hp-muted);
  --line: var(--hp-line);
  --soft: var(--hp-surface);
  --brand: var(--hp-brand);
  --brand-dark: var(--hp-brand-600);
  --blue: var(--hp-brand);
  --navy: var(--hp-ink);
  --navy2: var(--hp-ink-2);
  --amber: var(--hp-warn);
  --sky: var(--hp-brand-50);
  --paper: var(--hp-surface);
  --sfs-blue: var(--hp-brand);
  --sfs-blue-dark: var(--hp-brand-600);
  --sfs-ink: var(--hp-ink);
  --sfs-muted: var(--hp-body);
  --sfs-tint: var(--hp-surface);
  --sfs-line: var(--hp-line);
  --pr-blue: var(--hp-brand);
  --pr-blue-dark: var(--hp-brand-600);
  --pr-ink: var(--hp-ink);
  --pr-muted: var(--hp-body);
  --pr-tint: var(--hp-surface);
  --pr-line: var(--hp-line);
  --si-brand: var(--hp-brand);
  --si-brand-dark: var(--hp-brand-600);
  --si-ink: var(--hp-ink);
  --si-muted: var(--hp-body);
  --bd-brand: var(--hp-brand);
  --bd-brand-dark: var(--hp-brand-600);
  --bd-ink: var(--hp-ink);
  --bd-muted: var(--hp-body);
  --bd-tint: var(--hp-surface);
  --bd-line: var(--hp-line);
  --ind-brand: var(--hp-brand);
  --ind-brand-dark: var(--hp-brand-600);
  --ind-ink: var(--hp-ink);
  --ind-muted: var(--hp-body);
  --ind-soft: var(--hp-surface);
  --nf-blue: var(--hp-brand);
  --nf-blue-dark: var(--hp-brand-600);
  --nf-ink: var(--hp-ink);
  --nf-tint: var(--hp-surface);
  --nf-line: var(--hp-line);
}

body.hp2.in-page :is(.sfs, .cn, .og, .mf, .re, .qp, .env-page, .dm, .lp, .sa, .pr-page, .capa-page, .nf) {
  --cn-blue: var(--hp-brand);
  --cn-blue-dark: var(--hp-brand-600);
  --cn-ink: var(--hp-ink);
  --cn-muted: var(--hp-body);
  --cn-tint: var(--hp-surface);
  --cn-line: var(--hp-line);
  --cn-amber: var(--hp-warn);
  --cn-amber-tint: var(--hp-warn-50);
  --cn-orange: var(--hp-warn);
  --cn-orange-dark: #2f43c7;
  --og-blue: var(--hp-brand);
  --og-blue-dark: var(--hp-brand-600);
  --og-ink: var(--hp-ink);
  --og-muted: var(--hp-body);
  --og-tint: var(--hp-surface);
  --og-line: var(--hp-line);
  --og-amber: var(--hp-warn);
  --og-amber-tint: var(--hp-warn-50);
  --og-orange: var(--hp-warn);
  --og-orange-dark: #2f43c7;
  --mf-blue: var(--hp-brand);
  --mf-blue-dark: var(--hp-brand-600);
  --mf-ink: var(--hp-ink);
  --mf-muted: var(--hp-body);
  --mf-tint: var(--hp-surface);
  --mf-line: var(--hp-line);
  --mf-amber: var(--hp-warn);
  --mf-orange: var(--hp-warn);
  --re-blue: var(--hp-brand);
  --re-blue-dark: var(--hp-brand-600);
  --re-ink: var(--hp-ink);
  --re-muted: var(--hp-body);
  --re-tint: var(--hp-surface);
  --re-line: var(--hp-line);
  --re-amber: var(--hp-warn);
  --re-orange: var(--hp-warn);
  --dm-blue: var(--hp-brand);
  --dm-blue-dark: var(--hp-brand-600);
  --dm-ink: var(--hp-ink);
  --dm-muted: var(--hp-body);
  --dm-tint: var(--hp-surface);
  --dm-line: var(--hp-line);
  --dm-amber: var(--hp-warn);
  --env-blue: var(--hp-brand);
  --env-navy: var(--hp-ink);
  --env-ink: var(--hp-ink);
  --env-muted: var(--hp-body);
  --env-tint: var(--hp-surface);
  --env-line: var(--hp-line);
  --qbrand: var(--hp-brand);
  --qbrand-d: var(--hp-brand-700);
  --qbrand-l: var(--hp-sky);
  --qink: var(--hp-ink);
  --navy: var(--hp-ink);
  --blue: var(--hp-brand);
  --amber: var(--hp-warn);
  --sky: var(--hp-brand-50);
  --paper: var(--hp-surface);
  --line: var(--hp-line);
  --mute: var(--hp-body);
  font-family: var(--hp-font);
  color: var(--hp-text);
}

body.hp2.in-page main {
  padding-top: var(--hp-nav-h);
}

body.hp2.in-page main,
body.hp2.in-page main * {
  font-family: var(--hp-font);
}

body.hp2.in-page .container,
body.hp2.in-page .container-lg {
  width: 100%;
  max-width: 540px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  body.hp2.in-page .container,
  body.hp2.in-page .container-lg { max-width: 720px; }
}

@media (min-width: 992px) {
  body.hp2.in-page .container,
  body.hp2.in-page .container-lg { max-width: 960px; }
}

@media (min-width: 1200px) {
  body.hp2.in-page .container,
  body.hp2.in-page .container-lg { max-width: 1140px; }
}

@media (min-width: 1400px) {
  body.hp2.in-page .container,
  body.hp2.in-page .container-lg { max-width: 1280px; }
}

body.hp2.in-page main h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.hp2.in-page main h2 {
  font-size: clamp(1.875rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.16;
}

body.hp2.in-page main h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

body.hp2.in-page main > section:first-of-type {
  padding-top: 56px;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(70, 95, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--hp-surface) 0%, #fff 78%);
}

body.hp2.in-page main :is(.lp-hero p.lead, .sa-hero .lead) {
  color: var(--hp-body);
}

body.hp2.in-page main :is(
  .sfs-hero, .pr-hero, .si-hero, .env-hero, .re-hero, .og-hero, .mf-hero, .cn-hero,
  .ind-hero, .dm-hero, .capa-hero, .bd-hero, .ptw-hero, .sfb-hero, .sf-legal-hero,
  .nf-hero, .lp-hero, .sa-hero, .qp .hero
) {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(70, 95, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--hp-surface) 0%, #fff 78%);
}

body.hp2.in-page .breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 500;
}

body.hp2.in-page .breadcrumb-item a,
body.hp2.in-page .sa-crumbs a {
  color: var(--hp-brand);
  font-weight: 600;
  text-decoration: none;
}

body.hp2.in-page .breadcrumb-item.active {
  color: var(--hp-muted);
}

body.hp2.in-page main :is(.sf-form .form-control, .sf-form .form-select, .form-control, .form-select) {
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--hp-ink);
  background: #fff;
}

body.hp2.in-page main :is(.form-control, .form-select):focus {
  border-color: var(--hp-brand);
  box-shadow: 0 0 0 4px rgba(70, 95, 255, .15);
}

body.hp2.in-page main :is(.lp-btn, .sa-btn, .qbtn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .72rem 1.35rem;
  border-radius: 10px;
  border: 1px solid var(--hp-brand);
  background: var(--hp-brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

body.hp2.in-page main :is(.lp-btn.ghost, .sa-btn.ghost) {
  background: #fff;
  color: var(--hp-ink);
  border-color: var(--hp-line);
}

/* Quality page button variants and hover states. The shared button rule
   above is more specific than the page's own variants, so restate them here
   using the homepage button colors. */
body.hp2.in-page main .qbtn:hover {
  background: var(--hp-brand-600);
  border-color: var(--hp-brand-600);
  color: #fff;
}

body.hp2.in-page main .qbtn.ghost {
  background: #fff;
  color: var(--hp-ink);
  border-color: var(--hp-line);
}

body.hp2.in-page main .qbtn.ghost:hover {
  background: var(--hp-brand-50);
  color: var(--hp-brand-700);
  border-color: var(--hp-brand-100);
}

body.hp2.in-page main .qbtn.white {
  background: #fff;
  color: var(--hp-brand);
  border-color: #fff;
}

body.hp2.in-page main .qbtn.white:hover {
  background: var(--hp-brand-50);
  color: var(--hp-brand-700);
  border-color: var(--hp-brand-50);
}

body.hp2.in-page main .qbtn.outline-w {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

body.hp2.in-page main .qbtn.outline-w:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: #fff;
}

body.hp2.in-page main :is(
  .cn-shot, .og-shot, .mf-shot, .re-shot, .capa-hero-image, .lp-shot img,
  .sfb-card-media img, figure img, .sf-impact-card img, .sf-contact-card img
) {
  border-radius: 24px;
  box-shadow: var(--hp-shadow);
}

body.hp2.in-page main :is(.sfb-card, .sfs-panel, .sf-feature, .sf-impact-card, .sf-contact-card, .qcard) {
  border: 1px solid var(--hp-line);
  border-radius: 20px;
  box-shadow: var(--hp-shadow-sm);
}

body.hp2.in-page .bi::before {
  background: none;
  -webkit-mask: none;
  mask: none;
  width: auto;
  height: auto;
  display: inline-block;
  font-family: "bootstrap-icons";
}

/* Headings follow the homepage scale, including where a page set a one-off size. */
body.hp2.in-page main h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--hp-ink);
}

body.hp2.in-page main h2 {
  font-size: clamp(1.875rem, 1.2rem + 1.9vw, 2.5rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.028em;
  line-height: 1.16;
  color: var(--hp-ink);
}

body.hp2.in-page main h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.5rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--hp-ink);
}

body.hp2.in-page main :is(.sfs-cta, .lp-cta, .sa-cta, .sa-dark, .pr-price, .ctasec, .hp-close) :is(h1, h2, h3) {
  color: #fff;
}

body.hp2.in-page main :is(.sfs-cta, .lp-cta, .sa-cta) {
  background:
    radial-gradient(420px 180px at 12% 80%, rgba(70, 95, 255, .35), transparent 60%),
    var(--hp-ink);
  border-radius: 32px;
  color: #fff;
}

body.hp2.in-page main :is(.sfs-cta, .lp-cta, .sa-cta) p {
  color: rgba(226, 232, 245, .82);
}

body.hp2.in-page main :is(.pr-eyebrow, .sfs-kicker, .lp-kick, [class*="-eyebrow"]) {
  color: var(--hp-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.hp2.in-page .ind-hero-frame::before {
  height: 3px;
  background: var(--hp-brand);
}

body.hp2.in-page .ind-chips,
body.hp2.in-page .ind-chips i {
  color: var(--hp-ink);
}

body.hp2.in-page .pr-price-label {
  color: rgba(255, 255, 255, .72);
}

body.hp2.in-page main :is(.alt, .ind-alt, .pr-section--tint, .section.alt, .sf-legal-hero) {
  background: var(--hp-surface);
}

body.hp2.in-page main :is(.pr-section, .ind-sec, .sfs-sec) {
  padding: 96px 0;
}

body.hp2.in-page article.sf-section h2 {
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 1.85rem) !important;
}

body.hp2.in-page .in-article-visual {
  max-width: 920px;
  margin: 36px auto 0;
}

body.hp2.in-page .in-article-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid var(--hp-line);
  box-shadow: var(--hp-shadow);
}

body.hp2.in-page .sf-legal-content h2 {
  margin-top: 2.25rem;
}

body.hp2.in-page .sf-legal-content p,
body.hp2.in-page .sf-legal-content li {
  color: var(--hp-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (max-width: 575.98px) {
  body.hp2.in-page main h1 { font-size: 1.85rem !important; }
  body.hp2.in-page main h2 { font-size: 1.55rem !important; }
  body.hp2.in-page main :is(.pr-section, .ind-sec, .sfs-sec) { padding: 64px 0; }
}

/* Header: cancel older site styles so the homepage header rules apply as written. */
body.hp2.in-page .hp-header .sf-navbar {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.hp2.in-page .hp-header .sf-nav {
  gap: 4px;
  padding: 0;
}

body.hp2.in-page .hp-header .sf-nav .nav-link {
  padding: .55rem .8rem !important;
  font-size: .9375rem;
}

body.hp2.in-page .hp-header .btn-sf-nav {
  margin-left: 12px;
  margin-top: 0;
  width: auto;
  padding: .6rem 1.15rem;
  font-size: .875rem;
  border-radius: 9px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  body.hp2.in-page .hp-header .sf-nav .nav-link {
    padding: .5rem .55rem !important;
    font-size: .875rem;
  }
}

body.hp2.in-page .hp-close h2 {
  font-size: clamp(1.875rem, 1.2rem + 1.9vw, 2.875rem) !important;
  font-weight: 650 !important;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: #fff !important;
}

body.hp2.in-page .hp-close .sf-lead {
  color: rgba(226, 232, 245, .78);
  margin: 20px 0 36px;
  max-width: 480px;
}

body.hp2.in-page .hp-close__kicker {
  margin: 0 0 12px;
  color: #dfe4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.hp2.in-page .hp-close__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

body.hp2.in-page .hp-close__link {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 4px;
}

body.hp2.in-page .hp-close__link:hover {
  color: var(--hp-brand-100);
}

body.hp2.in-page .hp-close__screen img {
  aspect-ratio: 921 / 612;
  object-fit: cover;
  object-position: center;
  height: auto;
}

body.hp2.in-page .hp-close__tablet {
  aspect-ratio: 1000 / 471;
  object-fit: cover;
  object-position: center;
  height: auto;
  border-radius: 16px;
  border: 7px solid #0e1a2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 40px rgba(0, 0, 0, .45);
  filter: none;
  background: #0e1a2e;
}

body.hp2.in-page .hp-close__phone img {
  aspect-ratio: 417 / 886;
  object-fit: cover;
  object-position: center 28%;
  height: auto;
}

body.hp2.in-page .hp-close__form,
body.hp2.in-page .hp-close form {
  background: #fff;
  color: var(--hp-ink);
  border-radius: 20px;
  padding: 22px;
}

body.hp2.in-page .hp-close form :is(h2, p, label, .lp-fine, .sa-fine, .privacy) {
  color: var(--hp-ink) !important;
}

body.hp2.in-page .hp-close form h2 {
  font-size: 1.35rem !important;
  margin-top: 0;
}

body.hp2.in-page .hp-close form :is(a) {
  color: var(--hp-brand);
}

/* ==========================================================================
   Inner hero banner
   Same treatment as the homepage hero (home-v2.css "v5 full-bleed hero"):
   full-bleed photo, dark left-to-right overlay, white left-aligned copy,
   brand primary button and a white secondary button.
   Markup: <section class="... in-hero" style="--in-hero-img:url(...)">
           copy column gets .in-hero__copy. Simple one-column heroes add .in-hero--simple.
   ========================================================================== */
body.hp2 main .in-hero.in-hero.in-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 88px;
  margin: 0;
  color: #fff;
  background-color: var(--hp-ink);
  background-image:
    linear-gradient(90deg, rgba(16, 24, 40, .92) 0%, rgba(16, 24, 40, .8) 42%, rgba(16, 24, 40, .38) 72%, rgba(16, 24, 40, .22) 100%),
    var(--in-hero-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
}

body.hp2 main .in-hero.in-hero.in-hero::before,
body.hp2 main .in-hero.in-hero.in-hero::after {
  content: none;
}

body.hp2 main .in-hero.in-hero.in-hero--simple {
  padding: 88px 0 104px;
  background-image:
    linear-gradient(90deg, rgba(16, 24, 40, .92) 0%, rgba(16, 24, 40, .78) 50%, rgba(16, 24, 40, .3) 100%),
    var(--in-hero-img, none);
}

body.hp2 main .in-hero > .container {
  position: relative;
  z-index: 1;
}

body.hp2 main .in-hero .in-hero__copy { text-align: left; }

body.hp2 main .in-hero--simple .in-hero__copy :is(h1, p, form) {
  margin-left: 0;
  margin-right: auto;
}

/* Left-align everything, as on the homepage hero */
body.hp2 main .in-hero .text-center { text-align: left !important; }
body.hp2 main .in-hero .mx-auto { margin-left: 0 !important; margin-right: auto !important; }
body.hp2 main .in-hero .justify-content-center { justify-content: flex-start !important; }

body.hp2 main .in-hero--simple .in-hero__copy > *,
body.hp2 main .in-hero--simple .in-hero__copy .text-center > * {
  max-width: 760px;
}

/* Breadcrumbs */
body.hp2 main .in-hero :is(.breadcrumb, .sa-crumbs, .breadcrumbs, .crumbs ol) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 500;
}

body.hp2 main .in-hero :is(.breadcrumb-item a, .sa-crumbs a, .breadcrumbs a, .crumbs a) {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

body.hp2 main .in-hero :is(.breadcrumb-item a, .sa-crumbs a, .breadcrumbs a, .crumbs a):hover {
  color: var(--hp-brand-100);
}

body.hp2 main .in-hero .breadcrumb-item.active,
body.hp2 main .in-hero .crumbs [aria-current] {
  color: rgba(255, 255, 255, .72);
}

body.hp2 main .in-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .45);
}

/* Eyebrow: homepage .sf-pill on a dark surface */
body.hp2 main .in-hero__copy :is(.sf-pill, .capa-eyebrow, .pr-eyebrow, .eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--hp-sky);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.hp2 main .in-hero__copy :is(.capa-eyebrow, .pr-eyebrow, .eyebrow)::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

body.hp2 main .in-hero__copy .capa-eyebrow-dot { display: none; }

/* Headline and copy */
body.hp2.in-page main .in-hero__copy h1,
body.hp2 main .in-hero__copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 1.3rem + 2.4vw, 3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

body.hp2 main .in-hero__copy h1 * {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  background: none;
  font-style: normal;
}

body.hp2 main .in-hero__copy :is(p, .lead, .sf-lead) {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.7;
}

body.hp2 main .in-hero__copy h1 + :is(p, .lead, .sf-lead) {
  margin-top: 18px;
}

body.hp2 main .in-hero__copy :is(strong, b, time) { color: #fff; }

body.hp2 main .in-hero__copy p a:not([class*="btn"]) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.hp2 main .in-hero__copy :is(.capa-hero-note, .pr-small-note, .microcopy) {
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
}

body.hp2 main .in-hero__copy .capa-hero-note i { color: var(--hp-sky); }

body.hp2 main .in-hero__copy .nf-code {
  color: var(--hp-sky);
  -webkit-text-fill-color: currentColor;
  background: none;
  opacity: .9;
}

/* Action row */
body.hp2 main .in-hero__copy :is(.sf-hero-actions, .d-flex, .bd-hero-cta, .capa-hero-actions, .dm-hero-cta, .cn-hero-cta, .mf-hero-cta, .og-hero-cta, .re-hero-cta, .sfs-hero-cta, .ind-hero-cta, .pr-actions, .acts, .sa-acts, .cta, .cta-row, .hero-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

/* Secondary actions become the homepage's white hero button */
body.hp2 main .in-hero__copy :is(
  .sf-link, .cn-link, .mf-link, .og-link, .re-link, .dm-link, .sfs-textlink, .capa-text-link,
  .pr-btn-secondary, .btn-outline-secondary, .btn-outline, .btn-ghost, .lp-btn.ghost, .sa-btn.ghost,
  .qbtn.ghost, .bd-btn-ghost
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: .72rem 1.7rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: var(--hp-ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
  align-self: auto !important;
  transition: background-color .25s ease, transform .25s var(--hp-ease);
}

body.hp2 main .in-hero__copy :is(
  .sf-link, .cn-link, .mf-link, .og-link, .re-link, .dm-link, .sfs-textlink, .capa-text-link,
  .pr-btn-secondary, .btn-outline-secondary, .btn-outline, .btn-ghost, .lp-btn.ghost, .sa-btn.ghost,
  .qbtn.ghost, .bd-btn-ghost
):hover {
  background: #f4f6fb;
  color: var(--hp-ink);
  transform: translateY(-1px);
}

body.hp2 main .in-hero__copy :is(.sf-link, .cn-link, .mf-link, .og-link, .re-link, .dm-link, .sfs-textlink, .capa-text-link)::after {
  content: none;
}

/* Primary actions: homepage .btn-sf shape */
body.hp2 main .in-hero__copy :is(.btn-sf, .btn-primary, .lp-btn:not(.ghost), .sa-btn:not(.ghost), .qbtn:not(.ghost), .bd-btn-primary, .hero-actions .btn:not(.btn-outline)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .72rem 1.7rem;
  border: 1px solid var(--hp-brand);
  border-radius: 8px;
  background: var(--hp-brand);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

body.hp2 main .in-hero__copy :is(.btn-sf, .btn-primary, .lp-btn:not(.ghost), .sa-btn:not(.ghost), .qbtn:not(.ghost), .bd-btn-primary, .hero-actions .btn:not(.btn-outline)):hover {
  background: var(--hp-brand-600);
  border-color: var(--hp-brand-600);
  color: #fff;
}

/* Highlight lists become glass chips */
body.hp2 main .in-hero__copy ul:not(.breadcrumb) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: none;
}

body.hp2 main .in-hero__copy ul:not(.breadcrumb) > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  backdrop-filter: blur(6px);
  box-shadow: none;
}

body.hp2 main .in-hero__copy ul:not(.breadcrumb) > li::before {
  content: none;
}

body.hp2 main .in-hero__copy ul:not(.breadcrumb) > li :is(i, .check) {
  color: var(--hp-sky);
  background: none;
  font-size: 1rem;
}

/* Pricing headline price on the dark banner */
body.hp2 main .in-hero__copy .pr-price {
  display: inline-block;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--hp-r);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

body.hp2 main .in-hero__copy .pr-price :is(p, span) { color: #fff; }
body.hp2 main .in-hero__copy .pr-price .pr-price-label,
body.hp2 main .in-hero__copy .pr-price .pr-price-alt { color: rgba(255, 255, 255, .72); }

/* Blog: search and topic filters on the banner */
body.hp2 main .in-hero__copy .sfb-search {
  margin-left: 0;
  margin-right: auto;
}

body.hp2 main .in-hero__copy .sfb-chip {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

body.hp2 main .in-hero__copy .sfb-chip[aria-pressed="true"],
body.hp2 main .in-hero__copy .sfb-chip:hover {
  border-color: #fff;
  background: #fff;
  color: var(--hp-ink);
}

/* Captions beside the illustrative cards sit on the photo */
body.hp2 main .in-hero :is(.cn-eg, .mf-eg, .og-eg, .re-eg, .si-mock-note, .env-caption) {
  color: rgba(255, 255, 255, .72);
}

/* Visual column cards keep their white surfaces and pick up the homepage shadow */
body.hp2 main .in-hero :is(.si-mock, .cn-board, .mf-board, .og-board, .re-board, .dm-doc, .sfs-panel, .pr-hero-panel, .env-mock, .sa-mock, .ptw-ui-window, .qp .mock, .mock, .phone) {
  box-shadow: var(--hp-shadow-lg);
}

body.hp2 main .in-hero .ind-hero-frame {
  border-radius: var(--hp-r-lg);
  overflow: hidden;
  box-shadow: var(--hp-shadow-lg);
}

/* Featured image that follows a simple banner (blog posts, guide) */
body.hp2 main .in-hero-media {
  position: relative;
  z-index: 2;
  margin-top: -56px;
  padding-bottom: 8px;
}

body.hp2 main .in-hero-media .in-article-visual {
  max-width: 960px;
  margin: 0 auto;
}

body.hp2 main .in-hero-media .in-article-visual img {
  border: 4px solid #fff;
  box-shadow: var(--hp-shadow-lg);
}

body.hp2 main .in-hero + .in-after-hero { padding-top: 56px; }

/* Supporting photo band inside text-led sections (homepage image treatment) */
body.hp2 main .in-media-band {
  position: relative;
  margin: 48px 0 0;
  overflow: hidden;
  border-radius: var(--hp-r-lg);
  box-shadow: var(--hp-shadow);
  background: var(--hp-surface);
}

body.hp2 main .in-media-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 1.2s var(--hp-ease);
}

body.hp2 main .in-media-band:hover img { transform: scale(1.03); }

body.hp2 main .in-media-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .06);
}

@media (max-width: 767.98px) {
  body.hp2 main .in-media-band { margin-top: 32px; border-radius: var(--hp-r); }
  body.hp2 main .in-media-band img { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  body.hp2 main .in-media-band img { transition: none; }
  body.hp2 main .in-media-band:hover img { transform: none; }
}

/* Text on the dark banner: guard against older per-page colour rules */
body.hp2 main .in-hero .in-hero__copy h1 { color: #fff !important; }
body.hp2 main .in-hero .in-hero__copy :is(p, .lead, .sf-lead):not(.nf-code) { color: rgba(255, 255, 255, .88) !important; }
body.hp2 main .in-hero .in-hero__copy :is(strong, b, time, ul:not(.breadcrumb) > li) { color: #fff !important; }
body.hp2 main .in-hero .in-hero__copy :is(.capa-hero-note, .pr-small-note, .microcopy, .iso-date) { color: rgba(255, 255, 255, .72) !important; }

@media (max-width: 991.98px) {
  body.hp2 main .in-hero.in-hero.in-hero,
  body.hp2 main .in-hero.in-hero.in-hero--simple {
    padding: 56px 0 72px;
    background-image:
      linear-gradient(180deg, rgba(16, 24, 40, .86) 0%, rgba(16, 24, 40, .8) 55%, rgba(16, 24, 40, .9) 100%),
      var(--in-hero-img, none);
  }
}

@media (max-width: 575.98px) {
  body.hp2 main .in-hero.in-hero.in-hero,
  body.hp2 main .in-hero.in-hero.in-hero--simple { padding: 44px 0 60px; }

  body.hp2.in-page main .in-hero__copy h1,
  body.hp2 main .in-hero__copy h1 { font-size: 2rem !important; }

  body.hp2 main .in-hero__copy :is(.sf-hero-actions, .d-flex, .bd-hero-cta, .capa-hero-actions, .dm-hero-cta, .cn-hero-cta, .mf-hero-cta, .og-hero-cta, .re-hero-cta, .sfs-hero-cta, .ind-hero-cta, .pr-actions, .acts, .sa-acts, .cta, .cta-row, .hero-actions) > * {
    flex: 1 1 100%;
  }

  body.hp2 main .in-hero-media { margin-top: -36px; }
}

@media (max-width: 991.98px) {
  body.hp2.in-page .hp-header .sf-navbar {
    min-height: var(--hp-nav-h);
    padding: 0;
  }

  body.hp2.in-page .hp-header .sf-nav {
    gap: 0;
    padding: 0;
  }

  body.hp2.in-page .hp-header .sf-nav .nav-link {
    padding: .8rem .25rem !important;
  }

  body.hp2.in-page .hp-header .btn-sf-nav {
    width: 100%;
    margin-left: 0;
    margin-top: 16px;
    padding: .85rem 1rem;
  }
}

/* ==========================================================================
   Text contrast fixes (colors only)
   The shared heading and banner rules above set dark headings and white
   banner text everywhere. These rules restore each page's own intended color
   where that made text unreadable.
   ========================================================================== */

/* Headings on dark or brand-blue panels: restore the pages' white headings */
body.hp2.in-page main :is(
  .sfb-panel h2,
  .capa-platform-copy h2,
  .dm-audit h2, .dm-quick h3, .dm-region h2,
  .si-band-dark h2,
  .sa-xr h2,
  .cn-audit h2, .cn-quick h3, .cn-std h3,
  .mf-audit h2, .mf-quick h3, .mf-region h2, .mf-std h3,
  .og-audit h2, .og-quick h3, .og-region h2, .og-std h3,
  .re-band h2, .re-quick h3, .re-region h2, .re-std h3,
  .sfs-why .sfs-sec-head h2, .sfs-why-item h3
) {
  color: #fff;
}

/* Quality page: the white card inside the dark CTA band keeps dark text */
body.hp2.in-page main .ctasec .band.light h2 {
  color: var(--hp-ink);
}

body.hp2.in-page main .ctasec .band.light p {
  color: var(--qmut);
}

body.hp2.in-page main .ctasec .band.grad p {
  color: #fff;
}

/* Quality page: the page-wide link color turned button text blue on blue */
body.hp2.in-page main.qp a.btn-sf {
  color: #fff;
}

/* White preview cards inside the photo banners: text inherited the banner's
   white, so it vanished on the white cards. Restore the normal text color. */
body.hp2 main .in-hero :is(.capa-hero-visual, .env-mock, .mock) {
  color: var(--hp-text);
}

/* Labels on the dark "At a glance" panels use the same light blue as the
   document management page instead of dark orange */
body.hp2.in-page main :is(.cn-quick, .mf-quick, .og-quick, .re-quick) dt {
  color: var(--hp-sky);
}

/* Saudi page city tags: white text on the orange tag */
body.hp2.in-page main .sa-tags.em li {
  color: #fff;
}

/* Green status badges on pale green: use the darker palette green */
body.hp2.in-page main :is(.dm-badge--now, .dm-chain .dm-chain-end, .cn-live, .mf-live, .og-live, .re-live, .pr-panel-label) {
  color: #0a7a55;
}

/* Small grey notes on light backgrounds: use the standard muted grey */
body.hp2.in-page main :is(.ptw-note, .capa-demo-assurance) {
  color: var(--hp-muted);
}

/* CAPA challenge card numbers (small bold labels) were too faint */
body.hp2.in-page main .capa-card-number {
  color: var(--hp-muted);
}

/* Inspection frequency tags: the third tag's pale blue was too light for
   white text; use the palette's darker brand blue */
body.hp2.in-page main .si-freq-card:nth-child(3) .si-freq-tag {
  background: var(--hp-brand-600);
}

/* Links on the dark CAPA platform panel and the green link on white */
body.hp2.in-page main .capa-platform-copy a:not(.btn) {
  color: var(--hp-brand-100);
}

/* Hover states */
/* Environment page dark banner: the site-wide link hover turned this link
   dark blue on a dark blue banner */
body.hp2.in-page main .env-banner.dark .sf-link:hover {
  color: #fff;
}

/* Skip link sits on the brand blue; keep its text white on hover */
body.hp2.in-page .skip-link:hover {
  color: #fff;
}

/* FAQ Show More / Show Less (assets/js/faq-more.js) */
body.hp2 main [data-faq-more] > [hidden] {
  display: none !important;
}

body.hp2 main .sf-faq-more {
  margin-top: 18px;
  text-align: center;
}

body.hp2 main .sf-faq-more__btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--hp-brand, #465fff);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .2s, text-decoration-color .2s;
}

body.hp2 main .sf-faq-more__btn:focus-visible {
  outline: 2px solid var(--hp-brand, #465fff);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (hover: hover) {
  body.hp2 main .sf-faq-more__btn:hover {
    color: var(--hp-brand-700, #2f43c7);
    text-decoration-color: currentColor;
  }
}
