/* Legacy-parity text rendering: the old Creditas site sets
 * -webkit-font-smoothing: antialiased globally, which renders type
 * lighter/thinner on macOS. Webflow Code Components live in isolated
 * shadow roots, so this must be declared per-component on :host to
 * inherit into the shadow tree (the property does not cross the
 * shadow boundary). Without it, Blink defaults to subpixel smoothing
 * and identical 400-weight text looks heavier than the old site. */
:host {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * HeroImage — constrained image component.
 * Max dimensions: 567px × 694px (Figma spec for HeroWithSlot image variant).
 */

:host {
  display: block;
  width: 100%;
}

.hero-image,
.hero-image *,
.hero-image *::before,
.hero-image *::after {
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  max-width: 567px;
  margin-left: auto;
  margin-right: auto;

  .img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 694px;
    object-fit: contain;
    object-position: center top;
  }
}

