/* Rettatide V3 first-screen and mobile containment overrides. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.r2-announcement,
.r2-site-header,
.r2-hero,
.r2-trust {
  max-width: 100%;
  overflow-x: clip;
}

.r2-announcement *,
.r2-site-header *,
.r2-hero *,
.r2-trust * {
  box-sizing: border-box;
}

.r2-announcement .r2-container,
.r2-site-header .r2-container,
.r2-hero .r2-container,
.r2-trust .r2-container {
  max-width: 100%;
}

.r2-announcement__inner {
  overflow: hidden;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 4vw, 56px);
}

.r2-announcement__item,
.r2-trust__item {
  min-width: 0;
}

.r2-site-header__logo img,
.r2-hero__image,
.r2-hero__image--fallback,
.r2-hero__badge-image,
.r2-trust__icon {
  max-width: 100%;
}

.r2-announcement__icon,
.r2-hero__badge-image,
.r2-trust__icon {
  height: auto;
}

.r2-hero__title,
.r2-hero__title-emphasis {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-style: normal;
}

.r2-hero__image-wrap {
  transform: none;
}

.r2-hero__image-wrap--landscape,
.r2-hero__image-wrap--standard,
.r2-hero__image-wrap--square {
  display: block;
}

.r2-hero__image-wrap--landscape {
  aspect-ratio: 3 / 2;
}

.r2-hero__image-wrap--standard {
  aspect-ratio: 4 / 3;
}

.r2-hero__image-wrap--square {
  aspect-ratio: 1 / 1;
}

.r2-hero__image-wrap--landscape > .r2-hero__image,
.r2-hero__image-wrap--standard > .r2-hero__image,
.r2-hero__image-wrap--square > .r2-hero__image {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto;
}

.r2-trust__inner {
  overflow: hidden;
  flex-wrap: wrap;
  min-height: 58px;
}

.r2-trust__item {
  flex: 0 1 auto;
  padding: 7px 18px;
}

@media (max-width: 820px) {
  .r2-announcement__inner {
    min-height: 32px;
    justify-content: center;
    gap: 0;
    padding: 0 12px;
    overflow: hidden !important;
    flex-wrap: nowrap;
  }

  .r2-announcement__item {
    max-width: 100%;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
  }

  .r2-announcement--mobile-first .r2-announcement__item:nth-child(n + 2) {
    display: none;
  }

  .r2-announcement--mobile-hidden {
    display: none;
  }

  .r2-announcement--mobile-wrap .r2-announcement__inner {
    min-height: 0;
    flex-wrap: wrap;
    gap: 2px 14px;
    padding: 5px 12px;
  }

  .r2-announcement--mobile-wrap .r2-announcement__item {
    width: auto;
    max-width: 100%;
    padding: 2px 0;
    white-space: normal;
    text-align: center;
  }

  .r2-site-header__inner {
    width: calc(100% - 28px);
    min-height: 56px;
    gap: 8px;
  }

  .r2-site-header__logo {
    min-width: 0;
    max-width: calc(100% - 92px);
    flex: 1 1 auto;
    overflow: hidden;
  }

  .r2-site-header__logo img {
    width: min(var(--r2-header-logo-mobile-width, 145px), 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 42px;
    display: block;
  }

  .r2-site-header__actions {
    min-width: 0;
    flex: 0 0 auto;
    gap: 2px;
  }

  .r2-site-header__actions .r2-icon-button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .r2-site-header__actions .r2-icon-button svg {
    width: 20px;
    height: 20px;
  }

  .r2-mobile-menu__panel {
    right: 0;
    width: min(300px, calc(100vw - 28px));
    max-height: calc(100vh - 105px);
    overflow-y: auto;
  }

  .r2-hero {
    padding: 30px 0 34px;
    background: linear-gradient(160deg, #fff 0%, var(--r2-pale) 100%);
  }

  .r2-hero::before {
    display: none;
  }

  .r2-hero__inner {
    width: calc(100% - 32px);
    gap: 22px;
  }

  .r2-hero__copy {
    width: 100%;
    min-width: 0;
  }

  .r2-hero__eyebrow {
    margin-bottom: 10px !important;
    font-size: 10.5px;
    line-height: 1.35;
    letter-spacing: .12em;
  }

  .r2-hero__title {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.01;
    letter-spacing: -.025em;
  }

  .r2-hero__body {
    max-width: none;
    margin-top: 14px !important;
    font-size: 13.5px;
    line-height: 1.55;
  }

  .r2-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .r2-hero__actions .r2-button {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 10px 9px;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .r2-hero__stats,
  .r2-hero__badge {
    display: none !important;
  }

  .r2-hero__media {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    margin-inline: auto;
    padding: 0;
  }

  .r2-hero__image-wrap {
    max-width: 100%;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(11, 37, 69, .14);
  }

  .r2-hero__image,
  .r2-hero__image--fallback {
    max-width: 100%;
    border-radius: inherit;
  }

  .r2-trust__inner {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 10px;
    overflow: hidden !important;
  }

  .r2-trust__item {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-left: 0 !important;
    color: var(--r2-navy-800);
    font-size: 10.5px;
    line-height: 1.25;
    text-align: center;
  }

  .r2-trust__icon-wrap {
    width: 22px;
    height: 22px;
  }

  .r2-trust__icon,
  .r2-trust__placeholder {
    width: 20px;
    height: 20px;
  }

  .r2-trust__text {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .r2-trust--mobile-1 .r2-trust__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .r2-trust--mobile-1 .r2-trust__item:nth-child(n + 2),
  .r2-trust--mobile-2 .r2-trust__item:nth-child(n + 3),
  .r2-trust--mobile-3 .r2-trust__item:nth-child(n + 4) {
    display: none;
  }

  .r2-trust--mobile-3 .r2-trust__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .r2-site-header__inner {
    width: calc(100% - 24px);
  }

  .r2-site-header__logo {
    max-width: calc(100% - 84px);
  }

  .r2-site-header__logo img {
    max-height: 39px;
  }

  .r2-hero {
    padding-top: 24px;
  }

  .r2-hero__inner {
    width: calc(100% - 28px);
  }

  .r2-hero__title {
    font-size: clamp(32px, 9.6vw, 38px);
  }

  .r2-hero__body {
    font-size: 13px;
  }
}
