/* Seção do painel de saúde - node Figma 1682:5128. */
.app-panel-section {
  overflow: hidden;
  background: #fafafa;
}

/* Alinha o início do conteúdo ao mesmo eixo esquerdo das outras seções. */
.app-panel-inner {
  width: min(1443px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 77px;
}

/* Coluna de copy: título, descrição e CTA. */
.app-panel-copy {
  flex: 0 0 570px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

/* Título com gradiente azul-roxo e alternância semibold/regular. */
.app-panel-title {
  width: 570px;
  margin: 0;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.356;
  letter-spacing: 0.76px;
  background: linear-gradient(163.79deg, #57d4ff 0%, #845cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-panel-title strong {
  font-weight: 600;
}

/* Descrição com QR Code em semibold. */
.app-panel-description {
  width: 558px;
  max-width: 100%;
  margin: 0;
  color: #64748b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.47;
}

.app-panel-description strong {
  font-weight: 600;
}

/* CTA alinhado à esquerda pelo flex-start do copy. */
.app-panel-cta {
  width: 328.612px;
}

.app-panel-cta-label {
  width: 240px;
}

.app-panel-cta--mobile,
.app-panel-mobile-controls {
  display: none;
}

.app-panel-carousel {
  flex: 1;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
}

/* Fila de cards horizontais — transborda para a direita, a seção corta. */
.app-panel-cards {
  width: 100%;
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-top: 39px;
  margin-top: -39px;
}

.app-panel-cards::-webkit-scrollbar {
  display: none;
}

/* Card individual: padding fixo, conteúdo ancorado no rodapé. */
.app-panel-card {
  min-width: 0;
  flex: 0 0 396px;
  height: 424px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  border-radius: 30px;
  background: #ffffff;
  scroll-snap-align: start;
}

.app-panel-card.is-carousel-clone {
  pointer-events: none;
}

@media (min-width: 1181px) {
  .app-panel-mobile-controls {
    width: 139px;
    height: 38px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .app-panel-mobile-arrow {
    width: 19px;
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
  }

  .app-panel-mobile-arrow::before,
  .app-panel-mobile-arrow::after {
    content: "";
    position: absolute;
    left: 7px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #845cff;
    transform-origin: left center;
  }

  .app-panel-mobile-arrow::before {
    top: 18px;
    transform: rotate(45deg);
  }

  .app-panel-mobile-arrow::after {
    top: 18px;
    transform: rotate(-45deg);
  }

  .app-panel-mobile-arrow--next {
    transform: rotate(180deg);
  }

  .app-panel-mobile-dots {
    width: 43px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .app-panel-mobile-dots span {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 999px;
    background: #845cff;
    opacity: 0.35;
    transition: opacity 180ms ease;
  }

  .app-panel-mobile-dots span.is-active {
    opacity: 1;
  }
}

/* Área de ilustração: 336×299, recorta qualquer conteúdo que exceda. */
.app-panel-card-illustration {
  width: 336px;
  height: 299px;
  flex: 0 0 299px;
  margin-top: -39px;
  overflow: hidden;
  position: relative;
}

.app-panel-card-illustration > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top left;
}

/* Título do card. */
.app-panel-card-title {
  margin: 0;
  width: 336px;
  color: #64748b;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.47;
}

/* Texto descritivo do card. */
.app-panel-card-text {
  margin: 0;
  width: 336px;
  color: #64748b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.47;
}

.app-panel-card-text strong {
  font-weight: 600;
}

/* --- Ilustração do card 3: Exames --- */

/* Documento de laudo ao fundo: posicionado com left/top idênticos ao Figma. */
.app-panel-exames-doc {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 287px;
  height: 478px;
  border-radius: 10px;
  box-shadow: 0px -1px 32.9px -13px rgba(0, 0, 0, 0.25);
  padding: 22px 21px;
  overflow: hidden;
}

/* Cabeçalho do laudo. */
.app-panel-exames-label {
  margin: 0 0 14px;
  font-family: "Muring Display", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.17px;
  line-height: 1.47;
  white-space: nowrap;
}

/* Barras placeholder simulando linhas de dados do laudo. */
.app-panel-exames-doc::after {
  content: '';
  display: block;
  width: 100%;
  height: 340px;
  background-image:
    linear-gradient(rgba(129, 141, 159, 0.16), rgba(129, 141, 159, 0.16)),
    linear-gradient(rgba(129, 141, 159, 0.16), rgba(129, 141, 159, 0.16)),
    repeating-linear-gradient(
      to bottom,
      rgba(129, 141, 159, 0.16) 0px, rgba(129, 141, 159, 0.16) 9px,
      transparent 9px, transparent 17px,
      rgba(129, 141, 159, 0.16) 17px, rgba(129, 141, 159, 0.16) 26px,
      transparent 26px, transparent 34px
    );
  background-size:
    100% 13px,
    40% 13px,
    58% 340px;
  background-position:
    0 0,
    0 18px,
    0 36px;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Folha de exame inclinada sobreposta ao documento. */
.app-panel-exames-sheet {
  position: absolute;
  left: 120px;
  top: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-panel-exames-sheet img {
  width: 165px;
  display: block;
  transform: rotate(-19.49deg);
  transform-origin: center;
}

/* ---- Breakpoints ---- */

/* Tablet: empilha copy e cards, grade de 2 colunas. */
@media (max-width: 1180px) {
  .app-panel-inner {
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    gap: 48px;
  }

  .app-panel-copy {
    flex: unset;
    width: min(570px, 100%);
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .app-panel-title {
    width: 100%;
  }

  .app-panel-description {
    width: 100%;
  }

  .app-panel-carousel {
    width: min(100%, 832px);
    flex: unset;
    overflow: visible;
  }

  .app-panel-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: min(100%, 832px);
    overflow: visible;
    scroll-snap-type: none;
    padding-top: 0;
    margin-top: 0;
  }

  .app-panel-card {
    flex: unset;
    height: auto;
    min-height: 400px;
    padding: 30px;
  }

  .app-panel-card-illustration {
    width: 100%;
    margin-top: 0;
  }

  .app-panel-card-title,
  .app-panel-card-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .app-panel-inner {
    padding: 0 16px;
    gap: 36px;
  }

  .app-panel-copy {
    gap: 20px;
  }

  .app-panel-title {
    font-size: 30px;
    letter-spacing: 0.6px;
    line-height: 1.18;
  }

  .app-panel-title br {
    display: none;
  }

  .app-panel-description {
    font-size: 17px;
  }

  .app-panel-carousel {
    width: 100%;
  }

  .app-panel-cards {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 16px;
  }

  .app-panel-card {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .app-panel-section {
    --app-panel-mobile-card-width: min(302px, calc(100vw - 32px));
    --app-panel-mobile-card-content-width: min(256.242px, calc(var(--app-panel-mobile-card-width) - 45.758px));
  }

  .app-panel-section {
    overflow: hidden;
  }

  .app-panel-inner {
    width: min(359px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .app-panel-copy {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .app-panel-title {
    width: 357px;
    max-width: 100%;
    font-size: 34.42px;
    line-height: 1.356;
    letter-spacing: 0.688px;
  }

  .app-panel-description {
    width: 351px;
    max-width: 100%;
    margin-top: 0;
    font-size: 18px;
    line-height: 1.47;
  }

  .app-panel-copy > .app-panel-cta {
    display: none;
  }

  .app-panel-carousel {
    width: 100%;
  }

  .app-panel-cards {
    width: 100vw;
    margin-top: 34px;
    margin-left: calc((100vw - min(359px, calc(100vw - 32px))) / -2);
    display: flex;
    grid-template-columns: unset;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(16px, calc((100vw - var(--app-panel-mobile-card-width)) / 2));
    scroll-padding-right: max(16px, calc((100vw - var(--app-panel-mobile-card-width)) / 2));
    scrollbar-width: none;
    padding: 60px max(16px, calc((100vw - var(--app-panel-mobile-card-width)) / 2)) 0;
  }

  .app-panel-cards::-webkit-scrollbar {
    display: none;
  }

  .app-panel-card {
    width: var(--app-panel-mobile-card-width);
    min-width: var(--app-panel-mobile-card-width);
    flex: 0 0 var(--app-panel-mobile-card-width);
    height: 323.354px;
    min-height: 323.354px;
    padding: 0;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 30px;
    scroll-snap-align: center;
  }

  .app-panel-card-illustration {
    width: var(--app-panel-mobile-card-content-width);
    height: 228.025px;
    flex: 0 0 228.025px;
    margin: -60.429px 0 0 22.879px;
  }

  .app-panel-card-title {
    width: var(--app-panel-mobile-card-content-width);
    margin: 11.439px 0 0 22.879px;
    font-size: 15px;
    line-height: 1.47;
  }

  .app-panel-card-text {
    width: var(--app-panel-mobile-card-content-width);
    margin: 11.439px 0 0 22.879px;
    font-size: 15px;
    line-height: 1.47;
  }

  .app-panel-card-illustration > img {
    object-fit: cover;
    object-position: top left;
  }

  .app-panel-exames-doc {
    left: 18.286px;
    top: 13.714px;
    width: 218.667px;
    height: 364.19px;
    border-radius: 7.619px;
    padding: 16.762px 16px;
  }

  .app-panel-exames-label {
    margin-bottom: 10.667px;
    font-size: 6.857px;
    letter-spacing: 0.891px;
  }

  .app-panel-exames-doc::after {
    height: 260px;
    background-size:
      100% 10px,
      40% 10px,
      58% 260px;
    background-position:
      0 0,
      0 14px,
      0 28px;
  }

  .app-panel-exames-sheet {
    left: 91.071px;
    top: 51.779px;
  }

  .app-panel-exames-sheet img {
    width: 125.787px;
  }

  .app-panel-mobile-controls {
    width: 139px;
    height: 38px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .app-panel-mobile-arrow {
    width: 19px;
    height: 38px;
    border: 0;
    padding: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
  }

  .app-panel-mobile-arrow::before,
  .app-panel-mobile-arrow::after {
    content: "";
    position: absolute;
    left: 7px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #845cff;
    transform-origin: left center;
  }

  .app-panel-mobile-arrow::before {
    top: 18px;
    transform: rotate(45deg);
  }

  .app-panel-mobile-arrow::after {
    top: 18px;
    transform: rotate(-45deg);
  }

  .app-panel-mobile-arrow--next {
    transform: rotate(180deg);
  }

  .app-panel-mobile-dots {
    width: 43px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .app-panel-mobile-dots span {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 999px;
    background: #845cff;
    opacity: 0.35;
    transition: opacity 180ms ease;
  }

  .app-panel-mobile-dots span.is-active {
    opacity: 1;
  }

  .app-panel-cta--mobile {
    display: flex;
    margin: 45px auto 0;
  }
}
