/* Faixa externa da seção de transição entre dores e realidade do sistema público. */
.problem-section {
  display: flex;
  justify-content: center;
  background: #fafafa;
}

.problem-section--intro {
  padding: 84px 0 34px;
}

.problem-section--reality {
  padding: 34px 0 120px;
}

/* Container central da seção com largura do frame desktop. */
.problem-shell {
  width: 1281px;
  max-width: 100%;
  display: grid;
  justify-items: center;
  gap: 68px;
}

/* Bloco superior com a frase central do Figma. */
.problem-copy {
  position: relative;
  width: 1281px;
  max-width: 100%;
  min-height: 165px;
  color: var(--text);
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: 0;
  text-align: center;
}

/* Cada linha da frase principal. */
.problem-line {
  display: block;
}

/* Versão mobile do título fica oculta fora do breakpoint. */
.problem-copy--mobile {
  display: none;
}

/* Destaques em negrito usados no texto principal. */
.problem-copy strong {
  font-weight: 700;
}

/* Trechos destacados do título desktop com fundo roxo. */
.problem-inline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 71px;
  padding: 0 22px;
  margin: 0 6px;
  border-radius: 7px;
  background: var(--violet);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

/* Pills roxas sobrepostas ao texto, como no Figma. */
.problem-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--violet);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

/* Pill do início da frase. */
.problem-pill--left {
  top: 9px;
  left: 32px;
  width: 332px;
  height: 71px;
}

/* Pill intermediária sobre a segunda linha. */
.problem-pill--right {
  position: relative;
  top: auto;
  left: auto;
  width: 320px;
  height: 71px;
  margin: 0 10px 0 14px;
  vertical-align: middle;
}

/* Bloco inferior com imagem à esquerda e lista à direita. */
.problem-reality {
  width: 1144px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 68px;
}

/* Bloco alternativo exclusivo do mobile, oculto fora do breakpoint. */
.problem-reality-mobile {
  display: none;
}

/* Composição visual da família com fundo azul e cards flutuantes. */
.problem-visual {
  position: relative;
  width: 542px;
  height: 502px;
  flex: 0 0 542px;
}

/* Fotografia principal apoiada sobre a base azul arredondada. */
.problem-visual-media {
  position: absolute;
  left: 23px;
  top: 34px;
  width: 519px;
  height: 421px;
}

/* Base azul que aparece atrás da fotografia. */
.problem-visual-media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 90px;
  width: 519px;
  height: 330px;
  border-radius: 52px;
  background: var(--cyan);
}

/* Imagem da família mantendo o recorte do Figma. */
.problem-visual-media img {
  position: absolute;
  inset: 0;
  width: 519px;
  height: 420px;
  border-radius: 52px;
  object-fit: cover;
  object-position: center top;
}

/* Cards roxos flutuantes usados como apoio visual. */
.problem-badge {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--violet);
  border-radius: 29px;
  transform-origin: center;
  animation: problem-badge-breathe 4.8s ease-in-out infinite;
}

/* Badge superior com ícone de tempo. */
.problem-badge--time {
  top: 0;
  right: 5px;
  width: 100px;
  height: 100px;
  animation-duration: 4.4s;
  animation-delay: 0s;
}

/* Badge lateral com ícone triste. */
.problem-badge--sad {
  left: 0;
  top: 221px;
  width: 102px;
  height: 102px;
  animation-duration: 5.2s;
  animation-delay: 0.6s;
}

/* Badge inferior com ícone de dúvida. */
.problem-badge--question {
  left: 208px;
  top: 406px;
  width: 95px;
  height: 95px;
  animation-duration: 4.9s;
  animation-delay: 1.1s;
}

@keyframes problem-badge-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* Escala dos ícones dentro dos badges. */
.problem-badge--time img {
  width: 50px;
  height: 50px;
}

.problem-badge--sad img {
  width: 50px;
  height: 50px;
}

.problem-badge--question img {
  width: 46px;
  height: 50px;
}

/* Coluna textual da realidade do sistema público. */
.problem-points {
  width: 602px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}

