/* Faixa entre Parecer Medico e o encerramento regulatorio. */
.context-section {
  padding: 122px 0 136px;
}

/* Shell desktop em duas colunas, painel visual a esquerda e copy a direita. */
.context-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 775px 451px;
  column-gap: 31px;
  align-items: end;
  justify-content: center;
}

/* Painel visual com overlay do medico sobre o bloco roxo. */
.context-panel {
  position: relative;
  width: 775px;
  height: 519px;
}

/* Bloco roxo principal, deslocado para baixo como no Figma. */
.context-panel__backdrop {
  position: absolute;
  left: 0;
  top: 116px;
  width: 775px;
  height: 403px;
  border-radius: 45px;
  background: #845cff;
}

/* Titulo branco dentro do painel. */
.context-panel__title {
  position: absolute;
  left: 67px;
  top: 163px;
  margin: 0;
  color: #ffffff;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.29;
}

/* Medico apoiado no lado direito do painel. */
.context-panel__doctor {
  position: absolute;
  left: 291px;
  top: 0;
  height: 519px;
  display: block;
  object-fit: contain;
}

/* Pills translucidos do contexto clinico. */
.context-pill {
  position: absolute;
  left: 37px;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  padding: 20px 30px;
  border-radius: 98px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: "Muring Text", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.context-pill img {
  width: 23px;
  height: 22px;
  display: block;
}

.context-pill--first {
  top: 243px;
}

.context-pill--second {
  top: 329px;
}

.context-pill--third {
  top: 415px;
}

/* Copy a direita seguindo a largura do frame desktop. */
.context-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 451px;
}

/* Titulo em gradiente com enfases em bold. */
.context-title {
  margin: 0;
  background: linear-gradient(160deg, #57d4ff 0%, #845cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Muring Text", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.356;
  letter-spacing: 0.76px;
}

.context-title strong {
  font-weight: 700;
}

/* Texto explicativo com trechos em destaque. */
.context-description {
  width: 392px;
  margin: 0;
  color: #64748b;
  font-family: "Muring Text", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.47;
}

.context-description strong {
  font-weight: 700;
}

/* CTA escuro alinhado ao inicio da coluna. */
.context-cta {
  justify-self: start;
}

.context-cta__label {
  width: 182px;
}

/* Tablet: empilha painel e copy mantendo o destaque visual. */
@media (max-width: 1180px) {
  .context-section {
    padding: 96px 0 108px;
  }

  .context-shell {
    width: min(720px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 42px;
  }

  .context-panel {
    width: min(100%, 720px);
    height: 500px;
  }

  .context-panel__backdrop {
    left: 0;
    top: 120px;
    width: 100%;
    height: 360px;
  }

  .context-panel__title {
    left: 44px;
    top: 158px;
  }

  .context-panel__doctor {
    left: auto;
    right: 12px;
    width: min(380px, 54vw);
    height: auto;
  }

  .context-pill {
    left: 44px;
    padding: 16px 24px;
    font-size: 18px;
    gap: 14px;
  }

  .context-pill--first {
    top: 240px;
  }

  .context-pill--second {
    top: 318px;
  }

  .context-pill--third {
    top: 396px;
  }

  .context-copy {
    width: min(100%, 560px);
    align-items: center;
    text-align: center;
  }

  .context-title,
  .context-description {
    width: 100%;
  }

  .context-title {
    font-size: 34px;
    letter-spacing: 0.68px;
  }

  .context-description {
    font-size: 18px;
  }

  .context-cta {
    margin: 0 auto;
  }
}

/* Mobile: adaptacao compacta a partir do frame mobile geral enviado. */
@media (max-width: 480px) {
  .context-section {
    padding: 86px 0 104px;
  }

  .context-shell {
    width: min(335px, calc(100% - 40px));
    display: grid;
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .context-copy {
    display: contents;
  }

  .context-title {
    grid-row: 1;
    width: 100%;
    font-size: 28px;
    letter-spacing: 0.56px;
  }

  .context-panel {
    grid-row: 2;
    width: 100%;
    height: 223px;
    top: -40px;
  }

  .context-description {
    grid-row: 3;
    width: 100%;
    font-size: 16px;
  }

  .context-cta {
    grid-row: 4;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
  }

  .context-panel__backdrop {
    top: 50px;
    width: 100%;
    height: 203px;
    border-radius: 30px;
  }

  .context-panel__title {
    left: 24px;
    right: 24px;
    top: 80px;
    font-size: 18px;
    line-height: 1.28;
  }

  .context-panel__doctor {
    display: none;
  }

  .context-pill {
    left: 16px;
    right: 16px;
    gap: 8px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.18px;
    border-radius: 73px;
    justify-content: flex-start;
  }

  .context-pill img {
    width: 12px;
    height: 12px;
  }

  .context-pill--first {
    top: 131px;
  }

  .context-pill--second {
    top: 167px;
  }

  .context-pill--third {
    top: 203px;
  }
}
