.seo-partner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "intro sample" "action sample";
  gap: 24px clamp(28px, 4vw, 64px);
  margin-top: 12px;
  padding: clamp(26px, 2.5vw, 36px) clamp(28px, 3.5vw, 48px);
  background: #fff;
  color: #152e50;
}

.seo-partner__intro {
  grid-area: intro;
  align-self: end;
}

.seo-partner__release-badge {
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 5px;
  background: #1b5de2;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.seo-partner__release-title {
  display: block;
  margin-bottom: 12px;
  color: #354b65;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.5;
}

.seo-partner__brand {
  display: grid;
  grid-template-columns: 13% minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(100%, 19rem);
}

.seo-partner__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.seo-partner__headline {
  margin: 22px 0 14px;
  font-size: clamp(1.5rem, 2.45vw, 2.125rem);
  font-weight: 800;
  line-height: 1.45;
}

.seo-partner__description {
  color: #354b65;
  font-size: 1rem;
  line-height: 1.85;
}

.seo-partner__phrase {
  display: inline-block;
  max-width: 100%;
}

.seo-partner__sample {
  grid-area: sample;
  align-self: center;
  min-width: 0;
}

.seo-partner__preview {
  position: relative;
  display: block;
  aspect-ratio: 1000 / 730;
  overflow: hidden;
  border: 1px solid #cbd5e2;
  border-radius: 12px;
  background: #f5f7fa;
}

/* Show the report sheet from (397, 165) through its ranking totals. */
.seo-partner__report {
  position: absolute;
  top: -22.6%;
  left: -39.7%;
  display: block;
  width: 154.5%;
  max-width: none;
  height: auto;
}

.seo-partner__caption {
  margin-top: 8px;
  color: #4a6078;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.seo-partner__action {
  grid-area: action;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #1b5de2;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.seo-partner__action:hover {
  background: #144bb9;
}

.seo-partner a:focus-visible {
  outline: 3px solid #174fb7;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .seo-partner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "sample" "action";
    gap: 18px;
    padding: 26px clamp(16px, 5vw, 32px);
  }

  .seo-partner__brand {
    width: min(100%, 16.5rem);
  }

  .seo-partner__headline {
    margin: 16px 0 10px;
    font-size: clamp(1.2rem, 6.05vw, 1.65rem);
  }

  .seo-partner__sample {
    width: min(100%, 32rem);
  }

  .seo-partner__action {
    justify-self: stretch;
    padding-inline: 12px;
  }
}
