/* Seção do ecossistema completo em painel roxo com cards translúcidos. */
.ecosystem-section {
  padding: 120px 0 112px;
}

/* Container central da faixa. */
.ecosystem-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Painel principal roxo, com imagem e conteúdo lado a lado no desktop. */
.ecosystem-panel {
  display: grid;
  grid-template-columns: 489px 1fr;
  align-items: end;
  column-gap: 46px;
  padding: 54px 46px 46px;
  border-radius: 45px;
  background: #845cff;
}

/* Bloco visual da médica com base ciano. */
.ecosystem-visual {
  position: relative;
  width: 489px;
  align-self: end;
}

.ecosystem-visual--mobile {
  display: none;
}

.ecosystem-visual__backdrop {
  display: none;
}

.ecosystem-visual__image {
  position: absolute;
  left: 0;
  bottom: -46px;
  width: 489px;
  height: 752px;
  display: block;
  object-fit: cover;
  border-radius: 30px;
}

/* Coluna de cards e CTA. */
.ecosystem-content {
  display: flex;
  flex-direction: column;
  gap: 29px;
  align-items: flex-start;
}

/* Cada card translúcido segue o painel do Figma mobile. */
.ecosystem-card {
  padding: 28px 32px;
  border-radius: 33px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ecosystem-card__title {
  margin: 0 0 10px;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.ecosystem-card__body {
  margin: 0;
  font-family: "Muring Text", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.47;
  color: #fff;
}

/* CTA claro da seção. */
.ecosystem-cta {
  align-self: flex-start;
  margin-top: 5px;
}

.ecosystem-cta__label {
  width: 240px;
}

/* Tablet: empilha imagem e cards. */
@media (max-width: 1024px) {
  .ecosystem-section {
    padding: 96px 0;
  }

  .ecosystem-shell {
    width: min(100%, calc(100% - 40px));
  }

  .ecosystem-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
    padding: 40px 28px;
  }

  .ecosystem-content {
    width: min(640px, 100%);
  }

  .ecosystem-visual {
    display: none;
  }

  .ecosystem-visual__backdrop {
    position: absolute;
    width: 321px;
    height: 223.176px;
    border-radius: 30px;
    background: red;
  }

  .ecosystem-visual__image {
    left: 0;
    width: 321px;
    height: 390px;
    border-radius: 30px;
  }

  .ecosystem-card {
    width: 100%;
    padding: 24px 26px;
    border-radius: 25px;
  }

  .ecosystem-card__title {
    width: min(100%, 380px);
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.35;
  }

  .ecosystem-card__body {
    width: min(100%, 420px);
    font-size: 18px;
  }

  .ecosystem-cta__label {
    width: 182px;
  }

  .ecosystem-cta {
    align-self: center;
  }
}

/* Mobile: segue exatamente o bloco roxo com os três cards e CTA claro. */
@media (max-width: 480px) {
  .ecosystem-section {
    padding: 20px 0;
  }

  .ecosystem-shell {
    width: min(332px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
  }

  .ecosystem-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 41px;
    width: 332px;
    padding: 20px 28px;
    border-radius: 30px;
  }

  .ecosystem-panel>.ecosystem-visual {
    display: none;
  }

  .ecosystem-visual--mobile {
    display: block;
    width: 332px;
    height: 377px;
    align-self: initial;
  }

  .ecosystem-visual--mobile .ecosystem-visual__backdrop {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 332px;
    height: 223.176px;
    border-radius: 30px;
    background: #57d4ff;
  }

  .ecosystem-visual--mobile .ecosystem-visual__image {
    left: 0;
    bottom: 0px;
    border-radius: 30px;
  }

  .ecosystem-content {
    gap: 41px;
    width: 100%;
    align-items: center;
  }

  .ecosystem-card {
    width: 100%;
    max-width: 299px;
    padding: 18px 26px;
    border-radius: 25px;
  }

  .ecosystem-card__title {
    width: 100%;
    max-width: 240px;
    font-size: 16px;
    line-height: 1.47;
    margin-bottom: 10px;
  }

  .ecosystem-card__body {
    width: 100%;
    max-width: 247px;
    font-size: 16px;
    line-height: 1.47;
  }

  .ecosystem-cta {
    align-self: center;
    width: 240.251px;
    height: 59.807px;
    padding: 11.214px;
    gap: 6.438px;
    margin-top: 8px;
  }

  .ecosystem-cta__label {
    width: 181.659px;
    font-size: 13.46px;
    letter-spacing: 0.2692px;
  }

  .ecosystem-cta__icon,
  .ecosystem-cta__icon img {
    width: 37.378px;
    height: 37.378px;
    flex-basis: 37.378px;
  }
}