/* Título roxo do bloco inferior. */
.problem-points-title {
  margin: 0;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.356;
  letter-spacing: 0.76px;
  background-image: linear-gradient(164.4189deg, #57d4ff 0%, #845cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lista de dores do sistema público. */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Linha individual da lista com ícone e texto. */
.problem-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.47;
}

/* Ícone vermelho da lista. */
.problem-list img {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

/* Tablet: comprime proporções e empilha parcialmente o conteúdo. */
@media (max-width: 1024px) and (min-width: 481px) {
  .problem-section--intro {
    padding: 64px 24px 28px;
  }

  .problem-section--reality {
    padding: 28px 24px 88px;
  }

  .problem-shell {
    width: min(100%, 900px);
    gap: 56px;
  }

  .problem-copy {
    width: 100%;
    font-size: 42px;
    min-height: 128px;
  }

  .problem-inline-white {
    min-height: 56px;
    padding: 0 18px;
  }

  .problem-reality {
    width: 100%;
    flex-direction: column;
    gap: 44px;
  }

  .problem-visual {
    width: 470px;
    height: 435px;
    flex-basis: auto;
  }

  .problem-visual-media {
    left: 20px;
    top: 29px;
    width: 450px;
    height: 365px;
  }

  .problem-visual-media::before {
    top: 78px;
    width: 450px;
    height: 286px;
    border-radius: 45px;
    background: var(--cyan);
  }

  .problem-visual-media img {
    width: 450px;
    height: 364px;
    border-radius: 45px;
  }

  .problem-badge {
    border-radius: 25px;
  }

  .problem-badge--time {
    width: 86px;
    height: 86px;
    right: 6px;
  }

  .problem-badge--sad {
    width: 88px;
    height: 88px;
    top: 192px;
  }

  .problem-badge--question {
    width: 82px;
    height: 82px;
    left: 181px;
    top: 352px;
  }

  .problem-badge--time img {
    width: 57px;
    height: 57px;
  }

  .problem-badge--sad img {
    width: 50px;
    height: 50px;
  }

  .problem-badge--question img {
    width: 44px;
    height: 44px;
  }

  .problem-points {
    width: min(100%, 640px);
    gap: 28px;
  }

  .problem-points-title {
    font-size: 34px;
    text-align: center;
  }
}

/* Mobile fiel ao frame da realidade com texto e visual empilhados. */
@media (max-width: 480px) {
  .problem-section--intro {
    padding: 61px 19px 27px;
  }

  .problem-section--reality {
    padding: 27px 19px 96px;
  }

  .problem-shell {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 54px;
  }

  .problem-copy--desktop {
    display: none;
  }

  .problem-copy--mobile {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    min-height: 176px;
    font-size: 30px;
    line-height: 1.47;
    text-align: center;
  }

  .problem-mobile-line {
    display: block;
  }

  .problem-mobile-tail {
    padding-left: 0;
  }

  .problem-pill {
    position: absolute;
    border-radius: 7px;
  }

  .problem-pill--left {
    position: relative;
    top: auto;
    left: auto;
    display: inline-flex;
    vertical-align: middle;
    width: 181px;
    height: 43px;
    margin-right: 8px;
  }

  .problem-pill--right {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    width: 179px;
    height: 43px;
    margin: 0 6px 0 8px;
  }

  .problem-reality {
    display: none;
  }

  .problem-reality-mobile {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
  }

  .problem-mobile-title {
    order: 1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    font-family: "Muring Display", system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.356;
    letter-spacing: 0.56px;
    text-align: center;
    background-image: linear-gradient(159.68deg, #57d4ff 0%, #845cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .problem-visual--mobile {
    order: 2;
    width: 100%;
    max-width: 360px;
    height: 334px;
    flex: 0 0 auto;
  }

  .problem-visual--mobile .problem-visual-media {
    left: 15px;
    top: 23px;
    width: 345px;
    height: 280px;
  }

  .problem-visual--mobile .problem-visual-media::before {
    top: 60px;
    width: 345px;
    height: 219px;
    border-radius: 35px;
  }

  .problem-visual--mobile .problem-visual-media img {
    width: 345px;
    height: 279px;
    border-radius: 35px;
  }

  .problem-visual--mobile .problem-badge {
    border-radius: 19px;
  }

  .problem-visual--mobile .problem-badge--time {
    top: 0;
    right: 3px;
    width: 66px;
    height: 66px;
  }

  .problem-visual--mobile .problem-badge--sad {
    left: 0;
    top: 147px;
    width: 68px;
    height: 68px;
  }

  .problem-visual--mobile .problem-badge--question {
    left: 138px;
    top: 270px;
    width: 63px;
    height: 63px;
  }

  .problem-visual--mobile .problem-badge--time img,
  .problem-visual--mobile .problem-badge--sad img {
    width: 33px;
    height: 33px;
  }

  .problem-visual--mobile .problem-badge--question img {
    width: 31px;
    height: 33px;
  }

  .problem-list--mobile {
    order: 3;
    width: 100%;
    max-width: 360px;
    gap: 12px;
  }

  .problem-list--mobile li {
    font-size: 16px;
    line-height: 1.47;
  }

  .problem-mobile-alert {
    order: 4;
    width: 100%;
    max-width: 360px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 5px;
    background: #ff525b;
    color: #ffffff;
    font-family: "Muring Display", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.47;
  }

  .problem-mobile-alert p {
    margin: 0;
  }

  .problem-mobile-cta {
    order: 5;
    width: 272.308px;
    height: auto;
    padding: 12.43px;
    gap: 7.136px;
  }

  .problem-mobile-cta-label {
    width: 198.879px;
    font-size: 14.92px;
    letter-spacing: 0.2984px;
  }

  .problem-mobile-cta-icon,
  .problem-mobile-cta-icon-img {
    width: 41.433px;
    height: 41.433px;
    flex-basis: 41.433px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-badge {
    animation: none;
  }
}
