/* Approved final CTA: Homepage and Reach hub. Load after existing bundles.
   Shared layout stays grouped; colour-bearing rules are cleanly separated so the
   homepage .proto-contact-scene carries the approved charcoal / pearl / gold
   treatment while the Reach hub .rex-cta keeps its original light / teal appearance.
   Local tokens and wrapper-qualified selectors keep other buttons untouched. */

/* Shared box + typography for both CTAs (no colour). */
body.proto-home main > .proto-contact-scene,
body.sitewide-sync.reach-hub-page main > .rex-cta {
  --ctaf-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  border: 0 !important;
  padding-block: clamp(56px, 6vh, 76px) !important;
}

/* Reach hub CTA — original approved light / teal appearance (unchanged). */
body.sitewide-sync.reach-hub-page main > .rex-cta {
  --ctaf-ink: #20272d;
  --ctaf-line: rgba(6, 161, 177, .55);
  --ctaf-primary: #06a1b1;
  --ctaf-primary-ink: #fff;
  background: #fbfaf6;
  color: var(--ctaf-ink);
  border-top: 1px solid rgba(32, 39, 45, .18) !important;
}

/* Homepage dedicated CTA — approved charcoal / pearl / gold treatment. */
body.proto-home main > .proto-contact-scene {
  --ctaf-ink: #fbfaf6;
  --ctaf-line: rgba(255, 255, 255, .22);
  --ctaf-primary: #fcb802;
  --ctaf-primary-ink: #131417;
  background: #111214;
  color: var(--ctaf-ink);
  border-top: 1px solid rgba(255, 255, 255, .10) !important;
}

body.proto-home .proto-contact-scene .proto-contact,
body.sitewide-sync.reach-hub-page .rex-cta .rex-cta-grid {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding-block: 0 !important;
}

/* Eyebrow — shared layout, colour separated per surface. */
body.proto-home .proto-contact-scene .proto-kicker,
body.sitewide-sync.reach-hub-page .rex-cta .eyebrow {
  font: 600 13px/1 var(--ctaf-font) !important;
  letter-spacing: .09em !important;
  text-transform: uppercase;
  margin: 0 0 18px !important;
}
body.sitewide-sync.reach-hub-page .rex-cta .eyebrow {
  color: rgba(32, 39, 45, .72) !important;
}
body.proto-home .proto-contact-scene .proto-kicker {
  color: #fcb802 !important;
}

/* Heading — colour follows the per-surface --ctaf-ink token. */
body.proto-home .proto-contact-scene h2,
body.sitewide-sync.reach-hub-page .rex-cta h2 {
  color: var(--ctaf-ink) !important;
  font: 600 clamp(40px, 3.6vw, 52px)/1.02 var(--ctaf-font) !important;
  letter-spacing: -.03em !important;
  max-width: 820px !important;
  margin: 0 !important;
}

/* Supporting copy — shared layout, colour separated per surface. */
body.proto-home .proto-contact-scene .proto-contact-sub,
body.sitewide-sync.reach-hub-page .rex-cta p:not(.eyebrow) {
  font: 400 clamp(18px, 1.25vw, 20px)/1.5 var(--ctaf-font) !important;
  max-width: 52ch !important;
  margin: 16px 0 0 !important;
}
body.sitewide-sync.reach-hub-page .rex-cta p:not(.eyebrow) {
  color: rgba(32, 39, 45, .68) !important;
}
body.proto-home .proto-contact-scene .proto-contact-sub {
  color: rgba(251, 250, 246, .78) !important;
}

body.proto-home .proto-contact-scene .proto-contact-actions,
body.sitewide-sync.reach-hub-page .rex-cta .rex-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  gap: 12px !important;
  margin: 32px 0 0 !important;
}

body.proto-home .proto-contact-scene .proto-contact-actions > a,
body.sitewide-sync.reach-hub-page .rex-cta .rex-actions > a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border: 1px solid var(--ctaf-line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .68) !important;
  color: #078e9d !important;
  font: 700 15px/1 var(--ctaf-font) !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

/* Primary action — shared ink token; fill separated per surface. */
body.proto-home .proto-contact-scene .proto-contact-actions > a.proto-btn-dark,
body.sitewide-sync.reach-hub-page .rex-cta .rex-actions > a.button-primary {
  color: var(--ctaf-primary-ink) !important;
}
body.sitewide-sync.reach-hub-page .rex-cta .rex-actions > a.button-primary {
  border-color: rgba(255, 255, 255, .20) !important;
  background: linear-gradient(180deg, #0cb2c2 0%, #06a1b1 54%, #078e9d 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), 0 7px 18px rgba(6, 161, 177, .20) !important;
}
body.proto-home .proto-contact-scene .proto-contact-actions > a.proto-btn-dark {
  border-color: rgba(0, 0, 0, .08) !important;
  background: #fcb802 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 7px 18px rgba(252, 184, 2, .24) !important;
}

body.proto-home .proto-contact-scene .proto-contact-actions svg,
body.sitewide-sync.reach-hub-page .rex-cta .rex-actions svg {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.proto-home .proto-contact-scene .proto-contact-actions,
  body.sitewide-sync.reach-hub-page .rex-cta .rex-actions {
    align-self: stretch !important;
    width: 100% !important;
  }

  body.proto-home .proto-contact-scene .proto-contact-actions > a,
  body.sitewide-sync.reach-hub-page .rex-cta .rex-actions > a {
    flex: 1 1 0 !important;
  }
}

@media (max-width: 767px) {
  body.proto-home main > .proto-contact-scene,
  body.sitewide-sync.reach-hub-page main > .rex-cta {
    padding-block: clamp(26px, 4vh, 36px) !important;
  }

  body.proto-home .proto-contact-scene .proto-kicker,
  body.sitewide-sync.reach-hub-page .rex-cta .eyebrow {
    font-size: 11px !important;
    margin-bottom: 20px !important;
  }

  body.proto-home .proto-contact-scene h2,
  body.sitewide-sync.reach-hub-page .rex-cta h2 {
    font-size: clamp(30px, 8vw, 36px) !important;
  }

  body.proto-home .proto-contact-scene .proto-contact-sub,
  body.sitewide-sync.reach-hub-page .rex-cta p:not(.eyebrow) {
    font-size: 17px !important;
  }

  body.proto-home .proto-contact-scene .proto-contact-actions,
  body.sitewide-sync.reach-hub-page .rex-cta .rex-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.proto-home .proto-contact-scene .proto-contact-actions > a,
  body.sitewide-sync.reach-hub-page .rex-cta .rex-actions > a {
    width: 100% !important;
    min-height: 48px !important;
    padding-inline: 20px !important;
  }
}
